Generate.cshtml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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 = "reload",
  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 cgopCourse = new ComboGridOptions
  28. {
  29. TextField = "CourseName",
  30. ValueField = "CoursematerialID",
  31. Name = "CoursematerialDropDown",
  32. ID = "CoursematerialDropDown",
  33. //OnSelect = "reload",
  34. GridOptions = new DataGridOptions
  35. {
  36. Columns = new List<DataGridColumn>()
  37. {
  38. //new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center },
  39. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, Align=AlignStyle.Center }
  40. },
  41. IsCheckOnSelect = true,
  42. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  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 = "reload",
  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 cgopfacultymajorID = new ComboGridOptions
  69. {
  70. TextField = "Name",
  71. ValueField = "FacultymajorID",
  72. //OnSelect = "reload",
  73. Name = "FacultymajorDropDown",
  74. ID = "FacultymajorDropDown",
  75. GridOptions = new DataGridOptions
  76. {
  77. Columns = new List<DataGridColumn>()
  78. {
  79. new BoundFieldColumn { FieldName="Code", HeaderText="院系专业编号", Align=AlignStyle.Center },
  80. new BoundFieldColumn { FieldName="Name", HeaderText="院系专业名称", Align=AlignStyle.Center }
  81. },
  82. IsCheckOnSelect = true,
  83. DataSourceUrl = Url.Content("~/Facultymajor/List"),
  84. IsPagination = true,
  85. IsShowRowNumbers = true,
  86. IsSingleSelect = false,
  87. IsShowHeader = false
  88. }
  89. };
  90. }
  91. <style type="text/css">
  92. #FinalExaminationtable
  93. {
  94. width: 100%;
  95. border: 0px none;
  96. }
  97. #FinalExaminationtable tr
  98. {
  99. min-height: 30px;
  100. }
  101. </style>
  102. @section scripts{
  103. <script src="~/Scripts/Business/DQPSystem/SOCTemplateGenerate.js" type="text/javascript"></script>
  104. <script type="text/javascript">
  105. var nonSelect = "@DropdownList.SELECT_ALL";
  106. </script>
  107. }
  108. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  109. @using (Ajax.BeginForm(new AjaxOptions
  110. {
  111. OnSuccess = "EMISFunction.FormSuccess",
  112. OnBegin = "EMISFunction.FormSubmit",
  113. OnComplete = "EMISFunction.FormComplete"
  114. }))
  115. {
  116. @Html.Hidden("IsGenerateNotSubmit")
  117. <div class="p_title">
  118. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  119. 生成课程SOC信息</div>
  120. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Generate")</div>
  121. </div>
  122. <div class="search_list">
  123. <table cellpadding="0" cellspacing="0" id="FinalExaminationtable">
  124. <tr>
  125. <td>
  126. <label>@EMIS.Utility.RSL.Get("College"):</label>
  127. </td>
  128. <td>
  129. @Html.ComboGrid(cgop)
  130. </td>
  131. <td>
  132. <label>专业名称:</label>
  133. </td>
  134. <td>
  135. @Html.ComboGrid(cgopStandard)
  136. </td>
  137. </tr>
  138. <tr>
  139. <td>
  140. <label>院系专业:</label>
  141. </td>
  142. <td>
  143. @Html.ComboGrid(cgopfacultymajorID)
  144. </td>
  145. <td>
  146. <label>课程代码:</label>
  147. </td>
  148. <td>
  149. @Html.ComboGrid(cgopCourse)
  150. </td>
  151. </tr>
  152. </table>
  153. </div>
  154. }
  155. </div>