List.cshtml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions cgop = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CampusID",
  9. OnSelect = "QueryCampusComboGridList",
  10. Name = "CampusDropdown",
  11. ID = "CampusDropdown",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.1 },
  17. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.1 }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/Campus/List"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false,
  24. }
  25. };
  26. ComboGridOptions cgopCollege = new ComboGridOptions
  27. {
  28. TextField = "Name",
  29. ValueField = "CollegeID",
  30. OnSelect = "QueryCollegeComboGridList",
  31. Name = "CollegeDropdown",
  32. ID = "CollegeDropdown",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  38. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  39. },
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/College/List"),
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false,
  45. }
  46. };
  47. ComboGridOptions cgopDepartment = new ComboGridOptions
  48. {
  49. TextField = "Name",
  50. ValueField = "DepartmentID",
  51. OnSelect = "QueryDepartmentComboGridList",
  52. Name = "DepartmentDropdown",
  53. ID = "DepartmentDropdown",
  54. GridOptions = new DataGridOptions
  55. {
  56. Columns = new List<DataGridColumn>()
  57. {
  58. // new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.1 },
  59. new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center, Width=0.2 }
  60. },
  61. IsCheckOnSelect = true,
  62. DataSourceUrl = Url.Content("~/Department/List"),
  63. IsPagination = true,
  64. IsShowRowNumbers = true,
  65. IsSingleSelect = false,
  66. }
  67. };
  68. }
  69. @section scripts{
  70. <script src="~/Scripts/Business/System/Staff.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. 查询条件</div>
  80. </div>
  81. <form id="formQuery" method="post" action="@Url.Content("~/Staff/Excel")">
  82. @Html.PositionCondition()
  83. <div class="search_keyword">
  84. <div class="search_input">
  85. <ul>
  86. @*<li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  87. <li class="sv">
  88. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgStaffList" } })
  89. </li>*@
  90. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  91. <li class="sv">
  92. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgStaffList" } })
  93. </li>
  94. <li class="sn" style="padding-left: 5px;">教研室:</li>
  95. <li class="sv">
  96. @Html.ComboGrid(cgopDepartment, new Dictionary<string, string> { { "data-condition", "dgStaffList" } })
  97. </li>
  98. <li class="sn" style="padding-left: 5px;">是否有照片:</li>
  99. <li class="sv">
  100. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "PhotoUrltmentDropdown", ID = "PhotoUrltmentDropdown", OnSelect = "QueryPhotoUrltmentDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgStaffList" } })
  101. </li>
  102. </ul>
  103. </div>
  104. </div>
  105. </form>
  106. <div class="p_title">
  107. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  108. 教师信息列表</div>
  109. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  110. </div>
  111. @Html.PositionBatchModify()
  112. <div class="search_list">
  113. @Html.DataGrid(new DataGridOptions
  114. {
  115. Columns = new List<DataGridColumn>()
  116. {
  117. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" },
  118. new LinkButtonColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center , Handle="edit", Width=0.05 },
  119. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  120. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, Width=0.03 },
  121. new BoundFieldColumn { FieldName="BirthDate", HeaderText="出生日期", Align=AlignStyle.Center, Width=0.05, Formatter = Formatter.OnlyYearMonthDay },
  122. new BoundFieldColumn { FieldName="IncumbencyStateName", HeaderText="在职状态", Align=AlignStyle.Center, Width=0.05 },
  123. new BoundFieldColumn { FieldName="TeacherTypeName", HeaderText="教师类型", Align=AlignStyle.Center, Width=0.05 },
  124. new BoundFieldColumn { FieldName="TitleName", HeaderText="职称", Align=AlignStyle.Center, Width=0.04 },
  125. new BoundFieldColumn { FieldName="OfficeTelephone", HeaderText="办公电话", Align=AlignStyle.Center, Width=0.06 },
  126. new BoundFieldColumn { FieldName="CollegeNo", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
  127. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.1 },
  128. new BoundFieldColumn { FieldName="Remarks", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=5 }
  129. },
  130. IsCheckOnSelect = true,
  131. DataSourceUrl = Url.Content("~/Staff/List"),
  132. ID = "dgStaffList",
  133. IsPagination = true,
  134. IsShowRowNumbers = true,
  135. IsSingleSelect = false
  136. })
  137. </div>
  138. </div>