List.cshtml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. ComboGridOptions cgop = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CampusID",
  10. OnSelect = "QueryCampusDropdownList",
  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, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.1 }
  19. },
  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 = "QueryCollegeDropdownList",
  32. Name = "CollegeDropdown",
  33. ID = "CollegeDropdown",
  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, Width=0.1 },
  39. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  40. },
  41. IsCheckOnSelect = true,
  42. DataSourceUrl = Url.Content("~/College/List"),
  43. IsPagination = true,
  44. IsShowRowNumbers = true,
  45. IsSingleSelect = false,
  46. }
  47. };
  48. ComboGridOptions cgopDepartment = new ComboGridOptions
  49. {
  50. TextField = "Name",
  51. ValueField = "DepartmentID",
  52. OnSelect = "QueryDepartmentDropdownList",
  53. Name = "DepartmentDropdown",
  54. ID = "DepartmentDropdown",
  55. GridOptions = new DataGridOptions
  56. {
  57. Columns = new List<DataGridColumn>()
  58. {
  59. // new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.1 },
  60. new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center, Width=0.2 }
  61. },
  62. IsCheckOnSelect = true,
  63. DataSourceUrl = Url.Content("~/Department/List"),
  64. IsPagination = true,
  65. IsShowRowNumbers = true,
  66. IsSingleSelect = false,
  67. }
  68. };
  69. }
  70. @section scripts{
  71. <script src="~/Scripts/Business/System/User.js" type="text/javascript"></script>
  72. <script type="text/javascript">
  73. var nonSelect = "@DropdownList.SELECT_ALL";
  74. </script>
  75. }
  76. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  77. @Html.Position()
  78. <div class="p_SearchTitle">
  79. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  80. 查询条件</div>
  81. </div>
  82. <form id="formQuery" method="post" action="@Url.Content("~/User/Excel")">
  83. @Html.PositionCondition()
  84. <div class="search_keyword">
  85. <div class="search_input">
  86. <ul>
  87. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  88. <li class="sv">
  89. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgUserList" } })
  90. </li>
  91. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  92. <li class="sv">
  93. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgUserList" } })
  94. </li>
  95. <li class="sn" style="padding-left: 5px;">教研室:</li>
  96. <li class="sv">
  97. @Html.ComboGrid(cgopDepartment, new Dictionary<string, string> { { "data-condition", "dgUserList" } })
  98. </li>
  99. </ul>
  100. <ul>
  101. <li class="sn" style="padding-left: 5px;">角色名称:</li>
  102. <li class="sv">
  103. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = "~/Role/RoleDropdownList", ID = "Role", Name = "Role", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgUserList" } })
  104. </li>
  105. <li class="sn" style="padding-left: 5px;">数据范围:</li>
  106. <li class="sv">
  107. @Html.DictionaryDropDownListForSearch(EMIS.ViewModel.DictionaryItem.SYS_DataRange, "dgUserList", new DropdownListOptions { ID = "DataRange", Name = "DataRange", OnSelect = "reload" })
  108. </li>
  109. <li class="sn" style="padding-left: 5px;">帐号状态:</li>
  110. <li class="sv">
  111. @Html.DictionaryDropDownListForSearch(EMIS.ViewModel.DictionaryItem.SYS_STATUS, "dgUserList", new DropdownListOptions { ID = "Stauts", Name = "Stauts", OnSelect = "reload" })
  112. </li>
  113. </ul>
  114. </div>
  115. <div style="padding-left: 5px;">
  116. @*角色名称:@Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = "~/Role/RoleDropdownList", ID = "Role", Name = "Role", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgUserList" } })
  117. &nbsp;数据范围:@Html.DictionaryDropDownListForSearch(EMIS.ViewModel.DictionaryItem.SYS_DataRange, "dgUserList", new DropdownListOptions { ID = "DataRange", Name = "DataRange", OnSelect = "reload" })
  118. &nbsp;帐号状态:@Html.DictionaryDropDownListForSearch(EMIS.ViewModel.DictionaryItem.SYS_STATUS, "dgUserList", new DropdownListOptions { ID = "Stauts", Name = "Stauts", OnSelect = "reload" })
  119. *@</div>
  120. </div>
  121. <div class="p_title">
  122. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  123. 教师用户列表</div>
  124. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  125. </div>
  126. </form>
  127. @Html.PositionBatchModify()
  128. <div class="search_list">
  129. @Html.DataGrid(new DataGridOptions
  130. {
  131. Columns = new List<DataGridColumn>()
  132. {
  133. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
  134. new BoundFieldColumn { FieldName="LoginID", HeaderText="用户名", Align=AlignStyle.Center, Width=0.05 },
  135. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  136. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, OrderFieldName="SexID", Width=0.03 },
  137. //new BoundFieldColumn { FieldName="BirthDate", HeaderText="出生日期", Align=AlignStyle.Center, Formatter = Formatter.OnlyYearMonthDay, Width=0.06 },
  138. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08, OverflowLength=10 },
  139. new BoundFieldColumn { FieldName="RoleOrderNo", HeaderText="角色序号", Align=AlignStyle.Center, Width=0.04 },
  140. new BoundFieldColumn { FieldName="RoleName", HeaderText="角色名称", Align=AlignStyle.Center, Width=0.05, OverflowLength=6 },
  141. //new BoundFieldColumn { FieldName="TypeName", HeaderText="角色类型", Align=AlignStyle.Center, OrderFieldName="TypeID", Width=0.04 },
  142. new BoundFieldColumn { FieldName="DataRangeName", HeaderText="数据范围", Align=AlignStyle.Center, OrderFieldName="DataRange", Width=0.04 },
  143. new BoundFieldColumn { FieldName="RecordStatusName", HeaderText="帐号状态", Align=AlignStyle.Center, OrderFieldName="RecordStatus", Width=0.04 },
  144. new BoundFieldColumn { FieldName="CreateTime", HeaderText="创建时间", Formatter=Formatter.LongDate, Align=AlignStyle.Center, Width=0.08 },
  145. new BoundFieldColumn { FieldName="ModifyTime", HeaderText="修改时间", Formatter=Formatter.LongDate, Align=AlignStyle.Center, Width=0.08 }
  146. },
  147. IsCheckOnSelect = true,
  148. DataSourceUrl = Url.Content("~/User/List"),
  149. ID = "dgUserList",
  150. IsPagination = true,
  151. IsShowRowNumbers = true,
  152. IsSingleSelect = false
  153. })
  154. </div>
  155. </div>