Generate.cshtml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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/ExaminationManage/Generate.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("GenerateFinal")</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 { BindType = DropdownListBindType.None, SelectedValue = SchoolYearID, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "SchoolyearDropdown" }, new Dictionary<string, string> { { "data-condition", "dgFinalExaminationList" } })
  108. </td>
  109. <td>
  110. <label>@EMIS.Utility.RSL.Get("College"):</label>
  111. </td>
  112. <td>
  113. @Html.ComboGrid(cgop)
  114. </td>
  115. </tr>
  116. <tr>
  117. <td>
  118. <label>年级:</label>
  119. </td>
  120. <td>
  121. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "queryClass" })
  122. </td>
  123. <td>
  124. <label>专业名称:</label>
  125. </td>
  126. <td>
  127. @Html.ComboGrid(cgopStandard)
  128. </td>
  129. </tr>
  130. </table>
  131. </div>
  132. }
  133. </div>