ExaminationTeacherSelectGdss.cshtml 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "TeacherSelect";
  5. }
  6. @section scripts{
  7. <script src="~/Scripts/Business/Common/TeacherSelector.js" type="text/javascript"></script>
  8. <script type="text/javascript">
  9. function Teacher_Confirm() {
  10. top.$("#@(Request["WindowID"])").data("resultData", validChoose());
  11. top.$("#@(Request["WindowID"])").dialog("close");
  12. }
  13. </script>
  14. }
  15. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  16. <div class="p_title">
  17. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  18. 教职工列表</div>
  19. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  20. <div class="current_navbar toolbar">
  21. <div class="func_info">
  22. <a class="easyui-linkbutton" href="javascript:Teacher_Confirm()" data-options="iconCls:'icon-ok',plain:'true'"
  23. onfocus="this.blur()">选中</a>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. <form id="formQuery" method="post">
  29. @Html.PositionCondition("TeacherSelect")
  30. <div class="search_keyword">
  31. <div class="search_input">
  32. <ul>
  33. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  34. <li class="sv">
  35. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Campus/CampusDropdownListBanid"), ID = "CampusDropdown", Name = "CampusDropdown", OnSelect = "QueryCampusDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgStaffList" } })
  36. </li>
  37. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  38. <li class="sv">
  39. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanid"), ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "QueryCollegeDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgStaffList" } })
  40. </li>
  41. <li class="sn" style="padding-left: 5px;">教研室:</li>
  42. <li class="sv">
  43. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Department/DepartmentDropdownListBanid"), ID = "DepartmentDropdown", Name = "DepartmentDropdown", OnSelect = "QueryDepartmentDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgStaffList" } })
  44. </li>
  45. </ul>
  46. </div>
  47. </div>
  48. </form>
  49. <div class="search_list">
  50. @Html.DataGrid(new DataGridOptions
  51. {
  52. Columns = new List<DataGridColumn>()
  53. {
  54. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" },
  55. new LinkButtonColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center , Handle="edit" },
  56. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center },
  57. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center },
  58. new BoundFieldColumn { FieldName="BirthDate", HeaderText="出生日期", Align=AlignStyle.Center, Formatter = Formatter.OnlyYearMonthDay },
  59. new BoundFieldColumn { FieldName="TeacherTypeName", HeaderText="教师类型", Align=AlignStyle.Center },
  60. new BoundFieldColumn { FieldName="IncumbencyStateName", HeaderText="当前状态", Align=AlignStyle.Center },
  61. new BoundFieldColumn { FieldName="TitleName", HeaderText="职称", Align=AlignStyle.Center },
  62. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center }
  63. },
  64. IsCheckOnSelect = true,
  65. DataSourceUrl = Url.Content("~/ExaminationTeacher/AvailableListGdss?schoolyearID=" + Request["schoolyearID"]
  66. + "&classroomID=" + Request["classroomID"]
  67. + "&examinationDate=" + Request["examinationDate"]
  68. + "&startTime=" + Request["startTime"]
  69. + "&endTime=" + Request["endTime"]),
  70. ID = "dgStaffList",
  71. IsPagination = true,
  72. IsShowRowNumbers = true,
  73. IsSingleSelect = false
  74. })
  75. </div>
  76. </div>