@@ -279,6 +279,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 保存实体数据(新增、修改) | /// 保存实体数据(新增、修改) | ||||
/// 设置考试时间 | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="strEntity">实体</param> | /// <param name="strEntity">实体</param> | ||||
@@ -304,7 +305,9 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
entity.ExamTime = entity.ExamTimeStart.Trim() + "-" + entity.ExamTimeEnd; | entity.ExamTime = entity.ExamTimeStart.Trim() + "-" + entity.ExamTimeEnd; | ||||
} | } | ||||
//判断考试时间是否冲突 | |||||
//exam_ExamPlanLessonIBLL.IsExamTimeClash(entity); | |||||
//保存 | |||||
exam_ExamPlanLessonIBLL.SaveEntity(keyValue, entity); | exam_ExamPlanLessonIBLL.SaveEntity(keyValue, entity); | ||||
return Success("保存成功!"); | return Success("保存成功!"); | ||||
} | } | ||||
@@ -8,12 +8,12 @@ | |||||
<input id="ExamDate" type="text" class="form-control lr-input-wdatepicker" isvalid="yes" checkexpession="NotNull" data-dateFmt="yyyy-MM-dd" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#ExamDate').trigger('change'); } })" /> | <input id="ExamDate" type="text" class="form-control lr-input-wdatepicker" isvalid="yes" checkexpession="NotNull" data-dateFmt="yyyy-MM-dd" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#ExamDate').trigger('change'); } })" /> | ||||
</div> | </div> | ||||
<div class="col-xs-6 lr-form-item" data-table="Exam_ExamPlanLesson"> | <div class="col-xs-6 lr-form-item" data-table="Exam_ExamPlanLesson"> | ||||
<div class="lr-form-item-title">考试开始时间<font face="宋体">*</font></div> | |||||
<input id="ExamTimeStart" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" placeholder="请填写时分,例如:09:00"/> | |||||
<div class="lr-form-item-title">开始时间<font face="宋体">*</font></div> | |||||
<input id="ExamTimeStart" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" placeholder="请填写时分,例如:09:00"/> | |||||
</div> | </div> | ||||
<div class="col-xs-6 lr-form-item" data-table="Exam_ExamPlanLesson"> | <div class="col-xs-6 lr-form-item" data-table="Exam_ExamPlanLesson"> | ||||
<div class="lr-form-item-title">结束时间<font face="宋体">*</font></div> | <div class="lr-form-item-title">结束时间<font face="宋体">*</font></div> | ||||
<input id="ExamTimeEnd" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" placeholder="请填写时分,例如:12:00"/> | |||||
<input id="ExamTimeEnd" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" placeholder="请填写时分,例如:12:00"/> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/Form.js") | @Html.AppendJsFile("/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/Form.js") |
@@ -204,6 +204,28 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
} | } | ||||
} | } | ||||
/// <summary> | |||||
/// 判断考试时间是否冲突 | |||||
/// </summary> | |||||
/// <param name="entity"></param> | |||||
public void IsExamTimeClash(Exam_ExamPlanLessonEntity entity) | |||||
{ | |||||
try | |||||
{ | |||||
exam_ExamPlanLessonService.IsExamTimeClash(entity); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | #endregion | ||||
} | } | ||||
@@ -49,6 +49,8 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
void SaveEntity(string keyValue, Exam_ExamPlanLessonEntity entity); | void SaveEntity(string keyValue, Exam_ExamPlanLessonEntity entity); | ||||
void IsExamTimeClash(Exam_ExamPlanLessonEntity entity); | |||||
#endregion | #endregion | ||||
} | } | ||||
@@ -280,6 +280,28 @@ and AcademicYearNo='{exam_ExamPlan.AcademicYearNo}' and Semester='{exam_ExamPlan | |||||
} | } | ||||
} | } | ||||
/// <summary> | |||||
/// 判断考试时间是否冲突(未完成) | |||||
/// </summary> | |||||
/// <param name="entity"></param> | |||||
public void IsExamTimeClash(Exam_ExamPlanLessonEntity entity) | |||||
{ | |||||
try | |||||
{ | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | #endregion | ||||
} | } | ||||