List.cshtml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  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 cgopGrade = new ComboGridOptions
  51. {
  52. TextField = "GradeID",
  53. ValueField = "GradeID",
  54. ID = "DictionaryGrade",
  55. Name = "DictionaryGrade",
  56. OnSelect = "queryGrade",
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. new BoundFieldColumn { FieldName="GradeID", 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 = "queryLearnSystem",
  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/StudentManage/StudentProfile/StudentEncourage.js" type="text/javascript"></script>
  117. <script type="text/javascript">
  118. var nonSelect = "@DropdownList.SELECT_ALL";
  119. //开始环节状态
  120. var startStatusID = "@BaseExtensions.GetStartFlowStatus("EM_StudentEncourage")";
  121. //已退回环节状态
  122. var sendBackStatusID = "@BaseExtensions.GetSendBackFlowStatus("EM_StudentEncourage")";
  123. //已通过环节状态
  124. var passNoEndStatusID = "@BaseExtensions.GetPassNoEndFlowStatus("EM_StudentEncourage")";
  125. //结束环节状态
  126. var endStatusID = "@BaseExtensions.GetEndFlowStatus("EM_StudentEncourage")";
  127. </script>
  128. }
  129. <div class="easyui-panel" data-options="border:false,fit:true" style="position:relative;">
  130. @Html.Position()
  131. <div class="p_SearchTitle">
  132. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  133. </div>
  134. <form id="formQuery" method="post" action="@Url.Content("~/StudentEncourage/Excel")">
  135. @Html.PositionCondition()
  136. <div class="search_keyword">
  137. <div class="search_input">
  138. <ul>
  139. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  140. <li class="sv">
  141. @Html.DropdownList(new DropdownListOptions
  142. {
  143. ID = "SchoolyearDropdown",
  144. Name = "SchoolyearDropdown",
  145. BindType = DropdownListBindType.SelectAll,
  146. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"),
  147. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  148. OnSelect = "reload"
  149. }, new Dictionary<string, string> { { "data-condition", "dgStudentEncourageList" } })
  150. </li>
  151. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  152. <li class="sv">
  153. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgStudentEncourageList" } })
  154. </li>
  155. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  156. <li class="sv">
  157. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgStudentEncourageList" } })
  158. </li>
  159. <li class="sn" style="padding-left: 5px;">年级:</li>
  160. <li class="sv">
  161. @*@Html.ComboGrid(cgopGrade, new Dictionary<string, string> { { "data-condition", "dgStudentEncourageList" } })*@
  162. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Grade, DropdownListBindType.SelectAll,
  163. new ComboGridOptions
  164. {
  165. ID = "DictionaryGrade",
  166. Name = "DictionaryGrade",
  167. OnSelect = "queryGrade"
  168. }, new Dictionary<string, string> { { "data-condition", "dgStudentEncourageList" } })
  169. </li>
  170. </ul>
  171. <ul>
  172. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  173. <li class="sv">
  174. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgStudentEncourageList" } })
  175. </li>
  176. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  177. <li class="sv">
  178. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  179. new ComboGridOptions
  180. {
  181. ID = "DictionaryEducation",
  182. Name = "DictionaryEducation",
  183. OnSelect = "reload"
  184. }, new Dictionary<string, string> { { "data-condition", "dgStudentEncourageList" } })
  185. </li>
  186. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  187. <li class="sv">
  188. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  189. new ComboGridOptions
  190. {
  191. ID = "DictionaryLearningform",
  192. Name = "DictionaryLearningform",
  193. OnSelect = "reload"
  194. }, new Dictionary<string, string> { { "data-condition", "dgStudentEncourageList" } })
  195. </li>
  196. <li class="sn" style="padding-left: 5px;">学制:</li>
  197. <li class="sv">
  198. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgStudentEncourageList" } })
  199. </li>
  200. </ul>
  201. <ul>
  202. <li class="sn" style="padding-left: 5px;color: red;">奖励名称:</li>
  203. <li class="sv">
  204. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.EM_EncourageName, DropdownListBindType.SelectAll,
  205. new ComboGridOptions
  206. {
  207. ID = "DictionaryEncourageName",
  208. Name = "DictionaryEncourageName",
  209. OnSelect = "reload"
  210. }, new Dictionary<string, string> { { "data-condition", "dgStudentEncourageList" } })
  211. </li>
  212. <li class="sn" style="padding-left: 5px;color: red;">奖励类型:</li>
  213. <li class="sv">
  214. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.EM_EncourageType, DropdownListBindType.SelectAll,
  215. new ComboGridOptions
  216. {
  217. ID = "DictionaryEncourageType",
  218. Name = "DictionaryEncourageType",
  219. OnSelect = "reload"
  220. }, new Dictionary<string, string> { { "data-condition", "dgStudentEncourageList" } })
  221. </li>
  222. @*<li class="sn" style="padding-left: 5px;color: red;">奖励级别:</li>
  223. <li class="sv">
  224. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.EM_EncourageLevel, DropdownListBindType.SelectAll,
  225. new ComboGridOptions
  226. {
  227. ID = "DictionaryEncourageLevel",
  228. Name = "DictionaryEncourageLevel",
  229. OnSelect = "reload"
  230. }, new Dictionary<string, string> { { "data-condition", "dgStudentEncourageList" } })
  231. </li>*@
  232. <li class="sn" style="padding-left: 5px;color:red;">在校状态:</li>
  233. <li class="sv">
  234. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, new DropdownListOptions
  235. {
  236. ID = "DictionaryInschoolStatus",
  237. Name = "DictionaryInschoolStatus",
  238. BindType = DropdownListBindType.SelectAll,
  239. SelectedValue = (int)EMIS.ViewModel.CF_INOrOutSchoolStatus.Yes,
  240. OnSelect = "reload"
  241. }, new Dictionary<string, string> { { "data-condition", "dgStudentEncourageList" } })
  242. </li>
  243. <li class="sn" style="padding-left: 5px; color: red;">状态:</li>
  244. <li class="sv">
  245. @Html.DropdownList(new DropdownListOptions
  246. {
  247. ID = "DictionaryApprovalStatus",
  248. Name = "DictionaryApprovalStatus",
  249. BindType = DropdownListBindType.SelectAll,
  250. //SelectedValue = BaseExtensions.GetStartFlowStatus(typeof(EMIS.Entities.EM_StudentEncourage).Name),
  251. ItemSourceUrl = Url.Content("~/Common/ApproveStatusDropDown?tableName=" + typeof(EMIS.Entities.EM_StudentEncourage).Name),
  252. OnSelect = "reload"
  253. }, new Dictionary<string, string> { { "data-condition", "dgStudentEncourageList" } })
  254. </li>
  255. </ul>
  256. </div>
  257. </div>
  258. </form>
  259. <div class="p_title">
  260. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">学生奖励列表</div>
  261. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  262. </div>
  263. @Html.PositionBatchModify()
  264. <div class="search_list">
  265. @Html.DataGrid(new DataGridOptions
  266. {
  267. Columns = new List<DataGridColumn>()
  268. {
  269. new CheckBoxFieldColumn{ HeaderText="", FieldName="StudentEncourageID" },
  270. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.06 },
  271. new LinkButtonColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center, Handle="edit", Width=0.08 },
  272. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  273. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, OrderFieldName="SexID", Width=0.02 },
  274. //new BoundFieldColumn { FieldName="BirthDate", HeaderText="出生日期", Align=AlignStyle.Center, Width=0.05, Formatter = Formatter.OnlyYearMonthDay },
  275. //new BoundFieldColumn { FieldName="NationName", HeaderText="民族", Align=AlignStyle.Center, OrderFieldName="NationID", Width=0.03 },
  276. //new BoundFieldColumn { FieldName="PoliticsName", HeaderText="政治面貌", Align=AlignStyle.Center, OrderFieldName="PoliticsID", Width=0.04 },
  277. //new BoundFieldColumn { FieldName="GradeID", HeaderText="年级", Align=AlignStyle.Center, OrderFieldName="GradeID", Width=0.03 },
  278. //new BoundFieldColumn { FieldName="ClassNum", HeaderText="班序", Align=AlignStyle.Center, Width=0.02 },
  279. //new BoundFieldColumn { FieldName="ClassmajorNo", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.06 },
  280. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.08, OverflowLength=8 },
  281. //new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, OrderFieldName="StandardID", Width=0.06 },
  282. //new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, OrderFieldName="StandardID", Width=0.08 },
  283. //new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, OrderFieldName="EducationID", Width=0.04 },
  284. //new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, OrderFieldName="LearningformID", Width=0.06 },
  285. //new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  286. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, OrderFieldName="InSchoolStatusID", Width=0.04 },
  287. //new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center, OrderFieldName="StudentStatus", Width=0.04 },
  288. //new BoundFieldColumn { FieldName="CollegeNo", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
  289. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08, OverflowLength=8 },
  290. //new BoundFieldColumn { FieldName="CampusCode", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.05 },
  291. //new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("Campus"), Align=AlignStyle.Center, Width=0.06, OverflowLength=8 },
  292. new BoundFieldColumn { FieldName="EncourageName", HeaderText="奖励名称", Align=AlignStyle.Center, OrderFieldName="EncourageNameID", Width=0.04 },
  293. new BoundFieldColumn { FieldName="EncourageTypeName", HeaderText="奖励类型", Align=AlignStyle.Center, OrderFieldName="EncourageTypeID", Width=0.04 },
  294. new BoundFieldColumn { FieldName="EncourageLevelName", HeaderText="奖励级别", Align=AlignStyle.Center, OrderFieldName="EncourageLevelID", Width=0.04 },
  295. new BoundFieldColumn { FieldName="DocNo", HeaderText="奖励文号", Align=AlignStyle.Center, Width=0.04 },
  296. new BoundFieldColumn { FieldName="Unit", HeaderText="颁奖单位", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  297. new BoundFieldColumn { FieldName="EncourageDate", HeaderText="奖励日期", Align=AlignStyle.Center, Width=0.05, Formatter = Formatter.OnlyYearMonthDay },
  298. new BoundFieldColumn { FieldName="Amount", HeaderText="奖励金额", Align=AlignStyle.Center, Width=0.04 },
  299. new BoundFieldColumn { FieldName="Reason", HeaderText="奖励原因", Align=AlignStyle.Center, Width=0.04, OverflowLength=5 },
  300. new ApproveStatusColumn { FieldName="ApprovalStatusName", TableName=typeof(EMIS.Entities.EM_StudentEncourage).Name, IDFieldName="StudentEncourageID", HeaderText="状态", Align=AlignStyle.Center, Width=0.03 }
  301. },
  302. IsCheckOnSelect = true,
  303. DataSourceUrl = Url.Content("~/StudentEncourage/List"),
  304. ID = "dgStudentEncourageList",
  305. IsPagination = true,
  306. IsShowRowNumbers = true,
  307. IsSingleSelect = false
  308. })
  309. </div>
  310. </div>