Переглянути джерело

修改安排考试

西昌缴费二期
zhangli 2 роки тому
джерело
коміт
c2eb40de65
5 змінених файлів з 30 додано та 11 видалено
  1. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Exam_ExamPlanLessonController.cs
  2. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/FormRoomTeacher.cshtml
  3. +17
    -8
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/FormRoomTeacher.js
  4. +3
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/Index.cshtml
  5. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/Index.js

+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Exam_ExamPlanLessonController.cs Переглянути файл

@@ -257,6 +257,11 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
if (ELCheckMark == 1)
{
var entity = exam_ExamPlanLessonIBLL.GetExam_ExamPlanLessonEntity(keyValue);
if (entity.ExamDate == null || entity.ExamTimeStart == null || entity.ExamTimeEnd == null)
{
return Fail("请先设置考试时间!");
}

if ((entity.RealClassNum == null || entity.RealClassNum == 0) ||
(entity.SeatCount == null || entity.SeatCount == 0))
{


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/FormRoomTeacher.cshtml Переглянути файл

@@ -5,8 +5,8 @@
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="Exam_ExamPlanRoom">
<div class="lr-form-item-title">考场名称<font face="宋体">*</font></div>
<input id="ClassroomName" type="text" readonly="readonly" class="form-control" isvalid="yes" checkexpession="NotNull" style="width: 85%;" />
<button class="btn btn-primary" id="selectRoom" style="float: right;margin-top: -28px;">选择考场</button>
<input id="ClassroomName" type="text" readonly="readonly" class="form-control" style="width: 85%;" />
<button class="btn btn-primary" id="selectRoom" style="float: right;margin-top: -28px;margin-right: 20px;">选择考场</button>
</div>
<div class="col-xs-12 lr-form-item" data-table="Exam_ExamPlanRoom">
<div class="lr-form-item-title">考场编号</div>


+ 17
- 8
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/FormRoomTeacher.js Переглянути файл

@@ -139,6 +139,11 @@ var bootstrap = function ($, learun) {
if (!$('.lr-form-wrap').lrValidform()) {
return false;
}
var ClassroomName = $('#ClassroomName').val();
if (!ClassroomName) {
learun.alert.warning("请选择考场!");
return false;
}
var datas = $('#Exam_ExamPlanTeacher').jfGridGet('rowdatas');
if (datas == null || datas.length == 0) {
learun.alert.warning("请先新增监考老师!");
@@ -159,15 +164,19 @@ var bootstrap = function ($, learun) {
postData.strEntity = JSON.stringify(formData);
postData.Exam_ExamPlanTeacherList = JSON.stringify($('#Exam_ExamPlanTeacher').jfGridGet('rowdatas'));

$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/Exam_ExamPlanLesson/SaveRoomAndTeacher?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack(res, formData, i);
}
});
}
$.lrSaveForm(
top.$.rootUrl +
'/EducationalAdministration/Exam_ExamPlanLesson/SaveRoomAndTeacher?keyValue=' +
keyValue,
postData,
function(res) {

// 保存成功后才回调
if (!!callBack) {
callBack(res, formData, i);
}
});
}
};
page.init();
}

+ 3
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/Index.cshtml Переглянути файл

@@ -6,11 +6,13 @@
#div_gridtable_Class {
float: left;
width: 50%;
height: 50%;
}

#div_gridtable_Room {
float: right;
width: 50%;
height: 50%;
padding-left: 10px;
}

@@ -43,7 +45,7 @@
<div class="lr-layout-tool-left">
<span class="examTimeShow">考试日期:<span id="examDate"></span></span>
<span class="examTimeShow"> 考试时间:<span id="examTime"></span></span>
<span id="checkspan" style="color: red;" ></span>
<span id="checkspan" style="color: red;"></span>
</div>
<div class="lr-layout-tool-right">
<div class=" btn-group btn-group-sm">


+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/Index.js Переглянути файл

@@ -38,6 +38,9 @@ var bootstrap = function ($, learun) {
//设置考试时间
$('#lr_ExamTime').on('click', function () {
if (!!EPLId) {
if (ELCheckMark == 1) {
return learun.alert.warning('该项已审核!');
}
learun.layerForm({
id: 'form',
title: '设置考试时间',


Завантаження…
Відмінити
Зберегти