Edit.cshtml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. @model EMIS.ViewModel.DQPSystem.SOCView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @using EMIS.ViewModel;
  5. @{
  6. ViewBag.Title = "Edit";
  7. var socIDList = ViewBag.SOCIDList;
  8. ComboGridOptions cgopFacultymajor = new ComboGridOptions
  9. {
  10. TextField = "Name",
  11. ValueField = "FacultymajorID",
  12. Name = "FacultymajorComboGrid",
  13. ID = "FacultymajorComboGrid",
  14. GridOptions = new DataGridOptions
  15. {
  16. Columns = new List<DataGridColumn>()
  17. {
  18. new BoundFieldColumn { FieldName="Code", HeaderText="院系专业编号", Align=AlignStyle.Center },
  19. new BoundFieldColumn { FieldName="Name", HeaderText="院系专业名称", Align=AlignStyle.Center }
  20. },
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/Facultymajor/List"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false,
  26. IsShowHeader = false
  27. }
  28. };
  29. ComboGridOptions cgopCourse = new ComboGridOptions
  30. {
  31. TextField = "CourseName",
  32. ValueField = "CoursematerialID",
  33. Name = "CoursematerialIDDropdownGridBo",
  34. ID = "CoursematerialIDDropdownGridBo",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. //new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center },
  40. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, Align=AlignStyle.Center }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false
  47. }
  48. };
  49. //开课教研室
  50. ComboGridOptions cgopDepartment = new ComboGridOptions
  51. {
  52. ID = "DepartmentDropdown",
  53. Name = "DepartmentDropdown",
  54. TextField = "Name",
  55. ValueField = "DepartmentID",
  56. GridOptions = new DataGridOptions
  57. {
  58. Columns = new List<DataGridColumn>()
  59. {
  60. //new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.1 },
  61. new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center, Width=0.2 }
  62. },
  63. //IsAutoLoad = false,
  64. IsCheckOnSelect = true,
  65. DataSourceUrl = Url.Content("~/Department/List"),
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false,
  69. }
  70. };
  71. }
  72. @section scripts{
  73. <script src="~/Scripts/Business/DQPSystem/SOCEdit.js" type="text/javascript"></script>
  74. <script type="text/javascript">
  75. $("#socIDList").val("@ViewBag.SOCIDList");
  76. </script>
  77. }
  78. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  79. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  80. {
  81. <div class="p_title">
  82. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Setting")</div>
  83. </div>
  84. <div class="search_list">
  85. @Html.Hidden("hid_ActionsType")
  86. @Html.HiddenFor(x => x.SOCID)
  87. @Html.HiddenFor(x => x.EducationMissionID)
  88. @Html.HiddenFor(x => x.CoursematerialID)
  89. @Html.HiddenFor(x => x.DepartmentID)
  90. @Html.HiddenFor(x => x.HandleModeID)
  91. @Html.HiddenFor(x => x.OptionalCourseTypeID)
  92. @Html.Hidden("socIDList")
  93. <table cellpadding="0" cellspacing="0" id="departmenttable">
  94. <tr>
  95. <td style = "width:8%">
  96. @Html.LabelFor(x => x.SchoolyearCode):
  97. </td>
  98. <td>
  99. @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), IsEnabled = false })
  100. </td>
  101. <td>
  102. @Html.LabelFor(x => x.CourseCode):
  103. </td>
  104. <td>
  105. @Html.TextBoxFor(x => x.CourseCode, new TextBoxOptions { IsEnabled = false })
  106. </td>
  107. </tr>
  108. <tr>
  109. <td>
  110. @Html.LabelFor(x => x.CourseName):
  111. </td>
  112. <td>
  113. @Html.TextBoxFor(x => x.CourseName, new TextBoxOptions { IsEnabled = false })
  114. </td>
  115. <td>
  116. @Html.LabelFor(x => x.Credit):
  117. </td>
  118. <td>
  119. @Html.TextBoxFor(x => x.Credit)
  120. </td>
  121. @* <td>
  122. @Html.LabelFor(x => x.StudentCount):
  123. </td>
  124. <td>
  125. @Html.TextBoxFor(x => x.StudentCount, new TextBoxOptions { IsEnabled = false })
  126. </td>*@
  127. </tr>
  128. <tr>
  129. <td>
  130. @Html.Label("SOC设置"):
  131. </td>
  132. <td colspan="3">
  133. @Html.ContextMenuBar("Edit-SOCDetailGrid")
  134. @Html.DataGrid(new DataGridOptions
  135. {
  136. Columns = new List<DataGridColumn>()
  137. {
  138. new CheckBoxFieldColumn{ HeaderText="", FieldName="SOCDetailID" },
  139. new BoundFieldColumn { FieldName="Name", HeaderText="成果名称", Align=AlignStyle.Center, Width=0.06 },
  140. new BoundFieldColumn { FieldName="Credit", HeaderText="成果学分", Align=AlignStyle.Center, Width=0.04 },
  141. new BoundFieldColumn { FieldName="Weight", HeaderText="成果权重", Align=AlignStyle.Center, Width=0.04 },
  142. new BoundFieldColumn { FieldName="Description", HeaderText="成果描述", Align=AlignStyle.Center, Width=0.2 },
  143. new BoundFieldColumn { FieldName="StartTimeStr", HeaderText="开始上传时间", Align=AlignStyle.Center, Width=0.06 },
  144. new BoundFieldColumn { FieldName="EndTimeStr", HeaderText="截止上传时间", Align=AlignStyle.Center, Width=0.06 },
  145. new BoundFieldColumn { FieldName="SOCDetailAttachment", HeaderText="附件说明", Align=AlignStyle.Center, Width=0.1 },
  146. new BoundFieldColumn { FieldName="IsGroupStr", HeaderText="是否分组", Align=AlignStyle.Center, Width=0.04 },
  147. },
  148. IsCheckOnSelect = true,
  149. DataSourceUrl = Url.Content("~/SOC/SOCDetail?SOCID=" + Model.SOCID),
  150. ID = "dgSOCDetailList",
  151. IsPagination = true,
  152. IsPostBack = true,
  153. IsShowRowNumbers = true,
  154. IsSingleSelect = false,
  155. })
  156. </td>
  157. </tr>
  158. </table>
  159. </div>
  160. }
  161. </div>