Edit.cshtml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. @model EMIS.ViewModel.GraduationManage.GraduationRequirement.GraduationCourseView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. //年级专业
  7. ComboGridOptions cgopGrademajor = new ComboGridOptions
  8. {
  9. ID = "GrademajorComboGrid",
  10. Name = "GrademajorComboGrid",
  11. TextField = "Name",
  12. ValueField = "GrademajorID",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center, Width=0.2 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.35 }
  19. //new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.1 },
  20. //new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 },
  21. //new BoundFieldColumn { FieldName="EducationName", HeaderText=@EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.1 },
  22. //new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.1 },
  23. //new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.1 }
  24. },
  25. PageSize = 3,
  26. IsCheckOnSelect = true,
  27. DataSourceUrl = Url.Content("~/Grademajor/List"),
  28. IsPagination = true,
  29. IsShowRowNumbers = true,
  30. IsSingleSelect = false,
  31. MaxHeight = 120
  32. }
  33. };
  34. //课程信息
  35. ComboGridOptions cgopCourse = new ComboGridOptions
  36. {
  37. ID = "CoursematerialComboGrid",
  38. Name = "CoursematerialComboGrid",
  39. TextField = "CourseName",
  40. ValueField = "CoursematerialID",
  41. GridOptions = new DataGridOptions
  42. {
  43. Columns = new List<DataGridColumn>()
  44. {
  45. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.2 },
  46. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.3 }
  47. },
  48. PageSize =3,
  49. IsCheckOnSelect = true,
  50. DataSourceUrl = Url.Content("~/Coursematerial/List"),
  51. IsPagination = true,
  52. IsShowRowNumbers = true,
  53. IsSingleSelect = false,
  54. MaxHeight =120
  55. }
  56. };
  57. }
  58. @section scripts{
  59. <script src="~/Scripts/Business/GraduationManage/GraduationRequirement/GraduationCourseEdit.js" type="text/javascript"></script>
  60. <script type="text/javascript">
  61. </script>
  62. }
  63. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  64. @using (Ajax.BeginForm(new AjaxOptions
  65. {
  66. OnSuccess = "EMISFunction.FormSuccess",
  67. OnBegin = "EMISFunction.FormSubmit",
  68. OnComplete = "EMISFunction.FormComplete"
  69. }))
  70. {
  71. <div class="p_title">
  72. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  73. @*毕业课程信息*@
  74. </div>
  75. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  76. </div>
  77. <div class="search_list">
  78. <table cellpadding="0" cellspacing="0">
  79. @Html.HiddenFor(x => x.GraduationCourseID)
  80. <tr>
  81. <td>
  82. @Html.LabelFor(x => x.GrademajorName)
  83. </td>
  84. <td>
  85. @Html.ComboGridFor(x => x.GrademajorID, cgopGrademajor)
  86. </td>
  87. <td>
  88. @Html.LabelFor(x => x.CourseName)
  89. </td>
  90. <td>
  91. @Html.ComboGridFor(x => x.CoursematerialID, cgopCourse)
  92. </td>
  93. </tr>
  94. <tr>
  95. <td>
  96. @Html.LabelFor(x => x.CourseTypeName)
  97. </td>
  98. <td>
  99. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_CourseType, (x => x.CourseTypeID), DropdownListBindType.PleaseSelect)
  100. </td>
  101. <td style="color: red;">
  102. @Html.LabelFor(x => x.CourseCredit)
  103. </td>
  104. <td>
  105. @Html.TextBoxFor(x => x.CourseCredit)
  106. </td>
  107. </tr>
  108. </table>
  109. </div>
  110. }
  111. </div>