List.cshtml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. //院系所
  6. ComboGridOptions cgopCollege = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CollegeID",
  10. OnSelect = "queryClass",
  11. ID = "CollegeDropdown",
  12. Name = "CollegeDropdown",
  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, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. //班级
  28. ComboGridOptions cgopClassmajor = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "ClassmajorID",
  32. Name = "ClassmajorDropdown",
  33. ID = "ClassmajorDropdown",
  34. OnSelect = "queryClass",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
  40. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/Classmajor/List"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false
  47. }
  48. };
  49. //专业名称
  50. ComboGridOptions cgopStandard = new ComboGridOptions
  51. {
  52. TextField = "StandardName",
  53. ValueField = "StandardID",
  54. OnSelect = "queryStandard",
  55. ID = "StandardDictionaryDropDown",
  56. Name = "StandardDictionaryDropDown",
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  62. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  63. },
  64. IsCheckOnSelect = true,
  65. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false,
  69. }
  70. };
  71. }
  72. @section scripts{
  73. <script src="~/Scripts/Business/MinorManage/MinorApply/MinorApply.js" type="text/javascript"></script>
  74. <script type="text/javascript">
  75. var nonSelect = "@DropdownList.SELECT_ALL";
  76. </script>
  77. }
  78. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  79. @Html.Position()
  80. <div class="p_SearchTitle">
  81. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  82. 查询条件</div>
  83. </div>
  84. <form id="formQuery" method="post" action="@Url.Content("~/MinorRegistApprove/Excel")">
  85. @Html.PositionCondition()
  86. <div class="search_keyword">
  87. @Html.Hidden("SelectedID")
  88. <div class="search_input">
  89. <ul>
  90. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  91. <li class="sv">
  92. @Html.DropdownList(new DropdownListOptions
  93. {
  94. ID = "SchoolyearDropdown",
  95. Name = "SchoolyearDropdown",
  96. BindType = DropdownListBindType.SelectAll,
  97. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  98. OnSelect = "reload",
  99. SelectedValue = BaseExtensions.GetCurrentSchoolYearID()
  100. },
  101. new Dictionary<string, string> { { "data-condition", "dgMinorApplyList" } })
  102. </li>
  103. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  104. <li class="sv">
  105. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgMinorApplyList" } })
  106. </li>
  107. <li class="sn" style="padding-left: 5px;">年级:</li>
  108. <li class="sv">
  109. @Html.SchoolYearDropDownList(new DropdownListOptions
  110. {
  111. BindType = DropdownListBindType.SelectAll,
  112. ID = "SchoolyearDictionaryDropDown",
  113. Name = "SchoolyearDictionaryDropDown",
  114. OnSelect = "queryClass"
  115. },
  116. new Dictionary<string, string> { { "data-condition", "dgMinorApplyList" } })
  117. </li>
  118. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  119. <li class="sv">
  120. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgMinorApplyList" } })
  121. </li>
  122. </ul>
  123. <ul>
  124. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  125. <li class="sv">
  126. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgMinorApplyList" } })
  127. </li>
  128. <li class="sn" style="padding-left: 5px;">辅修专业名称:</li>
  129. <li class="sv">
  130. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll,
  131. new ComboGridOptions
  132. {
  133. ID = "MinorStandardDropDown",
  134. Name = "MinorStandardDropDown",
  135. OnSelect = "reload"
  136. },
  137. new Dictionary<string, string> { { "data-condition", "dgMinorApplyList" } })
  138. </li>
  139. </ul>
  140. </div>
  141. </div>
  142. </form>
  143. <div class="p_title">
  144. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  145. 辅修报名审核列表</div>
  146. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  147. </div>
  148. @*@Html.PositionBatchModify()*@
  149. <div class="search_list">
  150. @Html.DataGrid(new DataGridOptions
  151. {
  152. Columns = new List<DataGridColumn>()
  153. {
  154. new CheckBoxFieldColumn{ HeaderText="", FieldName="StudentMinorRegistID" },
  155. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.07 },
  156. new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业", Align=AlignStyle.Center, Width=0.1 },
  157. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.1 },
  158. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.04 },
  159. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  160. new BoundFieldColumn { FieldName="GrademinorCode", HeaderText="辅修专业代码", Align=AlignStyle.Center, Width=0.04 },
  161. new BoundFieldColumn { FieldName="GrademinorName", HeaderText="辅修专业名称", Align=AlignStyle.Center, Width=0.04 },
  162. new BoundFieldColumn { FieldName="OpenStatusStr", HeaderText="辅修专业状态", Align=AlignStyle.Center, Width=0.04 },
  163. new ApproveStatusColumn { FieldName="RecordStatusStr", TableName=typeof(EMIS.Entities.EM_StudentMinorRegist).Name, IDFieldName="StudentMinorRegistID", HeaderText="状态", Align=AlignStyle.Center, Width=0.03 }
  164. },
  165. PageSize = 50,
  166. IsCheckOnSelect = true,
  167. DataSourceUrl = Url.Content("~/MinorRegistApprove/List"),
  168. ID = "dgMinorApplyList",
  169. IsPagination = true,
  170. IsShowRowNumbers = true,
  171. IsSingleSelect = false
  172. })
  173. </div>
  174. </div>