Add.cshtml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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. ComboGridOptions cgopCampus = new ComboGridOptions
  8. {
  9. TextField = "Name",
  10. ValueField = "CampusID",
  11. OnSelect = "queryCollege",
  12. Name = "CampusDropdown",
  13. ID = "CampusDropdown",
  14. GridOptions = new DataGridOptions
  15. {
  16. Columns = new List<DataGridColumn>()
  17. {
  18. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center },
  19. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
  20. },
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/Campus/List"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false,
  26. }
  27. };
  28. ComboGridOptions cgopcollege = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "CollegeID",
  32. //OnSelect = "QueryCollegeComboGridList",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  38. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.3 }
  39. },
  40. //OnLoadSuccessFun = "queryClass",
  41. IsCheckOnSelect = true,
  42. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  43. IsPagination = true,
  44. IsShowRowNumbers = true,
  45. IsSingleSelect = false
  46. }
  47. };
  48. ComboGridOptions cgopCourse = new ComboGridOptions
  49. {
  50. TextField = "CourseName",
  51. ValueField = "CoursematerialID",
  52. //OnSelect = "QueryComboGridCourse",
  53. GridOptions = new DataGridOptions
  54. {
  55. Columns = new List<DataGridColumn>()
  56. {
  57. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.1 },
  58. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.3 }
  59. },
  60. IsCheckOnSelect = true,
  61. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  62. IsPagination = true,
  63. IsShowRowNumbers = true,
  64. IsSingleSelect = false
  65. }
  66. };
  67. }
  68. @section scripts{
  69. <script src="~/Scripts/Business/ExaminationManage/ExaminationPlanAdd.js" type="text/javascript"></script>
  70. }
  71. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  72. @using (Ajax.BeginForm(new AjaxOptions
  73. {
  74. OnSuccess = "EMISFunction.FormSuccess",
  75. OnBegin = "EMISFunction.FormSubmit",
  76. OnComplete = "EMISFunction.FormComplete"
  77. }))
  78. {
  79. <div class="p_title">
  80. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  81. 考试计划新增</div>
  82. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  83. </div>
  84. <div class="search_list popupWindowContent">
  85. <table cellpadding="0" cellspacing="0" id="departmenttable">
  86. <tr>
  87. <td>@Html.LabelFor(x => x.SchoolyearID):
  88. </td>
  89. <td>@Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid") })
  90. </td>
  91. <td>@Html.LabelFor(x => x.CampusID):
  92. </td>
  93. <td>@Html.ComboGridFor(x => x.CampusID, cgopCampus)
  94. </td>
  95. </tr>
  96. <tr>
  97. <td>@Html.LabelFor(x => x.CollegeID):
  98. </td>
  99. <td>@Html.ComboGridFor(x => x.CollegeID, cgopcollege)
  100. </td>
  101. <td>@Html.LabelFor(x => x.CoursematerialID):
  102. </td>
  103. <td>@Html.ComboGridFor(x => x.CoursematerialID, cgopCourse)
  104. </td>
  105. </tr>
  106. <tr>
  107. <td>@Html.LabelFor(x => x.ClassName):
  108. </td>
  109. <td>@Html.TextBoxFor(x => x.ClassName)
  110. </td>
  111. <td>@Html.LabelFor(x => x.ExaminationModeID):
  112. </td>
  113. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExaminationMode,x => x.ExaminationModeID)
  114. </td>
  115. </tr>
  116. <tr>
  117. <td>@Html.LabelFor(x => x.ExamsCategoryID):
  118. </td>
  119. <td>@Html.DictionaryDropDownListFor(DictionaryItem.CF_ExamsCategory, x => x.ExamsCategoryID)
  120. </td>
  121. <td>@Html.LabelFor(x => x.ExaminationStyleID):
  122. </td>
  123. <td>@Html.DictionaryDropDownListFor(DictionaryItem.EX_ExaminationStyle, x => x.ExaminationStyleID)
  124. </td>
  125. </tr>
  126. <tr>
  127. <td><label></label>
  128. </td>
  129. <td>@Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ID = "ddlTimeSegment", ItemSourceUrl = Url.Content("~/TimeSegment/Dropdown"), TextField = "Text", ValueField = "Value", OnSelect = "setDateTime" })
  130. </td>
  131. <td>@Html.LabelFor(x => x.ExaminationDate):
  132. </td>
  133. <td>@Html.TextBoxFor(x => x.ExaminationDate, new TextBoxOptions { TextBoxType = TextBoxType.Date, OnChange = "setFormChanged" })
  134. </td>
  135. </tr>
  136. <tr>
  137. <td>@Html.LabelFor(x => x.StartTime):
  138. </td>
  139. <td>@Html.TextBoxFor(x => x.StartTime, new TextBoxOptions { TextBoxType = TextBoxType.Time, OnChange = "setFormChanged" })
  140. </td>
  141. <td>@Html.LabelFor(x => x.EndTime):
  142. </td>
  143. <td>@Html.TextBoxFor(x => x.EndTime, new TextBoxOptions { TextBoxType = TextBoxType.Time, OnChange = "setFormChanged" })
  144. </td>
  145. </tr>
  146. @*<tr>
  147. <td>
  148. <label>考室:</label>
  149. </td>
  150. <td colspan="3">
  151. @Html.ContextMenuBar("Edit-ClassroomGrid")
  152. @Html.DataGrid(new DataGridOptions
  153. {
  154. Columns = new List<DataGridColumn>()
  155. {
  156. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationRoomLayoutID"},
  157. new LinkButtonColumn { FieldName="ClassroomName", HeaderText="考室", Align=AlignStyle.Center, Handle="edit", Width=0.1 },
  158. new BoundFieldColumn { FieldName="SpacingDesc", HeaderText="座位排列模式", Align=AlignStyle.Center, OverflowLength=22, Width=0.2 },
  159. new BoundFieldColumn { FieldName="Examinationseating", HeaderText="考场座位数", Align=AlignStyle.Center, Width=0.1 },
  160. new BoundFieldColumn { FieldName="StudentNum", HeaderText="排考人数", Align=AlignStyle.Center, Width=0.1 },
  161. new BoundFieldColumn { FieldName="TeacherNames", HeaderText="监考老师", Align=AlignStyle.Center, Width=0.1 }
  162. },
  163. IsCheckOnSelect = true,
  164. DataSourceUrl = Url.Content("~/ExaminationPlan/GetExaminationRoomLayoutViewList"),
  165. ID = "dgExaminationRoomLayoutList",
  166. IsPagination = true,
  167. IsShowRowNumbers = true,
  168. IsSingleSelect = false
  169. })
  170. </td>
  171. </tr>*@
  172. </table>
  173. </div>
  174. }
  175. </div>