List.cshtml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions collegeOption = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CollegeID",
  9. Name = "cbgCollege",
  10. ID = "cbgCollege",
  11. OnSelect = "queryStandard",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  17. },
  18. OnLoadSuccessFun = "queryStandard",
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. ComboGridOptions standardOption = new ComboGridOptions
  27. {
  28. TextField = "StandardName",
  29. ValueField = "StandardID",
  30. OnSelect = "queryClassmajor",
  31. Name = "cbgStandard",
  32. ID = "cbgStandard",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  38. },
  39. IsAutoLoad = false,
  40. OnLoadSuccessFun = "queryClassmajor",
  41. IsCheckOnSelect = true,
  42. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  43. IsPagination = true,
  44. IsShowRowNumbers = true,
  45. IsSingleSelect = false,
  46. }
  47. };
  48. ComboGridOptions classmajorOption = new ComboGridOptions
  49. {
  50. TextField = "Name",
  51. ValueField = "ClassmajorID",
  52. Name = "cbgClassmajor",
  53. ID = "cbgClassmajor",
  54. OnSelect = "reload",
  55. GridOptions = new DataGridOptions
  56. {
  57. Columns = new List<DataGridColumn>()
  58. {
  59. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  60. },
  61. IsAutoLoad = false,
  62. OnLoadSuccessFun = "reload",
  63. IsCheckOnSelect = true,
  64. DataSourceUrl = Url.Content("~/Classmajor/List"),
  65. IsPagination = true,
  66. IsShowRowNumbers = true,
  67. IsSingleSelect = false
  68. }
  69. };
  70. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  71. {
  72. TextField = "LearnSystem",
  73. ValueField = "LearnSystem",
  74. OnSelect = "queryClassmajor",
  75. Name = "DictionaryLearnSystem",
  76. ID = "DictionaryLearnSystem",
  77. GridOptions = new DataGridOptions
  78. {
  79. Columns = new List<DataGridColumn>()
  80. {
  81. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  82. },
  83. IsCheckOnSelect = true,
  84. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  85. IsPagination = true,
  86. IsShowRowNumbers = true,
  87. IsSingleSelect = false,
  88. IsShowHeader = false
  89. }
  90. };
  91. }
  92. @section scripts{
  93. <script src="~/Scripts/Business/ScoreManage/ExaminationExemption.js" type="text/javascript"></script>
  94. <script type="text/javascript">
  95. var nonSelect = "@DropdownList.SELECT_ALL";
  96. var startStatusID = @ViewBag.StartStatusID;
  97. </script>
  98. }
  99. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  100. <form id="formQuery" method="post" action="@Url.Content("~/ExaminationExemption/Excel")">
  101. @Html.Position()
  102. <div class="p_SearchTitle">
  103. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  104. 查询条件
  105. </div>
  106. </div>
  107. @Html.PositionCondition()
  108. <div class="search_keyword">
  109. <div class="search_input">
  110. <ul>
  111. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  112. <li class="sv">
  113. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), ID = "ddlSchoolYear", Name = "ddlSchoolYear", OnSelect = "reload", SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }, new Dictionary<string, string> { { "data-condition", "dgExaminationExemptionList" } })
  114. </li>
  115. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  116. <li class="sv">
  117. @Html.ComboGrid(collegeOption, new Dictionary<string, string> { { "data-condition", "dgExaminationExemptionList" } })
  118. </li>
  119. <li class="sn" style="padding-left: 5px;">年级:</li>
  120. <li class="sv">
  121. @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", "dgExaminationExemptionList" } })
  122. </li>
  123. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  124. <li class="sv">
  125. @Html.ComboGrid(standardOption, new Dictionary<string, string> { { "data-condition", "dgExaminationExemptionList" } })
  126. </li>
  127. </ul>
  128. <ul>
  129. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  130. <li class="sv">
  131. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { ID = "DictionaryEducation", Name = "DictionaryEducation", BindType = DropdownListBindType.SelectAll, OnSelect = "queryClassmajor" }, new Dictionary<string, string> { { "data-condition", "dgExaminationExemptionList" } })
  132. </li>
  133. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  134. <li class="sv">
  135. @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", "dgExaminationExemptionList" } })
  136. </li>
  137. <li class="sn" style="padding-left: 5px;">学制:</li>
  138. <li class="sv">
  139. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgExaminationExemptionList" } })
  140. </li>
  141. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  142. <li class="sv">
  143. @Html.ComboGrid(classmajorOption, new Dictionary<string, string> { { "data-condition", "dgExaminationExemptionList" } })
  144. </li>
  145. </ul>
  146. <ul>
  147. <li class="sn" style="padding-left: 5px;">考试性质:</li>
  148. <li class="sv">
  149. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_ExamsCategory, new DropdownListOptions { Name = "ddlExamsCategory", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgExaminationExemptionList" } })
  150. </li>
  151. <li class="sn" style="padding-left: 5px;">状态:</li>
  152. <li class="sv">
  153. @Html.ApproveStatusNotStartDropDownList(typeof(EMIS.Entities.ER_ExaminationExemption).Name, new DropdownListOptions { ID = "ddlRecordStatus", Name = "ddlRecordStatus", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgExaminationExemptionList" } })
  154. </li>
  155. </ul>
  156. </div>
  157. </div>
  158. </form>
  159. <div class="p_title">
  160. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  161. 免修名单列表
  162. </div>
  163. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  164. </div>
  165. <div class="search_list">
  166. @Html.DataGrid(new DataGridOptions
  167. {
  168. Columns = new List<DataGridColumn>()
  169. {
  170. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationExemptionID" },
  171. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.06 },
  172. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width = 0.1 },
  173. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width = 0.04 },
  174. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.16 },
  175. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.05 },
  176. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.12 },
  177. new BoundFieldColumn { FieldName="ExamsCategoryName", HeaderText="考试性质", Align=AlignStyle.Center, Width=0.05 },
  178. new BoundFieldColumn { FieldName="CreateTime", HeaderText="申请日期", Formatter=Formatter.OnlyYearMonthDay, Align=AlignStyle.Center, Width=0.06 },
  179. new LinkButtonColumn { FieldName="Reason", HeaderText="申请原因", Align=AlignStyle.Center, Handle="applyEdit", Width=0.08, OverflowLength=8 },
  180. new ApproveStatusColumn { FieldName="RecordStatusName", TableName=typeof(EMIS.Entities.ER_ExaminationExemption).Name, IDFieldName="ExaminationExemptionID", HeaderText="状态", Align=AlignStyle.Center, Width=0.04 }
  181. },
  182. IsCheckOnSelect = true,
  183. DataSourceUrl = Url.Content("~/ExaminationExemption/List"),
  184. ID = "dgExaminationExemptionList",
  185. IsPagination = true,
  186. IsShowRowNumbers = true,
  187. IsSingleSelect = false
  188. })
  189. </div>
  190. </div>