瀏覽代碼

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

怀来职教中心中职
dyy 1 年之前
父節點
當前提交
101347e244
共有 3 個文件被更改,包括 26 次插入0 次删除
  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 查看文件

@@ -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>


+ 9
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreExperiment/InputScoreIndex.cshtml 查看文件

@@ -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>

+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreExperiment/InputScoreIndex.js 查看文件

@@ -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 == "") {


Loading…
取消
儲存