ClassRoomEdit.cshtml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. @model EMIS.ViewModel.EducationManagement.EducationMissionClassView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. ComboGridOptions cgop = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "ClassroomID",
  10. GridOptions = new DataGridOptions
  11. {
  12. Columns = new List<DataGridColumn>()
  13. {
  14. new LinkButtonColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center },
  15. new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Width=0.1, Align=AlignStyle.Center }
  16. },
  17. IsCheckOnSelect = true,
  18. // DataSourceUrl = Url.Content("~/CollegeClassroom/ClassroomListComboGrid?collegeID=" + Model.CollegeID),
  19. DataSourceUrl = Url.Content("~/Classroom/List"),//去除院系条件
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false
  23. }
  24. };
  25. }
  26. @section scripts{
  27. <script src="~/Scripts/Business/EducationManage/EducationMissionClassEdit.js" type="text/javascript"></script>
  28. <script type="text/javascript">
  29. var nonSelect = "@DropdownList.SELECT_ALL";
  30. function EducationMissionClass_ClassRoomSave() {
  31. $(document.forms[0]).submit(); //提交Form表单
  32. }
  33. </script>
  34. }
  35. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  36. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  37. {
  38. <div class="p_title">
  39. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  40. 教学安排设置信息
  41. </div>
  42. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("ClassRoom")</div>
  43. </div>
  44. <div class="search_list">
  45. @Html.HiddenFor(x => x.EducationMissionClassID)
  46. @Html.HiddenFor(x=>x.ApprovalStatus)
  47. <table cellpadding="0" cellspacing="0" id="educationMissionClasstable">
  48. <tr>
  49. <td>@Html.LabelFor(x => x.ClassroomTypeID):
  50. </td>
  51. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ClassroomType, (x => x.ClassroomTypeID), new DropdownListOptions { OnSelect = "queryClassroom", OnLoadSuccess = "loadClassroom" })
  52. </td>
  53. <td>@Html.LabelFor(x => x.ClassroomID):
  54. </td>
  55. <td>@Html.ComboGridFor(x => x.ClassroomID, cgop)
  56. </td>
  57. </tr>
  58. </table>
  59. </div>
  60. }
  61. </div>