TeacherSelect.cshtml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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 class="search_input">
  93. <ul>
  94. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  95. <li class="sv">
  96. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgStaffList" } })
  97. </li>
  98. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  99. <li class="sv">
  100. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgStaffList" } })
  101. </li>
  102. <li class="sn" style="padding-left: 5px;">教研室:</li>
  103. <li class="sv">
  104. @Html.ComboGrid(cgopDepartment, new Dictionary<string, string> { { "data-condition", "dgStaffList" } })
  105. </li>
  106. @*<li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  107. <li class="sv">
  108. @Html.DropdownList(new DropdownListOptions { ItemSourceUrl = Url.Content("~/Campus/List"), ID = "CampusDropdown", Name = "CampusDropdown", OnSelect = "QueryCampusDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgStaffList" } })
  109. </li>*@
  110. @*<li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  111. <li class="sv">
  112. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/List"), ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "QueryCollegeDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgStaffList" } })
  113. </li>*@
  114. @* <li class="sn" style="padding-left: 5px;">教研室:</li>
  115. <li class="sv">
  116. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Department/List"), ID = "DepartmentDropdown", Name = "DepartmentDropdown", OnSelect = "QueryDepartmentDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgStaffList" } })
  117. </li>*@
  118. <li class="sn" style="padding-left: 5px;">是否有照片:</li>
  119. <li class="sv">
  120. @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" } })
  121. </li>
  122. </ul>
  123. </div>
  124. </div>
  125. </form>
  126. <div class="search_list">
  127. @Html.DataGrid(new DataGridOptions
  128. {
  129. Columns = new List<DataGridColumn>()
  130. {
  131. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" },
  132. new LinkButtonColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center , Handle="edit" },
  133. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center },
  134. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center },
  135. new BoundFieldColumn { FieldName="BirthDate", HeaderText="出生日期", Align=AlignStyle.Center, Formatter = Formatter.OnlyYearMonthDay },
  136. new BoundFieldColumn { FieldName="TeacherTypeName", HeaderText="教师类型", Align=AlignStyle.Center },
  137. new BoundFieldColumn { FieldName="IncumbencyStateName", HeaderText="当前状态", Align=AlignStyle.Center },
  138. new BoundFieldColumn { FieldName="TitleName", HeaderText="职称", Align=AlignStyle.Center },
  139. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
  140. new BoundFieldColumn { FieldName="DepartmentID", HeaderText="教研室", Align=AlignStyle.Center,IsHidden=true },
  141. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="教研室", Align=AlignStyle.Center,IsHidden=true }
  142. },
  143. IsCheckOnSelect = true,
  144. DataSourceUrl = Url.Content("~/EducationMissionClass/ALLTeacherList"),
  145. //DataSourceUrl = Url.Content("~/Staff/List"),
  146. ID = "dgStaffList",
  147. IsPagination = true,
  148. IsShowRowNumbers = true,
  149. IsSingleSelect = false
  150. })
  151. </div>
  152. </div>