PaymentRefresh.cshtml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. @model EMIS.ViewModel.StudentManage.StudentRegister.StudentReportView
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Entities;
  4. @using EMIS.Web.Controls;
  5. @{
  6. ViewBag.Title = "PaymentRefresh";
  7. //校区
  8. ComboGridOptions cgopCampus = new ComboGridOptions
  9. {
  10. TextField = "Name",
  11. ValueField = "CampusID",
  12. ID = "CampusDropdown",
  13. Name = "CampusDropdown",
  14. OnSelect = "queryCampus",
  15. GridOptions = new DataGridOptions
  16. {
  17. Columns = new List<DataGridColumn>()
  18. {
  19. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.1 },
  20. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.12 }
  21. },
  22. IsCheckOnSelect = true,
  23. DataSourceUrl = Url.Content("~/Campus/List"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false,
  27. }
  28. };
  29. //院系所
  30. ComboGridOptions cgopCollege = new ComboGridOptions
  31. {
  32. TextField = "Name",
  33. ValueField = "CollegeID",
  34. ID = "CollegeDropdown",
  35. Name = "CollegeDropdown",
  36. OnSelect = "queryCollege",
  37. GridOptions = new DataGridOptions
  38. {
  39. Columns = new List<DataGridColumn>()
  40. {
  41. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  42. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  43. },
  44. IsCheckOnSelect = true,
  45. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  46. IsPagination = true,
  47. IsShowRowNumbers = true,
  48. IsSingleSelect = false,
  49. }
  50. };
  51. //年级
  52. ComboGridOptions cgopSchoolyear = new ComboGridOptions
  53. {
  54. TextField = "SchoolyearID",
  55. ValueField = "SchoolyearID",
  56. ID = "DictionaryGrade",
  57. Name = "DictionaryGrade",
  58. OnSelect = "queryGrade",
  59. GridOptions = new DataGridOptions
  60. {
  61. Columns = new List<DataGridColumn>()
  62. {
  63. new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.1 }
  64. },
  65. IsCheckOnSelect = true,
  66. DataSourceUrl = Url.Content("~/Grademajor/GradeBindComboGridOptions"),
  67. IsPagination = true,
  68. IsShowRowNumbers = true,
  69. IsSingleSelect = false,
  70. }
  71. };
  72. //专业名称
  73. ComboGridOptions cgopStandard = new ComboGridOptions
  74. {
  75. TextField = "StandardName",
  76. ValueField = "StandardID",
  77. ID = "DictionaryStandard",
  78. Name = "DictionaryStandard",
  79. OnSelect = "queryStandard",
  80. GridOptions = new DataGridOptions
  81. {
  82. Columns = new List<DataGridColumn>()
  83. {
  84. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 },
  85. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 }
  86. },
  87. IsCheckOnSelect = true,
  88. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  89. IsPagination = true,
  90. IsShowRowNumbers = true,
  91. IsSingleSelect = false,
  92. }
  93. };
  94. //学制
  95. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  96. {
  97. TextField = "LearnSystem",
  98. ValueField = "LearnSystem",
  99. ID = "DictionaryLearnSystem",
  100. Name = "DictionaryLearnSystem",
  101. OnSelect = "queryLearnSystem",
  102. GridOptions = new DataGridOptions
  103. {
  104. Columns = new List<DataGridColumn>()
  105. {
  106. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  107. },
  108. IsCheckOnSelect = true,
  109. DataSourceUrl = Url.Content("~/Facultymajor/LearnSystem"),
  110. IsPagination = true,
  111. IsShowRowNumbers = true,
  112. IsSingleSelect = false,
  113. IsShowHeader = false
  114. }
  115. };
  116. //年级专业
  117. ComboGridOptions cgopGrademajor = new ComboGridOptions
  118. {
  119. TextField = "Name",
  120. ValueField = "GrademajorID",
  121. Name = "GrademajorComboGrid",
  122. ID = "GrademajorComboGrid",
  123. OnSelect = "queryGrademajor",
  124. GridOptions = new DataGridOptions
  125. {
  126. Columns = new List<DataGridColumn>()
  127. {
  128. new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center, Width=0.2 },
  129. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.3 }
  130. },
  131. PageSize = 5,
  132. IsCheckOnSelect = true,
  133. DataSourceUrl = Url.Content("~/Grademajor/List"),
  134. IsPagination = true,
  135. IsShowRowNumbers = true,
  136. IsSingleSelect = false
  137. }
  138. };
  139. //班级信息
  140. ComboGridOptions cgopClassmajor = new ComboGridOptions
  141. {
  142. TextField = "Name",
  143. ValueField = "ClassmajorID",
  144. Name = "ClassmajorComboGrid",
  145. ID = "ClassmajorComboGrid",
  146. GridOptions = new DataGridOptions
  147. {
  148. Columns = new List<DataGridColumn>()
  149. {
  150. new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Width=0.25, Align=AlignStyle.Center },
  151. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Width=0.5, Align=AlignStyle.Center }
  152. },
  153. PageSize = 5,
  154. IsCheckOnSelect = true,
  155. DataSourceUrl = Url.Content("~/Classmajor/List"),
  156. IsPagination = true,
  157. IsShowRowNumbers = true,
  158. IsSingleSelect = false
  159. }
  160. };
  161. }
  162. @section scripts{
  163. <script type="text/javascript">
  164. var nonSelect = "@DropdownList.SELECT_ALL";
  165. //联动查询
  166. function queryCampus(data) {
  167. var campusID = $("#CampusDropdown").combogridX("getValue");
  168. if (campusID != nonSelect) {
  169. var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@@|'})";
  170. $("#CollegeDropdown").combogridX("reload", eval(jsonString));
  171. }
  172. queryClass();
  173. }
  174. function queryCollege(data) {
  175. var campusID = $("#CampusDropdown").combogridX("getValue");
  176. var collegeID = $("#CollegeDropdown").combogridX("getValue");
  177. var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@@|";
  178. jsonString += "CollegeDropdown|*|" + collegeID + "|@@|'})";
  179. $("#CollegeDropdown").combogridX("reload", eval(jsonString));
  180. $("#DictionaryStandard").combogridX("reload", eval(jsonString));
  181. queryClass();
  182. }
  183. function queryGrade(data) {
  184. queryClass();
  185. }
  186. function queryStandard(data) {
  187. queryClass();
  188. }
  189. function queryEducation(data) {
  190. queryClass();
  191. }
  192. function queryLearningform(data) {
  193. queryClass();
  194. }
  195. function queryLearnSystem(data) {
  196. queryClass();
  197. }
  198. function queryGrademajor(data) {
  199. queryClass();
  200. }
  201. function queryClass() {
  202. var jsonString = "";
  203. var parameterString = "";
  204. var campusID = $("#CampusDropdown").combogridX("getValue");
  205. var collegeID = $("#CollegeDropdown").combogridX("getValue");
  206. var gradeID = $("#DictionaryGrade").combogridX("getValue");
  207. var standardID = $("#DictionaryStandard").combogridX("getValue");
  208. var educationID = $("#DictionaryEducation").combogridX("getValue");
  209. var learningFormID = $("#DictionaryLearningform").combogridX("getValue");
  210. var learnSystem = $("#DictionaryLearnSystem").combogridX("getValue");
  211. var grademajorID = $("#GrademajorComboGrid").combogridX("getValue");
  212. if (campusID != nonSelect) parameterString += "CampusDropdown|*|" + campusID + "|@@|";
  213. if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@@|";
  214. if (gradeID != nonSelect) parameterString += "DictionaryGrade|*|" + gradeID + "|@@|";
  215. if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@@|";
  216. if (educationID != nonSelect) parameterString += "DictionaryEducation|*|" + educationID + "|@@|";
  217. if (learningFormID != nonSelect) parameterString += "DictionaryLearningform|*|" + learningFormID + "|@@|";
  218. if (learnSystem != nonSelect) parameterString += "DictionaryLearnSystem|*|" + learnSystem + "|@@|";
  219. if (grademajorID != nonSelect) parameterString += "GrademajorComboGrid|*|" + grademajorID + "|@@|";
  220. if (parameterString != "") {
  221. jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
  222. $("#DictionaryStandard").combogridX("reload", eval(jsonString));
  223. $("#GrademajorComboGrid").combogridX("reload", eval(jsonString));
  224. $("#ClassmajorComboGrid").combogridX("reload", eval(jsonString));
  225. }
  226. else {
  227. $("#DictionaryStandard").combogridX("reload");
  228. $("#GrademajorComboGrid").combogridX("reload");
  229. $("#ClassmajorComboGrid").combogridX("reload");
  230. }
  231. }
  232. //确定
  233. function StudentReport_PayRefreshConfirm() {
  234. var schoolyearID = $("#SchoolyearID").combobox("getValue");
  235. if (schoolyearID == null || schoolyearID == "" || schoolyearID == "-1") {
  236. $.messager.alert("系统提示", "请选择学年学期。");
  237. return;
  238. }
  239. $(document.forms[0]).submit();
  240. }
  241. </script>
  242. }
  243. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  244. @using (Ajax.BeginForm(new AjaxOptions
  245. {
  246. //生成成功后不关闭弹出页面
  247. OnSuccess = "EMISFunction.FormSuccessNoClose",
  248. OnBegin = "EMISFunction.FormSubmit",
  249. OnComplete = "EMISFunction.FormComplete"
  250. }))
  251. {
  252. <div class="p_title">
  253. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  254. </div>
  255. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("PaymentReport")</div>
  256. </div>
  257. <div class="search_keyword">
  258. <div class="search_input">
  259. <ul>
  260. <li class="sn" style="padding-left: 5px;width: 65px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  261. <li class="sv">
  262. @Html.ComboGrid(cgopCampus)
  263. </li>
  264. <li class="sn" style="padding-left: 5px;width: 65px;">@EMIS.Utility.RSL.Get("College"):</li>
  265. <li class="sv">
  266. @Html.ComboGrid(cgopCollege)
  267. </li>
  268. <li class="sn" style="padding-left: 5px;width: 65px;">年级:</li>
  269. <li class="sv">
  270. @Html.ComboGrid(cgopSchoolyear)
  271. </li>
  272. </ul>
  273. <ul>
  274. <li class="sn" style="padding-left: 5px;width: 65px;">专业名称:</li>
  275. <li class="sv">
  276. @Html.ComboGrid(cgopStandard)
  277. </li>
  278. <li class="sn" style="padding-left: 5px;width: 65px;">@Html.RSLabel("EducationID"):</li>
  279. <li class="sv">
  280. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  281. new ComboGridOptions()
  282. {
  283. ID = "DictionaryEducation",
  284. Name = "DictionaryEducation",
  285. OnSelect = "queryEducation"
  286. })
  287. </li>
  288. <li class="sn" style="padding-left: 5px;width: 65px;">学习形式:</li>
  289. <li class="sv">
  290. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  291. new ComboGridOptions()
  292. {
  293. ID = "DictionaryLearningform",
  294. Name = "DictionaryLearningform",
  295. OnSelect = "queryLearningform"
  296. })
  297. </li>
  298. </ul>
  299. <ul>
  300. <li class="sn" style="padding-left: 5px;width: 65px;">学制:</li>
  301. <li class="sv">
  302. @Html.ComboGrid(cgopLearnSystem)
  303. </li>
  304. <li class="sn" style="padding-left: 5px;width: 65px;">年级专业:</li>
  305. <li class="sv">
  306. @Html.ComboGrid(cgopGrademajor)
  307. </li>
  308. <li class="sn" style="padding-left: 5px;width: 65px;">班级信息:</li>
  309. <li class="sv">
  310. @Html.ComboGrid(cgopClassmajor)
  311. </li>
  312. </ul>
  313. <ul>
  314. <li class="sn" style="padding-left: 5px;color: red;font-weight:bolder;width: 65px;">在校状态:</li>
  315. <li class="sv">
  316. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, DropdownListBindType.SelectAll,
  317. new ComboGridOptions()
  318. {
  319. ID = "DictionaryInschoolStatus",
  320. Name = "DictionaryInschoolStatus"
  321. //SelectedValue = (int)EMIS.ViewModel.CF_INOrOutSchoolStatus.Yes
  322. })
  323. </li>
  324. <li class="sn" style="padding-left: 5px;color: red;font-weight:bolder;width: 65px;">学年学期:</li>
  325. <li class="sv">
  326. @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions
  327. {
  328. BindType = DropdownListBindType.PleaseSelect,
  329. TextField = "Text",
  330. ValueField = "Value",
  331. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  332. ItemSourceUrl = Url.Content("~/SchoolYear/DropDownBeforeCurrent")
  333. })
  334. </li>
  335. </ul>
  336. </div>
  337. </div>
  338. }
  339. </div>