List.cshtml 12 KB

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