ClassroomAdult.cshtml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. @model EMIS.ViewModel.ExaminationManage.ExaminationPlanView
  2. @using EMIS.Web.Controls;
  3. @using EMIS.ViewModel;
  4. @using Bowin.Web.Controls.Mvc;
  5. @{
  6. ViewBag.Title = "Edit";
  7. }
  8. @section scripts{
  9. <script src="~/Scripts/Business/ExaminationManage/ExaminationPlanClassroom.js" type="text/javascript"></script>
  10. }
  11. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  12. @using (Ajax.BeginForm(new AjaxOptions
  13. {
  14. OnSuccess = "ExaminationPlan_Save_Complete",
  15. OnBegin = "EMISFunction.FormSubmit",
  16. OnComplete = "EMISFunction.FormComplete"
  17. }))
  18. {
  19. <div class="p_title">
  20. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  21. 考场安排</div>
  22. @if (Request["isView"] != "1")
  23. {
  24. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar(Model.RecordStatus == (int)CF_ApprovalStatus.NotSubmitted ? "ExamPlan_Confirm" : "Hiddened")</div>
  25. }
  26. </div>
  27. <div class="search_list popupWindowContent">
  28. <table cellpadding="0" cellspacing="0" id="departmenttable">
  29. <tr>
  30. <td>@Html.LabelFor(x => x.SchoolyearID):
  31. </td>
  32. <td>@Html.DisplayFor(x => x.SchoolyearCode)
  33. </td>
  34. <td>@Html.LabelFor(x => x.CampusID):
  35. </td>
  36. <td>@Html.DisplayFor(x => x.CampusName)
  37. </td>
  38. </tr>
  39. <tr>
  40. <td>@Html.LabelFor(x => x.CollegeID):
  41. </td>
  42. <td>@Html.DisplayFor(x => x.CollegeName)
  43. </td>
  44. <td>@Html.LabelFor(x => x.CoursematerialID):
  45. </td>
  46. <td>@Html.DisplayFor(x => x.CoursematerialName)
  47. </td>
  48. </tr>
  49. <tr>
  50. <td>@Html.LabelFor(x => x.ClassName):
  51. </td>
  52. <td>@Html.DisplayFor(x => x.ClassName)
  53. </td>
  54. <td>@Html.LabelFor(x => x.ExaminationModeID):
  55. </td>
  56. <td>@Html.DisplayFor(x => x.ExaminationModeName)
  57. </td>
  58. </tr>
  59. <tr>
  60. <td>@Html.LabelFor(x => x.StudentCount):
  61. </td>
  62. <td>@Html.DisplayFor(x => x.StudentCount)
  63. </td>
  64. <td>@Html.LabelFor(x => x.ExaminationStyleID):
  65. </td>
  66. <td>@Html.DictionaryDropDownListFor(DictionaryItem.EX_ExaminationStyle, x => x.ExaminationStyleID)
  67. </td>
  68. </tr>
  69. <tr>
  70. <td><label></label>
  71. </td>
  72. <td>@Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ID = "ddlTimeSegment", ItemSourceUrl = Url.Content("~/TimeSegment/Dropdown?isForResit=" + ((Model.ExamsCategoryID == (int)EMIS.ViewModel.CF_ExamsCategory.Resit || Model.ExamsCategoryID == (int)EMIS.ViewModel.CF_ExamsCategory.GraduationExam) ? "true" : "false")), TextField = "Text", ValueField = "Value", OnSelect = "setDateTime" })
  73. </td>
  74. <td>@Html.LabelFor(x => x.ExaminationDate):
  75. </td>
  76. <td>@Html.TextBoxFor(x => x.ExaminationDate, new TextBoxOptions { TextBoxType = TextBoxType.Date, OnChange = "setFormChanged" })
  77. </td>
  78. </tr>
  79. <tr>
  80. <td>@Html.LabelFor(x => x.StartTime):
  81. </td>
  82. <td>@Html.TextBoxFor(x => x.StartTime, new TextBoxOptions { TextBoxType = TextBoxType.Time, OnChange = "setFormChanged" })
  83. </td>
  84. <td>@Html.LabelFor(x => x.EndTime):
  85. </td>
  86. <td>@Html.TextBoxFor(x => x.EndTime, new TextBoxOptions { TextBoxType = TextBoxType.Time, OnChange = "setFormChanged" })
  87. </td>
  88. </tr>
  89. <tr>
  90. <td>
  91. <label>考室:</label>
  92. </td>
  93. <td colspan="3">
  94. @Html.ContextMenuBar(Model.RecordStatus == (int)CF_ApprovalStatus.NotSubmitted ? "Edit-ClassroomGrid" : "Hiddened")
  95. @Html.DataGrid(new DataGridOptions
  96. {
  97. Columns = new List<DataGridColumn>()
  98. {
  99. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationRoomLayoutID"},
  100. new LinkButtonColumn { FieldName="ClassroomName", HeaderText="考室", Align=AlignStyle.Center, Handle="edit", Width=0.1 },
  101. new BoundFieldColumn { FieldName="SpacingDesc", HeaderText="座位排列模式", Align=AlignStyle.Center, OverflowLength=22, Width=0.2 },
  102. new BoundFieldColumn { FieldName="Examinationseating", HeaderText="考场座位数", Align=AlignStyle.Center, Width=0.1 },
  103. new BoundFieldColumn { FieldName="StudentNum", HeaderText="排考人数", Align=AlignStyle.Center, Width=0.1 },
  104. new BoundFieldColumn { FieldName="TeacherNames", HeaderText="监考老师", Align=AlignStyle.Center, Width=0.1 }
  105. },
  106. IsCheckOnSelect = true,
  107. DataSourceUrl = Url.Content("~/ExaminationPlan/GetExaminationRoomLayoutViewList?examinationPlanID=" + Request["ExaminationPlanID"]),
  108. ID = "dgExaminationRoomLayoutList",
  109. IsPagination = true,
  110. IsShowRowNumbers = true,
  111. IsSingleSelect = false
  112. })
  113. </td>
  114. </tr>
  115. </table>
  116. </div>
  117. }
  118. </div>