CopyAdd.cshtml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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/MinorPlanApplyCopyAdd.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("Apply")</div>
  90. }
  91. </div>
  92. <div class="search_list">
  93. @Html.HiddenFor(x => x.GradeMinorApplicationID)
  94. @Html.Hidden("MinorSpecialtyCourse")
  95. @if (DataRange != (int)EMIS.ViewModel.SYS_DataRange.All)
  96. {
  97. @Html.HiddenFor(x => x.CollegeID)
  98. }
  99. <table cellpadding="0" cellspacing="0" id="planApplicationtable">
  100. <tr>
  101. <td style="width: 80px;">@Html.LabelFor(x => x.YearID):
  102. </td>
  103. <td>@Html.SchoolYearDropDownListFor(x => x.YearID, new DropdownListOptions { OnSelect = "reload", OnLoadSuccess = "reload"})
  104. </td>
  105. <td>@Html.LabelFor(x => x.StandardName):
  106. </td>
  107. <td>@Html.ComboGridFor(x => x.StandardID, cgopStandard, new Dictionary<string, string> { { "data-condition", "dgStandardAndMinorSpecialtyCourseViewList" } })
  108. </td>
  109. </tr>
  110. <tr>
  111. <td>@Html.LabelFor(x => x.StudentLimit):
  112. </td>
  113. <td>@Html.TextBoxFor(x => x.StudentLimit)
  114. </td>
  115. <td>@Html.LabelFor(x => x.CollegeID):
  116. </td>
  117. <td>@Html.ComboGridFor(x => x.CollegeID, cgopcollege)</td>
  118. </tr>
  119. <tr>
  120. <td>@Html.LabelFor(x => x.Remarks):
  121. </td>
  122. <td colspan="3">@Html.TextAreaFor(x => x.Remarks, new Dictionary<string, object> { { "style", "width: 98%;" } })
  123. </td>
  124. </tr>
  125. <tr>
  126. <td><label>专业课程:</label>
  127. </td>
  128. <td colspan="3">
  129. @Html.DataGrid(new DataGridOptions
  130. {
  131. Columns = new List<DataGridColumn>()
  132. {
  133. new CheckBoxFieldColumn{ HeaderText="", FieldName="MinorCourseID" },
  134. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center },
  135. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center },
  136. new DictionaryDropdownListColumn { FieldName="StarttermID", HeaderText="开课学期",DictionaryType=EMIS.ViewModel.DictionaryItem.CF_Startterm, Align=AlignStyle.Center },
  137. new TextBoxColumn { FieldName="Credit", HeaderText="学分",IsRequired=true, Align=AlignStyle.Center },
  138. new TextBoxColumn { FieldName="TheoryCourse", HeaderText="理论学时",IsRequired=true, Align=AlignStyle.Center },
  139. new TextBoxColumn { FieldName="Practicehours", HeaderText="实践学时",IsRequired=true, Align=AlignStyle.Center },
  140. new TextBoxColumn { FieldName="TheoryWeeklyNum", HeaderText="理论周次", Width=60 },
  141. new TextBoxColumn { FieldName="PracticeWeeklyNum", HeaderText="实践周次", Width=60 },
  142. new TextBoxColumn { FieldName="TrialWeeklyNum", HeaderText="实验周次", Width=60 },
  143. new TextBoxColumn { FieldName="StartWeeklyNum", HeaderText="开始周次", IsRequired=true, Width=60 },
  144. new TextBoxColumn { FieldName="EndWeeklyNum", HeaderText="结束周次", IsRequired=true, Width=60 },
  145. new TextBoxColumn { FieldName="WeeklyHours", HeaderText="周学时", Width=60 },
  146. new TextBoxColumn { FieldName="WeeklyNum", HeaderText="每周次数", Width=60 },
  147. new BoundFieldColumn { FieldName="ResultTypeID", HeaderText="成绩类型", Align=AlignStyle.Center, Width=0.1, IsHidden=true },
  148. new DictionaryDropdownListColumn { FieldName="HandleModeID", HeaderText="处理方式", DictionaryType=EMIS.ViewModel.DictionaryItem.CF_HandleMode, Align=AlignStyle.Center },
  149. new CheckButtonColumn { FieldName="IsNeedMaterial", HeaderText="是否需要教材", Align=AlignStyle.Center }
  150. },
  151. IsAutoLoad = true,
  152. IsCheckOnSelect = true,
  153. IsPostBack = true,
  154. DataSourceUrl = Url.Content("~/MinorPlanApply/existStandardAndMinorSpecialtyCourseViewList?GradeMinorApplicationID=" + Model.GradeMinorApplicationID),
  155. ID = "dgStandardAndMinorSpecialtyCourseViewList",
  156. IsPagination = true,
  157. IsShowRowNumbers = true,
  158. IsSingleSelect = false
  159. })
  160. </td>
  161. </tr>
  162. </table>
  163. </div>
  164. }
  165. </div>