MinorPlanApplyChoiceList.cshtml 8.7 KB

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