GenerateGraduateExam.cshtml 6.0 KB

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