Explorar el Código

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

怀来职教中心中职
dyy hace 1 año
padre
commit
101347e244
Se han modificado 3 ficheros con 26 adiciones y 0 borrados
  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 Ver fichero

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

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

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


Cargando…
Cancelar
Guardar