List.cshtml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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/MinorGraduationApprove.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("~/MinorGraduationApprove/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", "dgMinorGraduationApproveList" } })
  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", "dgMinorGraduationApproveList" } })
  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", "dgMinorGraduationApproveList" } })
  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", "dgMinorGraduationApproveList" } })
  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", "dgMinorGraduationApproveList" } })
  135. </li>
  136. <li class="sn" style="padding-left: 5px; width: 85px;">在校状态:</li>
  137. <li class="sv">
  138. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, new DropdownListOptions
  139. {
  140. ID = "DictionaryInschoolStatus",
  141. Name = "DictionaryInschoolStatus",
  142. BindType = DropdownListBindType.SelectAll,
  143. OnSelect = "reload",
  144. SelectedValue = (int)EMIS.ViewModel.CF_INOrOutSchoolStatus.Yes
  145. },
  146. new Dictionary<string, string> { { "data-condition", "dgMinorGraduationApproveList" } })
  147. </li>
  148. <li class="sn" style="padding-left: 5px; width: 85px;">毕业结论:</li>
  149. <li class="sv">
  150. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ER_GraduationResult, new DropdownListOptions
  151. {
  152. ID = "DictionaryGraduationResult",
  153. Name = "DictionaryGraduationResult",
  154. BindType = DropdownListBindType.SelectAll,
  155. OnSelect = "reload"
  156. },
  157. new Dictionary<string, string> { { "data-condition", "dgMinorGraduationApproveList" } })
  158. </li>
  159. <li class="sn" style="padding-left: 5px; width: 85px;">状态:</li>
  160. <li class="sv">
  161. @Html.DropdownList(new DropdownListOptions
  162. {
  163. ID = "DictionaryApprovalStatus",
  164. Name = "DictionaryApprovalStatus",
  165. BindType = DropdownListBindType.SelectAll,
  166. //SelectedValue = BaseExtensions.GetStartFlowStatus(typeof(EMIS.Entities.ER_GraduationApply).Name),
  167. ItemSourceUrl = Url.Content("~/Common/ApproveStatusNotStartEndDropDown?tableName=" + typeof(EMIS.Entities.ER_MinorGraduationApply).Name),
  168. OnSelect = "reload"
  169. }, new Dictionary<string, string> { { "data-condition", "dgMinorGraduationApproveList" } })
  170. </li>
  171. </ul>
  172. </div>
  173. </div>
  174. </form>
  175. <div class="p_title">
  176. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  177. 辅修毕业审核列表</div>
  178. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  179. </div>
  180. @*@Html.PositionBatchModify()*@
  181. <div class="search_list">
  182. @Html.DataGrid(new DataGridOptions
  183. {
  184. Columns = new List<DataGridColumn>()
  185. {
  186. new CheckBoxFieldColumn{ HeaderText="", FieldName="MinorGraduationApplyID" },
  187. new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.07 },
  188. new BoundFieldColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center, Width=0.1 },
  189. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  190. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, Width=0.02 },
  191. new BoundFieldColumn { FieldName="GraduationTypeName", HeaderText="毕业类型", Align=AlignStyle.Center, Width=0.04 },
  192. new BoundFieldColumn { FieldName="ClassminorName", HeaderText="辅修班级名称", Align=AlignStyle.Center, Width=0.1 },
  193. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.04 },
  194. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
  195. new BoundFieldColumn { FieldName="MinorGraduationResultName", HeaderText="毕业结论", Align=AlignStyle.Center, Width=0.04, },
  196. new BoundFieldColumn { FieldName="ApprovalResult", HeaderText="预审说明", Align=AlignStyle.Center, Width=0.05, },
  197. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.02, OverflowLength=5 },
  198. new ApproveStatusColumn { FieldName="ApprovalStatusName", TableName=typeof(EMIS.Entities.ER_MinorGraduationApply).Name, IDFieldName="MinorGraduationApplyID", HeaderText="状态", Align=AlignStyle.Center, Width=0.03 }
  199. },
  200. IsCheckOnSelect = true,
  201. DataSourceUrl = Url.Content("~/MinorGraduationApprove/List"),
  202. ID = "dgMinorGraduationApproveList",
  203. IsPagination = true,
  204. IsShowRowNumbers = true,
  205. IsSingleSelect = false
  206. })
  207. </div>
  208. </div>