Add.cshtml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. @model EMIS.ViewModel.GraduationManage.GraduationRequirement.GrademajorRequirementView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Add";
  6. ComboGridOptions cgop = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "GrademajorID",
  10. //OnSelect = "QueryGrademajorDropdownList",
  11. ID = "GrademajorDropdown",
  12. Name = "GrademajorDropdown",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. //new BoundFieldColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center },
  18. new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Width=0.1, Align=AlignStyle.Center,IsHidden = true },
  19. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, },
  20. new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Width=0.1, Align=AlignStyle.Center, IsHidden = true },
  21. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Width=0.1, Align=AlignStyle.Center, IsHidden = true },
  22. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Width=0.1, Align=AlignStyle.Center, IsHidden = true }
  23. },
  24. IsCheckOnSelect = true,
  25. DataSourceUrl = Url.Content("~/Grademajor/List"),
  26. IsPagination = true,
  27. IsShowRowNumbers = true,
  28. IsSingleSelect = false,
  29. }
  30. };
  31. }
  32. @section scripts{
  33. <script src="~/Scripts/Business/GraduationManage/GraduationRequirement/GrademajorRequirementAdd.js" type="text/javascript"></script>
  34. <script type="text/javascript">
  35. var nonSelect = "@DropdownList.SELECT_ALL";
  36. </script>
  37. }
  38. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  39. @using (Ajax.BeginForm(new AjaxOptions
  40. {
  41. OnSuccess = "EMISFunction.FormSuccess",
  42. OnBegin = "EMISFunction.FormSubmit",
  43. OnComplete = "EMISFunction.FormComplete"
  44. }))
  45. {
  46. <div class="p_title">
  47. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  48. 新增毕业要求</div>
  49. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  50. </div>
  51. <div class="search_list">
  52. <table cellpadding="0" cellspacing="0">
  53. <tr>
  54. <td>@Html.LabelFor(x => x.GrademajorName)</td>
  55. <td>@Html.ComboGridFor(x => x.GrademajorID, cgop)</td>
  56. <td>@Html.LabelFor(x => x.TotalCredit)</td>
  57. <td>@Html.TextBoxFor(x => x.TotalCredit)</td>
  58. </tr>
  59. <tr>
  60. <td>@Html.LabelFor(x => x.RequiredCredit)</td>
  61. <td>@Html.TextBoxFor(x => x.RequiredCredit)</td>
  62. <td>@Html.LabelFor(x => x.OptionalCourseCredit)</td>
  63. <td>@Html.TextBoxFor(x => x.OptionalCourseCredit)</td>
  64. </tr>
  65. </table>
  66. </div>
  67. }
  68. </div>