GenerateResitExaminationEdit.cshtml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. @using EMIS.Web.Controls;
  2. @using Bowin.Web.Controls.Mvc;
  3. @{
  4. ViewBag.Title = "Edit";
  5. string SchoolYearID = ViewBag.SchoolYearID;
  6. ComboGridOptions cgop = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CollegeID",
  10. Name = "CollegeDropdown",
  11. ID = "CollegeDropdown",
  12. OnSelect = "queryCollege",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false
  25. }
  26. };
  27. ComboGridOptions cgopClassmajor = new ComboGridOptions
  28. {
  29. TextField = "Name",
  30. ValueField = "ClassmajorID",
  31. Name = "ClassmajorDropdown",
  32. ID = "ClassmajorDropdown",
  33. //OnSelect = "queryClass",
  34. GridOptions = new DataGridOptions
  35. {
  36. Columns = new List<DataGridColumn>()
  37. {
  38. //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
  39. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  40. },
  41. IsCheckOnSelect = true,
  42. DataSourceUrl = Url.Content("~/Classmajor/List"),
  43. IsPagination = true,
  44. IsShowRowNumbers = true,
  45. IsSingleSelect = false
  46. }
  47. };
  48. ComboGridOptions cgopStandard = new ComboGridOptions
  49. {
  50. TextField = "StandardName",
  51. ValueField = "StandardID",
  52. OnSelect = "queryClass",
  53. Name = "StandardDictionaryDropDown",
  54. ID = "StandardDictionaryDropDown",
  55. GridOptions = new DataGridOptions
  56. {
  57. Columns = new List<DataGridColumn>()
  58. {
  59. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  60. },
  61. IsCheckOnSelect = true,
  62. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  63. IsPagination = true,
  64. IsShowRowNumbers = true,
  65. IsSingleSelect = false,
  66. }
  67. };
  68. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  69. {
  70. TextField = "LearnSystem",
  71. ValueField = "LearnSystem",
  72. OnSelect = "queryClass",
  73. Name = "DictionaryLearnSystem",
  74. ID = "DictionaryLearnSystem",
  75. GridOptions = new DataGridOptions
  76. {
  77. Columns = new List<DataGridColumn>()
  78. {
  79. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  80. },
  81. IsCheckOnSelect = true,
  82. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  83. IsPagination = true,
  84. IsShowRowNumbers = true,
  85. IsSingleSelect = false,
  86. IsShowHeader = false
  87. }
  88. };
  89. }
  90. <style type="text/css">
  91. #FinalExaminationtable
  92. {
  93. width: 100%;
  94. border: 0px none;
  95. }
  96. #FinalExaminationtable tr
  97. {
  98. min-height: 30px;
  99. }
  100. </style>
  101. @section scripts{
  102. <script src="../../Scripts/Business/ScoreManage/GenerateFinalExamination.js" type="text/javascript"></script>
  103. <script type="text/javascript">
  104. var nonSelect = "@DropdownList.SELECT_ALL";
  105. function ResitExamination_SettingsGenerate() {
  106. if ($("[comboname='SchoolyearDictionaryDropDown']").combobox('getValue') == '@DropdownList.PLEASE_SELECT'
  107. || $("[comboname='SchoolyearDictionaryDropDown']").combobox('getValue') == '') {
  108. $.messager.alert("系统提示", "请选择需要毕业清考的年级。");
  109. return;
  110. }
  111. $(document.forms[0]).submit();
  112. }
  113. </script>
  114. }
  115. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  116. @using (Ajax.BeginForm(new AjaxOptions
  117. {
  118. OnSuccess = "EMISFunction.FormSuccess",
  119. OnBegin = "EMISFunction.FormSubmit",
  120. OnComplete = "EMISFunction.FormComplete"
  121. }))
  122. {
  123. <div class="p_title">
  124. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  125. 毕业补考生成信息</div>
  126. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Generate")</div>
  127. </div>
  128. <div class="search_list">
  129. <table cellpadding="0" cellspacing="0" id="FinalExaminationtable">
  130. <tr>
  131. <td>
  132. <label>清考年级:</label>
  133. </td>
  134. <td>
  135. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "queryClass" })
  136. </td>
  137. <td>
  138. <label>@EMIS.Utility.RSL.Get("College"):</label>
  139. </td>
  140. <td>
  141. @Html.ComboGrid(cgop)
  142. </td>
  143. </tr>
  144. <tr>
  145. <td>
  146. <label>
  147. 专业名称:</label>
  148. </td>
  149. <td>
  150. @Html.ComboGrid(cgopStandard)
  151. @*@Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "StandardDictionaryDropDown", Name = "StandardDictionaryDropDown", OnSelect = "queryClass" })*@
  152. </td>
  153. <td>
  154. <label>
  155. 班级名称:
  156. </label>
  157. </td>
  158. <td>
  159. @Html.ComboGrid(cgopClassmajor)
  160. </td>
  161. </tr>
  162. <tr>
  163. <td>
  164. <label>学制:</label>
  165. </td>
  166. <td colspan = "3">
  167. @Html.ComboGrid(cgopLearnSystem)
  168. </td>
  169. </tr>
  170. </table>
  171. </div>
  172. }
  173. </div>