Edit.cshtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. @model EMIS.ViewModel.ExaminationApply.StudentListView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. List<ListControlItem> lct = ViewData["lct"] as List<ListControlItem>;
  7. ComboGridOptions cgopExaminationBatch = new ComboGridOptions
  8. {
  9. TextField = "Name",
  10. ValueField = "ExaminationBatchID",
  11. ID = "cgExaminationBatch",
  12. Name = "cgExaminationBatch",
  13. OnSelect = "queryBatch",
  14. //IsEnabled = false,
  15. GridOptions = new DataGridOptions
  16. {
  17. Columns = new List<DataGridColumn>()
  18. {
  19. new BoundFieldColumn { FieldName="Name", HeaderText="考试批次", Align=AlignStyle.Center, Width = 0.3 }
  20. },
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetExaminationBatchViewGrid"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false,
  26. OnLoadSuccessFun = "queryBatch",
  27. }
  28. };
  29. ComboGridOptions cgopExaminationType = new ComboGridOptions
  30. {
  31. TextField = "Name",
  32. ValueField = "ExaminationTypeID",
  33. Name = "cgExaminationType",
  34. ID = "cgExaminationType",
  35. OnSelect = "queryType",
  36. //IsEnabled = false,
  37. GridOptions = new DataGridOptions
  38. {
  39. Columns = new List<DataGridColumn>()
  40. {
  41. new BoundFieldColumn { FieldName="Name", HeaderText="考试类型", Align=AlignStyle.Center, Width = 0.3 }
  42. },
  43. IsCheckOnSelect = true,
  44. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetExaminationTypeViewGrid"),
  45. IsPagination = true,
  46. IsShowRowNumbers = true,
  47. IsSingleSelect = false,
  48. OnLoadSuccessFun = "queryType",
  49. }
  50. };
  51. ComboGridOptions cgopExaminationProject = new ComboGridOptions
  52. {
  53. TextField = "Name",
  54. ValueField = "ExaminationProjectID",
  55. Name = "cgExaminationProject",
  56. ID = "cgExaminationProject",
  57. OnSelect = "queryProject",
  58. //IsEnabled = false,
  59. GridOptions = new DataGridOptions
  60. {
  61. Columns = new List<DataGridColumn>()
  62. {
  63. new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center, Width = 0.3 }
  64. },
  65. IsCheckOnSelect = true,
  66. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetProjectListViewGrid"),
  67. IsPagination = true,
  68. IsShowRowNumbers = true,
  69. IsSingleSelect = false,
  70. OnLoadSuccessFun = "queryProject",
  71. }
  72. };
  73. ComboGridOptions cgopExaminationProjectFee = new ComboGridOptions
  74. {
  75. TextField = "Name",
  76. ValueField = "ExaminationProjectFeeID",
  77. Name = "cgExaminationProjectFee",
  78. ID = "cgExaminationProjectFee",
  79. OnSelect = "queryProjectFee",
  80. //OnChange = "queryFeeType",
  81. //IsEnabled = false,
  82. GridOptions = new DataGridOptions
  83. {
  84. Columns = new List<DataGridColumn>()
  85. {
  86. new BoundFieldColumn { FieldName="Name", HeaderText="收费标准", Align=AlignStyle.Center, Width = 0.4 }
  87. },
  88. //OnLoadSuccessFun = "queryFeeType",
  89. IsCheckOnSelect = true,
  90. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetExaminationProjectFeeViewGrid"),
  91. IsPagination = true,
  92. IsShowRowNumbers = true,
  93. IsSingleSelect = false,
  94. OnLoadSuccessFun = "queryProjectFee",
  95. }
  96. };
  97. ComboGridOptions cgopFeeType = new ComboGridOptions
  98. {
  99. TextField = "Name",
  100. ValueField = "Value",
  101. Name = "cgFeeType",
  102. ID = "cgFeeType",
  103. //OnSelect = "reload",
  104. SelectedValue = Model.FeeTypeID,
  105. GridOptions = new DataGridOptions
  106. {
  107. Columns = new List<DataGridColumn>()
  108. {
  109. new BoundFieldColumn { FieldName="Name", HeaderText="收费项", Align=AlignStyle.Center, Width = 0.2 }
  110. },
  111. IsAutoLoad = false,
  112. IsCheckOnSelect = true,
  113. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetFeeTypeViewGrid"),
  114. IsPagination = true,
  115. IsShowRowNumbers = true,
  116. IsSingleSelect = false,
  117. }
  118. };
  119. }
  120. @section scripts{
  121. <script src="~/Scripts/Business/ExaminationApply/Add.js" type="text/javascript"></script>
  122. <script type="text/javascript">
  123. var nonSelect = "@DropdownList.SELECT_ALL";
  124. </script>
  125. }
  126. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  127. @using (Html.BeginForm("Edit", "ExaminationApplayStudentList", new { MNU = Request["MNU"], WindowID = Request["WindowID"] }, FormMethod.Post, new { enctype = "multipart/form-data" }))
  128. {
  129. <div class="p_title">
  130. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  131. 新增报名名单
  132. </div>
  133. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Add")</div>
  134. </div>
  135. <div class="search_list">
  136. @Html.HiddenFor(x => x.ExaminationRegistrationID)
  137. <table cellpadding="0" cellspacing="0" id="educationMissionClasstable">
  138. <tr>
  139. <td>
  140. @Html.LabelFor(x => x.SchoolyearCode):
  141. </td>
  142. <td>
  143. @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions
  144. {
  145. BindType = DropdownListBindType.SelectAll,
  146. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  147. ID = "ddlSchoolyear",
  148. Name = "ddlSchoolyear",
  149. OnSelect = "querySchoolYear",
  150. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  151. OnLoadSuccess = "querySchoolYear"
  152. })
  153. @*<span style="color:red">*</span>*@
  154. </td>
  155. <td>
  156. @Html.LabelFor(x => x.ExaminationBatchName):
  157. </td>
  158. <td>
  159. @*@Html.DropdownListFor(x => x.ExaminationBatchID, new DropdownListOptions
  160. {
  161. BindType = DropdownListBindType.SelectAll,
  162. ItemSourceUrl = Url.Content("~/ExaminationBatch/DropDownList?bindType=0"),
  163. ID = "ddlExaminationBatch",
  164. Name = "ddlExaminationBatch",
  165. OnSelect = "examinationBatchChange",
  166. //OnLoadSuccess = "examinationBatchChange"
  167. })*@
  168. @Html.ComboGridFor(x => x.ExaminationBatchID, cgopExaminationBatch)
  169. @*<span style="color:red">*</span>*@
  170. </td>
  171. </tr>
  172. <tr>
  173. <td>
  174. @Html.LabelFor(x => x.ExaminationTypeName):
  175. </td>
  176. <td>
  177. @*@Html.DropdownListFor(x => x.ExaminationTypeID, new DropdownListOptions
  178. {
  179. BindType = DropdownListBindType.SelectAll,
  180. ItemSourceUrl = Url.Content("~/ExamBatchProject/TypeDropDownList?bindType=0"),
  181. ID = "ddlExaminationType",
  182. Name = "ddlExaminationType",
  183. OnSelect = "examinationTypeChange",
  184. //OnLoadSuccess = "examinationTypeChange"
  185. })*@
  186. @Html.ComboGridFor(x => x.ExaminationTypeID, cgopExaminationType)
  187. @*<span style="color:red">*</span>*@
  188. </td>
  189. <td>
  190. @Html.LabelFor(x => x.ExaminationProjectName):
  191. </td>
  192. <td>
  193. @*@Html.DropdownListFor(x => x.ExaminationProjectID, new DropdownListOptions
  194. {
  195. BindType = DropdownListBindType.SelectAll,
  196. ItemSourceUrl = Url.Content("~/ExamBatchProject/DropDownList?bindType=0"),
  197. ID = "ddlExaminationProject",
  198. Name = "ddlExaminationProject",
  199. OnSelect = "queryProjectFee",
  200. //OnLoadSuccess = "queryProjectFee"
  201. })*@
  202. @Html.ComboGridFor(x => x.ExaminationProjectID, cgopExaminationProject)
  203. @*<span style="color:red">*</span>*@
  204. </td>
  205. </tr>
  206. <tr>
  207. <td>
  208. @Html.LabelFor(x => x.ExaminationProjectFeeName):
  209. </td>
  210. <td>
  211. @Html.ComboGridFor(x => x.ExaminationProjectFeeID, cgopExaminationProjectFee)
  212. @*<span style="color:red">*</span>*@
  213. </td>
  214. <td>
  215. @Html.LabelFor(x => x.FeeTypeName):
  216. </td>
  217. <td>
  218. @Html.ComboGridFor(x => x.FeeTypeID, cgopFeeType)
  219. @*<span style="color:red">*</span>*@
  220. </td>
  221. </tr>
  222. <tr>
  223. <td>
  224. @Html.LabelFor(x => x.Remark):
  225. </td>
  226. <td colspan="3">
  227. @Html.TextAreaFor(x => x.Remark, new { style = "width: 98%;" })
  228. @*<span style="color:red">*</span>*@
  229. </td>
  230. </tr>
  231. <tr>
  232. <td>
  233. <label>
  234. 学生信息:
  235. </label>
  236. </td>
  237. <td colspan="3">
  238. @Html.ContextMenuBar("Edit-StudentGrid")
  239. @Html.DataGrid(new DataGridOptions
  240. {
  241. Columns = new List<DataGridColumn>()
  242. {
  243. new CheckBoxFieldColumn { FieldName="UserID" },
  244. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08 },
  245. new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.04 },
  246. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.08 },
  247. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  248. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, Width=0.04 },
  249. new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号", Align=AlignStyle.Center, Width=0.12 },
  250. },
  251. IsCheckOnSelect = true,
  252. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/StudentList?examinationRegistrationID=" + Model.ExaminationRegistrationID),
  253. IsPostBack = true,
  254. ID = "dgStudentList",
  255. IsPagination = false,
  256. IsShowRowNumbers = false,
  257. IsSingleSelect = false
  258. })
  259. </td>
  260. </tr>
  261. </table>
  262. </div>
  263. }
  264. </div>