List.cshtml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. @model EMIS.ViewModel.RetakeManage.RetakeStudentListView
  2. @using Bowin.Web.Controls.Mvc;
  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. //IsAutoLoad = false,
  22. IsCheckOnSelect = true,
  23. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false,
  27. }
  28. };
  29. //开课教研室
  30. ComboGridOptions cgopDepartment = new ComboGridOptions
  31. {
  32. ID = "DepartmentDropdown",
  33. Name = "DepartmentDropdown",
  34. TextField = "Name",
  35. ValueField = "DepartmentID",
  36. OnSelect = "reload",
  37. GridOptions = new DataGridOptions
  38. {
  39. Columns = new List<DataGridColumn>()
  40. {
  41. //new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.1 },
  42. new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center, Width=0.2 }
  43. },
  44. //IsAutoLoad = false,
  45. IsCheckOnSelect = true,
  46. DataSourceUrl = Url.Content("~/Department/List"),
  47. IsPagination = true,
  48. IsShowRowNumbers = true,
  49. IsSingleSelect = false,
  50. }
  51. };
  52. //专业名称
  53. ComboGridOptions cgopStandard = new ComboGridOptions
  54. {
  55. TextField = "StandardName",
  56. ValueField = "StandardID",
  57. OnSelect = "queryStandard",
  58. Name = "StandardDictionaryDropDown",
  59. ID = "StandardDictionaryDropDown",
  60. GridOptions = new DataGridOptions
  61. {
  62. Columns = new List<DataGridColumn>()
  63. {
  64. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  65. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  66. },
  67. //IsAutoLoad = false,
  68. IsCheckOnSelect = true,
  69. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  70. IsPagination = true,
  71. IsShowRowNumbers = true,
  72. IsSingleSelect = false,
  73. }
  74. };
  75. //学制
  76. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  77. {
  78. TextField = "LearnSystem",
  79. ValueField = "LearnSystem",
  80. OnSelect = "reload",
  81. Name = "DictionaryLearnSystem",
  82. ID = "DictionaryLearnSystem",
  83. GridOptions = new DataGridOptions
  84. {
  85. Columns = new List<DataGridColumn>()
  86. {
  87. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  88. },
  89. //IsAutoLoad = false,
  90. IsCheckOnSelect = true,
  91. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  92. IsPagination = true,
  93. IsShowRowNumbers = true,
  94. IsSingleSelect = false,
  95. IsShowHeader = false
  96. }
  97. };
  98. //班级信息
  99. ComboGridOptions cgopClassmajor = new ComboGridOptions
  100. {
  101. TextField = "Name",
  102. ValueField = "ClassmajorID",
  103. Name = "ClassmajorDropdown",
  104. ID = "ClassmajorDropdown",
  105. OnSelect = "queryClass",
  106. GridOptions = new DataGridOptions
  107. {
  108. Columns = new List<DataGridColumn>()
  109. {
  110. //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.1 },
  111. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.2 }
  112. },
  113. //IsAutoLoad = false,
  114. IsCheckOnSelect = true,
  115. DataSourceUrl = Url.Content("~/Classmajor/List"),
  116. IsPagination = true,
  117. IsShowRowNumbers = true,
  118. IsSingleSelect = false
  119. }
  120. };
  121. //课程信息
  122. ComboGridOptions cgopCourse = new ComboGridOptions
  123. {
  124. TextField = "CourseName",
  125. ValueField = "CoursematerialID",
  126. ID = "CoursematerialComboGrid",
  127. Name = "CoursematerialComboGrid",
  128. OnSelect = "reload",
  129. GridOptions = new DataGridOptions
  130. {
  131. Columns = new List<DataGridColumn>()
  132. {
  133. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.1 },
  134. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
  135. },
  136. //IsAutoLoad = false,
  137. //OnLoadSuccessFun = "queryClass",
  138. IsCheckOnSelect = true,
  139. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  140. IsPagination = true,
  141. IsShowRowNumbers = true,
  142. IsSingleSelect = false
  143. }
  144. };
  145. }
  146. @section scripts{
  147. <script src="../../Scripts/Business/RetakeManage/General/RetakePlanPrescanGeneral.js"
  148. type="text/javascript"></script>
  149. <script type="text/javascript">
  150. var nonSelect = "@DropdownList.SELECT_ALL";
  151. </script>
  152. }
  153. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  154. @Html.Position()
  155. <div class="p_SearchTitle">
  156. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  157. 查询条件
  158. </div>
  159. </div>
  160. <form id="formQuery" method="post" action="@Url.Content("~/RetakePlanPrescanGeneral/Excel")">
  161. @Html.PositionCondition()
  162. <div class="search_keyword">
  163. <div class="search_input">
  164. <ul>
  165. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  166. <li class="sv">
  167. @Html.DropdownList(new DropdownListOptions
  168. {
  169. ID = "SchoolYearDropdown",
  170. Name = "SchoolYearDropdown",
  171. BindType = DropdownListBindType.SelectAll,
  172. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  173. OnSelect = "reload"
  174. }, new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentList" } })
  175. </li>
  176. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  177. <li class="sv">
  178. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentList" } })
  179. </li>
  180. <li class="sn" style="padding-left: 5px;">开课教研室:</li>
  181. <li class="sv">
  182. @Html.ComboGrid(cgopDepartment, new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentList" } })
  183. </li>
  184. <li class="sn" style="padding-left: 5px;">年级:</li>
  185. <li class="sv">
  186. @Html.SchoolYearDropDownList(new DropdownListOptions
  187. {
  188. ID = "SchoolyearDictionaryDropDown",
  189. Name = "SchoolyearDictionaryDropDown",
  190. BindType = DropdownListBindType.SelectAll,
  191. OnSelect = "queryClass"
  192. },
  193. new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentList" } })
  194. </li>
  195. </ul>
  196. <ul>
  197. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  198. <li class="sv">
  199. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentList" } })
  200. </li>
  201. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  202. <li class="sv">
  203. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education,
  204. new DropdownListOptions
  205. {
  206. ID = "DictionaryEducation",
  207. Name = "DictionaryEducation",
  208. BindType = DropdownListBindType.SelectAll,
  209. OnSelect = "reload"
  210. },
  211. new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentList" } })
  212. </li>
  213. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  214. <li class="sv">
  215. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform,
  216. new DropdownListOptions
  217. {
  218. ID = "DictionaryLearningform",
  219. Name = "DictionaryLearningform",
  220. BindType = DropdownListBindType.SelectAll,
  221. OnSelect = "reload"
  222. },
  223. new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentList" } })
  224. </li>
  225. <li class="sn" style="padding-left: 5px;">学制:</li>
  226. <li class="sv">
  227. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentList" } })
  228. </li>
  229. </ul>
  230. <ul>
  231. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  232. <li class="sv">
  233. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentList" } })
  234. </li>
  235. <li class="sn" style="padding-left: 5px; color: red;">在校状态:</li>
  236. <li class="sv">
  237. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, new DropdownListOptions
  238. {
  239. ID = "DictionaryInschoolStatus",
  240. Name = "DictionaryInschoolStatus",
  241. BindType = DropdownListBindType.SelectAll,
  242. SelectedValue = (int)EMIS.ViewModel.CF_INOrOutSchoolStatus.Yes,
  243. OnSelect = "reload",
  244. OnLoadSuccess = "reload"
  245. },
  246. new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentList" } })
  247. </li>
  248. <li class="sn" style="padding-left: 5px;">考试性质:</li>
  249. <li class="sv">
  250. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_ExamsCategory, new DropdownListOptions
  251. {
  252. ID = "DictionaryExamsCategory",
  253. Name = "DictionaryExamsCategory",
  254. BindType = DropdownListBindType.SelectAll,
  255. OnSelect = "reload"
  256. }, new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentList" } })
  257. </li>
  258. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  259. <li class="sv">
  260. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentList" } })
  261. </li>
  262. </ul>
  263. <ul>
  264. <li class="sn" style="padding-left: 5px; color: red;">课程类型:</li>
  265. <li class="sv">
  266. @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_CourseType, new ListControlOptions()
  267. {
  268. ID = "CourseTypeID",
  269. Name = "CourseTypeID",
  270. TextField = "Name",
  271. ValueField = "Value",
  272. ColumnCount = 12,
  273. SelectedValueUrl = @Url.Content("~/SpecialityScoreSum/GetCourseType"),
  274. //OnClick = "reload",
  275. Required = true
  276. }, new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentList" } })
  277. </li>
  278. </ul>
  279. </div>
  280. </div>
  281. </form>
  282. <div class="p_title">
  283. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  284. 学生预查列表</div>
  285. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  286. </div>
  287. @*@Html.PositionBatchModify()*@
  288. <div class="search_list">
  289. @Html.DataGrid(new DataGridOptions
  290. {
  291. Columns = new List<DataGridColumn>()
  292. {
  293. new CheckBoxFieldColumn{ HeaderText="", FieldName="FinallyScoreID" },
  294. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.1 },
  295. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  296. new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.12 },
  297. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08 },
  298. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 },
  299. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
  300. new BoundFieldColumn { FieldName="CourseTypeDesc", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.05 },
  301. new BoundFieldColumn { FieldName="CourseCredit", HeaderText="课程学分", Align=AlignStyle.Center, Width=0.04 },
  302. new BoundFieldColumn { FieldName="ExamsCategoryDesc", HeaderText="考试性质", Align=AlignStyle.Center, Width=0.04 },
  303. new BoundFieldColumn { FieldName="ExamsStateDesc", HeaderText="考试状态", Align=AlignStyle.Center, Width=0.04 },
  304. //new BoundFieldColumn { FieldName="SchoolyearNumDesc", HeaderText="开课学年", Align=AlignStyle.Center, Width=0.04 },
  305. new BoundFieldColumn { FieldName="StarttermDesc", HeaderText="开课学期", Align=AlignStyle.Center, Width=0.04 },
  306. new BoundFieldColumn { FieldName="TotalScore", HeaderText="总成绩", Align=AlignStyle.Center, Width=0.03 },
  307. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.08 },
  308. //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  309. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.04 }
  310. },
  311. PageSize = 50,
  312. IsAutoLoad = false,
  313. IsCheckOnSelect = true,
  314. DataSourceUrl = Url.Content("~/RetakePlanPrescanGeneral/List"),
  315. ID = "dgRetakePlanStudentList",
  316. IsPagination = true,
  317. IsShowRowNumbers = true,
  318. IsSingleSelect = false
  319. })
  320. </div>
  321. </div>