List.cshtml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  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 cgopDepartment = new ComboGridOptions
  51. {
  52. TextField = "Name",
  53. ValueField = "DepartmentID",
  54. ID = "DepartmentDropdown",
  55. Name = "DepartmentDropdown",
  56. OnSelect = "reload",
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. //new LinkButtonColumn { FieldName="No", HeaderText="开课教研室代码", Align=AlignStyle.Center, Width=0.1 },
  62. new BoundFieldColumn { FieldName="Name", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.2 }
  63. },
  64. IsCheckOnSelect = true,
  65. DataSourceUrl = Url.Content("~/Department/List"),
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false
  69. }
  70. };
  71. //年级
  72. ComboGridOptions cgopSchoolyear = new ComboGridOptions
  73. {
  74. TextField = "GradeID",
  75. ValueField = "GradeID",
  76. ID = "DictionarySchoolyear",
  77. Name = "DictionarySchoolyear",
  78. OnSelect = "querySchoolyear",
  79. GridOptions = new DataGridOptions
  80. {
  81. Columns = new List<DataGridColumn>()
  82. {
  83. new BoundFieldColumn { FieldName="GradeID", HeaderText="年级", Align=AlignStyle.Center, Width=0.1 }
  84. },
  85. IsCheckOnSelect = true,
  86. DataSourceUrl = Url.Content("~/Grademajor/GradeBindComboGridOptions"),
  87. IsPagination = true,
  88. IsShowRowNumbers = true,
  89. IsSingleSelect = false,
  90. }
  91. };
  92. //专业名称
  93. ComboGridOptions cgopStandard = new ComboGridOptions
  94. {
  95. TextField = "StandardName",
  96. ValueField = "StandardID",
  97. ID = "DictionaryStandard",
  98. Name = "DictionaryStandard",
  99. OnSelect = "queryStandard",
  100. GridOptions = new DataGridOptions
  101. {
  102. Columns = new List<DataGridColumn>()
  103. {
  104. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  105. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  106. },
  107. IsCheckOnSelect = true,
  108. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  109. IsPagination = true,
  110. IsShowRowNumbers = true,
  111. IsSingleSelect = false,
  112. }
  113. };
  114. //学制
  115. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  116. {
  117. TextField = "LearnSystem",
  118. ValueField = "LearnSystem",
  119. ID = "DictionaryLearnSystem",
  120. Name = "DictionaryLearnSystem",
  121. OnSelect = "reload",
  122. GridOptions = new DataGridOptions
  123. {
  124. Columns = new List<DataGridColumn>()
  125. {
  126. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  127. },
  128. IsCheckOnSelect = true,
  129. DataSourceUrl = Url.Content("~/Facultymajor/LearnSystem"),
  130. IsPagination = true,
  131. IsShowRowNumbers = true,
  132. IsSingleSelect = false,
  133. IsShowHeader = false
  134. }
  135. };
  136. //年级专业
  137. ComboGridOptions cgopGrademajor = new ComboGridOptions
  138. {
  139. TextField = "Name",
  140. ValueField = "GrademajorID",
  141. Name = "GrademajorComboGrid",
  142. ID = "GrademajorComboGrid",
  143. OnSelect = "queryGrademajor",
  144. GridOptions = new DataGridOptions
  145. {
  146. Columns = new List<DataGridColumn>()
  147. {
  148. new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center, Width=0.1 },
  149. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.3 }
  150. },
  151. PageSize = 5,
  152. IsCheckOnSelect = true,
  153. DataSourceUrl = Url.Content("~/Grademajor/List"),
  154. IsPagination = true,
  155. IsShowRowNumbers = true,
  156. IsSingleSelect = false
  157. }
  158. };
  159. //课程信息
  160. ComboGridOptions cgopCourse = new ComboGridOptions
  161. {
  162. TextField = "CourseName",
  163. ValueField = "CoursematerialID",
  164. ID = "CourseComboGrid",
  165. Name = "CourseComboGrid",
  166. OnSelect = "reload",
  167. GridOptions = new DataGridOptions
  168. {
  169. Columns = new List<DataGridColumn>()
  170. {
  171. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.08 },
  172. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.15 }
  173. },
  174. PageSize = 5,
  175. IsCheckOnSelect = true,
  176. DataSourceUrl = Url.Content("~/Coursematerial/List"),
  177. IsPagination = true,
  178. IsShowRowNumbers = true,
  179. IsSingleSelect = false
  180. }
  181. };
  182. }
  183. @section scripts{
  184. <script src="~/Scripts/Business/CultureplanManage/PlanApplicationApprove.js" type="text/javascript"></script>
  185. <script type="text/javascript">
  186. var nonSelect = "@DropdownList.SELECT_ALL";
  187. </script>
  188. }
  189. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  190. @Html.Position()
  191. <div class="p_SearchTitle">
  192. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  193. 查询条件</div>
  194. </div>
  195. <form id="formQuery" method="post" action="@Url.Content("~/PlanApplicationApprove/Excel")">
  196. @Html.PositionCondition()
  197. <div class="search_keyword">
  198. <div class="search_input">
  199. <ul>
  200. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  201. <li class="sv">
  202. @Html.DropdownList(new DropdownListOptions
  203. {
  204. ID = "SchoolyearDropdown",
  205. Name = "SchoolyearDropdown",
  206. BindType = DropdownListBindType.SelectAll,
  207. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"),
  208. //SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  209. OnSelect = "reload"
  210. }, new Dictionary<string, string> { { "data-condition", "dgPlanApplicationApproveList" } })
  211. </li>
  212. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  213. <li class="sv">
  214. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgPlanApplicationApproveList" } })
  215. </li>
  216. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  217. <li class="sv">
  218. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgPlanApplicationApproveList" } })
  219. </li>
  220. <li class="sn" style="padding-left: 5px;">年级:</li>
  221. <li class="sv">
  222. @Html.ComboGrid(cgopSchoolyear, new Dictionary<string, string> { { "data-condition", "dgPlanApplicationApproveList" } })
  223. @*@Html.SchoolYearDropDownList(new DropdownListOptions
  224. {
  225. ID = "DictionarySchoolyear",
  226. Name = "DictionarySchoolyear",
  227. BindType = DropdownListBindType.SelectAll,
  228. OnSelect = "querySchoolyear"
  229. }, new Dictionary<string, string> { { "data-condition", "dgPlanApplicationApproveList" } })*@
  230. </li>
  231. </ul>
  232. <ul>
  233. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  234. <li class="sv">
  235. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgPlanApplicationApproveList" } })
  236. </li>
  237. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  238. <li class="sv">
  239. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  240. new ComboGridOptions
  241. {
  242. ID = "DictionaryEducation",
  243. Name = "DictionaryEducation",
  244. OnSelect = "reload"
  245. }, new Dictionary<string, string> { { "data-condition", "dgPlanApplicationApproveList" } })
  246. </li>
  247. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  248. <li class="sv">
  249. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  250. new ComboGridOptions
  251. {
  252. ID = "DictionaryLearningform",
  253. Name = "DictionaryLearningform",
  254. OnSelect = "reload"
  255. }, new Dictionary<string, string> { { "data-condition", "dgPlanApplicationApproveList" } })
  256. </li>
  257. <li class="sn" style="padding-left: 5px;">学制:</li>
  258. <li class="sv">
  259. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgPlanApplicationApproveList" } })
  260. </li>
  261. </ul>
  262. <ul>
  263. <li class="sn" style="padding-left: 5px;color:red;">年级专业:</li>
  264. <li class="sv">
  265. @Html.ComboGrid(cgopGrademajor, new Dictionary<string, string> { { "data-condition", "dgPlanApplicationApproveList" } })
  266. </li>
  267. <li class="sn" style="padding-left: 5px;color:red;">课程名称:</li>
  268. <li class="sv">
  269. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgPlanApplicationApproveList" } })
  270. </li>
  271. <li class="sn" style="padding-left: 5px;color:red;">处理方式:</li>
  272. <li class="sv">
  273. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_HandleMode, DropdownListBindType.SelectAll,
  274. new ComboGridOptions
  275. {
  276. ID = "DictionaryHandleMode",
  277. Name = "DictionaryHandleMode",
  278. OnSelect = "reload"
  279. }, new Dictionary<string, string> { { "data-condition", "dgPlanApplicationApproveList" } })
  280. </li>
  281. <li class="sn" style="padding-left: 5px; color: red; width: 85px;">状态:</li>
  282. <li class="sv">
  283. @Html.DropdownList(new DropdownListOptions
  284. {
  285. ID = "DictionaryApprovalStatus",
  286. Name = "DictionaryApprovalStatus",
  287. BindType = DropdownListBindType.SelectAll,
  288. //SelectedValue = BaseExtensions.GetStartFlowStatus(typeof(EMIS.Entities.EM_PlanApplication).Name),
  289. ItemSourceUrl = Url.Content("~/Common/ApproveStatusNotStartEndDropDown?tableName=" + typeof(EMIS.Entities.EM_PlanApplication).Name),
  290. OnSelect = "reload"
  291. }, new Dictionary<string, string> { { "data-condition", "dgPlanApplicationApproveList" } })
  292. </li>
  293. </ul>
  294. </div>
  295. </div>
  296. </form>
  297. <div class="p_title">
  298. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  299. 计划审核列表</div>
  300. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  301. </div>
  302. @*@Html.PositionBatchModify()*@
  303. <div class="search_list">
  304. @Html.DataGrid(new DataGridOptions
  305. {
  306. Columns = new List<DataGridColumn>()
  307. {
  308. new CheckBoxFieldColumn{ HeaderText="", FieldName="PlanApplicationID" },
  309. new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Handle="edit", Width=0.08 },
  310. //new BoundFieldColumn { FieldName="GrademajorCode", HeaderText="年级专业代码", Align=AlignStyle.Center, Width=0.08 },
  311. new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.08 },
  312. //new BoundFieldColumn { FieldName="GradeID", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 },
  313. //new BoundFieldColumn { FieldName="StartSchoolcodeName", HeaderText="入学学期", Align=AlignStyle.Center, OrderFieldName="StartSchoolcodeID", Width=0.04 },
  314. //new BoundFieldColumn { FieldName="StartSchoolyearCode", HeaderText="入学学年学期", Align=AlignStyle.Center, Width=0.08 },
  315. //new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, OrderFieldName="StandardID", Width=0.06 },
  316. //new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.08, OverflowLength=10 },
  317. //new BoundFieldColumn { FieldName="EducationName", HeaderText=@EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, OrderFieldName="EducationID", Width=0.04, OverflowLength=4 },
  318. //new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, OrderFieldName="LearningformID", Width=0.04, OverflowLength=4 },
  319. //new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  320. //new BoundFieldColumn { FieldName="SchoolyearNumName", HeaderText="开课学年", Align=AlignStyle.Center, OrderFieldName="SchoolyearNumID", Width=0.04, CustomFormatFun="SetRedColumn" },
  321. //new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="学期", Align=AlignStyle.Center, OrderFieldName="SchoolcodeID", Width=0.03, CustomFormatFun="SetRedColumn" },
  322. new BoundFieldColumn { FieldName="StarttermName", HeaderText="开课学期", Align=AlignStyle.Center, OrderFieldName="StarttermID", Width=0.04, CustomFormatFun="SetRedColumn" },
  323. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 },
  324. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.08, OverflowLength=10 },
  325. //new BoundFieldColumn { FieldName="CourseStructureName", HeaderText="课程结构", Align=AlignStyle.Center, OrderFieldName="CourseStructureID", Width=0.04, OverflowLength=4 },
  326. //new BoundFieldColumn { FieldName="CourseCategoryName", HeaderText="课程属性", Align=AlignStyle.Center, OrderFieldName="CourseCategoryID", Width=0.04, OverflowLength=4 },
  327. new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, OrderFieldName="CourseTypeID", Width=0.04, OverflowLength=4 },
  328. //new BoundFieldColumn { FieldName="CourseQualityName", HeaderText="课程性质", Align=AlignStyle.Center, OrderFieldName="CourseQualityID", Width=0.04, OverflowLength=4 },
  329. new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" },
  330. new BoundFieldColumn { FieldName="TheoryCourse", HeaderText="理论学时", Align=AlignStyle.Center, Width=0.04 },
  331. new BoundFieldColumn { FieldName="Practicehours", HeaderText="实践学时", Align=AlignStyle.Center, Width=0.04 },
  332. new BoundFieldColumn { FieldName="Trialhours", HeaderText="实验学时", Align=AlignStyle.Center, Width=0.04 },
  333. new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" },
  334. //new BoundFieldColumn { FieldName="TheoryWeeklyNum", HeaderText="理论周次", Align=AlignStyle.Center, Width=0.04 },
  335. //new BoundFieldColumn { FieldName="PracticeWeeklyNum", HeaderText="实践周次", Align=AlignStyle.Center, Width=0.04 },
  336. //new BoundFieldColumn { FieldName="TrialWeeklyNum", HeaderText="实验周次", Align=AlignStyle.Center, Width=0.04 },
  337. //new BoundFieldColumn { FieldName="SchoolweeksNum", HeaderText="总周次", Align=AlignStyle.Center, Width=0.03 },
  338. //new BoundFieldColumn { FieldName="WeeklyHours", HeaderText="周学时", Align=AlignStyle.Center, Width=0.03 },
  339. //new BoundFieldColumn { FieldName="WeeklyNum", HeaderText="每周次数", Align=AlignStyle.Center, Width=0.04 },
  340. //new BoundFieldColumn { FieldName="StartWeeklyNum", HeaderText="开始周次", Align=AlignStyle.Center, Width=0.04 },
  341. //new BoundFieldColumn { FieldName="EndWeeklyNum", HeaderText="结束周次", Align=AlignStyle.Center, Width=0.04 },
  342. new BoundFieldColumn { FieldName="StartEndWeeklyNum", HeaderText="起止周次", Align=AlignStyle.Center, Width=0.04 },
  343. //new BoundFieldColumn { FieldName="IsMainCourseName", HeaderText="学位课程", Align=AlignStyle.Center, OrderFieldName="IsMainCourse", Width=0.04 },
  344. //new BoundFieldColumn { FieldName="CourseFineName", HeaderText="精品课程", Align=AlignStyle.Center, OrderFieldName="CourseFineID", Width=0.04 },
  345. //new BoundFieldColumn { FieldName="PracticeTypeName", HeaderText="实践类型", Align=AlignStyle.Center, OrderFieldName="PracticeTypeID", Width=0.04 },
  346. //new BoundFieldColumn { FieldName="TeachinglanguageName", HeaderText="授课语言", Align=AlignStyle.Center, OrderFieldName="TeachinglanguageID", Width=0.04 },
  347. //new BoundFieldColumn { FieldName="ExaminationModeName", HeaderText="考试方式", Align=AlignStyle.Center, OrderFieldName="ExaminationModeID", Width=0.04 },
  348. //new BoundFieldColumn { FieldName="ResultTypeName", HeaderText="成绩类型", Align=AlignStyle.Center, OrderFieldName="ResultTypeID", Width=0.04 },
  349. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  350. //new BoundFieldColumn { FieldName="CourseCollegeName", HeaderText=@EMIS.Utility.RSL.Get("CourseCollege"), Align=AlignStyle.Center, Width=0.05, OverflowLength=6 },
  351. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.05, OverflowLength=6 },
  352. new BoundFieldColumn { FieldName="TeachingModeIDListName", HeaderText="授课方式", Align=AlignStyle.Center, OrderFieldName="", Width=0.04, OverflowLength=4, CustomFormatFun="SetRedColumn" },
  353. //new BoundFieldColumn { FieldName="TeachingPlaceIDListName", HeaderText="授课地点", Align=AlignStyle.Center, OrderFieldName="", Width=0.04, OverflowLength=4 },
  354. new BoundFieldColumn { FieldName="HandleModeName", HeaderText="处理方式", Align=AlignStyle.Center, OrderFieldName="HandleModeID", Width=0.04, OverflowLength=4, CustomFormatFun="SetRedColumn" },
  355. //new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=3 },
  356. //new BoundFieldColumn { FieldName="CreateTime", HeaderText="申请时间", Align=AlignStyle.Center, Formatter = Formatter.OnlyYearMonthDay, Width=0.06 },
  357. new ApproveStatusColumn { FieldName="ApprovalStatusName", TableName=typeof(EMIS.Entities.EM_PlanApplication).Name, IDFieldName="PlanApplicationID", HeaderText="状态", Align=AlignStyle.Center, Width=0.04 }
  358. },
  359. IsCheckOnSelect = true,
  360. DataSourceUrl = Url.Content("~/PlanApplicationApprove/List"),
  361. ID = "dgPlanApplicationApproveList",
  362. IsPagination = true,
  363. IsShowRowNumbers = true,
  364. IsSingleSelect = false
  365. })
  366. </div>
  367. </div>