List.cshtml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "异动审核";
  6. ComboGridOptions cgopCampus = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CampusID",
  10. OnSelect = "queryCollege",
  11. Name = "CampusDropdown",
  12. ID = "CampusDropdown",
  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 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
  19. },
  20. //OnLoadSuccessFun = "reload",
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/Campus/List"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false,
  26. }
  27. };
  28. ComboGridOptions cgopCollege = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "CollegeID",
  32. OnSelect = "queryCollege",
  33. Name = "CollegeDropdown",
  34. ID = "CollegeDropdown",
  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 },
  40. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  41. },
  42. OnLoadSuccessFun = "reload",
  43. IsCheckOnSelect = true,
  44. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  45. IsPagination = true,
  46. IsShowRowNumbers = true,
  47. IsSingleSelect = false,
  48. }
  49. };
  50. ComboGridOptions cgopClassmajor = new ComboGridOptions
  51. {
  52. TextField = "Name",
  53. ValueField = "ClassmajorID",
  54. Name = "ClassmajorDropdown",
  55. ID = "ClassmajorDropdown",
  56. OnSelect = "queryClass",
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
  62. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  63. },
  64. IsCheckOnSelect = true,
  65. DataSourceUrl = Url.Content("~/Classmajor/List"),
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false
  69. }
  70. };
  71. ComboGridOptions cgopStandard = new ComboGridOptions
  72. {
  73. TextField = "StandardName",
  74. ValueField = "StandardID",
  75. OnSelect = "queryStandard",
  76. Name = "StandardDictionaryDropDown",
  77. ID = "StandardDictionaryDropDown",
  78. GridOptions = new DataGridOptions
  79. {
  80. Columns = new List<DataGridColumn>()
  81. {
  82. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  83. },
  84. IsCheckOnSelect = true,
  85. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  86. IsPagination = true,
  87. IsShowRowNumbers = true,
  88. IsSingleSelect = false,
  89. }
  90. };
  91. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  92. {
  93. TextField = "LearnSystem",
  94. ValueField = "LearnSystem",
  95. OnSelect = "queryClass",
  96. Name = "DictionaryLearnSystem",
  97. ID = "DictionaryLearnSystem",
  98. GridOptions = new DataGridOptions
  99. {
  100. Columns = new List<DataGridColumn>()
  101. {
  102. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  103. },
  104. IsCheckOnSelect = true,
  105. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  106. IsPagination = true,
  107. IsShowRowNumbers = true,
  108. IsSingleSelect = false,
  109. IsShowHeader = false
  110. }
  111. };
  112. }
  113. @section scripts{
  114. <script src="~/Scripts/Business/DifferentDynamic/Approval.js" type="text/javascript"></script>
  115. <script type="text/javascript">
  116. var nonSelect = "@DropdownList.SELECT_ALL";
  117. </script>
  118. }
  119. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  120. @Html.Position()
  121. <div class="p_SearchTitle">
  122. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  123. 查询条件
  124. </div>
  125. </div>
  126. <form id="formQuery" method="post" action="@Url.Action("Excel")">
  127. @Html.PositionCondition()
  128. <div class="search_keyword">
  129. <div class="search_input">
  130. <ul>
  131. <li class="sn" style="display:none" >@EMIS.Utility.RSL.Get("Campus"):</li>
  132. <li class="sv" style="display:none">
  133. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgList" } })
  134. </li>
  135. <li class="sn" style="padding-left: 5px;">异动学期:</li>
  136. <li class="sv">
  137. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, SelectedValue = ViewBag.SchoolYearID, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  138. </li>
  139. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  140. <li class="sv">
  141. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgList" } })
  142. </li>
  143. <li class="sn" style="padding-left: 5px;">年级:</li>
  144. <li class="sv">
  145. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  146. </li>
  147. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  148. <li class="sv">
  149. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgList" } })
  150. @*@Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "StandardDictionaryDropDown", Name = "StandardDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgList" } })*@
  151. </li>
  152. </ul>
  153. <ul>
  154. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  155. <li class="sv">
  156. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { Name = "DictionaryEducation", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  157. </li>
  158. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  159. <li class="sv">
  160. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform, new DropdownListOptions { Name = "DictionaryLearningform", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  161. </li>
  162. <li class="sn" style="padding-left: 5px;">学制:</li>
  163. <li class="sv">
  164. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgList" } })
  165. </li>
  166. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  167. <li class="sv">
  168. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgList" } })
  169. </li>
  170. </ul>
  171. <ul>
  172. <li class="sn" style="padding-left: 5px;">异动类型:</li>
  173. <li class="sv">
  174. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_ChangeType, new DropdownListOptions { Name = "DictionaryDifferentDynamicType", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  175. </li>
  176. @*<li class="sn" style="padding-left: 5px;">审批状态:</li>
  177. <li class="sv">
  178. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_DifferentDynamicStatus, new DropdownListOptions { Name = "DictionaryDifferentDynamicStatus", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  179. </li>*@
  180. </ul>
  181. </div>
  182. </div>
  183. </form>
  184. <div class="p_title">
  185. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  186. 异动审核列表
  187. </div>
  188. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  189. </div>
  190. <div class="search_list">
  191. @Html.DataGrid(new DataGridOptions
  192. {
  193. Columns = new List<DataGridColumn>()
  194. {
  195. new CheckBoxFieldColumn{ HeaderText="", FieldName="EntityID"},
  196. new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="异动学期", Align=AlignStyle.Center, Handle="edit",Width=0.06 },
  197. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center,Width=0.055 },
  198. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center,Width=0.025, OverflowLength=6},
  199. new BoundFieldColumn { FieldName="DifferentDynamicTypeName", HeaderText="异动类型", Align=AlignStyle.Center,OverflowLength=6,Width=0.035 },
  200. new BoundFieldColumn { FieldName="Reason", HeaderText="异动原因", Align=AlignStyle.Center, OverflowLength=6,Width=0.025, IsHidden=true },
  201. new BoundFieldColumn { FieldName="ReasonName", HeaderText="异动原因", Align=AlignStyle.Center, OverflowLength=6,Width=0.025 },
  202. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center,Width=0.035 },
  203. new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center,Width=0.035 },
  204. new BoundFieldColumn { FieldName="StandardName", HeaderText="异动前专业", Align=AlignStyle.Center,Width=0.055,OverflowLength=7 },
  205. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="异动前班级", Align=AlignStyle.Center,OverflowLength=13,Width=0.07 },
  206. new BoundFieldColumn { FieldName="AfterStandardName", HeaderText="异动后专业", Align=AlignStyle.Center,Width=0.055,OverflowLength=13 },
  207. new BoundFieldColumn { FieldName="AfterClassmajorName", HeaderText="异动后班级", Align=AlignStyle.Center,Width=0.07,OverflowLength=7},
  208. //new BoundFieldColumn { FieldName="AfterInSchoolStatusName", HeaderText="异动后在校状态", Align=AlignStyle.Center, OverflowLength=6 },
  209. //new BoundFieldColumn { FieldName="AfterStudentStatusName", HeaderText="异动后学籍状态", Align=AlignStyle.Center, OverflowLength=6 },
  210. new BoundFieldColumn { FieldName="EntityCreateTime", HeaderText="异动日期",Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay },
  211. //new BoundFieldColumn { FieldName="ApprovalStatusName", HeaderText="审批状态", Align=AlignStyle.Center, },
  212. new ApproveStatusColumn { FieldName="ApprovalStatusName", TableName="CF_DifferentDynamic", IDFieldName="EntityID",
  213. HeaderText="审批状态", Align=AlignStyle.Center,Width=0.04 },
  214. new BoundFieldColumn { FieldName="ReportStatusName", HeaderText="注册状态", Align=AlignStyle.Center,Width=0.035 },
  215. },
  216. IsCheckOnSelect = true,
  217. DataSourceUrl = Url.Action("List"),
  218. ID = "dgList",
  219. IsPagination = true,
  220. IsShowRowNumbers = true,
  221. IsSingleSelect = false
  222. })
  223. </div>
  224. </div>