Edit.cshtml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. @model EMIS.ViewModel.ExamProjectControlView
  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 cgopProjectFee = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "ExaminationProjectFeeID",
  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("~/ExaminationApplayStudentList/GetExaminationProjectFeeViewByBaseGrid"),
  41. IsPagination = true,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false
  44. },
  45. };
  46. ComboGridOptions cgopCollege = new ComboGridOptions
  47. {
  48. TextField = "Name",
  49. ValueField = "CollegeID",
  50. GridOptions = new DataGridOptions
  51. {
  52. Columns = new List<DataGridColumn>()
  53. {
  54. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  55. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  56. },
  57. //OnLoadSuccessFun = "queryClass",
  58. PageSize = 5,
  59. IsCheckOnSelect = true,
  60. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  61. IsPagination = true,
  62. IsShowRowNumbers = true,
  63. IsSingleSelect = false
  64. }
  65. };
  66. ComboGridOptions cgopExamType = new ComboGridOptions
  67. {
  68. TextField = "ExaminationType",
  69. ValueField = "ExaminationTypeID",
  70. ID = "ExaminationTypeID",
  71. Name = "ExaminationTypeID",
  72. GridOptions = new DataGridOptions
  73. {
  74. Columns = new List<DataGridColumn>()
  75. {
  76. new BoundFieldColumn { FieldName="ExaminationType", HeaderText="考试类型名称", Align=AlignStyle.Center ,Width=0.4},
  77. },
  78. PageSize = 5,
  79. IsCheckOnSelect = true,
  80. DataSourceUrl = Url.Content("~/ExamBatchProject/GetExamTypeListViewGrid"),
  81. IsPagination = true,
  82. IsShowRowNumbers = true,
  83. IsSingleSelect = false
  84. },
  85. OnChange = "cgopExamTypeSelect"
  86. };
  87. ComboGridOptions cgopBatch = new ComboGridOptions
  88. {
  89. TextField = "Name",
  90. ValueField = "ExaminationBatchID",
  91. GridOptions = new DataGridOptions
  92. {
  93. Columns = new List<DataGridColumn>()
  94. {
  95. new BoundFieldColumn { FieldName="Name", HeaderText="考试批次", Align=AlignStyle.Center ,Width=0.3}
  96. },
  97. PageSize = 5,
  98. IsCheckOnSelect = true,
  99. DataSourceUrl = Url.Content("~/ExaminationBatch/GetProjectListViewGrid"),
  100. IsPagination = true,
  101. IsShowRowNumbers = true,
  102. IsSingleSelect = false
  103. },
  104. OnChange = "cgopBatchSelect"
  105. };
  106. ComboGridOptions cgopBatchProject = new ComboGridOptions
  107. {
  108. TextField = "Name",
  109. ValueField = "ExaminationProjectID",
  110. GridOptions = new DataGridOptions
  111. {
  112. Columns = new List<DataGridColumn>()
  113. {
  114. new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center ,Width=0.3}
  115. },
  116. PageSize = 5,
  117. IsCheckOnSelect = true,
  118. DataSourceUrl = Url.Content("~/ExamBatchProject/GetExamBatchProjectListViewGrid"),
  119. IsPagination = true,
  120. IsShowRowNumbers = true,
  121. IsSingleSelect = false
  122. },
  123. //OnSelect = "cgopBatchProjectSelect",
  124. OnChange = "cgopBatchProjectSelect"
  125. };
  126. }
  127. @section scripts{
  128. <script src="~/Scripts/Business/ExamManage/ExamProjectControlEdit.js" type="text/javascript"></script>
  129. }
  130. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  131. @using (Ajax.BeginForm(new AjaxOptions
  132. {
  133. OnSuccess = "EMISFunction.FormSuccess",
  134. OnBegin = "EMISFunction.FormSubmit",
  135. OnComplete = "EMISFunction.FormComplete"
  136. }))
  137. {
  138. @Html.HiddenFor(x => x.ExaminationBatchProjectControlID)
  139. <div class="p_title">
  140. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  141. 批次报名控制信息</div>
  142. @if (Request.QueryString["Type"] != "1")
  143. {
  144. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  145. }
  146. </div>
  147. <div class="search_list popupWindowContent">
  148. <table cellpadding="0" cellspacing="0" id="departmenttable">
  149. <tr>
  150. <td style="width: 150px">
  151. @Html.LabelFor(x => x.SchoolYearCode):
  152. </td>
  153. <td>
  154. @Html.ComboGridFor(x => x.SchoolYearCode, cgopSchoolYear)
  155. </td>
  156. <td>
  157. @Html.LabelFor(x => x.ExaminationBatchID):
  158. </td>
  159. <td>
  160. @Html.ComboGridFor(x => x.ExaminationBatchID, cgopBatch)
  161. </td>
  162. </tr>
  163. <tr>
  164. <td>@Html.LabelFor(x => x.ExaminationTypeID):
  165. </td>
  166. <td>
  167. @Html.ComboGridFor(x => x.ExaminationTypeID, cgopExamType)
  168. </td>
  169. <td>
  170. @Html.LabelFor(x => x.ProjectName):
  171. </td>
  172. <td>
  173. @Html.ComboGridFor(x => x.ExaminationProjectID, cgopBatchProject)
  174. </td>
  175. </tr>
  176. <tr>
  177. <td>@Html.LabelFor(x => x.ExaminationProjectFeeID):
  178. </td>
  179. <td>
  180. @Html.ComboGridFor(x => x.ExaminationProjectFeeID, cgopProjectFee)
  181. </td>
  182. <td>@Html.LabelFor(x => x.IsOnlinePay):
  183. </td>
  184. <td>
  185. @Html.CheckBox("IsOnlinePay", Model.IsOnlinePay == true)
  186. </td>
  187. </tr>
  188. @if (Request.QueryString["Type"] != null)//非新增
  189. {
  190. <tr>
  191. <td>@Html.LabelFor(x => x.CollegeID):
  192. </td>
  193. <td>
  194. @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
  195. </td>
  196. <td>@Html.LabelFor(x => x.StandardID):
  197. </td>
  198. <td>
  199. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Standard, (x) => x.StandardID, new DropdownListOptions() { })
  200. </td>
  201. </tr>
  202. <tr>
  203. <td>@Html.LabelFor(x => x.SchoolyearID):
  204. </td>
  205. <td colspan="3">
  206. @Html.SchoolYearDropDownListFor(x => x.SchoolyearID, new DropdownListOptions { }, new Dictionary<string, string> { })
  207. </td>
  208. </tr>
  209. }
  210. @if (Request.QueryString["Type"] == null)//新增
  211. {
  212. <tr>
  213. <td colspan="4">
  214. <div class="p_title">
  215. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  216. 专业信息列表<span style="color:red">(不新增则默认所有专业)</span></div>
  217. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  218. @if (Request.QueryString["Type"] != "1")
  219. {
  220. @Html.ContextMenuBar("EditList")
  221. }</div>
  222. </div>
  223. <div class="search_list">
  224. @Html.DataGrid(new DataGridOptions
  225. {
  226. Columns = new List<DataGridColumn>()
  227. {
  228. new CheckBoxFieldColumn{ HeaderText="", FieldName="StandardID" },
  229. new BoundFieldColumn { FieldName="CollegeCode", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
  230. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  231. new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 },
  232. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  233. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.08 },
  234. },
  235. IsCheckOnSelect = true,
  236. DataSourceUrl = Url.Content("~/ExamSubjectLimit/EditList?ExaminationSubjectCountLimitID=" + Model.ExaminationBatchProjectControlID),
  237. ID = "dgStandardList",
  238. IsPagination = true,
  239. IsShowRowNumbers = true,
  240. IsSingleSelect = false,
  241. IsPostBack = true,
  242. })
  243. </div>
  244. </td>
  245. </tr>
  246. }
  247. </table>
  248. </div>
  249. }
  250. </div>