List.cshtml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. //校区
  6. ComboGridOptions cgopCampus = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CampusID",
  10. ID = "CampusDropdown",
  11. Name = "CampusDropdown",
  12. OnSelect = "queryCampus",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.12 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Campus/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. //院系所
  28. ComboGridOptions cgopCollege = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "CollegeID",
  32. ID = "CollegeDropdown",
  33. Name = "CollegeDropdown",
  34. OnSelect = "queryCollege",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  40. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. }
  48. };
  49. ////年级(暂时无效)
  50. //ComboGridOptions cgopSchoolyear = new ComboGridOptions
  51. //{
  52. // TextField = "SchoolyearID",
  53. // ValueField = "SchoolyearID",
  54. // ID = "DictionarySchoolyear",
  55. // Name = "DictionarySchoolyear",
  56. // OnSelect = "querySchoolyear",
  57. // GridOptions = new DataGridOptions
  58. // {
  59. // Columns = new List<DataGridColumn>()
  60. // {
  61. // new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.1 }
  62. // },
  63. // IsCheckOnSelect = true,
  64. // DataSourceUrl = Url.Content("~/Grademajor/GradeBindComboGridOptions"),
  65. // IsPagination = true,
  66. // IsShowRowNumbers = true,
  67. // IsSingleSelect = false,
  68. // }
  69. //};
  70. //专业名称
  71. ComboGridOptions cgopStandard = new ComboGridOptions
  72. {
  73. TextField = "StandardName",
  74. ValueField = "StandardID",
  75. ID = "DictionaryStandard",
  76. Name = "DictionaryStandard",
  77. OnSelect = "queryStandard",
  78. GridOptions = new DataGridOptions
  79. {
  80. Columns = new List<DataGridColumn>()
  81. {
  82. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  83. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  84. },
  85. IsCheckOnSelect = true,
  86. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  87. IsPagination = true,
  88. IsShowRowNumbers = true,
  89. IsSingleSelect = false,
  90. }
  91. };
  92. //学制
  93. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  94. {
  95. TextField = "LearnSystem",
  96. ValueField = "LearnSystem",
  97. ID = "DictionaryLearnSystem",
  98. Name = "DictionaryLearnSystem",
  99. OnSelect = "reload",
  100. GridOptions = new DataGridOptions
  101. {
  102. Columns = new List<DataGridColumn>()
  103. {
  104. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  105. },
  106. IsCheckOnSelect = true,
  107. DataSourceUrl = Url.Content("~/Facultymajor/LearnSystem"),
  108. IsPagination = true,
  109. IsShowRowNumbers = true,
  110. IsSingleSelect = false,
  111. IsShowHeader = false
  112. }
  113. };
  114. }
  115. @section scripts{
  116. <script src="~/Scripts/Business/GraduationManage/GraduationManage/GraduationApply.js" type="text/javascript"></script>
  117. <script type="text/javascript">
  118. var nonSelect = "@DropdownList.SELECT_ALL";
  119. //毕业学期
  120. var gradSchoolYearCode = "@(BaseExtensions.GetGradSchoolYearCode())";
  121. </script>
  122. }
  123. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  124. @Html.Position()
  125. <div class="p_SearchTitle">
  126. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  127. 查询条件</div>
  128. </div>
  129. <form id="formQuery" method="post" action="@Url.Content("~/GraduationApply/Excel")">
  130. @Html.PositionCondition()
  131. <div class="search_keyword">
  132. <div class="search_input">
  133. <ul>
  134. <li class="sn" style="padding-left: 5px;">毕业学期:</li>
  135. <li class="sv">
  136. @Html.DropdownList(new DropdownListOptions
  137. {
  138. ID = "GradSchoolyearDropdown",
  139. Name = "GradSchoolyearDropdown",
  140. BindType = DropdownListBindType.SelectAll,
  141. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"),
  142. SelectedValue = BaseExtensions.GetGradSchoolYearID(),
  143. OnSelect = "reload"
  144. }, new Dictionary<string, string> { { "data-condition", "dgGraduationApplyList" } })
  145. </li>
  146. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  147. <li class="sv">
  148. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgGraduationApplyList" } })
  149. </li>
  150. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  151. <li class="sv">
  152. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgGraduationApplyList" } })
  153. </li>
  154. <li class="sn" style="padding-left: 5px;">年级:</li>
  155. <li class="sv">
  156. @Html.SchoolYearDropDownList(new DropdownListOptions
  157. {
  158. BindType = DropdownListBindType.SelectAll,
  159. ID = "DictionarySchoolyear",
  160. Name = "DictionarySchoolyear",
  161. OnSelect = "queryClass"
  162. }, new Dictionary<string, string> { { "data-condition", "dgGraduationApplyList" } })
  163. </li>
  164. </ul>
  165. <ul>
  166. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  167. <li class="sv">
  168. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgGraduationApplyList" } })
  169. </li>
  170. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  171. <li class="sv">
  172. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  173. new ComboGridOptions
  174. {
  175. ID = "DictionaryEducation",
  176. Name = "DictionaryEducation",
  177. OnSelect = "reload"
  178. }, new Dictionary<string, string> { { "data-condition", "dgGraduationApplyList" } })
  179. </li>
  180. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  181. <li class="sv">
  182. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  183. new ComboGridOptions
  184. {
  185. ID = "DictionaryLearningform",
  186. Name = "DictionaryLearningform",
  187. OnSelect = "reload"
  188. }, new Dictionary<string, string> { { "data-condition", "dgGraduationApplyList" } })
  189. </li>
  190. <li class="sn" style="padding-left: 5px;">学制:</li>
  191. <li class="sv">
  192. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgGraduationApplyList" } })
  193. </li>
  194. </ul>
  195. <ul>
  196. <li class="sn" style="padding-left: 5px; color: red; width: 85px;">毕业类型:</li>
  197. <li class="sv">
  198. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ER_GraduationType, new DropdownListOptions
  199. {
  200. ID = "DictionaryGraduationType",
  201. Name = "DictionaryGraduationType",
  202. BindType = DropdownListBindType.SelectAll,
  203. OnSelect = "reload"
  204. }, new Dictionary<string, string> { { "data-condition", "dgGraduationApplyList" } })
  205. </li>
  206. <li class="sn" style="padding-left: 5px; color: red; width: 85px;">在校状态:</li>
  207. <li class="sv">
  208. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, new DropdownListOptions
  209. {
  210. ID = "DictionaryInschoolStatus",
  211. Name = "DictionaryInschoolStatus",
  212. BindType = DropdownListBindType.SelectAll,
  213. OnSelect = "reload",
  214. SelectedValue = (int)EMIS.ViewModel.CF_INOrOutSchoolStatus.Yes
  215. }, new Dictionary<string, string> { { "data-condition", "dgGraduationApplyList" } })
  216. </li>
  217. <li class="sn" style="padding-left: 5px; color: red; width: 85px;">毕业结论:</li>
  218. <li class="sv">
  219. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ER_GraduationResult, new DropdownListOptions
  220. {
  221. ID = "DictionaryGraduationResult",
  222. Name = "DictionaryGraduationResult",
  223. BindType = DropdownListBindType.SelectAll,
  224. OnSelect = "reload"
  225. }, new Dictionary<string, string> { { "data-condition", "dgGraduationApplyList" } })
  226. </li>
  227. <li class="sn" style="padding-left: 5px; color: red; width: 85px;">状态:</li>
  228. <li class="sv">
  229. @Html.DropdownList(new DropdownListOptions
  230. {
  231. ID = "DictionaryApprovalStatus",
  232. Name = "DictionaryApprovalStatus",
  233. BindType = DropdownListBindType.SelectAll,
  234. //SelectedValue = BaseExtensions.GetStartFlowStatus(typeof(EMIS.Entities.ER_GraduationApply).Name),
  235. ItemSourceUrl = Url.Content("~/Common/ApproveStatusApplyDropDown?tableName=" + typeof(EMIS.Entities.ER_GraduationApply).Name),
  236. OnSelect = "reload"
  237. }, new Dictionary<string, string> { { "data-condition", "dgGraduationApplyList" } })
  238. </li>
  239. </ul>
  240. </div>
  241. </div>
  242. </form>
  243. <div class="p_title">
  244. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  245. 毕业申请列表</div>
  246. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  247. </div>
  248. @*@Html.PositionBatchModify()*@
  249. <div class="search_list">
  250. @Html.DataGrid(new DataGridOptions
  251. {
  252. Columns = new List<DataGridColumn>()
  253. {
  254. new CheckBoxFieldColumn{ HeaderText="", FieldName="GraduationApplyID" },
  255. new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.07 },
  256. new BoundFieldColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center, Width=0.1 },
  257. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  258. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", OrderFieldName="Sex", Align=AlignStyle.Center, Width=0.02 },
  259. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", OrderFieldName="InSchoolStatusID", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  260. //new BoundFieldColumn { FieldName="ExamineeNum", HeaderText="考生号", Align=AlignStyle.Center, Width=0.1 },
  261. //new BoundFieldColumn { FieldName="BirthDate",HeaderText="出生日期", Align=AlignStyle.Center, Width=0.08, Formatter=Formatter.OnlyYearMonthDay },
  262. //new BoundFieldColumn { FieldName="NationName", HeaderText="民族", OrderFieldName="NationID", Align=AlignStyle.Center, Width=0.02 },
  263. //new BoundFieldColumn { FieldName="PoliticsName", HeaderText="政治面貌", OrderFieldName="PoliticsID", Align=AlignStyle.Center, Width=0.04 },
  264. //new BoundFieldColumn { FieldName="EntranceDate",HeaderText="入学日期", Align=AlignStyle.Center, Width=0.08, Formatter=Formatter.OnlyYearMonthDay },
  265. new BoundFieldColumn { FieldName="GraduationTypeName", HeaderText="毕业类型", OrderFieldName="GraduationTypeID", Align=AlignStyle.Center, Width=0.04 },
  266. //new BoundFieldColumn { FieldName="ClassNo", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.08 },
  267. new BoundFieldColumn { FieldName="ClassName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.1 },
  268. //new BoundFieldColumn { FieldName="GrademajorCode", HeaderText="年级专业编号", Align=AlignStyle.Center, Width=0.08 },
  269. //new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.1 },
  270. //new BoundFieldColumn { FieldName="EnteringSchoolYearCode", HeaderText="入学学年学期", Align=AlignStyle.Center, Width=0.06 },
  271. //new BoundFieldColumn { FieldName="EducationName", HeaderText=@EMIS.Utility.RSL.Get("EducationID"), OrderFieldName="EducationID", Align=AlignStyle.Center, Width=0.04 },
  272. //new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", OrderFieldName="LearningformID", Align=AlignStyle.Center, Width=0.04 },
  273. //new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.02 },
  274. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
  275. new LinkButtonColumn { FieldName="PlanCourseCount", HeaderText="计划门数", Align=AlignStyle.Center, Handle="editSpecialtyPlan", Width=0.04 },
  276. new LinkButtonColumn { FieldName="ExecCourseCount", HeaderText="执行门数", Align=AlignStyle.Center, Handle="editExecutablePlan", Width=0.04 },
  277. new LinkButtonColumn { FieldName="FinallyScoreCount", HeaderText="已修门数", Align=AlignStyle.Center, Handle="editFinallyScore", Width=0.04 },
  278. new BoundFieldColumn { FieldName="GradDesignScoreLevel", HeaderText="毕设成绩", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  279. new LinkButtonColumn { FieldName="ArrearAmount", HeaderText="欠费金额", Align=AlignStyle.Center, Handle="editStudentCharge", Width=0.04 },
  280. //new BoundFieldColumn { FieldName="RequireCourseCount", HeaderText="毕业门数", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  281. //new BoundFieldColumn { FieldName="GraduationCredit", HeaderText="毕业学分", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  282. new BoundFieldColumn { FieldName="GraduationResultName", HeaderText="毕业结论", OrderFieldName="GraduationResult", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  283. new BoundFieldColumn { FieldName="ApprovalResult", HeaderText="预审说明", Align=AlignStyle.Center, Width=0.05, CustomFormatFun="SetRedColumn" },
  284. //new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.02, OverflowLength=5 },
  285. new ApproveStatusColumn { FieldName="ApprovalStatusName", TableName=typeof(EMIS.Entities.ER_GraduationApply).Name, IDFieldName="GraduationApplyID", HeaderText="状态", Align=AlignStyle.Center, Width=0.03 }
  286. },
  287. IsCheckOnSelect = true,
  288. DataSourceUrl = Url.Content("~/GraduationApply/List"),
  289. ID = "dgGraduationApplyList",
  290. IsPagination = true,
  291. IsShowRowNumbers = true,
  292. IsSingleSelect = false
  293. })
  294. </div>
  295. </div>