Edit.cshtml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. @model EMIS.ViewModel.MinorManage.MinorPlanManage.MinorPlanApplyView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. var DataRange = ViewBag.DataRange;
  7. ComboGridOptions cgopStandard = new ComboGridOptions
  8. {
  9. TextField = "StandardName",
  10. ValueField = "StandardID",
  11. OnSelect = "reload",
  12. Name = "StandardDictionaryDropDown",
  13. ID = "StandardDictionaryDropDown",
  14. IsEnabled=false,
  15. GridOptions = new DataGridOptions
  16. {
  17. Columns = new List<DataGridColumn>()
  18. {
  19. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  20. },
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false,
  26. }
  27. };
  28. ComboGridOptions cgopcollege = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "CollegeID",
  32. GridOptions = new DataGridOptions
  33. {
  34. Columns = new List<DataGridColumn>()
  35. {
  36. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Width=0.1, Align=AlignStyle.Center },
  37. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Width=0.3, Align=AlignStyle.Center }
  38. },
  39. IsCheckOnSelect = true,
  40. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  41. IsPagination = true,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false
  44. }
  45. };
  46. if (DataRange != (int)EMIS.ViewModel.SYS_DataRange.All)
  47. {
  48. cgopcollege = new ComboGridOptions
  49. {
  50. TextField = "Name",
  51. ValueField = "CollegeID",
  52. IsEnabled = false,
  53. GridOptions = new DataGridOptions
  54. {
  55. Columns = new List<DataGridColumn>()
  56. {
  57. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Width=0.1, Align=AlignStyle.Center },
  58. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Width=0.3, Align=AlignStyle.Center }
  59. },
  60. IsCheckOnSelect = true,
  61. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  62. IsPagination = true,
  63. IsShowRowNumbers = true,
  64. IsSingleSelect = false
  65. }
  66. };
  67. }
  68. }
  69. @section scripts{
  70. <script src="~/Scripts/Business/MinorManage/MinorPlanManage/MinorPlanApplyEdit.js" type="text/javascript"></script>
  71. <script type="text/javascript">
  72. var nonSelect = "@DropdownList.SELECT_ALL";
  73. var DataRange = '@DataRange';
  74. </script>
  75. }
  76. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  77. @using (Ajax.BeginForm(new AjaxOptions
  78. {
  79. OnSuccess = "EMISFunction.FormSuccess",
  80. OnBegin = "EMISFunction.FormSubmit",
  81. OnComplete = "EMISFunction.FormComplete"
  82. }))
  83. {
  84. <div class="p_title">
  85. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  86. 辅修申请信息</div>
  87. @if (Request["isView"] != "1")
  88. {
  89. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  90. }
  91. </div>
  92. <div class="search_list">
  93. @Html.HiddenFor(x => x.GradeMinorApplicationID)
  94. @Html.Hidden("MinorSpecialtyCourse")
  95. @Html.HiddenFor(x=>x.YearID)
  96. @if (DataRange != (int)EMIS.ViewModel.SYS_DataRange.All)
  97. {
  98. @Html.HiddenFor(x => x.CollegeID)
  99. }
  100. <table cellpadding="0" cellspacing="0" id="planApplicationtable">
  101. <tr>
  102. <td style="width: 80px;">@Html.LabelFor(x => x.YearID):
  103. </td>
  104. <td>@Html.SchoolYearDropDownListFor(x => x.YearID, new DropdownListOptions { OnSelect = "reload", OnLoadSuccess = "reload", IsEnabled = false })
  105. </td>
  106. <td>@Html.LabelFor(x => x.StandardName):
  107. </td>
  108. <td>@Html.ComboGridFor(x => x.StandardID, cgopStandard, new Dictionary<string, string> { { "data-condition", "dgStandardAndMinorSpecialtyCourseViewList" } })
  109. </td>
  110. </tr>
  111. <tr>
  112. <td>@Html.LabelFor(x => x.StudentLimit):
  113. </td>
  114. <td>@Html.TextBoxFor(x => x.StudentLimit)
  115. </td>
  116. <td>@Html.LabelFor(x => x.CollegeID):
  117. </td>
  118. <td>@Html.ComboGridFor(x => x.CollegeID, cgopcollege)</td>
  119. </tr>
  120. <tr>
  121. <td>@Html.LabelFor(x => x.Remarks):
  122. </td>
  123. <td colspan="3">@Html.TextAreaFor(x => x.Remarks, new Dictionary<string, object> { { "style", "width: 98%;" } })
  124. </td>
  125. </tr>
  126. <tr>
  127. <td><label>专业课程:</label>
  128. </td>
  129. <td colspan="3">
  130. @Html.DataGrid(new DataGridOptions
  131. {
  132. Columns = new List<DataGridColumn>()
  133. {
  134. new CheckBoxFieldColumn{ HeaderText="", FieldName="MinorCourseID" },
  135. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center },
  136. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center },
  137. new DictionaryDropdownListColumn { FieldName="StarttermID", HeaderText="开课学期",DictionaryType=EMIS.ViewModel.DictionaryItem.CF_Startterm, Align=AlignStyle.Center },
  138. new TextBoxColumn { FieldName="Credit", HeaderText="学分",IsRequired=true, Align=AlignStyle.Center },
  139. new TextBoxColumn { FieldName="TheoryCourse", HeaderText="理论学时",IsRequired=true, Align=AlignStyle.Center },
  140. new TextBoxColumn { FieldName="Practicehours", HeaderText="实践学时",IsRequired=true, Align=AlignStyle.Center },
  141. new TextBoxColumn { FieldName="TheoryWeeklyNum", HeaderText="理论周次", Width=60 },
  142. new TextBoxColumn { FieldName="PracticeWeeklyNum", HeaderText="实践周次", Width=60 },
  143. new TextBoxColumn { FieldName="TrialWeeklyNum", HeaderText="实验周次", Width=60 },
  144. new TextBoxColumn { FieldName="StartWeeklyNum", HeaderText="开始周次", IsRequired=true, Width=60 },
  145. new TextBoxColumn { FieldName="EndWeeklyNum", HeaderText="结束周次", IsRequired=true, Width=60 },
  146. new TextBoxColumn { FieldName="WeeklyHours", HeaderText="周学时", Width=60 },
  147. new TextBoxColumn { FieldName="WeeklyNum", HeaderText="每周次数", Width=60 },
  148. new BoundFieldColumn { FieldName="ResultTypeID", HeaderText="成绩类型", Align=AlignStyle.Center, Width=0.1, IsHidden=true },
  149. new DictionaryDropdownListColumn { FieldName="HandleModeID", HeaderText="处理方式", DictionaryType=EMIS.ViewModel.DictionaryItem.CF_HandleMode, Align=AlignStyle.Center },
  150. new CheckButtonColumn { FieldName="IsNeedMaterial", HeaderText="是否需要教材", Align=AlignStyle.Center }
  151. },
  152. IsAutoLoad = true,
  153. IsCheckOnSelect = true,
  154. IsPostBack = true,
  155. DataSourceUrl = Url.Content("~/MinorPlanApply/existStandardAndMinorSpecialtyCourseViewList?GradeMinorApplicationID=" + Model.GradeMinorApplicationID),
  156. ID = "dgStandardAndMinorSpecialtyCourseViewList",
  157. IsPagination = true,
  158. IsShowRowNumbers = true,
  159. IsSingleSelect = false
  160. })
  161. </td>
  162. </tr>
  163. </table>
  164. </div>
  165. }
  166. </div>