List.cshtml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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 cgopStandard = new ComboGridOptions
  29. {
  30. TextField = "StandardName",
  31. ValueField = "StandardID",
  32. OnSelect = "queryStandard",
  33. ID = "StandardDictionaryDropDown",
  34. Name = "StandardDictionaryDropDown",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  40. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. }
  48. };
  49. //学制
  50. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  51. {
  52. TextField = "LearnSystem",
  53. ValueField = "LearnSystem",
  54. OnSelect = "reload",
  55. ID = "DictionaryLearnSystem",
  56. Name = "DictionaryLearnSystem",
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  62. },
  63. IsCheckOnSelect = true,
  64. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  65. IsPagination = true,
  66. IsShowRowNumbers = true,
  67. IsSingleSelect = false,
  68. IsShowHeader = false
  69. }
  70. };
  71. }
  72. @section scripts{
  73. <script src="~/Scripts/Business/MinorGraduation/MinorGraduationManage/MinorGraduationList.js"
  74. type="text/javascript"></script>
  75. <script type="text/javascript">
  76. var nonSelect = "@DropdownList.SELECT_ALL";
  77. </script>
  78. }
  79. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  80. @Html.Position()
  81. <div class="p_SearchTitle">
  82. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  83. 查询条件</div>
  84. </div>
  85. <form id="formQuery" method="post" action="@Url.Content("~/MinorGraduationList/Excel")">
  86. @Html.PositionCondition()
  87. <div class="search_keyword">
  88. @Html.Hidden("SelectedID")
  89. <div class="search_input">
  90. <ul>
  91. <li class="sn" style="padding-left: 5px;">毕业学期:</li>
  92. <li class="sv">
  93. @Html.DropdownList(new DropdownListOptions
  94. {
  95. ID = "GradSchoolyearDropdown",
  96. Name = "GradSchoolyearDropdown",
  97. BindType = DropdownListBindType.SelectAll,
  98. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  99. OnSelect = "reload",
  100. SelectedValue = BaseExtensions.GetGradSchoolYearID()
  101. },
  102. new Dictionary<string, string> { { "data-condition", "dgMinorGraduationList" } })
  103. </li>
  104. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  105. <li class="sv">
  106. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgMinorGraduationList" } })
  107. </li>
  108. <li class="sn" style="padding-left: 5px;">年级:</li>
  109. <li class="sv">
  110. @Html.SchoolYearDropDownList(new DropdownListOptions
  111. {
  112. BindType = DropdownListBindType.SelectAll,
  113. ID = "SchoolyearDictionaryDropDown",
  114. Name = "SchoolyearDictionaryDropDown",
  115. OnSelect = "queryClass"
  116. },
  117. new Dictionary<string, string> { { "data-condition", "dgMinorGraduationList" } })
  118. </li>
  119. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  120. <li class="sv">
  121. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgMinorGraduationList" } })
  122. </li>
  123. </ul>
  124. <ul>
  125. <li class="sn" style="padding-left: 5px; width: 85px;">毕业类型:</li>
  126. <li class="sv">
  127. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ER_GraduationType, new DropdownListOptions
  128. {
  129. ID = "DictionaryGraduationType",
  130. Name = "DictionaryGraduationType",
  131. BindType = DropdownListBindType.SelectAll,
  132. OnSelect = "reload"
  133. },
  134. new Dictionary<string, string> { { "data-condition", "dgMinorGraduationList" } })
  135. </li>
  136. <li class="sn" style="padding-left: 5px; width: 85px;">毕业结论:</li>
  137. <li class="sv">
  138. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ER_GraduationResult, new DropdownListOptions
  139. {
  140. ID = "DictionaryGraduationResult",
  141. Name = "DictionaryGraduationResult",
  142. BindType = DropdownListBindType.SelectAll,
  143. OnSelect = "reload"
  144. },
  145. new Dictionary<string, string> { { "data-condition", "dgMinorGraduationList" } })
  146. </li>
  147. </ul>
  148. </div>
  149. </div>
  150. </form>
  151. <div class="p_title">
  152. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  153. 辅修毕业申请列表</div>
  154. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  155. </div>
  156. @*@Html.PositionBatchModify()*@
  157. <div class="search_list">
  158. @Html.DataGrid(new DataGridOptions
  159. {
  160. Columns = new List<DataGridColumn>()
  161. {
  162. new CheckBoxFieldColumn{ HeaderText="", FieldName="MinorGraduationApplyID" },
  163. new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.07 },
  164. new BoundFieldColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center, Width=0.1 },
  165. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  166. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, Width=0.02 },
  167. new BoundFieldColumn { FieldName="GraduationTypeName", HeaderText="毕业类型", Align=AlignStyle.Center, Width=0.04 },
  168. new BoundFieldColumn { FieldName="ClassminorName", HeaderText="辅修班级名称", Align=AlignStyle.Center, Width=0.1 },
  169. //new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.04 },
  170. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
  171. new BoundFieldColumn { FieldName="MinorGraduationResultName", HeaderText="毕业结论", Align=AlignStyle.Center, Width=0.04, },
  172. new BoundFieldColumn { FieldName="ApprovalResult", HeaderText="预审说明", Align=AlignStyle.Center, Width=0.05, },
  173. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.02, OverflowLength=5 },
  174. new ApproveStatusColumn { FieldName="ApprovalStatusName", TableName=typeof(EMIS.Entities.ER_MinorGraduationApply).Name, IDFieldName="MinorGraduationApplyID", HeaderText="状态", Align=AlignStyle.Center, Width=0.03 }
  175. },
  176. IsCheckOnSelect = true,
  177. DataSourceUrl = Url.Content("~/MinorGraduationList/List"),
  178. ID = "dgMinorGraduationList",
  179. IsPagination = true,
  180. IsShowRowNumbers = true,
  181. IsSingleSelect = false
  182. })
  183. </div>
  184. </div>