List.cshtml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. //院系所
  7. ComboGridOptions cgopCollege = new ComboGridOptions
  8. {
  9. TextField = "Name",
  10. ValueField = "CollegeID",
  11. OnSelect = "queryClass",
  12. Name = "CollegeDropdown",
  13. ID = "CollegeDropdown",
  14. GridOptions = new DataGridOptions
  15. {
  16. Columns = new List<DataGridColumn>()
  17. {
  18. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  19. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  20. },
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false,
  26. }
  27. };
  28. //专业名称
  29. ComboGridOptions cgopStandard = new ComboGridOptions
  30. {
  31. TextField = "StandardName",
  32. ValueField = "StandardID",
  33. OnSelect = "queryStandard",
  34. Name = "StandardDictionaryDropDown",
  35. ID = "StandardDictionaryDropDown",
  36. GridOptions = new DataGridOptions
  37. {
  38. Columns = new List<DataGridColumn>()
  39. {
  40. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  41. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  42. },
  43. IsCheckOnSelect = true,
  44. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  45. IsPagination = true,
  46. IsShowRowNumbers = true,
  47. IsSingleSelect = false,
  48. }
  49. };
  50. //学制
  51. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  52. {
  53. TextField = "LearnSystem",
  54. ValueField = "LearnSystem",
  55. OnSelect = "reload",
  56. Name = "DictionaryLearnSystem",
  57. ID = "DictionaryLearnSystem",
  58. GridOptions = new DataGridOptions
  59. {
  60. Columns = new List<DataGridColumn>()
  61. {
  62. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  63. },
  64. IsCheckOnSelect = true,
  65. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false,
  69. IsShowHeader = false
  70. }
  71. };
  72. //收费项目
  73. ComboGridOptions cgopChargeProject = new ComboGridOptions
  74. {
  75. TextField = "ChrageProjectName",
  76. ValueField = "ChargeProjectID",
  77. Name = "ChargeProjectComboGrid",
  78. ID = "ChargeProjectComboGrid",
  79. OnSelect = "reload",
  80. GridOptions = new DataGridOptions
  81. {
  82. Columns = new List<DataGridColumn>()
  83. {
  84. new BoundFieldColumn { FieldName="ChrageProjectName", HeaderText="收费项目", Align=AlignStyle.Center }
  85. },
  86. IsCheckOnSelect = true,
  87. DataSourceUrl = Url.Content("~/ChargeProject/List"),
  88. IsPagination = true,
  89. IsShowRowNumbers = true,
  90. IsSingleSelect = false
  91. }
  92. };
  93. }
  94. @section scripts{
  95. <script src="~/Scripts/Business/ChargeManage/ChargeSituation/ChargeStandard.js" type="text/javascript"></script>
  96. <script type="text/javascript">
  97. var nonSelect = "@DropdownList.SELECT_ALL";
  98. </script>
  99. }
  100. <div class="easyui-panel" data-options="border:false,fit:true" style="position:relative;">
  101. @Html.Position()
  102. <div class="p_SearchTitle">
  103. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  104. 查询条件</div>
  105. </div>
  106. <form id="formQuery" method="post" action="@Url.Content("~/ChargeStandard/Excel")">
  107. @Html.PositionCondition()
  108. <div class="search_keyword">
  109. <div class="search_input">
  110. <ul>
  111. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  112. <li class="sv">
  113. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgChargeStandardList" } })
  114. </li>
  115. <li class="sn" style="padding-left: 5px;">年级:</li>
  116. <li class="sv">
  117. @Html.SchoolYearDropDownList(new DropdownListOptions
  118. {
  119. BindType = DropdownListBindType.SelectAll,
  120. ID = "SchoolyearDictionaryDropDown",
  121. Name = "SchoolyearDictionaryDropDown",
  122. OnSelect = "queryClass"
  123. },
  124. new Dictionary<string, string> { { "data-condition", "dgChargeStandardList" } })
  125. </li>
  126. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  127. <li class="sv">
  128. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgChargeStandardList" } })
  129. </li>
  130. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  131. <li class="sv">
  132. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education,
  133. new DropdownListOptions
  134. {
  135. ID = "DictionaryEducation",
  136. Name = "DictionaryEducation",
  137. BindType = DropdownListBindType.SelectAll,
  138. OnSelect = "reload"
  139. },
  140. new Dictionary<string, string> { { "data-condition", "dgChargeStandardList" } })
  141. </li>
  142. </ul>
  143. <ul>
  144. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  145. <li class="sv">
  146. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform,
  147. new DropdownListOptions
  148. {
  149. ID = "DictionaryLearningform",
  150. Name = "DictionaryLearningform",
  151. BindType = DropdownListBindType.SelectAll,
  152. OnSelect = "reload"
  153. },
  154. new Dictionary<string, string> { { "data-condition", "dgChargeStandardList" } })
  155. </li>
  156. <li class="sn" style="padding-left: 5px;">学制:</li>
  157. <li class="sv">
  158. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgChargeStandardList" } })
  159. </li>
  160. <li class="sn" style="padding-left: 5px;">缴费学年:</li>
  161. <li class="sv">
  162. @Html.SchoolYearDropDownList(new DropdownListOptions
  163. {
  164. BindType = DropdownListBindType.SelectAll,
  165. ID = "ChargeYearDropDown",
  166. Name = "ChargeYearDropDown",
  167. OnSelect = "queryClass",
  168. SelectedValue = BaseExtensions.GetCurrentYearID()
  169. },
  170. new Dictionary<string, string> { { "data-condition", "dgChargeStandardList" } })
  171. </li>
  172. <li class="sn" style="padding-left: 5px;">收费项目:</li>
  173. <li class="sv">
  174. @Html.ComboGrid(cgopChargeProject, new Dictionary<string, string> { { "data-condition", "dgChargeStandardList" } })
  175. </li>
  176. </ul>
  177. <ul>
  178. <li class="sn" style="padding-left: 5px; width:85px;color: red;">在校状态:</li>
  179. <li class="sv">
  180. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, new DropdownListOptions
  181. {
  182. ID = "DictionaryInschoolStatus",
  183. Name = "DictionaryInschoolStatus",
  184. BindType = DropdownListBindType.SelectAll,
  185. OnSelect = "reload",
  186. SelectedValue = (int)EMIS.ViewModel.CF_INOrOutSchoolStatus.Yes
  187. },
  188. new Dictionary<string, string> { { "data-condition", "dgChargeStandardList" } })
  189. </li>
  190. </ul>
  191. </div>
  192. </div>
  193. </form>
  194. <div class="p_title">
  195. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  196. 收费标准列表</div>
  197. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  198. </div>
  199. @Html.PositionBatchModify()
  200. <div class="search_list">
  201. @Html.DataGrid(new DataGridOptions
  202. {
  203. Columns = new List<DataGridColumn>()
  204. {
  205. new CheckBoxFieldColumn{ HeaderText="", FieldName="ChargeStandardID"},
  206. new BoundFieldColumn { FieldName="GradeMajorCode", HeaderText="年级专业代码", Align=AlignStyle.Center, Width=0.08 },
  207. new BoundFieldColumn { FieldName="GrademajorStr", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.1 },
  208. new BoundFieldColumn { FieldName="GradeStr", HeaderText="年级", Align=AlignStyle.Center, Width=0.04 },
  209. new BoundFieldColumn { FieldName="MajorStr", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 },
  210. new BoundFieldColumn { FieldName="EducationName", HeaderText=@EMIS.Utility.RSL.Get("EducationName"), Align=AlignStyle.Center, Width=0.04 },
  211. new BoundFieldColumn { FieldName="LearningformStr", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.04 },
  212. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  213. new BoundFieldColumn { FieldName="CollegeCode", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
  214. new BoundFieldColumn { FieldName="CollegeStr", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  215. new BoundFieldColumn { FieldName="ChargeYear", HeaderText="缴费学年", Align=AlignStyle.Center, Width=0.05 },
  216. new BoundFieldColumn { FieldName="ChargeProjectStr", HeaderText="收费项目", Align=AlignStyle.Center, Width=0.04 },
  217. new BoundFieldColumn { FieldName="Amount", HeaderText="应收金额(¥)", Align=AlignStyle.Center, Width=0.055 },
  218. new LinkButtonColumn { FieldName="StudentCount", HeaderText="学生人数", Align=AlignStyle.Center, Handle="editStudentCount", Width=0.04 },
  219. new LinkButtonColumn { FieldName="StudentChargeCount", HeaderText="生成人数", Align=AlignStyle.Center, Handle="editStudentChargeCount",Width=0.04 }
  220. },
  221. PageSize = 30,
  222. IsCheckOnSelect = true,
  223. DataSourceUrl = Url.Content("~/ChargeStandard/List"),
  224. ID = "dgChargeStandardList",
  225. IsPagination = true,
  226. IsShowRowNumbers = true,
  227. IsSingleSelect = false
  228. })
  229. </div>
  230. </div>