@@ -22,6 +22,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
private StuScoreExperimentIBLL stuScoreExperimentIBLL = new StuScoreExperimentBLL(); | private StuScoreExperimentIBLL stuScoreExperimentIBLL = new StuScoreExperimentBLL(); | ||||
private UserIBLL userIBLL = new UserBLL(); | private UserIBLL userIBLL = new UserBLL(); | ||||
private EADateArrangeIBLL eADateArrangeIBLL = new EADateArrangeBLL(); | |||||
#region 视图功能 | #region 视图功能 | ||||
@@ -51,6 +52,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
[HttpGet] | [HttpGet] | ||||
public ActionResult InputScoreIndex() | 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(); | return View(); | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
@@ -6,6 +6,7 @@ | |||||
.lr-select { | .lr-select { | ||||
width: 150px; | width: 150px; | ||||
} | } | ||||
#LessonNo { | #LessonNo { | ||||
width: 180px; | width: 180px; | ||||
} | } | ||||
@@ -13,6 +14,7 @@ | |||||
.lr-selectLittle { | .lr-selectLittle { | ||||
width: 80px; | width: 80px; | ||||
} | } | ||||
.lr-layout-tool { | .lr-layout-tool { | ||||
height: 80px; | height: 80px; | ||||
} | } | ||||
@@ -45,6 +47,7 @@ | |||||
color: #ff0000; | color: #ff0000; | ||||
margin-left: 10px; | margin-left: 10px; | ||||
} | } | ||||
#addMinutesBtn { | #addMinutesBtn { | ||||
display: inline-block; | display: inline-block; | ||||
cursor: pointer; | cursor: pointer; | ||||
@@ -108,3 +111,9 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuScoreExperiment/InputScoreIndex.js") | @Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuScoreExperiment/InputScoreIndex.js") | ||||
<script> | |||||
var CanInputFlag = "@ViewBag.CanInputFlag"; | |||||
if (CanInputFlag != "True") { | |||||
top.learun.layerConfirm('当前时间不是实训课成绩录入时间!', function (res) {}); | |||||
} | |||||
</script> |
@@ -459,6 +459,11 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
judgeSelect = function () { | judgeSelect = function () { | ||||
if (CanInputFlag != "True") { | |||||
top.learun.layerConfirm('当前时间不是实训课成绩录入时间!', function (res) { }); | |||||
return false; | |||||
} | |||||
var $content = $('body').find('.lr-layout-tool-left'); | var $content = $('body').find('.lr-layout-tool-left'); | ||||
var query = $content.lrGetFormData(); | var query = $content.lrGetFormData(); | ||||
if (query.F_SchoolId == null || query.F_SchoolId == "") { | if (query.F_SchoolId == null || query.F_SchoolId == "") { | ||||