List.cshtml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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 = "cbgCampus",
  12. ID = "cbgCampus",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
  18. },
  19. //OnLoadSuccessFun = "reload",
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Campus/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. ComboGridOptions cgopCollege = new ComboGridOptions
  28. {
  29. TextField = "Name",
  30. ValueField = "CollegeID",
  31. OnSelect = "queryCollege",
  32. Name = "cbgCollege",
  33. ID = "cbgCollege",
  34. GridOptions = new DataGridOptions
  35. {
  36. Columns = new List<DataGridColumn>()
  37. {
  38. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  39. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  40. },
  41. IsCheckOnSelect = true,
  42. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  43. IsPagination = true,
  44. IsShowRowNumbers = true,
  45. IsSingleSelect = false,
  46. }
  47. };
  48. ComboGridOptions cgopStandard = new ComboGridOptions
  49. {
  50. TextField = "StandardName",
  51. ValueField = "StandardID",
  52. OnSelect = "queryStandard",
  53. Name = "cbgStandard",
  54. ID = "cbgStandard",
  55. GridOptions = new DataGridOptions
  56. {
  57. Columns = new List<DataGridColumn>()
  58. {
  59. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  60. },
  61. IsCheckOnSelect = true,
  62. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  63. IsPagination = true,
  64. IsShowRowNumbers = true,
  65. IsSingleSelect = false,
  66. }
  67. };
  68. }
  69. @section scripts{
  70. <script src="~/Scripts/Business/DifferentDynamic/BatchSuspend.js" type="text/javascript"></script>
  71. <script type="text/javascript">
  72. var nonSelect = "@DropdownList.SELECT_ALL";
  73. </script>
  74. }
  75. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  76. @Html.Position()
  77. <div class="p_SearchTitle">
  78. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  79. 查询条件
  80. </div>
  81. </div>
  82. <form id="formQuery" method="post" action="@Url.Action("Excel")">
  83. @Html.PositionCondition()
  84. <div class="search_keyword">
  85. <div class="search_input">
  86. <ul>
  87. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  88. <li class="sv">
  89. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, SelectedValue = ViewBag.SchoolYearID, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "ddlSchoolYear", Name = "ddlSchoolYear", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  90. </li>
  91. <li class="sn" style="padding-left: 5px;" >@EMIS.Utility.RSL.Get("Campus"):</li>
  92. <li class="sv">
  93. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgList" } })
  94. </li>
  95. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  96. <li class="sv">
  97. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgList" } })
  98. </li>
  99. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  100. <li class="sv">
  101. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { ID = "ddlEducation", Name = "ddlEducation", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  102. </li>
  103. </ul>
  104. <ul>
  105. <li class="sn" style="padding-left: 5px;">年级:</li>
  106. <li class="sv">
  107. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  108. </li>
  109. <li class="sn" style="padding-left: 5px;">专业:</li>
  110. <li class="sv">
  111. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgList" } })
  112. </li>
  113. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  114. <li class="sv">
  115. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform, new DropdownListOptions { ID = "ddlLearningform", Name = "ddlLearningform", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  116. </li>
  117. <li class="sn" style="padding-left: 5px;">审批状态:</li>
  118. <li class="sv">
  119. @Html.DropdownList(new DropdownListOptions { ID = "ddlStatus", Name = "ddlStatus", ItemSourceUrl = Url.Content("~/Common/ApproveStatusDropDown?tableName=" + typeof(EMIS.Entities.CF_DifferentDynamic).Name), BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  120. </li>
  121. </ul>
  122. </div>
  123. </div>
  124. </form>
  125. <div class="p_title">
  126. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  127. 批量休学列表
  128. </div>
  129. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  130. </div>
  131. <div class="search_list">
  132. @Html.DataGrid(new DataGridOptions
  133. {
  134. Columns = new List<DataGridColumn>()
  135. {
  136. new CheckBoxFieldColumn{ HeaderText="", FieldName="EntityID"},
  137. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center,Width=0.1 },
  138. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center,Width=0.06,OverflowLength=6 },
  139. new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Handle="edit",Width=0.07 },
  140. new BoundFieldColumn { FieldName="DifferentDynamicTypeName", HeaderText="异动类型", Align=AlignStyle.Center,Width=0.15 },
  141. new BoundFieldColumn { FieldName="ReasonName", HeaderText="异动原因", Align=AlignStyle.Center, OverflowLength=6,Width=0.15 },
  142. new ApproveStatusColumn { FieldName="ApprovalStatusName", TableName="CF_DifferentDynamic", IDFieldName="EntityID",
  143. HeaderText="状态", Align=AlignStyle.Center,Width=0.15 },
  144. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center,Width=0.25 }
  145. },
  146. IsCheckOnSelect = true,
  147. DataSourceUrl = Url.Action("List"),
  148. ID = "dgList",
  149. IsPagination = true,
  150. IsShowRowNumbers = true,
  151. IsSingleSelect = false
  152. })
  153. </div>
  154. </div>