Edit.cshtml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. @model EMIS.ViewModel.SupervisionManage.ProjectRecordTeacherView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. ComboGridOptions teacher = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "UserID",
  10. OnSelect = "",
  11. ID = "StaffDropdown",
  12. Name = "StaffDropdown",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="StaffCode", HeaderText="工号", Width=0.1, Align=AlignStyle.Center },
  18. new BoundFieldColumn { FieldName="Name", HeaderText="教师名字", Width=0.1, Align=AlignStyle.Center }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Staff/ListWithNoDataRange"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. IsAutoLoad = true
  26. }
  27. };
  28. }
  29. @section scripts{
  30. <script src="~/Scripts/Business/SupervisionManage/SupervisionUserEdit.js" type="text/javascript"></script>
  31. <script type="text/javascript">
  32. var nonSelect = "@DropdownList.SELECT_ALL";
  33. </script>
  34. }
  35. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  36. {
  37. <div class="p_title">
  38. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  39. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  40. @Html.ContextMenuBar("Edit")
  41. </div>
  42. </div>
  43. <div class="search_list">
  44. @Html.HiddenFor(x => x.SupervisionUserID)
  45. <table cellpadding="0" cellspacing="0" id="educationMissionClassChecktable">
  46. <tr>
  47. <td>@Html.Label("督导员"):</td>
  48. <td> @Html.ComboGridFor(x => x.TeacherID, teacher)</td>
  49. </tr>
  50. </table>
  51. </div>
  52. }