From 101347e24454f0be3111d8e1546846121e0fd251 Mon Sep 17 00:00:00 2001 From: dyy <807692433@qq.com> Date: Mon, 7 Aug 2023 10:33:33 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E5=AE=9E?= =?UTF-8?q?=E8=AE=AD=E8=AF=BE=E6=88=90=E7=BB=A9=E5=BD=95=E5=85=A5=EF=BC=9A?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=95=99=E5=AD=A6=E5=B7=A5=E4=BD=9C=E5=AE=89?= =?UTF-8?q?=E6=8E=92=E7=9A=84=E6=97=B6=E9=97=B4=E9=99=90=E5=88=B6=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/StuScoreExperimentController.cs | 12 ++++++++++++ .../Views/StuScoreExperiment/InputScoreIndex.cshtml | 9 +++++++++ .../Views/StuScoreExperiment/InputScoreIndex.js | 5 +++++ 3 files changed, 26 insertions(+) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuScoreExperimentController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuScoreExperimentController.cs index 4e7a8e605..7fb72c59b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuScoreExperimentController.cs +++ b/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 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(); } /// diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreExperiment/InputScoreIndex.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreExperiment/InputScoreIndex.cshtml index a27dd2d68..ac9d517c6 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreExperiment/InputScoreIndex.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreExperiment/InputScoreIndex.cshtml @@ -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 @@ @Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuScoreExperiment/InputScoreIndex.js") + diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreExperiment/InputScoreIndex.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreExperiment/InputScoreIndex.js index 8eef23684..584a3dddb 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreExperiment/InputScoreIndex.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreExperiment/InputScoreIndex.js @@ -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 == "") {