瀏覽代碼

【修改】教学教案检查:打分按钮增加打分时间限制;

怀来职教中心中职
dyy 1 年之前
父節點
當前提交
ebb97a52e0
共有 4 個文件被更改,包括 27 次插入2 次删除
  1. +14
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/TeacherPlanCheckController.cs
  2. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherPlanCheck/Index.cshtml
  3. +5
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherPlanCheck/Index.js
  4. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherPlanCheck/TeacherPlanCheckService.cs

+ 14
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/TeacherPlanCheckController.cs 查看文件

@@ -1,5 +1,6 @@
using Learun.Application.TwoDevelopment.EducationalAdministration;
using Learun.Util;
using System;
using System.Data;
using System.Web.Mvc;

@@ -15,6 +16,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
public class TeacherPlanCheckController : MvcControllerBase
{
private TeacherPlanCheckIBLL teacherPlanCheckIBLL = new TeacherPlanCheckBLL();
private EADateArrangeIBLL eADateArrangeIBLL = new EADateArrangeBLL();

#region 视图功能

@@ -25,7 +27,18 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
[HttpGet]
public ActionResult Index()
{
return View();
//获取“教学工作安排”中“教学教案检查打分”的记录
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>
/// 表单页


+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherPlanCheck/Index.cshtml 查看文件

@@ -36,3 +36,6 @@
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/TeacherPlanCheck/Index.js")
<script>
var CanInputFlag = "@ViewBag.CanInputFlag";
</script>

+ 5
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeacherPlanCheck/Index.js 查看文件

@@ -59,8 +59,12 @@ var bootstrap = function ($, learun) {
location.reload();
});

// 编辑
// 打分
$('#lr_edit').on('click', function () {
if (CanInputFlag != "True") {
top.learun.layerConfirm('当前时间不是打分时间!', function (res) { });
return false;
}
var keyValue = $('#gridtable').jfGridValue('EmpId');
selectedRow = $('#gridtable').jfGridGet('rowdata');
if (learun.checkrow(keyValue)) {


+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeacherPlanCheck/TeacherPlanCheckService.cs 查看文件

@@ -17,6 +17,8 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// </summary>
public class TeacherPlanCheckService : RepositoryFactory
{
private EADateArrangeService eADateArrangeService = new EADateArrangeService();

#region 构造函数和属性

private string fieldSql;
@@ -105,6 +107,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
try
{
//“教学工作安排”表增加“教学教案检查打分”项
eADateArrangeService.AddWork("教学教案检查打分");

//学年、学期
var yearAndSemester = Common.GetSemesterAndYear();
var year = yearAndSemester.AcademicYearShort;


Loading…
取消
儲存