CourseProcess.cshtml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. @model EMIS.ViewModel.EducationManagement.EducationMissionClassView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. }
  7. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  8. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  9. {
  10. @Html.HiddenFor(x => x.EducationMissionID)
  11. @Html.HiddenFor(x => x.Totalhours)
  12. <div class="p_title">
  13. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  14. 课程进度设置
  15. </div>
  16. @if (Model.ApprovalStatus != (int)EMIS.ViewModel.EM_EducationMissionClassStatus.Scheduled)
  17. {
  18. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("CourseProcess")</div>
  19. }
  20. </div>
  21. <div class="search_list">
  22. <font color="red">提示:教室及授课老师以教学安排中的设置为准,默认显示为空,如某个周次情况特殊时可单独设置。</font>
  23. </div>
  24. <div class="search_list">
  25. @Html.DataGrid(new DataGridOptions
  26. {
  27. Columns = new List<DataGridColumn>()
  28. {
  29. new CheckBoxFieldColumn{ HeaderText="", FieldName="EducationMissionClassID",Width=30 },
  30. new BoundFieldColumn { HeaderText="授课方式", FieldName="TeachingModeName",Width=70 },
  31. new BoundFieldColumn { HeaderText="周次", FieldName="Week",Width=50 },
  32. new TextBoxColumn { HeaderText="学时", FieldName="Times", IsRequired=true, Validator=new OnlyNumberValidator(), OnChangedFunc="SetTotalView",Width=50 },
  33. new DictionaryDropdownListColumn { HeaderText="教室类型", FieldName="ClassroomTypeID", DictionaryType=EMIS.ViewModel.DictionaryItem.CF_ClassroomType,Width=80 },
  34. new TriggerBoxColumn { HeaderText="教室", FieldName="ClassroomID", TextFieldName="ClassroomName", TargetTextFieldName="Name", TargetFieldName="ClassroomID", TriggerHandle="selectClassroom",Width=80 },
  35. new TriggerBoxColumn { HeaderText="授课老师", FieldName="CourseProcessTeacherViewList",TextFieldName="StaffNames", TargetTextFieldName="Name", TriggerHandle="selectTeacher",Width=180 }
  36. },
  37. IsPostBack = true,
  38. IsCheckOnSelect = true,
  39. DataSourceUrl = Url.Content("~/EducationMissionClass/GetCourseProcessViewList?educationMissionClassID=" + Model.EducationMissionClassID.ToString()),
  40. ID = "dgCourseProcessList",
  41. OnLoadSuccessFun = "SetTotalView",
  42. MaxHeight = 500,
  43. IsPagination = false,
  44. IsShowRowNumbers = true,
  45. IsSingleSelect = false
  46. })
  47. </div>
  48. <div class="search_list" id="totalView" style="text-align: right;">
  49. </div>
  50. }
  51. </div>
  52. @section scripts{
  53. <script src="~/Scripts/Business/EducationManage/CourseProcess.js" type="text/javascript"></script>
  54. <script type="text/javascript">
  55. var totalTimes = @Model.Totalhours;
  56. var isSubmited = @((Model.ApprovalStatus == (int)EMIS.ViewModel.EM_EducationMissionClassStatus.Submitted) ? "true" : "false");
  57. </script>
  58. }