ProjectEdit.cshtml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. @model EMIS.ViewModel.ExaminationProjectView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. ComboGridOptions cgopExamType = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "ExaminationTypeID",
  10. GridOptions = new DataGridOptions
  11. {
  12. Columns = new List<DataGridColumn>()
  13. {
  14. new BoundFieldColumn { FieldName="Name", HeaderText="考试类型名称", Align=AlignStyle.Center ,Width=0.4},
  15. },
  16. PageSize = 5,
  17. IsCheckOnSelect = true,
  18. DataSourceUrl = Url.Content("~/ChargeProject/GetExaminationTypeList"),
  19. IsPagination = true,
  20. IsShowRowNumbers = true,
  21. IsSingleSelect = false
  22. }
  23. };
  24. ComboGridOptions cgopProject = new ComboGridOptions
  25. {
  26. TextField = "Name",
  27. ValueField = "ExaminationProjectID",
  28. GridOptions = new DataGridOptions
  29. {
  30. Columns = new List<DataGridColumn>()
  31. {
  32. new BoundFieldColumn { FieldName="ExaminationType", HeaderText="考试类型", Align=AlignStyle.Center ,Width=0.4},
  33. new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center ,Width=0.2}
  34. },
  35. PageSize = 5,
  36. IsCheckOnSelect = true,
  37. DataSourceUrl = Url.Content("~/ChargeProject/GetProjectListViewGrid"),
  38. IsPagination = true,
  39. IsShowRowNumbers = true,
  40. IsSingleSelect = false
  41. },
  42. };
  43. ComboGridOptions cgopProjectSubject = new ComboGridOptions
  44. {
  45. TextField = "ExaminationSubject",
  46. ValueField = "ExaminationProjectSubjectID",
  47. GridOptions = new DataGridOptions
  48. {
  49. Columns = new List<DataGridColumn>()
  50. {
  51. new BoundFieldColumn { FieldName="ExaminationSubject", HeaderText="考试科目", Align=AlignStyle.Center ,Width=0.1}
  52. },
  53. PageSize = 5,
  54. IsCheckOnSelect = true,
  55. DataSourceUrl = Url.Content("~/ChargeProject/GetProjectSubjectListViewGrid"),
  56. IsPagination = true,
  57. IsShowRowNumbers = true,
  58. IsSingleSelect = true
  59. },
  60. };
  61. ComboGridOptions cgopIssuedBy = new ComboGridOptions
  62. {
  63. TextField = "Name",
  64. ValueField = "Value",
  65. GridOptions = new DataGridOptions
  66. {
  67. Columns = new List<DataGridColumn>()
  68. {
  69. new BoundFieldColumn { FieldName="Name", HeaderText="发证机关", Align=AlignStyle.Center ,Width=0.1}
  70. },
  71. PageSize = 5,
  72. DataSourceUrl = Url.Content("~/DictionaryItem/DictionItemList?DictionaryDropdown=EX_Issuer"),
  73. IsPagination = true,
  74. },
  75. };
  76. ListControlOptions lcoptm = new ListControlOptions
  77. {
  78. ID = "ProjectSubjects",
  79. Name = "ProjectSubjects",
  80. TextField = "ExaminationSubject",
  81. ValueField = "ExaminationProjectSubjectID",
  82. ColumnCount = 4,
  83. SelectedValues = Model.ProjectSubjects == null ? new List<object>() : Model.ProjectSubjects
  84. };
  85. }
  86. @section scripts{
  87. <script src="~/Scripts/Business/ExamManage/ProjectEdit.js"></script>
  88. <script type="text/javascript">
  89. </script>
  90. }
  91. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  92. @using (Ajax.BeginForm(new AjaxOptions
  93. {
  94. OnSuccess = "EMISFunction.FormSuccess",
  95. OnBegin = "EMISFunction.FormSubmit",
  96. OnComplete = "EMISFunction.FormComplete"
  97. }))
  98. {
  99. <div class="p_title">
  100. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  101. </div>
  102. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  103. @if (Request.QueryString["Type"] != "1")//控制列表进入、屏蔽按钮权限
  104. {
  105. @Html.ContextMenuBar("ProjectEdit")
  106. }
  107. </div>
  108. </div>
  109. <div class="search_list">
  110. @Html.HiddenFor(x => x.ExaminationProjectID)
  111. <table cellpadding="0" cellspacing="0" id="Campustable">
  112. <tr>
  113. <td style="width: 150px">
  114. @Html.LabelFor(x => x.Name):
  115. </td>
  116. <td colspan="3">
  117. @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = true }, new Dictionary<string, string> { { "style", "width:85%;" } })
  118. </td>
  119. </tr>
  120. <tr>
  121. <td style="width: 150px">
  122. @Html.LabelFor(x => x.ExaminationLevelID):
  123. </td>
  124. <td colspan="3">
  125. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EX_ExaminationLevel, (x) => x.ExaminationLevelID, new DropdownListOptions() { })
  126. </td>
  127. </tr>
  128. <tr>
  129. <td>
  130. @Html.LabelFor(x => x.ExaminationTypeID):
  131. </td>
  132. <td>
  133. @Html.ComboGridFor(x => x.ExaminationTypeID, cgopExamType)
  134. </td>
  135. <td style="width: 150px">
  136. @Html.LabelFor(x => x.IssuedByID):
  137. </td>
  138. <td>
  139. @Html.ComboGridFor(x => x.IssuedByID, cgopIssuedBy)
  140. </td>
  141. </tr>
  142. <tr>
  143. <td>
  144. @Html.LabelFor(x => x.PreposeProjectID):
  145. </td>
  146. <td colspan="3">
  147. @Html.ComboGridFor(x => x.PreposeProjectID, cgopProject)
  148. </td>
  149. </tr>
  150. @*<tr>
  151. <td>
  152. @Html.LabelFor(x => x.ProjectSubjects):
  153. </td>
  154. <td colspan="3">
  155. @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.EX_ExaminationSubject, lcoptm)
  156. </td>
  157. </tr>*@
  158. <tr>
  159. <td>
  160. @Html.LabelFor(x => x.Remark):
  161. </td>
  162. <td colspan="3">
  163. @Html.TextAreaFor(x => x.Remark, 5, 80, new Dictionary<string, string> { { "style", "width:85%;" } })
  164. </td>
  165. </tr>
  166. <tr>
  167. <td>
  168. <label>
  169. 考试科目信息:
  170. </label>
  171. </td>
  172. <td colspan="3">
  173. @if (Request.QueryString["Type"] != "1")//控制列表进入、屏蔽按钮权限
  174. {
  175. @Html.ContextMenuBar("EditList")
  176. }
  177. @Html.DataGrid(new DataGridOptions
  178. {
  179. Columns = new List<DataGridColumn>()
  180. {
  181. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationSubjectID"},
  182. new BoundFieldColumn { FieldName="ExaminationSubjectName", HeaderText="科目名称", Align=AlignStyle.Center, Width=0.06, },
  183. new TextBoxColumn { FieldName="ResitCount", HeaderText="可补考次数", Align=AlignStyle.Center, Width=0.06, },
  184. },
  185. IsCheckOnSelect = true,
  186. DataSourceUrl = Url.Content("~/ChargeProject/SubjectListByProjectID?projectID=" + Model.ExaminationProjectID),
  187. ID = "dgSubjectList",
  188. IsPagination = false,
  189. IsShowRowNumbers = false,
  190. IsSingleSelect = false,
  191. IsPostBack = true,
  192. })
  193. </td>
  194. </tr>
  195. </table>
  196. </div>
  197. }
  198. </div>