ByLevelEdit.cshtml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. @model EMIS.ViewModel.ScoreManage.ScoreConvertByLevelView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ComboGridOptions cgopcollege = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CollegeID",
  9. OnSelect = "queryClass",
  10. GridOptions = new DataGridOptions
  11. {
  12. Columns = new List<DataGridColumn>()
  13. {
  14. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.3 }
  15. },
  16. IsCheckOnSelect = true,
  17. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  18. IsPagination = true,
  19. IsShowRowNumbers = true,
  20. IsSingleSelect = false
  21. }
  22. };
  23. ComboGridOptions cgopReplaceCollegeID = new ComboGridOptions
  24. {
  25. TextField = "Name",
  26. ValueField = "CollegeID",
  27. OnSelect = "queryReplaceClass",
  28. GridOptions = new DataGridOptions
  29. {
  30. Columns = new List<DataGridColumn>()
  31. {
  32. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.3 }
  33. },
  34. IsCheckOnSelect = true,
  35. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  36. IsPagination = true,
  37. IsShowRowNumbers = true,
  38. IsSingleSelect = false
  39. }
  40. };
  41. ComboGridOptions cgopStandard = new ComboGridOptions
  42. {
  43. TextField = "StandardName",
  44. ValueField = "StandardID",
  45. OnSelect = "queryClass",
  46. GridOptions = new DataGridOptions
  47. {
  48. Columns = new List<DataGridColumn>()
  49. {
  50. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  51. },
  52. IsCheckOnSelect = true,
  53. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  54. IsPagination = true,
  55. IsShowRowNumbers = true,
  56. IsSingleSelect = false,
  57. IsShowHeader = false
  58. }
  59. };
  60. ComboGridOptions cgopReplaceStandardID = new ComboGridOptions
  61. {
  62. TextField = "StandardName",
  63. ValueField = "StandardID",
  64. OnSelect = "queryReplaceClass",
  65. GridOptions = new DataGridOptions
  66. {
  67. Columns = new List<DataGridColumn>()
  68. {
  69. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  70. },
  71. IsCheckOnSelect = true,
  72. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  73. IsPagination = true,
  74. IsShowRowNumbers = true,
  75. IsSingleSelect = false,
  76. IsShowHeader = false
  77. }
  78. };
  79. ComboGridOptions cgopClassmajor = new ComboGridOptions
  80. {
  81. TextField = "Name",
  82. ValueField = "ClassmajorID",
  83. GridOptions = new DataGridOptions
  84. {
  85. Columns = new List<DataGridColumn>()
  86. {
  87. new BoundFieldColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.12 },
  88. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.3 },
  89. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.06 },
  90. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.1 },
  91. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.15 }
  92. },
  93. IsCheckOnSelect = true,
  94. DataSourceUrl = Url.Content("~/Classmajor/List"),
  95. IsPagination = true,
  96. IsShowRowNumbers = true,
  97. IsSingleSelect = false
  98. }
  99. };
  100. ComboGridOptions cgopReplaceClassmajorID = new ComboGridOptions
  101. {
  102. TextField = "Name",
  103. ValueField = "ClassmajorID",
  104. GridOptions = new DataGridOptions
  105. {
  106. Columns = new List<DataGridColumn>()
  107. {
  108. new BoundFieldColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.12 },
  109. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.3 },
  110. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.06 },
  111. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.1 },
  112. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.15 }
  113. },
  114. IsCheckOnSelect = true,
  115. DataSourceUrl = Url.Content("~/Classmajor/List"),
  116. IsPagination = true,
  117. IsShowRowNumbers = true,
  118. IsSingleSelect = false
  119. }
  120. };
  121. ComboGridOptions cgopLevelScore = new ComboGridOptions
  122. {
  123. TextField = "Name",
  124. ValueField = "ExaminationSubjectID",
  125. GridOptions = new DataGridOptions
  126. {
  127. Columns = new List<DataGridColumn>()
  128. {
  129. new BoundFieldColumn { FieldName="Name", HeaderText="考试科目", Align=AlignStyle.Center}
  130. },
  131. IsCheckOnSelect = true,
  132. DataSourceUrl = Url.Content("~/ExaminationSubject/List"),
  133. IsPagination = true,
  134. IsShowRowNumbers = true,
  135. IsSingleSelect = false
  136. }
  137. };
  138. ComboGridOptions Csop = new ComboGridOptions
  139. {
  140. TextField = "CourseName",
  141. ValueField = "CoursematerialID",
  142. ID = "CourseDropdown",
  143. Name = "CourseDropdown",
  144. GridOptions = new DataGridOptions
  145. {
  146. Columns = new List<DataGridColumn>()
  147. {
  148. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center },
  149. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }
  150. },
  151. IsCheckOnSelect = true,
  152. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  153. IsPagination = true,
  154. IsShowRowNumbers = true,
  155. IsSingleSelect = false
  156. }
  157. };
  158. }
  159. @section scripts{
  160. <script src="~/Scripts/Business/ScoreManage/ScoreConvertByLevelEdit.js" type="text/javascript"></script>
  161. <script type="text/javascript">
  162. var nonSelect = "@DropdownList.SELECT_ALL";
  163. </script>
  164. }
  165. <style type="text/css">
  166. .a4
  167. {
  168. width: 600px;
  169. color: Red;
  170. }
  171. </style>
  172. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  173. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  174. {
  175. <div class="p_title">
  176. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  177. @if (Request["isView"] != "1")
  178. {
  179. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  180. }
  181. </div>
  182. <div class="search_list">
  183. <table cellpadding="0" cellspacing="0" id="planApplicationtable">
  184. <tr>
  185. <td colspan="4">
  186. <span class="a4">替换的范围:</span>
  187. </td>
  188. </tr>
  189. <tr>
  190. <td>@Html.LabelFor(x => x.SchoolyearID):
  191. </td>
  192. <td>@Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid") })
  193. </td>
  194. <td>@Html.LabelFor(x => x.CollegeName):
  195. </td>
  196. <td>@Html.ComboGridFor(x => x.CollegeID, cgopcollege)
  197. </td>
  198. </tr>
  199. <tr>
  200. <td>@Html.LabelFor(x => x.Year):
  201. </td>
  202. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Grade, x => x.Year, new DropdownListOptions { OnSelect = "queryClass" })
  203. </td>
  204. <td>@Html.LabelFor(x => x.StandardID):
  205. </td>
  206. <td>@Html.ComboGridFor(x => x.StandardID, cgopStandard)
  207. </td>
  208. </tr>
  209. <tr>
  210. <td>@Html.LabelFor(x => x.ClassmajorID):
  211. </td>
  212. <td>@Html.ComboGridFor(x => x.ClassmajorID, cgopClassmajor)
  213. </td>
  214. <td>@Html.LabelFor(x => x.ExaminationTypeID):
  215. </td>
  216. <td>@Html.DropdownListFor((x => x.ExaminationTypeID), new DropdownListOptions { ID = "ExaminationTypeDropdown", Name = "ExaminationTypeDropdown", BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/ExaminationType/DropdownList")})
  217. </td>
  218. </tr>
  219. <tr>
  220. <td>@Html.LabelFor(x => x.ExaminationFormID):
  221. </td>
  222. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EX_ExaminationForm, x => x.ExaminationFormID)
  223. </td>
  224. <td>@Html.LabelFor(x => x.LevelScoreID):
  225. </td>
  226. <td>@Html.ComboGridFor(x => x.LevelScoreID, cgopLevelScore)
  227. </td>
  228. </tr>
  229. <tr>
  230. <td colspan="4">
  231. <span class="a4">替换认定的课程:</span>
  232. </td>
  233. </tr>
  234. <tr>
  235. <td>@Html.LabelFor(x=>x.CoursematerialID)
  236. </td>
  237. <td colspan="3">@Html.ComboGridFor(x => x.CoursematerialID, Csop)
  238. </td>
  239. </tr>
  240. </table>
  241. </div>
  242. }
  243. </div>