TeacherEdit.cshtml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "TeacherEdit";
  5. }
  6. @section scripts{
  7. <script type="text/javascript">
  8. function Teacher_Confirm() {
  9. $.messager.alert('系统信息', '保存成功。');
  10. top.$("#@(Request["WindowID"])").dialog("close");
  11. }
  12. </script>
  13. <script src="~/Scripts/Business/SelectCourseManage/FreeSelectionCourseApplyTeacherEdit.js"
  14. type="text/javascript"></script>
  15. }
  16. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  17. <div class="p_title">
  18. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  19. 选择教师</div>
  20. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("TeacherEdit")</div>
  21. </div>
  22. <div class="search_list popupWindowContent">
  23. <div style="float: left; position: absolute; width: 220px;">
  24. <div class="p_SearchTitle">
  25. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  26. 教师列表</div>
  27. </div>
  28. <div class="search_list">
  29. @Html.DataGrid(new DataGridOptions
  30. {
  31. Columns = new List<DataGridColumn>()
  32. {
  33. new BoundFieldColumn { FieldName="UserID", IsHidden=true },
  34. new BoundFieldColumn { FieldName="LoginID", HeaderText="教职工号", Align=AlignStyle.Center },
  35. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center },
  36. new BoundFieldColumn { FieldName="TeachingMethodDesc", Align=AlignStyle.Center },
  37. new LinkButtonColumn { Text="删除", Handle="delTeacher" }
  38. },
  39. IsCheckOnSelect = true,
  40. DataSourceUrl = Url.Content("~/FreeSelectionCourseApply/TeacherList?freeSelectionCourseApplyID=" + Request["FreeSelectionCourseApplyID"]),
  41. ID = "dgTeacherList",
  42. IsAutoLoad = true,
  43. IsPagination = false,
  44. IsShowRowNumbers = true,
  45. IsSingleSelect = false
  46. })
  47. </div>
  48. </div>
  49. <div style="float: left; position: absolute; margin-left: 222px; width: 2px; background-color: #e8e8e8;
  50. height: 100%;">
  51. </div>
  52. <div style="float: right; position: absolute; margin-left: 225px;">
  53. <div class="p_SearchTitle">
  54. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  55. 添加教师</div>
  56. </div>
  57. <form id="formQuery" method="post">
  58. <div class="search_keyword">
  59. <div class="search_input">
  60. <ul>
  61. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  62. <li class="sv">
  63. @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" } })
  64. </li>
  65. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  66. <li class="sv">
  67. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanid"), ID = "CollegeDropdown", Name = "CollegeDropdown" }, new Dictionary<string, string> { { "data-condition", "dgStaffList" } })
  68. </li>
  69. </ul>
  70. <ul>
  71. <li class="sn" style="padding-left: 5px;">教职工号:</li>
  72. <li class="sv">
  73. @Html.TextBox(new TextBoxOptions() { ID = "LoginID", Name = "LoginID" }, new Dictionary<string, string> { { "data-condition", "dgStaffList" } })
  74. </li>
  75. <li class="sn" style="padding-left: 5px;">教师姓名:</li>
  76. <li class="sv">
  77. @Html.TextBox(new TextBoxOptions() { ID = "Name", Name = "Name" }, new Dictionary<string, string> { { "data-condition", "dgStaffList" } })
  78. </li>
  79. <li class="sn" style="padding-left: 5px;"><a href="javascript:void(0)" class="easyui-linkbutton"
  80. data-options="iconCls:'icon-search'" onclick="reload();">查询</a> </li>
  81. </ul>
  82. </div>
  83. </div>
  84. </form>
  85. <div class="search_list">
  86. @Html.DataGrid(new DataGridOptions
  87. {
  88. Columns = new List<DataGridColumn>()
  89. {
  90. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" },
  91. new BoundFieldColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center },
  92. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center },
  93. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center },
  94. new BoundFieldColumn { FieldName="TitleName", HeaderText="职称", Align=AlignStyle.Center },
  95. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
  96. new DictionaryDropdownListColumn { FieldName="TeachingMethod", HeaderText="任课方式", Align=AlignStyle.Center,
  97. DictionaryType = EMIS.ViewModel.DictionaryItem.EM_TeachingMethod }
  98. },
  99. IsCheckOnSelect = true,
  100. DataSourceUrl = Url.Content("~/Staff/ListForTeacherEdit"),
  101. ID = "dgStaffList",
  102. IsPagination = true,
  103. IsShowRowNumbers = true,
  104. IsSingleSelect = false
  105. })
  106. </div>
  107. </div>
  108. </div>
  109. </div>