List.cshtml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  6. {
  7. TextField = "LearnSystem",
  8. ValueField = "LearnSystem",
  9. OnSelect = "queryClassmajor",
  10. Name = "DictionaryLearnSystem",
  11. ID = "DictionaryLearnSystem",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false,
  23. IsShowHeader = false
  24. }
  25. };
  26. }
  27. @section scripts{
  28. <script src="../../Scripts/Business/RetakeManage/List.js" type="text/javascript"></script>
  29. <script type="text/javascript">
  30. var nonSelect = "@DropdownList.SELECT_ALL";
  31. </script>
  32. }
  33. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  34. @Html.Position()
  35. <div class="p_SearchTitle">
  36. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  37. 查询条件
  38. </div>
  39. </div>
  40. <form id="formQuery" method="post" action="@Url.Content("~/RetakePlan/StudentListExcel")">
  41. @Html.PositionCondition()
  42. <div class="search_keyword">
  43. @Html.Hidden("SelectedID")
  44. <div class="search_input">
  45. <ul>
  46. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  47. <li class="sv">
  48. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "ddlSchoolYear", Name = "ddlSchoolYear", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentList" } })
  49. </li>
  50. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  51. <li class="sv">
  52. @Html.ComboGrid(new ComboGridOptions
  53. {
  54. TextField = "Name",
  55. ValueField = "CollegeID",
  56. Name = "cbgCollege",
  57. ID = "cbgCollege",
  58. OnSelect = "queryStandard",
  59. GridOptions = new DataGridOptions
  60. {
  61. Columns = new List<DataGridColumn>()
  62. {
  63. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  64. },
  65. OnLoadSuccessFun = "queryStandard",
  66. IsCheckOnSelect = true,
  67. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  68. IsPagination = true,
  69. IsShowRowNumbers = true,
  70. IsSingleSelect = false
  71. }
  72. }, new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentList" } })
  73. </li>
  74. <li class="sn" style="padding-left: 5px;">年级:</li>
  75. <li class="sv">
  76. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Grade, new DropdownListOptions { ID = "ddlYear", Name = "ddlYear", BindType = DropdownListBindType.SelectAll, OnSelect = "queryStandard", OnLoadSuccess = "queryStandard" }, new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentList" } })
  77. </li>
  78. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  79. <li class="sv">
  80. @Html.ComboGrid(new ComboGridOptions
  81. {
  82. TextField = "StandardName",
  83. ValueField = "StandardID",
  84. OnSelect = "queryClassmajor",
  85. Name = "cbgStandard",
  86. ID = "cbgStandard",
  87. GridOptions = new DataGridOptions
  88. {
  89. Columns = new List<DataGridColumn>()
  90. {
  91. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  92. },
  93. IsAutoLoad = false,
  94. OnLoadSuccessFun = "queryClassmajor",
  95. IsCheckOnSelect = true,
  96. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  97. IsPagination = true,
  98. IsShowRowNumbers = true,
  99. IsSingleSelect = false,
  100. }
  101. }, new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentList" } })
  102. </li>
  103. </ul>
  104. <ul>
  105. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  106. <li class="sv">
  107. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { ID = "DictionaryEducation", Name = "DictionaryEducation", BindType = DropdownListBindType.SelectAll, OnSelect = "queryClassmajor" }, new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentList" } })
  108. </li>
  109. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  110. <li class="sv">
  111. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "LearningformDictionaryDropDown", Name = "LearningformDictionaryDropDown", SelectedValue = BaseExtensions.GetDefaultLearnformForList(), OnSelect = "queryClassmajor" }, new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentList" } })
  112. </li>
  113. <li class="sn" style="padding-left: 5px;">学制:</li>
  114. <li class="sv">
  115. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentList" } })
  116. </li>
  117. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  118. <li class="sv">
  119. @Html.ComboGrid(new ComboGridOptions
  120. {
  121. TextField = "Name",
  122. ValueField = "ClassmajorID",
  123. Name = "cbgClassmajor",
  124. ID = "cbgClassmajor",
  125. OnSelect = "reload",
  126. GridOptions = new DataGridOptions
  127. {
  128. Columns = new List<DataGridColumn>()
  129. {
  130. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  131. },
  132. IsAutoLoad = false,
  133. OnLoadSuccessFun = "reload",
  134. IsCheckOnSelect = true,
  135. DataSourceUrl = Url.Content("~/Classmajor/List"),
  136. IsPagination = true,
  137. IsShowRowNumbers = true,
  138. IsSingleSelect = false
  139. }
  140. }, new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentList" } })
  141. </li>
  142. </ul>
  143. </div>
  144. </div>
  145. </form>
  146. <div class="p_title">
  147. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  148. 重修预查列表
  149. </div>
  150. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  151. </div>
  152. @Html.PositionBatchModify()
  153. <div class="search_list">
  154. @Html.DataGrid(new DataGridOptions
  155. {
  156. Columns = new List<DataGridColumn>()
  157. {
  158. new CheckBoxFieldColumn{ HeaderText="", FieldName="RetakePlanStudentID" },
  159. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=100 },
  160. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=100 },
  161. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=60 },
  162. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=200 },
  163. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=80 },
  164. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, OverflowLength=14, Width=120 },
  165. new BoundFieldColumn { FieldName="ClassName", HeaderText="重修班级", Align=AlignStyle.Center, OverflowLength=14, Width=120 },
  166. new BoundFieldColumn { FieldName="TeacherName", HeaderText="任课教师", Align=AlignStyle.Center, OverflowLength=10, Width=80 },
  167. new BoundFieldColumn { FieldName="ScheduleDateString", HeaderText="上课日期", Align=AlignStyle.Center, Width=150 },
  168. new BoundFieldColumn { FieldName="CourseTimeDesc", HeaderText="课时类别", Align=AlignStyle.Center, Width=60 },
  169. new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center, Width=50, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
  170. new BoundFieldColumn { FieldName="TotalHours", HeaderText="总学时", Align=AlignStyle.Center, Width=60 },
  171. new BoundFieldColumn { FieldName="ClassroomName", HeaderText="课室", Align=AlignStyle.Center, Width=80 },
  172. new ApproveStatusColumn { FieldName="RecordStatusDesc", HeaderText="状态", Align=AlignStyle.Center, Width=80, TableName=typeof(EMIS.Entities.ER_RetakePlanStudent).Name, IDFieldName="RetakePlanStudentID" }
  173. },
  174. IsCheckOnSelect = true,
  175. DataSourceUrl = Url.Content("~/RetakePlan/List"),
  176. ID = "dgRetakePlanStudentList",
  177. IsPagination = true,
  178. IsShowRowNumbers = true,
  179. IsSingleSelect = false
  180. })
  181. </div>
  182. </div>