CourseProcessTeacherEdit.cshtml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. @using EMIS.Web.Controls;
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.ViewModel;
  4. @{
  5. ViewBag.Title = "Edit";
  6. }
  7. @section scripts{
  8. <script src="@Url.Content("~/Scripts/Business/EducationManage/CourseProcessTeacher.js")" type="text/javascript"></script>
  9. <script type="text/javascript">
  10. var nonSelect = "@DropdownList.SELECT_ALL";
  11. </script>
  12. }
  13. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  14. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  15. {
  16. <div class="p_title">
  17. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("CourseProcessTeacher")</div>
  18. </div>
  19. <div class="search_list">
  20. @Html.DataGrid(new DataGridOptions
  21. {
  22. Columns = new List<DataGridColumn>()
  23. {
  24. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" },
  25. new LinkButtonColumn { FieldName="LoginID", HeaderText="教职工号", Align=AlignStyle.Center , Handle="edit" },
  26. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center },
  27. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center },
  28. new BoundFieldColumn { FieldName="TitleName", HeaderText="职称", Align=AlignStyle.Center },
  29. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
  30. new BoundFieldColumn { FieldName="CollegeID", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center ,IsHidden=true },
  31. new BoundFieldColumn { FieldName="DepartmentID", HeaderText="教研室", Align=AlignStyle.Center,IsHidden=true },
  32. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="教研室", Align=AlignStyle.Center },
  33. new DictionaryDropdownListColumn { FieldName="TeachingMethod", HeaderText="任课方式", Align=AlignStyle.Center,
  34. DictionaryType = EMIS.ViewModel.DictionaryItem.EM_TeachingMethod },
  35. new LinkButtonColumn { Text="课表预览", HeaderText="", Align=AlignStyle.Center, Handle="Preview" }
  36. },
  37. IsCheckOnSelect = true,
  38. DataSourceUrl = Url.Content("~/EducationMissionClass/CourseProcessTeacherList?courseProcessID=" + Request["CourseProcessID"]),
  39. IsPostBack = true,
  40. ID = "dgTeacherList",
  41. IsPagination = false,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false
  44. })
  45. </div>
  46. }
  47. </div>