Edit.cshtml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. @model EMIS.ViewModel.MinorManage.MinorPlanManage.MinorSpecialtyView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. ComboGridOptions cgopStandard = new ComboGridOptions
  7. {
  8. TextField = "StandardName",
  9. ValueField = "StandardID",
  10. OnSelect = "reload",
  11. Name = "StandardDictionaryDropDown",
  12. ID = "StandardDictionaryDropDown",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false,
  24. }
  25. };
  26. ComboGridOptions cgopcollege = new ComboGridOptions
  27. {
  28. TextField = "Name",
  29. ValueField = "CollegeID",
  30. GridOptions = new DataGridOptions
  31. {
  32. Columns = new List<DataGridColumn>()
  33. {
  34. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Width=0.1, Align=AlignStyle.Center },
  35. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Width=0.3, Align=AlignStyle.Center }
  36. },
  37. IsCheckOnSelect = true,
  38. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  39. IsPagination = true,
  40. IsShowRowNumbers = true,
  41. IsSingleSelect = false
  42. }
  43. };
  44. }
  45. @section scripts{
  46. <script src="~/Scripts/Business/MinorManage/MinorPlanManage/MinorPlanApplyEdit.js" type="text/javascript"></script>
  47. <script type="text/javascript">
  48. var nonSelect = "@DropdownList.SELECT_ALL";
  49. </script>
  50. }
  51. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  52. @using (Ajax.BeginForm(new AjaxOptions
  53. {
  54. OnSuccess = "EMISFunction.FormSuccess",
  55. OnBegin = "EMISFunction.FormSubmit",
  56. OnComplete = "EMISFunction.FormComplete"
  57. }))
  58. {
  59. <div class="p_title">
  60. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  61. 辅修专业信息</div>
  62. @if (Request["isView"] != "1")
  63. {
  64. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  65. }
  66. </div>
  67. <div class="search_list">
  68. @Html.HiddenFor(x => x.GrademinorID)
  69. @Html.Hidden("MinorSpecialtyCourse")
  70. @Html.HiddenFor(x=>x.YearID)
  71. <table cellpadding="0" cellspacing="0" id="planApplicationtable">
  72. <tr>
  73. <td style="width: 80px;">@Html.LabelFor(x => x.YearID):
  74. </td>
  75. <td>@Html.SchoolYearDropDownListFor(x => x.YearID, new DropdownListOptions { OnSelect = "reload", OnLoadSuccess = "reload"})
  76. </td>
  77. <td>@Html.LabelFor(x => x.StandardName):
  78. </td>
  79. <td>@Html.ComboGridFor(x => x.StandardID, cgopStandard, new Dictionary<string, string> { { "data-condition", "dgStandardAndMinorSpecialtyCourseViewList" } })
  80. </td>
  81. </tr>
  82. <tr>
  83. <td>@Html.LabelFor(x => x.StudentLimit):
  84. </td>
  85. <td>@Html.TextBoxFor(x => x.StudentLimit)
  86. </td>
  87. <td>@Html.LabelFor(x => x.CollegeID):
  88. </td>
  89. <td>@Html.ComboGridFor(x => x.CollegeID, cgopcollege)</td>
  90. </tr>
  91. <tr>
  92. <td>@Html.LabelFor(x => x.SchoolyearID):
  93. </td>
  94. <td>@Html.TextBoxFor(x=>x.SchoolyearCode)
  95. </td>
  96. <td>@Html.LabelFor(x => x.OpenStatusStr)
  97. </td>
  98. <td>@Html.TextBoxFor(x=>x.OpenStatusStr)
  99. </td>
  100. </tr>
  101. <tr>
  102. <td><label>辅修计划:</label>
  103. </td>
  104. <td colspan="3">
  105. @Html.DataGrid(new DataGridOptions
  106. {
  107. Columns = new List<DataGridColumn>()
  108. {
  109. new CheckBoxFieldColumn{ HeaderText="", FieldName="MinorPlanID" },
  110. new LinkButtonColumn { FieldName="SchoolcodeStr", HeaderText="学年学期", Align=AlignStyle.Center , Handle="edit", Width=0.08 },
  111. new BoundFieldColumn { FieldName="YearID", HeaderText="年级", Align=AlignStyle.Center , Width=0.04},
  112. new BoundFieldColumn { FieldName="SpecialtyCode", HeaderText="专业代码", Align=AlignStyle.Center , Width=0.05 },
  113. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 },
  114. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.05},
  115. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 },
  116. new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.05},
  117. new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center, Width=0.03},
  118. new BoundFieldColumn { FieldName="TheoryCourse", HeaderText="理论学时", Align=AlignStyle.Center, Width=0.05},
  119. new BoundFieldColumn { FieldName="Practicehours", HeaderText="实践学时", Align=AlignStyle.Center, Width=0.05},
  120. new BoundFieldColumn { FieldName="Trialhours", HeaderText="实验学时", Align=AlignStyle.Center, Width=0.05},
  121. new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", Align=AlignStyle.Center, Width=0.04},
  122. new BoundFieldColumn { FieldName="SchoolyearNumName", HeaderText="开课学年", Align=AlignStyle.Center, Width=0.05},
  123. new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="开课学期", Align=AlignStyle.Center, Width=0.05},
  124. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center},
  125. new BoundFieldColumn { FieldName="CollegeName", HeaderText="开课"+@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center},
  126. },
  127. IsCheckOnSelect = true,
  128. DataSourceUrl = Url.Content("~/MinorSpecialtyPlan/GetListByMinorSpecialtyID?MinorSpecialtyID=") + @Model.GrademinorID,
  129. ID = "dgMinorSpecialtyPlanList",
  130. IsPagination = true,
  131. IsShowRowNumbers = true,
  132. IsSingleSelect = false
  133. })
  134. </td>
  135. </tr>
  136. </table>
  137. </div>
  138. }
  139. </div>