@@ -23,10 +23,6 @@ | |||||
<div class="lr-form-item-title">排考编号<font face="宋体">*</font></div> | <div class="lr-form-item-title">排考编号<font face="宋体">*</font></div> | ||||
<input id="PlanCode" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | <input id="PlanCode" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="Exam_ExamPlan" > | |||||
<div class="lr-form-item-title">排考总人数<font face="宋体">*</font></div> | |||||
<input id="EPStuCount" type="text" class="form-control" isvalid="yes" checkexpession="Num" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="Exam_ExamPlan" > | <div class="col-xs-12 lr-form-item" data-table="Exam_ExamPlan" > | ||||
<div class="lr-form-item-title">是否随机座位<font face="宋体">*</font></div> | <div class="lr-form-item-title">是否随机座位<font face="宋体">*</font></div> | ||||
<div id="EPRandom" isvalid="yes" checkexpession="NotNull" ></div> | <div id="EPRandom" isvalid="yes" checkexpession="NotNull" ></div> | ||||
@@ -177,13 +177,14 @@ var bootstrap = function ($, learun) { | |||||
{ | { | ||||
label: "是否生成", name: "EPGenarate", width: 100, align: "left", | label: "是否生成", name: "EPGenarate", width: 100, align: "left", | ||||
formatter: function (cellvalue) { | formatter: function (cellvalue) { | ||||
return cellvalue == true ? "是" : "否"; | |||||
return cellvalue == true ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>"; | |||||
} | } | ||||
}, | }, | ||||
{ label: "排序号", name: "EPOrder", width: 100, align: "left" }, | |||||
{ label: "排序号", name: "EPOrder", width: 100, align: "left", }, | |||||
], | ], | ||||
mainId: 'EPId', | mainId: 'EPId', | ||||
isPage: true | |||||
isPage: true, | |||||
sidx:"EPOrder asc " | |||||
}); | }); | ||||
page.search(); | page.search(); | ||||
}, | }, | ||||
@@ -385,6 +385,7 @@ delete from Exam_ExamPlanRoom where EPLId in ('{planLessonIds}');"); | |||||
else | else | ||||
{ | { | ||||
entity.Create(); | entity.Create(); | ||||
entity.EPStuCount = 0; | |||||
this.BaseRepository("CollegeMIS").Insert(entity); | this.BaseRepository("CollegeMIS").Insert(entity); | ||||
} | } | ||||
} | } | ||||