List.cshtml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. //院系所
  6. ComboGridOptions cgopCollege = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CollegeID",
  10. OnSelect = "queryClass",
  11. Name = "CollegeDropdown",
  12. ID = "CollegeDropdown",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  19. },
  20. //IsAutoLoad = false,
  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. //IsAutoLoad = false,
  44. IsCheckOnSelect = true,
  45. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  46. IsPagination = true,
  47. IsShowRowNumbers = true,
  48. IsSingleSelect = false,
  49. }
  50. };
  51. //学制
  52. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  53. {
  54. TextField = "LearnSystem",
  55. ValueField = "LearnSystem",
  56. OnSelect = "reload",
  57. Name = "DictionaryLearnSystem",
  58. ID = "DictionaryLearnSystem",
  59. GridOptions = new DataGridOptions
  60. {
  61. Columns = new List<DataGridColumn>()
  62. {
  63. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  64. },
  65. //IsAutoLoad = false,
  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 cgopClassmajor = new ComboGridOptions
  76. {
  77. TextField = "Name",
  78. ValueField = "ClassmajorID",
  79. Name = "ClassmajorDropdown",
  80. ID = "ClassmajorDropdown",
  81. OnSelect = "queryClass",
  82. GridOptions = new DataGridOptions
  83. {
  84. Columns = new List<DataGridColumn>()
  85. {
  86. //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.1 },
  87. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.2 }
  88. },
  89. //IsAutoLoad = false,
  90. IsCheckOnSelect = true,
  91. DataSourceUrl = Url.Content("~/Classmajor/List"),
  92. IsPagination = true,
  93. IsShowRowNumbers = true,
  94. IsSingleSelect = false
  95. }
  96. };
  97. //课程信息
  98. ComboGridOptions cgopCourse = new ComboGridOptions
  99. {
  100. TextField = "CourseName",
  101. ValueField = "CoursematerialID",
  102. ID = "CoursematerialComboGrid",
  103. Name = "CoursematerialComboGrid",
  104. OnSelect = "reload",
  105. GridOptions = new DataGridOptions
  106. {
  107. Columns = new List<DataGridColumn>()
  108. {
  109. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.1 },
  110. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
  111. },
  112. //IsAutoLoad = false,
  113. IsCheckOnSelect = true,
  114. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  115. IsPagination = true,
  116. IsShowRowNumbers = true,
  117. IsSingleSelect = false
  118. }
  119. };
  120. }
  121. @section scripts{
  122. <script src="~/Scripts/Business/RetakeManage/General/RetakePlanResult.js"
  123. type="text/javascript"></script>
  124. <script type="text/javascript">
  125. var nonSelect = "@DropdownList.SELECT_ALL";
  126. //未开放
  127. var CancleStatus = "@((int)EMIS.ViewModel.ER_RetakePlanStatus.NotOpened)";
  128. //已开放
  129. var OpenStatus = "@((int)EMIS.ViewModel.ER_RetakePlanStatus.Opened)";
  130. //已开班
  131. var CreatedStatus = "@((int)EMIS.ViewModel.ER_RetakePlanStatus.Generated)";
  132. </script>
  133. }
  134. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  135. @Html.Position()
  136. <div class="p_SearchTitle">
  137. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  138. 查询条件
  139. </div>
  140. </div>
  141. <form id="formQuery" method="post" action="@Url.Content("~/RetakePlanResult/Excel")">
  142. @Html.PositionCondition()
  143. <div class="search_keyword">
  144. <div class="search_input">
  145. <ul>
  146. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  147. <li class="sv">
  148. @Html.DropdownList(new DropdownListOptions
  149. {
  150. ID = "SchoolYearDropdown",
  151. Name = "SchoolYearDropdown",
  152. BindType = DropdownListBindType.SelectAll,
  153. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  154. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  155. OnSelect = "reload"
  156. }, new Dictionary<string, string> { { "data-condition", "dgRetakePlanResultList" } })
  157. </li>
  158. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  159. <li class="sv">
  160. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgRetakePlanResultList" } })
  161. </li>
  162. <li class="sn" style="padding-left: 5px;">年级:</li>
  163. <li class="sv">
  164. @Html.SchoolYearDropDownList(new DropdownListOptions
  165. {
  166. ID = "SchoolyearDictionaryDropDown",
  167. Name = "SchoolyearDictionaryDropDown",
  168. BindType = DropdownListBindType.SelectAll,
  169. OnSelect = "queryClass"
  170. },
  171. new Dictionary<string, string> { { "data-condition", "dgRetakePlanResultList" } })
  172. </li>
  173. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  174. <li class="sv">
  175. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgRetakePlanResultList" } })
  176. </li>
  177. </ul>
  178. <ul>
  179. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  180. <li class="sv">
  181. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education,
  182. new DropdownListOptions
  183. {
  184. ID = "DictionaryEducation",
  185. Name = "DictionaryEducation",
  186. BindType = DropdownListBindType.SelectAll,
  187. OnSelect = "reload"
  188. },
  189. new Dictionary<string, string> { { "data-condition", "dgRetakePlanResultList" } })
  190. </li>
  191. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  192. <li class="sv">
  193. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform,
  194. new DropdownListOptions
  195. {
  196. ID = "DictionaryLearningform",
  197. Name = "DictionaryLearningform",
  198. BindType = DropdownListBindType.SelectAll,
  199. OnSelect = "reload"
  200. },
  201. new Dictionary<string, string> { { "data-condition", "dgRetakePlanResultList" } })
  202. </li>
  203. <li class="sn" style="padding-left: 5px;">学制:</li>
  204. <li class="sv">
  205. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgRetakePlanResultList" } })
  206. </li>
  207. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  208. <li class="sv">
  209. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgRetakePlanResultList" } })
  210. </li>
  211. </ul>
  212. <ul>
  213. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  214. <li class="sv">
  215. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgRetakePlanResultList" } })
  216. </li>
  217. <li class="sn" style="padding-left: 5px; color: red;">在校状态:</li>
  218. <li class="sv">
  219. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, new DropdownListOptions
  220. {
  221. ID = "DictionaryInschoolStatus",
  222. Name = "DictionaryInschoolStatus",
  223. BindType = DropdownListBindType.SelectAll,
  224. SelectedValue = (int)EMIS.ViewModel.CF_INOrOutSchoolStatus.Yes,
  225. OnSelect = "reload"
  226. },
  227. new Dictionary<string, string> { { "data-condition", "dgRetakePlanResultList" } })
  228. </li>
  229. <li class="sn" style="padding-left: 5px; color: red;">状态:</li>
  230. <li class="sv">
  231. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ER_RetakePlanStatus, new DropdownListOptions
  232. {
  233. ID = "DictionaryRetakePlanStatus",
  234. Name = "DictionaryRetakePlanStatus",
  235. BindType = DropdownListBindType.SelectAll,
  236. OnSelect = "reload"
  237. },
  238. new Dictionary<string, string> { { "data-condition", "dgRetakePlanResultList" } })
  239. </li>
  240. <li class="sn" style="padding-left: 5px; color: red;">报名状态:</li>
  241. <li class="sv">
  242. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
  243. {
  244. ID = "DictionaryGeneralPurpose",
  245. Name = "DictionaryGeneralPurpose",
  246. BindType = DropdownListBindType.SelectAll,
  247. OnSelect = "reload"
  248. },
  249. new Dictionary<string, string> { { "data-condition", "dgRetakePlanResultList" } })
  250. </li>
  251. </ul>
  252. </div>
  253. </div>
  254. </form>
  255. <div class="p_title">
  256. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  257. 重修名单列表
  258. </div>
  259. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  260. </div>
  261. @*@Html.PositionBatchModify()*@
  262. <div class="search_list">
  263. @Html.DataGrid(new DataGridOptions
  264. {
  265. Columns = new List<DataGridColumn>()
  266. {
  267. new CheckBoxFieldColumn{ HeaderText="", FieldName="RetakePlanStudentID" },
  268. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="重修学年学期", Align=AlignStyle.Center, Width=0.08 },
  269. new BoundFieldColumn { FieldName="ClassName", HeaderText="重修班级名称", Align=AlignStyle.Center, Width=0.08 },
  270. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.1 },
  271. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  272. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 },
  273. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
  274. new BoundFieldColumn { FieldName="CourseTypeDesc", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.05 },
  275. new BoundFieldColumn { FieldName="CourseCredit", HeaderText="课程学分", Align=AlignStyle.Center, Width=0.04 },
  276. //new BoundFieldColumn { FieldName="SchoolyearNumDesc", HeaderText="开课学年", Align=AlignStyle.Center, Width=0.04 },
  277. new BoundFieldColumn { FieldName="StarttermDesc", HeaderText="开课学期", Align=AlignStyle.Center, Width=0.04 },
  278. //new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.08 },
  279. //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  280. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.04 },
  281. new BoundFieldColumn { FieldName="RecordStatusName", HeaderText="状态", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedtColumn" },
  282. new BoundFieldColumn { FieldName="ApplyStatusName", HeaderText="报名状态", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedtColumn" }
  283. },
  284. PageSize = 20,
  285. IsCheckOnSelect = true,
  286. DataSourceUrl = Url.Content("~/RetakePlanResult/List"),
  287. ID = "dgRetakePlanResultList",
  288. IsPagination = true,
  289. IsShowRowNumbers = true,
  290. IsSingleSelect = false
  291. })
  292. </div>
  293. </div>