Classroom.cshtml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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.ExaminationDate):
  65. </td>
  66. <td>@Html.TextBoxFor(x => x.ExaminationDate, new TextBoxOptions { TextBoxType = TextBoxType.Date, OnChange = "setFormChanged" })
  67. </td>
  68. </tr>
  69. <tr>
  70. <td>@Html.LabelFor(x => x.StartTime):
  71. </td>
  72. <td>@Html.TextBoxFor(x => x.StartTime, new TextBoxOptions { TextBoxType = TextBoxType.Time, OnChange = "setFormChanged" })
  73. </td>
  74. <td>@Html.LabelFor(x => x.EndTime):
  75. </td>
  76. <td>@Html.TextBoxFor(x => x.EndTime, new TextBoxOptions { TextBoxType = TextBoxType.Time, OnChange = "setFormChanged" })
  77. </td>
  78. </tr>
  79. <tr>
  80. <td>
  81. <label>考室:</label>
  82. </td>
  83. <td colspan="3">
  84. @Html.ContextMenuBar(Model.RecordStatus == (int)CF_ApprovalStatus.NotSubmitted ? "Edit-ClassroomGrid" : "Hiddened")
  85. @Html.DataGrid(new DataGridOptions
  86. {
  87. Columns = new List<DataGridColumn>()
  88. {
  89. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationRoomLayoutID"},
  90. new LinkButtonColumn { FieldName="ClassroomName", HeaderText="考室", Align=AlignStyle.Center, Handle="edit", Width=0.1 },
  91. new BoundFieldColumn { FieldName="SpacingDesc", HeaderText="座位排列模式", Align=AlignStyle.Center, OverflowLength=22, Width=0.2 },
  92. new BoundFieldColumn { FieldName="Examinationseating", HeaderText="考场座位数", Align=AlignStyle.Center, Width=0.1 },
  93. new BoundFieldColumn { FieldName="StudentNum", HeaderText="排考人数", Align=AlignStyle.Center, Width=0.1 },
  94. new BoundFieldColumn { FieldName="TeacherNames", HeaderText="监考老师", Align=AlignStyle.Center, Width=0.1 }
  95. },
  96. IsCheckOnSelect = true,
  97. DataSourceUrl = Url.Content("~/ExaminationPlan/GetExaminationRoomLayoutViewList?examinationPlanID=" + Request["ExaminationPlanID"]),
  98. ID = "dgExaminationRoomLayoutList",
  99. IsPagination = true,
  100. IsShowRowNumbers = true,
  101. IsSingleSelect = false
  102. })
  103. </td>
  104. </tr>
  105. </table>
  106. </div>
  107. }
  108. </div>