Sfoglia il codice sorgente

【修改】实训课成绩录入:增加教学工作安排的时间限制;

怀来职教中心中职
dyy 1 anno fa
parent
commit
101347e244
3 ha cambiato i file con 26 aggiunte e 0 eliminazioni
  1. +12
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuScoreExperimentController.cs
  2. +9
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreExperiment/InputScoreIndex.cshtml
  3. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreExperiment/InputScoreIndex.js

+ 12
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuScoreExperimentController.cs Vedi File

@@ -22,6 +22,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
private StuScoreExperimentIBLL stuScoreExperimentIBLL = new StuScoreExperimentBLL();
private UserIBLL userIBLL = new UserBLL();
private EADateArrangeIBLL eADateArrangeIBLL = new EADateArrangeBLL();

#region 视图功能

@@ -51,6 +52,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
[HttpGet]
public ActionResult InputScoreIndex()
{
//获取“教学工作安排”中“实训课成绩录入”的记录
var entity = eADateArrangeIBLL.GetEADateArrangeEntityByName("实训课成绩录入");
if (entity != null && entity.CheckMark == "1" && DateTime.Now > entity.MakeDate && DateTime.Now < entity.EndDate)
{
ViewBag.CanInputFlag = true;//可以录入成绩标识
}
else
{
ViewBag.CanInputFlag = false;
}

return View();
}
/// <summary>


+ 9
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreExperiment/InputScoreIndex.cshtml Vedi File

@@ -6,6 +6,7 @@
.lr-select {
width: 150px;
}

#LessonNo {
width: 180px;
}
@@ -13,6 +14,7 @@
.lr-selectLittle {
width: 80px;
}

.lr-layout-tool {
height: 80px;
}
@@ -45,6 +47,7 @@
color: #ff0000;
margin-left: 10px;
}

#addMinutesBtn {
display: inline-block;
cursor: pointer;
@@ -108,3 +111,9 @@
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuScoreExperiment/InputScoreIndex.js")
<script>
var CanInputFlag = "@ViewBag.CanInputFlag";
if (CanInputFlag != "True") {
top.learun.layerConfirm('当前时间不是实训课成绩录入时间!', function (res) {});
}
</script>

+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreExperiment/InputScoreIndex.js Vedi File

@@ -459,6 +459,11 @@ var bootstrap = function ($, learun) {
}
};
judgeSelect = function () {
if (CanInputFlag != "True") {
top.learun.layerConfirm('当前时间不是实训课成绩录入时间!', function (res) { });
return false;
}

var $content = $('body').find('.lr-layout-tool-left');
var query = $content.lrGetFormData();
if (query.F_SchoolId == null || query.F_SchoolId == "") {


Caricamento…
Annulla
Salva