GenerateEdit.cshtml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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/GenerateEdit.js" type="text/javascript"></script>
  82. <script type="text/javascript">
  83. var nonSelect = "@DropdownList.SELECT_ALL";
  84. </script>
  85. }
  86. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  87. @using (Ajax.BeginForm(new AjaxOptions
  88. {
  89. OnSuccess = "EMISFunction.FormSuccess",
  90. OnBegin = "EMISFunction.FormSubmit",
  91. OnComplete = "EMISFunction.FormComplete"
  92. }))
  93. {
  94. @Html.Hidden("IsGenerateNotSubmit")
  95. <div class="p_title">
  96. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  97. 生成考试科目信息</div>
  98. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Generate")</div>
  99. </div>
  100. <div class="search_list">
  101. <table cellpadding="0" cellspacing="0" id="FinalExaminationtable">
  102. <tr>
  103. <td>
  104. <label>学年学期:</label>
  105. </td>
  106. <td>
  107. @Html.DropdownList(new DropdownListOptions
  108. {
  109. ID = "SchoolyearDropdown",
  110. Name = "SchoolyearDropdown",
  111. BindType = DropdownListBindType.None,
  112. //IsEnabled = false,
  113. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"),
  114. SelectedValue = SchoolYearID
  115. }, new Dictionary<string, string> { { "data-condition", "dgFinalExaminationList" } })
  116. </td>
  117. <td>
  118. <label>@EMIS.Utility.RSL.Get("College"):</label>
  119. </td>
  120. <td>
  121. @Html.ComboGrid(cgop)
  122. </td>
  123. </tr>
  124. <tr>
  125. <td>
  126. <label>年级:</label>
  127. </td>
  128. <td>
  129. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "queryClass" })
  130. </td>
  131. <td>
  132. <label>专业名称:</label>
  133. </td>
  134. <td>
  135. @Html.ComboGrid(cgopStandard)
  136. </td>
  137. </tr>
  138. </table>
  139. </div>
  140. }
  141. </div>