List.cshtml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions cgopCourse = new ComboGridOptions
  6. {
  7. TextField = "CourseName",
  8. ValueField = "CoursematerialID",
  9. Name = "CoursematerialIDDropdownGridBo",
  10. ID = "CoursematerialIDDropdownGridBo",
  11. OnSelect = "reload",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. //new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. ComboGridOptions cgopCollege = new ComboGridOptions
  27. {
  28. TextField = "Name",
  29. ValueField = "CollegeID",
  30. OnSelect = "reload",
  31. Name = "CollegeDropdown",
  32. ID = "CollegeDropdown",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  38. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  39. },
  40. OnLoadSuccessFun = "reload",
  41. IsCheckOnSelect = true,
  42. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  43. IsPagination = true,
  44. IsShowRowNumbers = true,
  45. IsSingleSelect = false,
  46. }
  47. };
  48. ComboGridOptions cgopStandard = new ComboGridOptions
  49. {
  50. TextField = "StandardName",
  51. ValueField = "StandardID",
  52. OnSelect = "reload",
  53. Name = "StandardDictionaryDropDown",
  54. ID = "StandardDictionaryDropDown",
  55. GridOptions = new DataGridOptions
  56. {
  57. Columns = new List<DataGridColumn>()
  58. {
  59. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 }
  60. },
  61. IsCheckOnSelect = true,
  62. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  63. IsPagination = true,
  64. IsShowRowNumbers = true,
  65. IsSingleSelect = false,
  66. }
  67. };
  68. }
  69. @section scripts{
  70. <script src="~/Scripts/Business/EducationManage/ExecutableMinorPlan.js" type="text/javascript"></script>
  71. <script type="text/javascript">
  72. var nonSelect = "@DropdownList.SELECT_ALL";
  73. var notSubmitStatus = "@((int)EMIS.ViewModel.EM_ExecuteStatus.NotSubmited)";
  74. </script>
  75. }
  76. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  77. @Html.Position()
  78. <div class="p_SearchTitle">
  79. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  80. 查询条件
  81. </div>
  82. </div>
  83. <form id="formQuery" method="post" action="@Url.Content("~/TeachingPlan/Excel")">
  84. @Html.Hidden("ExecutablePlanIDs")
  85. @Html.PositionCondition()
  86. <div class="search_keyword">
  87. <div class="search_input">
  88. <ul>
  89. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  90. <li class="sv">
  91. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolyearDropdown", Name = "SchoolyearDropdown", OnSelect = "reload", OnLoadSuccess = "reload", SelectedValue = @ViewBag.SchoolYearID }, new Dictionary<string, string> { { "data-condition", "dgExecutableMinorPlanList" } })
  92. </li>
  93. <li class="sn" style="padding-left: 5px;">开课 @EMIS.Utility.RSL.Get("College"):</li>
  94. <li class="sv">
  95. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgExecutableMinorPlanList" } })
  96. </li>
  97. <li class="sn" style="padding-left: 5px;">年级:</li>
  98. <li class="sv">
  99. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgExecutableMinorPlanList" } })
  100. </li>
  101. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  102. <li class="sv">
  103. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgExecutableMinorPlanList" } })
  104. </li>
  105. </ul>
  106. <ul>
  107. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  108. <li class="sv">
  109. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgExecutableMinorPlanList" } })
  110. </li>
  111. <li class="sn" style="padding-left: 5px;">开课学年:</li>
  112. <li class="sv">
  113. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, new DropdownListOptions { Name = "DictionarySchoolyear", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgExecutableMinorPlanList" } })
  114. </li>
  115. <li class="sn" style="padding-left: 5px;">开课学期:</li>
  116. <li class="sv">
  117. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Semester, new DropdownListOptions { Name = "DictionarySchoolcode", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgExecutableMinorPlanList" } })
  118. </li>
  119. <li class="sn" style="padding-left: 5px;">状态:</li>
  120. <li class="sv">
  121. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EM_ExecuteStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "ApprovalStatusDropdownList", OnSelect = "reload", SelectedValue = (int)EMIS.ViewModel.EM_ExecuteStatus.NotSubmited, OnLoadSuccess = "reload" }, new Dictionary<string, string> { { "data-condition", "dgExecutableMinorPlanList" } })
  122. </li>
  123. </ul>
  124. </div>
  125. </div>
  126. </form>
  127. <div class="p_title">
  128. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  129. 执行计划列表
  130. </div>
  131. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  132. </div>
  133. @Html.PositionBatchModify()
  134. <div class="search_list">
  135. @Html.DataGrid(new DataGridOptions
  136. {
  137. Columns = new List<DataGridColumn>()
  138. {
  139. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExecutablePlanID" },
  140. new LinkButtonColumn { FieldName="SchoolcodeStr", HeaderText="学年学期", Align=AlignStyle.Center, Handle = "edit", Width=0.08 },
  141. new BoundFieldColumn { FieldName="YearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.1 },
  142. new BoundFieldColumn { FieldName="StandardName", HeaderText="辅修专业", Align=AlignStyle.Center, Width=0.1 },
  143. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.05 },
  144. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
  145. new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.05 },
  146. new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center, Width=0.02 },
  147. new BoundFieldColumn { FieldName="TheoryCourse", HeaderText="理论学时", Align=AlignStyle.Center, Width=0.04 },
  148. new BoundFieldColumn { FieldName="Practicehours", HeaderText="实践学时", Align=AlignStyle.Center, Width=0.04 },
  149. new BoundFieldColumn { FieldName="Trialhours", HeaderText="实验学时", Align=AlignStyle.Center, Width=0.04 },
  150. new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", Align=AlignStyle.Center, Width=0.03 },
  151. new BoundFieldColumn { FieldName="Startingtheweek", HeaderText="起止周次", Align=AlignStyle.Center, Width=0.04 },
  152. new BoundFieldColumn { FieldName="HandleModeName", HeaderText="处理方式", Align=AlignStyle.Center, Width=0.04 },
  153. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="教研室", Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
  154. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08 },
  155. new BoundFieldColumn { FieldName="PeopleNumber", HeaderText="人数", Align=AlignStyle.Center,Width=0.02 },
  156. new BoundFieldColumn { FieldName="SchoolyearNumName", HeaderText="开课学年", Align=AlignStyle.Center, Width=0.05},
  157. new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="开课学期", Align=AlignStyle.Center, Width=0.05},
  158. new BoundFieldColumn { FieldName="RecordStatusName", HeaderText="状态", Align=AlignStyle.Center,Width=0.03 }
  159. },
  160. IsCheckOnSelect = true,
  161. DataSourceUrl = Url.Content("~/ExecutableMinorPlan/List"),
  162. ID = "dgExecutableMinorPlanList",
  163. IsPagination = true,
  164. IsShowRowNumbers = true,
  165. IsSingleSelect = false
  166. })
  167. </div>
  168. </div>