AddList.cshtml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. @model EMIS.ViewModel.ChargeManage.ChargeSituation.ChargeStandardView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @using EMIS.Utility;
  5. @{
  6. ViewBag.Title = "AddList";
  7. //院系所
  8. ComboGridOptions cgopCollege = new ComboGridOptions
  9. {
  10. TextField = "Name",
  11. ValueField = "CollegeID",
  12. OnSelect = "queryClass",
  13. ID = "CollegeDropdown",
  14. Name = "CollegeDropdown",
  15. GridOptions = new DataGridOptions
  16. {
  17. Columns = new List<DataGridColumn>()
  18. {
  19. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  20. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  21. },
  22. IsCheckOnSelect = true,
  23. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false,
  27. }
  28. };
  29. //专业名称
  30. ComboGridOptions cgopStandard = new ComboGridOptions
  31. {
  32. TextField = "StandardName",
  33. ValueField = "StandardID",
  34. OnSelect = "queryClass",
  35. Name = "DictionaryStandard",
  36. ID = "DictionaryStandard",
  37. GridOptions = new DataGridOptions
  38. {
  39. Columns = new List<DataGridColumn>()
  40. {
  41. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center },
  42. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  43. },
  44. IsCheckOnSelect = true,
  45. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  46. IsPagination = true,
  47. IsShowRowNumbers = true,
  48. IsSingleSelect = false,
  49. IsShowHeader = false
  50. }
  51. };
  52. //学制
  53. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  54. {
  55. TextField = "LearnSystem",
  56. ValueField = "LearnSystem",
  57. OnSelect = "reload",
  58. ID = "DictionaryLearnSystem",
  59. Name = "DictionaryLearnSystem",
  60. GridOptions = new DataGridOptions
  61. {
  62. Columns = new List<DataGridColumn>()
  63. {
  64. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  65. },
  66. IsCheckOnSelect = true,
  67. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  68. IsPagination = true,
  69. IsShowRowNumbers = true,
  70. IsSingleSelect = false,
  71. IsShowHeader = false
  72. }
  73. };
  74. //收费项目
  75. ComboGridOptions cgopChargeProject = new ComboGridOptions
  76. {
  77. TextField = "ChrageProjectName",
  78. ValueField = "ChargeProjectID",
  79. ID = "ChargeProjectComboGrid",
  80. Name = "ChargeProjectComboGrid",
  81. OnSelect = "reload",
  82. GridOptions = new DataGridOptions
  83. {
  84. Columns = new List<DataGridColumn>()
  85. {
  86. new BoundFieldColumn { FieldName="ChrageProjectName", HeaderText="收费项目", Align=AlignStyle.Center }
  87. },
  88. IsCheckOnSelect = true,
  89. DataSourceUrl = Url.Content("~/ChargeProject/List"),
  90. IsPagination = true,
  91. IsShowRowNumbers = true,
  92. IsSingleSelect = false
  93. }
  94. };
  95. }
  96. @section scripts{
  97. <script src="~/Scripts/Business/ChargeManage/ChargeSituation/ChargeStandardAdd.js"
  98. type="text/javascript"></script>
  99. <script type="text/javascript">
  100. var nonSelect = "@DropdownList.SELECT_ALL";
  101. </script>
  102. }
  103. <style type="text/css">
  104. #chargeStandardTable
  105. {
  106. width: 100%;
  107. border: 0px none;
  108. }
  109. #chargeStandardTable tr
  110. {
  111. min-height: 30px;
  112. }
  113. </style>
  114. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  115. @using (Ajax.BeginForm(new AjaxOptions
  116. {
  117. //新增成功后不关闭弹出页面(OnSuccess = "EMISFunction.FormSuccessNoClose")
  118. OnSuccess = "formSuccessReloadNoClose",
  119. OnBegin = "EMISFunction.FormSubmit",
  120. OnComplete = "EMISFunction.FormComplete"
  121. }))
  122. {
  123. <div class="p_SearchTitle">
  124. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  125. 查询条件</div>
  126. </div>
  127. @Html.PositionCondition("GradeSpecialtySelect")
  128. <div class="search_keyword">
  129. <div class="search_input">
  130. <ul>
  131. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  132. <li class="sv">
  133. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgAddChargeStandardList" } })
  134. </li>
  135. <li class="sn" style="padding-left: 5px;">年级:</li>
  136. <li class="sv">
  137. @Html.SchoolYearDropDownList(
  138. new DropdownListOptions
  139. {
  140. ID = "DictionarySchoolyear",
  141. Name = "DictionarySchoolyear",
  142. BindType = DropdownListBindType.SelectAll,
  143. OnSelect = "queryClass",
  144. OnLoadSuccess = "reload"
  145. },
  146. new Dictionary<string, string> { { "data-condition", "dgAddChargeStandardList" } })
  147. </li>
  148. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  149. <li class="sv">
  150. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgAddChargeStandardList" } })
  151. </li>
  152. </ul>
  153. <ul>
  154. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  155. <li class="sv">
  156. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions
  157. {
  158. ID = "DictionaryEducation",
  159. Name = "DictionaryEducation",
  160. BindType = DropdownListBindType.SelectAll,
  161. OnSelect = "QueryEducationDropdownList"
  162. },
  163. new Dictionary<string, string> { { "data-condition", "dgAddChargeStandardList" } })
  164. </li>
  165. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  166. <li class="sv">
  167. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform, new DropdownListOptions
  168. {
  169. ID = "DictionaryLearningform",
  170. Name = "DictionaryLearningform",
  171. BindType = DropdownListBindType.SelectAll,
  172. OnSelect = "QueryLearningformDropdownList"
  173. },
  174. new Dictionary<string, string> { { "data-condition", "dgAddChargeStandardList" } })
  175. </li>
  176. <li class="sn" style="padding-left: 5px;">学制:</li>
  177. <li class="sv">
  178. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgAddChargeStandardList" } })
  179. </li>
  180. </ul>
  181. <ul>
  182. <li class="sn" style="padding-left: 5px;">在校状态:</li>
  183. <li class="sv">
  184. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, x => x.InSchoolStatus, new DropdownListOptions
  185. {
  186. ID = "DictionaryInschoolStatus",
  187. Name = "DictionaryInschoolStatus",
  188. BindType = DropdownListBindType.SelectAll,
  189. OnSelect = "reload"
  190. },
  191. new Dictionary<string, string> { { "data-condition", "dgAddChargeStandardList" } })
  192. </li>
  193. <li class="sn" style="padding-left: 5px; color: red;">缴费学年:</li>
  194. <li class="sv">
  195. @Html.SchoolYearDropDownListFor(x => x.ChargeYear, new DropdownListOptions
  196. {
  197. ID = "ChargeYearDropDown",
  198. Name = "ChargeYearDropDown",
  199. OnSelect = "queryClass",
  200. BindType = DropdownListBindType.None
  201. },
  202. new Dictionary<string, string> { { "data-condition", "dgAddChargeStandardList" } })
  203. </li>
  204. <li class="sn" style="padding-left: 5px;color: red;">收费项目:</li>
  205. <li class="sv">
  206. @Html.ComboGridFor(x => x.ChargeProjectID, cgopChargeProject, new Dictionary<string, string> { { "data-condition", "dgAddChargeStandardList" } })
  207. </li>
  208. @*<li class="sn" style="padding-left: 5px;color: red;">应收金额(¥):</li>
  209. <li class="sv">
  210. @Html.TextBoxFor(x => x.Amount)
  211. </li>*@
  212. </ul>
  213. </div>
  214. </div>
  215. <div class="p_title">
  216. <div style="float: left; margin-left: 6px; line-height: 30px; font-size: 12px;">
  217. <div style="float: left;color: red;font-weight: bold;" id="amountDiv">
  218. @Html.LabelFor(x => x.Amount):
  219. @Html.TextBoxFor(x => x.Amount)*
  220. </div>
  221. </div>
  222. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("AddList")</div>
  223. </div>
  224. <div class="search_list">
  225. @Html.Hidden("gradeMajorIDs")
  226. <table cellpadding="0" cellspacing="0" id="chargeStandardTable">
  227. <tr>
  228. <td>
  229. @Html.DataGrid(new DataGridOptions
  230. {
  231. Columns = new List<DataGridColumn>()
  232. {
  233. new CheckBoxFieldColumn{ HeaderText="", FieldName="GrademajorID" },
  234. new BoundFieldColumn { FieldName="Code", HeaderText="年级专业编号", Align=AlignStyle.Center, Width=0.08 },
  235. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.12 },
  236. //new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 },
  237. //new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  238. //new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.08 },
  239. new BoundFieldColumn { FieldName="EducationName", HeaderText=@EMIS.Utility.RSL.Get("EducationID"), OrderFieldName="EducationID", Align=AlignStyle.Center, Width=0.04 },
  240. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", OrderFieldName="LearningformID", Align=AlignStyle.Center, Width=0.04 },
  241. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  242. //new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="入学学期", Align=AlignStyle.Center, Width=0.04 },
  243. //new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.08 },
  244. new BoundFieldColumn { FieldName="CollegeCode", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
  245. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  246. new BoundFieldColumn { FieldName="StudentCount", HeaderText="人数", Align=AlignStyle.Center, Width=0.03 }
  247. },
  248. IsCheckOnSelect = true,
  249. DataSourceUrl = Url.Content("~/ChargeStandard/GradeMajorList"),
  250. ID = "dgAddChargeStandardList",
  251. IsPagination = true,
  252. IsShowRowNumbers = true,
  253. IsSingleSelect = false
  254. })
  255. </td>
  256. </tr>
  257. </table>
  258. </div>
  259. }
  260. </div>