Edit.cshtml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. @model EMIS.ViewModel.ExamPersonControlView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. ComboGridOptions cgopSchoolYear = new ComboGridOptions
  7. {
  8. TextField = "Code",
  9. ValueField = "SchoolYearID",
  10. GridOptions = new DataGridOptions
  11. {
  12. Columns = new List<DataGridColumn>()
  13. {
  14. new BoundFieldColumn { FieldName="Code", HeaderText="学年学期", Align=AlignStyle.Center ,Width=0.2},
  15. new BoundFieldColumn { FieldName="Years", HeaderText="学年", Align=AlignStyle.Center ,Width=0.2},
  16. new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="学期", Align=AlignStyle.Center ,Width=0.2},
  17. },
  18. PageSize = 5,
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/SchoolYear/List"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false,
  24. },
  25. //OnSelect = "cgopSchoolYearSelect",
  26. OnChange = "cgopSchoolYearSelect"
  27. };
  28. ComboGridOptions cgopBatch = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "ExaminationBatchID",
  32. GridOptions = new DataGridOptions
  33. {
  34. Columns = new List<DataGridColumn>()
  35. {
  36. new BoundFieldColumn { FieldName="Name", HeaderText="考试批次", Align=AlignStyle.Center ,Width=0.3}
  37. },
  38. PageSize = 5,
  39. IsCheckOnSelect = true,
  40. DataSourceUrl = Url.Content("~/ExaminationBatch/GetProjectListViewGrid"),
  41. IsPagination = true,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false
  44. },
  45. //OnSelect = "cgopBatchSelect"
  46. OnChange = "cgopBatchSelect"
  47. };
  48. ComboGridOptions cgopBatchProject = new ComboGridOptions
  49. {
  50. TextField = "Name",
  51. ValueField = "ExaminationProjectID",
  52. GridOptions = new DataGridOptions
  53. {
  54. Columns = new List<DataGridColumn>()
  55. {
  56. new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center ,Width=0.3}
  57. },
  58. PageSize = 5,
  59. IsCheckOnSelect = true,
  60. DataSourceUrl = Url.Content("~/ExamBatchProject/GetExamBatchProjectListViewGrid"),
  61. IsPagination = true,
  62. IsShowRowNumbers = true,
  63. IsSingleSelect = false
  64. },
  65. //OnSelect = "cgopBatchProjectSelect"
  66. OnChange = "cgopBatchProjectSelect"
  67. };
  68. ComboGridOptions cgopExamType = new ComboGridOptions
  69. {
  70. TextField = "ExaminationType",
  71. ValueField = "ExaminationTypeID",
  72. ID = "ExaminationTypeID",
  73. Name = "ExaminationTypeID",
  74. GridOptions = new DataGridOptions
  75. {
  76. Columns = new List<DataGridColumn>()
  77. {
  78. new BoundFieldColumn { FieldName="ExaminationType", HeaderText="考试类型名称", Align=AlignStyle.Center ,Width=0.4},
  79. },
  80. PageSize = 5,
  81. IsCheckOnSelect = true,
  82. DataSourceUrl = Url.Content("~/ExamBatchProject/GetExamTypeListViewGrid"),
  83. IsPagination = true,
  84. IsShowRowNumbers = true,
  85. IsSingleSelect = false
  86. },
  87. //OnSelect = "cgopExamTypeSelect"
  88. OnChange = "cgopExamTypeSelect"
  89. };
  90. ComboGridOptions cgopProjectFee = new ComboGridOptions
  91. {
  92. TextField = "Name",
  93. ValueField = "ExaminationProjectFeeID",
  94. GridOptions = new DataGridOptions
  95. {
  96. Columns = new List<DataGridColumn>()
  97. {
  98. new BoundFieldColumn { FieldName="Name", HeaderText="收费标准名称", Align=AlignStyle.Center ,Width=0.3}
  99. },
  100. PageSize = 5,
  101. IsCheckOnSelect = true,
  102. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetExaminationProjectFeeViewByBaseGrid"),
  103. IsPagination = true,
  104. IsShowRowNumbers = true,
  105. IsSingleSelect = false
  106. },
  107. };
  108. }
  109. @section scripts{
  110. <script src="~/Scripts/Business/ExamManage/ExamPersonControlEdit.js" type="text/javascript"></script>
  111. }
  112. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  113. @using (Ajax.BeginForm(new AjaxOptions
  114. {
  115. OnSuccess = "EMISFunction.FormSuccess",
  116. OnBegin = "EMISFunction.FormSubmit",
  117. OnComplete = "EMISFunction.FormComplete"
  118. }))
  119. {
  120. @Html.HiddenFor(x => x.ExaminationBatchProjectPersonControlID)
  121. <div class="p_title">
  122. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  123. 批次报名控制信息</div>
  124. @if (Request.QueryString["Type"] != "1")
  125. {
  126. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  127. }
  128. </div>
  129. <div class="search_list popupWindowContent">
  130. <table cellpadding="0" cellspacing="0" id="departmenttable">
  131. <tr>
  132. <td style="width: 150px">
  133. @Html.LabelFor(x => x.SchoolYearCode):
  134. </td>
  135. <td>
  136. @Html.ComboGridFor(x => x.SchoolYearCode, cgopSchoolYear)
  137. </td>
  138. <td>
  139. @Html.LabelFor(x => x.ExaminationBatchID):
  140. </td>
  141. <td>
  142. @Html.ComboGridFor(x => x.ExaminationBatchID, cgopBatch)
  143. </td>
  144. </tr>
  145. <tr>
  146. <td>@Html.LabelFor(x => x.ExaminationTypeID):
  147. </td>
  148. <td>
  149. @Html.ComboGridFor(x => x.ExaminationTypeID, cgopExamType)
  150. </td>
  151. <td>
  152. @Html.LabelFor(x => x.ProjectName):
  153. </td>
  154. <td>
  155. @Html.ComboGridFor(x => x.ExaminationProjectID, cgopBatchProject)
  156. </td>
  157. </tr>
  158. <tr>
  159. <td>@Html.LabelFor(x => x.ExaminationProjectFeeID):
  160. </td>
  161. <td>
  162. @Html.ComboGridFor(x => x.ExaminationProjectFeeID, cgopProjectFee)
  163. </td>
  164. <td>
  165. @Html.LabelFor(x => x.StartDate):
  166. </td>
  167. <td>
  168. @Html.TextBoxFor(x => x.StartDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  169. </td>
  170. </tr>
  171. <tr>
  172. <td>@Html.LabelFor(x => x.EndDate):
  173. </td>
  174. <td>
  175. @Html.TextBoxFor(x => x.EndDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  176. </td>
  177. <td>
  178. @Html.LabelFor(x => x.IsOnlinePay):
  179. </td>
  180. <td>
  181. @Html.CheckBox("IsOnlinePay", Model.IsOnlinePay == true)
  182. </td>
  183. </tr>
  184. @* <tr>
  185. <td>@Html.LabelFor(x => x.ExaminationProjectFeeID):
  186. </td>
  187. <td>
  188. @Html.ComboGridFor(x => x.ExaminationProjectFeeID, cgopProjectFee)
  189. </td>
  190. </tr>*@
  191. <tr>
  192. <td colspan="4">
  193. <div class="p_title">
  194. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  195. 学生信息信息列表</div>
  196. @if (Request.QueryString["Type"] != "1")
  197. {
  198. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("EditList")</div>
  199. }
  200. </div>
  201. <div class="search_list">
  202. @Html.DataGrid(new DataGridOptions
  203. {
  204. Columns = new List<DataGridColumn>()
  205. {
  206. new CheckBoxFieldColumn { FieldName="UserID" },
  207. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
  208. new BoundFieldColumn { FieldName="Years", HeaderText="年级", Align=AlignStyle.Center },
  209. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center },
  210. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center },
  211. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center },
  212. new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号", Align=AlignStyle.Center },
  213. },
  214. IsCheckOnSelect = true,
  215. DataSourceUrl = Url.Content("~/ExamPersonControl/List?ExaminationBatchProjectID=" + Model.ExaminationBatchProjectID + "&UserID=" + Model.UserID),
  216. IsPostBack = true,
  217. ID = "dgStudentList",
  218. IsPagination = true,
  219. // QueryParams = new { ExaminationBatchProjectID = Model.ExaminationBatchProjectID, UserID = Model.UserID },
  220. IsShowRowNumbers = true,
  221. IsSingleSelect = false
  222. })
  223. </div>
  224. </td>
  225. </tr>
  226. </table>
  227. </div>
  228. }
  229. </div>