List.cshtml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. //校区
  6. ComboGridOptions cgopCampus = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CampusID",
  10. ID = "CampusDropdown",
  11. Name = "CampusDropdown",
  12. OnSelect = "queryCampus",
  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, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.12 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Campus/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. //院系所
  28. ComboGridOptions cgopCollege = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "CollegeID",
  32. ID = "CollegeDropdown",
  33. Name = "CollegeDropdown",
  34. OnSelect = "queryCollege",
  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, Width=0.1 },
  40. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. }
  48. };
  49. //学制
  50. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  51. {
  52. TextField = "LearnSystem",
  53. ValueField = "LearnSystem",
  54. ID = "DictionaryLearnSystem",
  55. Name = "DictionaryLearnSystem",
  56. OnSelect = "reload",
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  62. },
  63. IsCheckOnSelect = true,
  64. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  65. IsPagination = true,
  66. IsShowRowNumbers = true,
  67. IsSingleSelect = false,
  68. IsShowHeader = false
  69. }
  70. };
  71. }
  72. @section scripts{
  73. <script src="~/Scripts/Business/EnrollManage/SpecialtyManage/SpecialtyApply.js" type="text/javascript"></script>
  74. <script type="text/javascript">
  75. var nonSelect = "@DropdownList.SELECT_ALL";
  76. //开始环节状态
  77. var startStatusID = "@BaseExtensions.GetStartFlowStatus("CF_SpecialtyApply")";
  78. //结束环节状态
  79. var endStatusID = "@BaseExtensions.GetEndFlowStatus("CF_SpecialtyApply")";
  80. </script>
  81. }
  82. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  83. @Html.Position()
  84. <div class="p_SearchTitle">
  85. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  86. </div>
  87. <form id="formQuery" method="post" action="@Url.Content("~/SpecialtyApply/Excel")">
  88. @Html.PositionCondition()
  89. <div class="search_keyword">
  90. <div class="search_input">
  91. <ul>
  92. <li class="sn">@EMIS.Utility.RSL.Get("Campus"):</li>
  93. <li class="sv">
  94. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgSpecialtyApplyList" } })
  95. </li>
  96. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  97. <li class="sv">
  98. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgSpecialtyApplyList" } })
  99. </li>
  100. <li class="sn" style="padding-left: 5px;">年级:</li>
  101. <li class="sv">
  102. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Grade, DropdownListBindType.SelectAll,
  103. new ComboGridOptions
  104. {
  105. ID = "DictionaryGrade",
  106. Name = "DictionaryGrade",
  107. OnSelect = "queryGrade"
  108. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyApplyList" } })
  109. </li>
  110. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  111. <li class="sv">
  112. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions
  113. {
  114. ID = "DictionaryStandard",
  115. Name = "DictionaryStandard",
  116. OnSelect = "queryStandard",
  117. GridOptions = new DataGridOptions
  118. {
  119. Columns = new List<DataGridColumn>()
  120. {
  121. new BoundFieldColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  122. new BoundFieldColumn { FieldName="Name", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  123. }
  124. }
  125. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyApplyList" } })
  126. </li>
  127. </ul>
  128. <ul>
  129. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  130. <li class="sv">
  131. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  132. new ComboGridOptions
  133. {
  134. ID = "DictionaryEducation",
  135. Name = "DictionaryEducation",
  136. OnSelect = "reload"
  137. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyApplyList" } })
  138. </li>
  139. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  140. <li class="sv">
  141. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  142. new ComboGridOptions
  143. {
  144. ID = "DictionaryLearningform",
  145. Name = "DictionaryLearningform",
  146. OnSelect = "reload"
  147. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyApplyList" } })
  148. </li>
  149. <li class="sn" style="padding-left: 5px;">学制:</li>
  150. <li class="sv">
  151. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgSpecialtyApplyList" } })
  152. </li>
  153. <li class="sn" style="padding-left: 5px; color: red;">状态:</li>
  154. <li class="sv">
  155. @Html.DropdownList(new DropdownListOptions
  156. {
  157. ID = "DictionaryApprovalStatus",
  158. Name = "DictionaryApprovalStatus",
  159. BindType = DropdownListBindType.SelectAll,
  160. //SelectedValue = BaseExtensions.GetStartFlowStatus(typeof(EMIS.Entities.CF_SpecialtyApply).Name),
  161. ItemSourceUrl = Url.Content("~/Common/ApproveStatusApplyDropDown?tableName=" + typeof(EMIS.Entities.CF_SpecialtyApply).Name),
  162. OnSelect = "reload"
  163. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyApplyList" } })
  164. </li>
  165. </ul>
  166. </div>
  167. </div>
  168. </form>
  169. <div class="p_title">
  170. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">专业申请列表</div>
  171. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  172. </div>
  173. <div class="search_list">
  174. @Html.DataGrid(new DataGridOptions
  175. {
  176. Columns = new List<DataGridColumn>()
  177. {
  178. new CheckBoxFieldColumn{ HeaderText="", FieldName="SpecialtyApplyID" },
  179. new LinkButtonColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, OrderFieldName="StandardCode", Handle="edit", Width=0.06 },
  180. new BoundFieldColumn { FieldName="Name", HeaderText="专业名称", Align=AlignStyle.Center, OrderFieldName="StandardName", Width=0.1 },
  181. new BoundFieldColumn { FieldName="GradeID", HeaderText="年级", Align=AlignStyle.Center, OrderFieldName="GradeID", Width=0.03 },
  182. new BoundFieldColumn { FieldName="SemesterName", HeaderText="学期", Align=AlignStyle.Center, OrderFieldName="SemesterID", Width=0.03 },
  183. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, OrderFieldName="EducationID", Width=0.05 },
  184. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, OrderFieldName="LearningformID", Width=0.04 },
  185. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.02 },
  186. new BoundFieldColumn { FieldName="CollegeCode", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
  187. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.1, OverflowLength=10 },
  188. new BoundFieldColumn { FieldName="CreateTime", HeaderText="申请时间", Align=AlignStyle.Center, Formatter= Formatter.LongDate, Width=0.1 },
  189. new BoundFieldColumn { FieldName="CreateUserCode", HeaderText="申请工号", Align=AlignStyle.Center, Width=0.05 },
  190. new BoundFieldColumn { FieldName="CreateUserName", HeaderText="申请人", Align=AlignStyle.Center, Width=0.05 },
  191. new ApproveStatusColumn { FieldName="ApprovalStatusName", TableName=typeof(EMIS.Entities.CF_SpecialtyApply).Name, IDFieldName="SpecialtyApplyID", HeaderText="状态", Align=AlignStyle.Center, Width=0.03 }
  192. },
  193. IsCheckOnSelect = true,
  194. DataSourceUrl = Url.Content("~/SpecialtyApply/List"),
  195. ID = "dgSpecialtyApplyList",
  196. IsPagination = true,
  197. IsShowRowNumbers = true,
  198. IsSingleSelect = false
  199. })
  200. </div>
  201. </div>