List.cshtml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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 type="text/javascript">
  94. var nonSelect = "@DropdownList.SELECT_ALL";
  95. var startStatusID = @ViewBag.StartStatusID;
  96. </script>
  97. <script src="~/Scripts/Business/ScoreManage/Misconduct.js" type="text/javascript"></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("~/Misconduct/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"), Name = "ddlSchoolYear", OnSelect = "reload", SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }, new Dictionary<string, string> { { "data-condition", "dgMisconductList" } })
  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", "dgMisconductList" } })
  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", "dgMisconductList" } })
  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", "dgMisconductList" } })
  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", "dgMisconductList" } })
  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", "dgMisconductList" } })
  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", "dgMisconductList" } })
  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", "dgMisconductList" } })
  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", "dgMisconductList" } })
  150. </li>
  151. <li class="sn" style="padding-left: 5px;">考试状态:</li>
  152. <li class="sv">
  153. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_ExamsState, new DropdownListOptions { Name = "ddlExamsState", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgMisconductList" } })
  154. </li>
  155. <li class="sn" style="padding-left: 5px;">状态:</li>
  156. <li class="sv">
  157. @Html.ApproveStatusDropDownList(typeof(EMIS.Entities.ER_Misconduct).Name, new DropdownListOptions { Name = "ddlRecordStatus", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgMisconductList" } })
  158. </li>
  159. </ul>
  160. </div>
  161. </div>
  162. </form>
  163. <div class="p_title">
  164. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  165. 违纪名单列表
  166. </div>
  167. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  168. </div>
  169. <div class="search_list">
  170. @Html.DataGrid(new DataGridOptions
  171. {
  172. Columns = new List<DataGridColumn>()
  173. {
  174. new CheckBoxFieldColumn{ HeaderText="", FieldName="MisconductID" },
  175. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.06 },
  176. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width = 0.1 },
  177. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width = 0.04 },
  178. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.16 },
  179. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.05 },
  180. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.12 },
  181. new BoundFieldColumn { FieldName="ExamsCategoryName", HeaderText="考试性质", Align=AlignStyle.Center, Width=0.05 },
  182. new BoundFieldColumn { FieldName="ExamsStateName", HeaderText="考试状态", Align=AlignStyle.Center,Width=0.05 },
  183. new BoundFieldColumn { FieldName="CreateTime", HeaderText="申请日期", Formatter=Formatter.OnlyYearMonthDay, Align=AlignStyle.Center, Width=0.06 },
  184. new BoundFieldColumn { FieldName="Reason", HeaderText="申请原因", Align=AlignStyle.Center, Width=0.08, OverflowLength=8 },
  185. new ApproveStatusColumn { FieldName="RecordStatusName", TableName=typeof(EMIS.Entities.ER_Misconduct).Name, IDFieldName="MisconductID", HeaderText="状态", Align=AlignStyle.Center, Width=0.04 }
  186. },
  187. IsCheckOnSelect = true,
  188. DataSourceUrl = Url.Content("~/Misconduct/List"),
  189. ID = "dgMisconductList",
  190. IsPagination = true,
  191. IsShowRowNumbers = true,
  192. IsSingleSelect = false
  193. })
  194. </div>
  195. </div>