List.cshtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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 = "queryClass",
  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/Apply.js" type="text/javascript"></script>
  115. <script type="text/javascript">
  116. var nonSelect = "@DropdownList.SELECT_ALL";
  117. var UserID = nonSelect;
  118. </script>
  119. }
  120. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  121. @Html.Position()
  122. <div class="p_SearchTitle">
  123. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  124. 查询条件
  125. </div>
  126. </div>
  127. <form id="formQuery" method="post" action="@Url.Action("Excel")">
  128. @Html.PositionCondition()
  129. <div class="search_keyword">
  130. <div class="search_input">
  131. <ul>
  132. <li class="sn" style="display:none" >@EMIS.Utility.RSL.Get("Campus"):</li>
  133. <li class="sv" style="display:none">
  134. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgList" } })
  135. </li>
  136. <li class="sn" style="padding-left: 5px;">异动学期:</li>
  137. <li class="sv">
  138. @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" } })
  139. </li>
  140. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  141. <li class="sv">
  142. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgList" } })
  143. </li>
  144. <li class="sn" style="padding-left: 5px;">年级:</li>
  145. <li class="sv">
  146. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  147. </li>
  148. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  149. <li class="sv">
  150. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgList" } })
  151. @*@Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "StandardDictionaryDropDown", Name = "StandardDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgList" } })*@
  152. </li>
  153. </ul>
  154. <ul>
  155. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  156. <li class="sv">
  157. @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" } })
  158. </li>
  159. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  160. <li class="sv">
  161. @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" } })
  162. </li>
  163. <li class="sn" style="padding-left: 5px;">学制:</li>
  164. <li class="sv">
  165. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgList" } })
  166. </li>
  167. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  168. <li class="sv">
  169. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgList" } })
  170. </li>
  171. </ul>
  172. <ul>
  173. <li class="sn" style="padding-left: 5px;">异动类型:</li>
  174. <li class="sv">
  175. @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" } })
  176. </li>
  177. <li class="sn" style="padding-left: 5px;">审批状态:</li>
  178. <li class="sv">
  179. @Html.DropdownList(new DropdownListOptions {ID="DictionaryDifferentDynamicStatus", Name = "DictionaryDifferentDynamicStatus", ItemSourceUrl = Url.Content("~/DifferentDynamicApply/ApplyStatusDropDown"), BindType = DropdownListBindType.SelectAll, SelectedValue = BaseExtensions.GetStartFlowStatus(typeof(EMIS.Entities.CF_DifferentDynamic).Name), OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  180. </li>
  181. </ul>
  182. </div>
  183. </div>
  184. </form>
  185. <div class="p_title">
  186. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  187. 异动申请列表
  188. </div>
  189. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  190. </div>
  191. <div class="search_list">
  192. @Html.DataGrid(new DataGridOptions
  193. {
  194. Columns = new List<DataGridColumn>()
  195. {
  196. new CheckBoxFieldColumn{ HeaderText="", FieldName="EntityID"},
  197. new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="异动学期", Align=AlignStyle.Center, Handle="edit",Width=0.04 },
  198. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center,Width=0.05 },
  199. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center,Width=0.02,OverflowLength=6 },
  200. new BoundFieldColumn { FieldName="DifferentDynamicTypeName", HeaderText="异动类型", Align=AlignStyle.Center,Width=0.025 },
  201. new BoundFieldColumn { FieldName="Reason", HeaderText="异动原因", Align=AlignStyle.Center, OverflowLength=6,Width=0.025, IsHidden=true },
  202. new BoundFieldColumn { FieldName="ReasonName", HeaderText="异动原因", Align=AlignStyle.Center, OverflowLength=6,Width=0.025 },
  203. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center,Width=0.025 },
  204. new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center,Width=0.025 },
  205. new BoundFieldColumn { FieldName="StandardName", HeaderText="异动前专业", Align=AlignStyle.Center,Width=0.05 },
  206. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="异动前班级", Align=AlignStyle.Center },
  207. new BoundFieldColumn { FieldName="EntityCreateTime", HeaderText="异动日期" ,Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay,Width=0.04 },
  208. //new BoundFieldColumn { FieldName="ApprovalStatusName", HeaderText="审批状态", Align=AlignStyle.Center, },
  209. new ApproveStatusColumn { FieldName="ApprovalStatusName", TableName="CF_DifferentDynamic", IDFieldName="EntityID",
  210. HeaderText="审批状态", Align=AlignStyle.Center,Width=0.025 },
  211. new BoundFieldColumn { FieldName="ReportStatusName", HeaderText="注册状态", Align=AlignStyle.Center,Width=0.035 },
  212. },
  213. IsCheckOnSelect = true,
  214. DataSourceUrl = Url.Action("List"),
  215. ID = "dgList",
  216. IsPagination = true,
  217. IsShowRowNumbers = true,
  218. IsSingleSelect = false
  219. })
  220. </div>
  221. </div>