TeacherSelect.cshtml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "TeacherSelect";
  5. ComboGridOptions cgop = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CampusID",
  9. OnSelect = "QueryCampusDropdownList",
  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 },
  17. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
  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 = "QueryCollegeDropdownList",
  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 },
  38. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  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 = "QueryDepartmentDropdownList",
  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 },
  59. new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center }
  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/EducationManage/TeacherSelect.js" type="text/javascript"></script>
  71. <script>
  72. var nonSelect = "@DropdownList.SELECT_ALL";
  73. </script>
  74. }
  75. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  76. <div class="p_title">
  77. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  78. 教职工列表
  79. </div>
  80. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  81. <div class="current_navbar toolbar">
  82. <div class="func_info">
  83. <a class="easyui-linkbutton" href="javascript:Teacher_Confirm()" data-options="iconCls:'icon-ok',plain:'true'"
  84. onfocus="this.blur()">选中</a>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. <form id="formQuery" method="post">
  90. @Html.PositionCondition("TeacherSelect")
  91. <div class="search_keyword">
  92. </div>
  93. </form>
  94. <div class="search_list">
  95. @Html.DataGrid(new DataGridOptions
  96. {
  97. Columns = new List<DataGridColumn>()
  98. {
  99. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" },
  100. new BoundFieldColumn { FieldName="LoginID", HeaderText="教职工号", Align=AlignStyle.Center },
  101. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center },
  102. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center },
  103. new BoundFieldColumn { FieldName="BirthDate", HeaderText="出生日期", Align=AlignStyle.Center, Formatter = Formatter.OnlyYearMonthDay },
  104. new BoundFieldColumn { FieldName="TeacherTypeName", HeaderText="教师类型", Align=AlignStyle.Center },
  105. new BoundFieldColumn { FieldName="IncumbencyStateName", HeaderText="当前状态", Align=AlignStyle.Center },
  106. new BoundFieldColumn { FieldName="TitleName", HeaderText="职称", Align=AlignStyle.Center },
  107. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
  108. new BoundFieldColumn { FieldName="DepartmentID", HeaderText="教研室", Align=AlignStyle.Center,IsHidden=true },
  109. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="教研室", Align=AlignStyle.Center,IsHidden=true }
  110. },
  111. IsCheckOnSelect = true,
  112. DataSourceUrl = Url.Content("~/SupervisionUser/List"),
  113. //DataSourceUrl = Url.Content("~/Staff/List"),
  114. ID = "dgStaffList",
  115. IsPagination = true,
  116. IsShowRowNumbers = true,
  117. IsSingleSelect = false
  118. })
  119. </div>
  120. </div>