List.cshtml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  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 cgopLearnSystem = new ComboGridOptions
  51. {
  52. TextField = "LearnSystem",
  53. ValueField = "LearnSystem",
  54. ID = "DictionaryLearnSystem",
  55. Name = "DictionaryLearnSystem",
  56. OnSelect = "queryLearnSystem",
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  62. },
  63. IsCheckOnSelect = true,
  64. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  65. IsPagination = true,
  66. IsShowRowNumbers = true,
  67. IsSingleSelect = false,
  68. IsShowHeader = false
  69. }
  70. };
  71. //年级专业
  72. ComboGridOptions cgopGrademajor = new ComboGridOptions
  73. {
  74. TextField = "Name",
  75. ValueField = "GrademajorID",
  76. Name = "GrademajorComboGrid",
  77. ID = "GrademajorComboGrid",
  78. OnSelect = "queryGrademajor",
  79. GridOptions = new DataGridOptions
  80. {
  81. Columns = new List<DataGridColumn>()
  82. {
  83. new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center, Width=0.1 },
  84. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.3 }
  85. },
  86. PageSize = 5,
  87. IsCheckOnSelect = true,
  88. DataSourceUrl = Url.Content("~/Grademajor/List"),
  89. IsPagination = true,
  90. IsShowRowNumbers = true,
  91. IsSingleSelect = false
  92. }
  93. };
  94. //班级信息
  95. ComboGridOptions cgopClassmajor = new ComboGridOptions
  96. {
  97. TextField = "Name",
  98. ValueField = "ClassmajorID",
  99. Name = "ClassmajorComboGrid",
  100. ID = "ClassmajorComboGrid",
  101. OnSelect = "reload",
  102. GridOptions = new DataGridOptions
  103. {
  104. Columns = new List<DataGridColumn>()
  105. {
  106. new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Width=0.12, Align=AlignStyle.Center },
  107. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Width=0.3, Align=AlignStyle.Center }
  108. },
  109. PageSize = 5,
  110. IsCheckOnSelect = true,
  111. DataSourceUrl = Url.Content("~/Classmajor/List"),
  112. IsPagination = true,
  113. IsShowRowNumbers = true,
  114. IsSingleSelect = false
  115. }
  116. };
  117. }
  118. @section scripts{
  119. <script src="~/Scripts/Business/EnrollManage/NewStudentManage/NewStudentEnter.js" type="text/javascript"></script>
  120. <script type="text/javascript">
  121. var nonSelect = "@DropdownList.SELECT_ALL";
  122. //未提交
  123. var notSubmitted = "@((int)EMIS.ViewModel.CF_NewStudentEnterStatus.NotSubmitted)";
  124. //已提交
  125. var submitted = "@((int)EMIS.ViewModel.CF_NewStudentEnterStatus.Submitted)";
  126. </script>
  127. }
  128. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  129. @Html.Position()
  130. <div class="p_SearchTitle">
  131. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  132. </div>
  133. <form id="formQuery" method="post" action="@Url.Content("~/NewStudentEnter/Excel")">
  134. @Html.PositionCondition()
  135. <div class="search_keyword">
  136. <div class="search_input">
  137. <ul>
  138. <li class="sn">@EMIS.Utility.RSL.Get("Campus"):</li>
  139. <li class="sv">
  140. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgNewStudentEnterList" } })
  141. </li>
  142. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  143. <li class="sv">
  144. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgNewStudentEnterList" } })
  145. </li>
  146. <li class="sn" style="padding-left: 5px;">年级:</li>
  147. <li class="sv">
  148. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Grade, DropdownListBindType.SelectAll,
  149. new ComboGridOptions
  150. {
  151. ID = "DictionaryGrade",
  152. Name = "DictionaryGrade",
  153. //SelectedValue = BaseExtensions.GetCurrentYearID(),
  154. OnSelect = "queryGrade"
  155. }, new Dictionary<string, string> { { "data-condition", "dgNewStudentEnterList" } })
  156. </li>
  157. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  158. <li class="sv">
  159. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions
  160. {
  161. ID = "DictionaryStandard",
  162. Name = "DictionaryStandard",
  163. OnSelect = "queryStandard",
  164. GridOptions = new DataGridOptions
  165. {
  166. Columns = new List<DataGridColumn>()
  167. {
  168. new BoundFieldColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  169. new BoundFieldColumn { FieldName="Name", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  170. }
  171. }
  172. }, new Dictionary<string, string> { { "data-condition", "dgNewStudentEnterList" } })
  173. </li>
  174. </ul>
  175. <ul>
  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", "dgNewStudentEnterList" } })
  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", "dgNewStudentEnterList" } })
  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", "dgNewStudentEnterList" } })
  199. </li>
  200. <li class="sn" style="padding-left: 5px;color:red;">年级专业:</li>
  201. <li class="sv">
  202. @Html.ComboGrid(cgopGrademajor, new Dictionary<string, string> { { "data-condition", "dgNewStudentEnterList" } })
  203. </li>
  204. </ul>
  205. <ul>
  206. <li class="sn" style="padding-left: 5px;color:red;">班级信息:</li>
  207. <li class="sv">
  208. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgNewStudentEnterList" } })
  209. </li>
  210. <li class="sn" style="padding-left:5px;color:red;">标识状态:</li>
  211. <li class="sv">
  212. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
  213. {
  214. ID = "DictionaryGeneralPurpose",
  215. Name = "DictionaryGeneralPurpose",
  216. BindType = DropdownListBindType.SelectAll,
  217. SelectedValue = (int)EMIS.ViewModel.CF_GeneralPurpose.IsNo,
  218. OnSelect = "reload"
  219. }, new Dictionary<string, string> { { "data-condition", "dgNewStudentEnterList" } })
  220. </li>
  221. <li class="sn" style="padding-left:5px;color:red;">学号状态:</li>
  222. <li class="sv">
  223. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralExist, new DropdownListOptions
  224. {
  225. ID = "DictionaryGeneralExist",
  226. Name = "DictionaryGeneralExist",
  227. BindType = DropdownListBindType.SelectAll,
  228. OnSelect = "reload"
  229. }, new Dictionary<string, string> { { "data-condition", "dgNewStudentEnterList" } })
  230. </li>
  231. <li class="sn" style="padding-left:5px;color:red;">状态:</li>
  232. <li class="sv">
  233. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_NewStudentEnterStatus, new DropdownListOptions
  234. {
  235. ID = "DictionaryNewStudentEnterStatus",
  236. Name = "DictionaryNewStudentEnterStatus",
  237. BindType = DropdownListBindType.SelectAll,
  238. SelectedValue = (int)EMIS.ViewModel.CF_NewStudentEnterStatus.NotSubmitted,
  239. OnSelect = "reload"
  240. }, new Dictionary<string, string> { { "data-condition", "dgNewStudentEnterList" } })
  241. </li>
  242. </ul>
  243. </div>
  244. </div>
  245. </form>
  246. <div class="p_title">
  247. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">录取名单列表</div>
  248. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  249. </div>
  250. @Html.PositionBatchModify()
  251. <div class="search_list">
  252. @Html.DataGrid(new DataGridOptions
  253. {
  254. Columns = new List<DataGridColumn>()
  255. {
  256. new CheckBoxFieldColumn{ HeaderText="NewStudentID", FieldName="NewStudentID" },
  257. new LinkButtonColumn { FieldName="ExamineeNum", HeaderText="考生号", Align=AlignStyle.Center, Handle="detail", Width=0.12 },
  258. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  259. new BoundFieldColumn { FieldName="GradeID", HeaderText="年级", Align=AlignStyle.Center, OrderFieldName="GradeID", Width=0.03 },
  260. new BoundFieldColumn { FieldName="SemesterName", HeaderText="学期", Align=AlignStyle.Center, OrderFieldName="SemesterID", Width=0.03 },
  261. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, OrderFieldName="StandardCode", Width=0.05 },
  262. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, OrderFieldName="StandardName", Width=0.08, OverflowLength=8 },
  263. new BoundFieldColumn { FieldName="EducationName", HeaderText=@EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, OrderFieldName="EducationID", Width=0.05 },
  264. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, OrderFieldName="LearningformID", Width=0.05 },
  265. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center,Width=0.03 },
  266. new BoundFieldColumn { FieldName="PhotoHasValueName", HeaderText="照片", Align=AlignStyle.Center, OrderFieldName="PhotoHasValue", Width=0.03, CustomFormatFun="SetRedColumn" },
  267. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08, OverflowLength=8 },
  268. new BoundFieldColumn { FieldName="ClassmajorNo", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.08, CustomFormatFun="SetRedColumn" },
  269. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.08, CustomFormatFun="SetRedColumn" , OverflowLength=10 },
  270. new BoundFieldColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center, Width=0.1, CustomFormatFun="SetRedColumn" , OverflowLength=15 },
  271. new BoundFieldColumn { FieldName="RecordStatusName", HeaderText="状态", Align=AlignStyle.Center, OrderFieldName="RecordStatus", Width=0.04, CustomFormatFun="SetRedColumn"}
  272. },
  273. CustomerRowStyleFun = "SetRowBackgroundGrid",
  274. IsCheckOnSelect = true,
  275. DataSourceUrl = Url.Content("~/NewStudentEnter/List"),
  276. ID = "dgNewStudentEnterList",
  277. IsPagination = true,
  278. IsShowRowNumbers = true,
  279. IsSingleSelect = false
  280. })
  281. </div>
  282. </div>