Add.cshtml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. @model EMIS.ViewModel.MinorManage.MinorPlanManage.MinorSpecialtyPlanView
  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("~/MinorSpecialtyPlan/MinorSpecialtyPlanStandardIDList"),
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false,
  69. }
  70. };
  71. }
  72. @section scripts{
  73. <script src="/Scripts/Business/MinorManage/MinorPlanManage/MinorSpecialtyPlanAdd.js" type="text/javascript"></script>
  74. <script type="text/javascript">
  75. var nonSelect = "@DropdownList.SELECT_ALL";
  76. var DataRange = '@DataRange';
  77. </script>
  78. }
  79. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  80. @using (Ajax.BeginForm(new AjaxOptions
  81. {
  82. OnSuccess = "formSuccessReloadNoClose",
  83. OnBegin = "EMISFunction.FormSubmit",
  84. OnComplete = "EMISFunction.FormComplete"
  85. }))
  86. {
  87. <div class="p_title">
  88. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  89. 辅修申请信息</div>
  90. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Apply")</div>
  91. </div>
  92. <div class="search_list">
  93. @Html.Hidden("MinorSpecialtyCourse")
  94. <table cellpadding="0" cellspacing="0" id="planApplicationtable">
  95. <tr>
  96. <td style="width: 80px;">@Html.LabelFor(x => x.YearID):
  97. </td>
  98. <td>@Html.SchoolYearDropDownListFor(x => x.YearID, new DropdownListOptions { OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgStandardAndMinorSpecialtyCourseViewList" } })
  99. </td>
  100. <td>@Html.LabelFor(x => x.StandardName):
  101. </td>
  102. <td>@Html.ComboGridFor(x => x.StandardID, cgopStandard, new Dictionary<string, string> { { "data-condition", "dgStandardAndMinorSpecialtyCourseViewList" } })
  103. </td>
  104. </tr>
  105. <tr>
  106. <td>@Html.LabelFor(x => x.Remarks):
  107. </td>
  108. <td colspan="3">@Html.TextAreaFor(x => x.Remarks, new Dictionary<string, object> { { "style", "width: 98%;" } })
  109. </td>
  110. </tr>
  111. <tr>
  112. <td><label>辅修课程:</label>
  113. </td>
  114. <td colspan="3">
  115. @Html.DataGrid(new DataGridOptions
  116. {
  117. Columns = new List<DataGridColumn>()
  118. {
  119. new CheckBoxFieldColumn{ HeaderText="", FieldName="MinorCourseID" },
  120. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center },
  121. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center },
  122. new DictionaryDropdownListColumn { FieldName="StarttermID", HeaderText="开课学期",DictionaryType=EMIS.ViewModel.DictionaryItem.CF_Startterm, Align=AlignStyle.Center },
  123. new TextBoxColumn { FieldName="Credit", HeaderText="学分",IsRequired=true, Align=AlignStyle.Center },
  124. new TextBoxColumn { FieldName="TheoryCourse", HeaderText="理论学时",IsRequired=true, Align=AlignStyle.Center },
  125. new TextBoxColumn { FieldName="Practicehours", HeaderText="实践学时",IsRequired=true, Align=AlignStyle.Center },
  126. new TextBoxColumn { FieldName="TheoryWeeklyNum", HeaderText="理论周次", Width=60 },
  127. new TextBoxColumn { FieldName="PracticeWeeklyNum", HeaderText="实践周次", Width=60 },
  128. new TextBoxColumn { FieldName="TrialWeeklyNum", HeaderText="实验周次", Width=60 },
  129. new TextBoxColumn { FieldName="StartWeeklyNum", HeaderText="开始周次", IsRequired=true, Width=60 },
  130. new TextBoxColumn { FieldName="EndWeeklyNum", HeaderText="结束周次", IsRequired=true, Width=60 },
  131. new TextBoxColumn { FieldName="WeeklyHours", HeaderText="周学时", Width=60 },
  132. new TextBoxColumn { FieldName="WeeklyNum", HeaderText="每周次数", Width=60 },
  133. new BoundFieldColumn { FieldName="ResultTypeID", HeaderText="成绩类型", Align=AlignStyle.Center, Width=0.1, IsHidden=true },
  134. new DictionaryDropdownListColumn { FieldName="HandleModeID", HeaderText="处理方式", DictionaryType=EMIS.ViewModel.DictionaryItem.CF_HandleMode, Align=AlignStyle.Center },
  135. new CheckButtonColumn { FieldName="IsNeedMaterial", HeaderText="是否需要教材", Align=AlignStyle.Center }
  136. },
  137. IsAutoLoad = false,
  138. IsCheckOnSelect = true,
  139. DataSourceUrl = Url.Content("~/MinorSpecialtyPlan/StandardAndMinorSpecialtyCourseViewList"),
  140. ID = "dgStandardAndMinorSpecialtyCourseViewList",
  141. IsPagination = true,
  142. IsShowRowNumbers = true,
  143. IsSingleSelect = false
  144. })
  145. </td>
  146. </tr>
  147. </table>
  148. </div>
  149. }
  150. </div>