GenerateFinalExaminationEdit.cshtml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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. }
  69. <style type="text/css">
  70. #FinalExaminationtable
  71. {
  72. width: 100%;
  73. border: 0px none;
  74. }
  75. #FinalExaminationtable tr
  76. {
  77. min-height: 30px;
  78. }
  79. </style>
  80. @section scripts{
  81. <script src="../../Scripts/Business/ScoreManage/GenerateFinalExamination.js" type="text/javascript"></script>
  82. <script type="text/javascript">
  83. var nonSelect = "@DropdownList.SELECT_ALL";
  84. function ResitExamination_SettingsGenerate() {
  85. $(document.forms[0]).submit();
  86. }
  87. </script>
  88. }
  89. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  90. @using (Ajax.BeginForm(new AjaxOptions
  91. {
  92. OnSuccess = "EMISFunction.FormSuccess",
  93. OnBegin = "EMISFunction.FormSubmit",
  94. OnComplete = "EMISFunction.FormComplete"
  95. }))
  96. {
  97. <div class="p_title">
  98. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  99. 期末补考生成信息</div>
  100. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Generate")</div>
  101. </div>
  102. <div class="search_list">
  103. <table cellpadding="0" cellspacing="0" id="FinalExaminationtable">
  104. <tr>
  105. <td>
  106. <label>
  107. 学年学期:
  108. </label>
  109. </td>
  110. <td>
  111. @Html.DropdownList(new DropdownListOptions
  112. {
  113. ID = "SchoolyearDropdown",
  114. Name = "SchoolyearDropdown",
  115. BindType = DropdownListBindType.None,
  116. SelectedValue = SchoolYearID,
  117. IsEnabled = false,
  118. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid")
  119. })
  120. </td>
  121. <td>
  122. <label>@EMIS.Utility.RSL.Get("College"):</label>
  123. </td>
  124. <td>
  125. @Html.ComboGrid(cgop)
  126. </td>
  127. </tr>
  128. <tr>
  129. <td>
  130. <label>
  131. 年级:</label>
  132. </td>
  133. <td>
  134. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "queryClass" })
  135. @* @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Grade, new DropdownListOptions { Name = "DictionaryGrade", BindType = DropdownListBindType.SelectAll })*@
  136. </td>
  137. <td>
  138. <label>
  139. 专业名称:</label>
  140. </td>
  141. <td>
  142. @Html.ComboGrid(cgopStandard)
  143. @*@Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "StandardDictionaryDropDown", Name = "StandardDictionaryDropDown", OnSelect = "queryClass" })*@
  144. </td>
  145. </tr>
  146. <tr>
  147. <td>
  148. <label>
  149. 班级名称:
  150. </label>
  151. </td>
  152. <td colspan="3">
  153. @Html.ComboGrid(cgopClassmajor)
  154. </td>
  155. </tr>
  156. </table>
  157. </div>
  158. }
  159. </div>