List.cshtml 8.2 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/Reentry.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 = BaseExtensions.GetCurrentSchoolYearID(), 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. </ul>
  118. </div>
  119. </div>
  120. </form>
  121. <div class="p_title">
  122. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  123. 复学名单
  124. </div>
  125. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  126. </div>
  127. <div class="search_list">
  128. @Html.DataGrid(new DataGridOptions
  129. {
  130. Columns = new List<DataGridColumn>()
  131. {
  132. new CheckBoxFieldColumn{ HeaderText="", FieldName="ID"},
  133. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center,Width=0.1 },
  134. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center,Width=0.06,OverflowLength=6 },
  135. new BoundFieldColumn { FieldName="EndDate", HeaderText="结束日期", Align=AlignStyle.Center, Formatter = Formatter.OnlyYearMonthDay, Width=0.07 },
  136. new BoundFieldColumn { FieldName="DifferentDynamicTypeDesc", HeaderText="异动类型", Align=AlignStyle.Center,Width=0.05 },
  137. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="异动前班级", Align=AlignStyle.Center,Width=0.12 },
  138. new BoundFieldColumn { FieldName="StudentStatusDesc", HeaderText="异动前学籍状态", Align=AlignStyle.Center,Width=0.05 },
  139. new BoundFieldColumn { FieldName="AfterClassmajorName", HeaderText="异动后班级", Align=AlignStyle.Center,Width=0.12 },
  140. new BoundFieldColumn { FieldName="AfterStudentStatusDesc", HeaderText="异动后学籍状态", Align=AlignStyle.Center,Width=0.05 },
  141. new BoundFieldColumn { FieldName="ReasonDesc", HeaderText="异动原因", Align=AlignStyle.Center,Width=0.06 },
  142. new BoundFieldColumn { FieldName="IsReentriedDesc", HeaderText="是否已复学处理", Align=AlignStyle.Center,Width=0.05 },
  143. new BoundFieldColumn { FieldName="CollegeName", HeaderText="所属学院", Align=AlignStyle.Center,Width=0.1 },
  144. new BoundFieldColumn { FieldName="CampusName", HeaderText="所属校区", Align=AlignStyle.Center,Width=0.1 }
  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>