Edit.cshtml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. @model EMIS.ViewModel.ChargeManage.ChargeSituation.ChargeStandardView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. //年级专业
  7. ComboGridOptions cgopGrademajor = new ComboGridOptions
  8. {
  9. TextField = "Name",
  10. ValueField = "GrademajorID",
  11. OnSelect = "reload",
  12. IsEnabled = false,
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Width=0.1, Align=AlignStyle.Center },
  18. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Width=0.2, Align=AlignStyle.Center }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Grademajor/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false
  25. }
  26. };
  27. //院系所
  28. ComboGridOptions cgopCollege = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "CollegeID",
  32. OnSelect = "reload",
  33. IsEnabled = false,
  34. GridOptions = new DataGridOptions
  35. {
  36. Columns = new List<DataGridColumn>()
  37. {
  38. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  39. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  40. },
  41. IsCheckOnSelect = true,
  42. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  43. IsPagination = true,
  44. IsShowRowNumbers = true,
  45. IsSingleSelect = false,
  46. }
  47. };
  48. //收费项目
  49. ComboGridOptions cgopChargeProject = new ComboGridOptions
  50. {
  51. TextField = "ChrageProjectName",
  52. ValueField = "ChargeProjectID",
  53. Name = "ChargeProjectComboGrid",
  54. ID = "ChargeProjectComboGrid",
  55. OnSelect = "reload",
  56. IsEnabled = false,
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. new BoundFieldColumn { FieldName="ChrageProjectName", HeaderText="收费项目", Align=AlignStyle.Center }
  62. },
  63. IsCheckOnSelect = true,
  64. DataSourceUrl = Url.Content("~/ChargeProject/List"),
  65. IsPagination = true,
  66. IsShowRowNumbers = true,
  67. IsSingleSelect = false
  68. }
  69. };
  70. }
  71. @section scripts{
  72. <script src="~/Scripts/Business/ChargeManage/ChargeSituation/ChargeStandardEdit.js" type="text/javascript"></script>
  73. <script type="text/javascript">
  74. var nonSelect = "@DropdownList.SELECT_ALL";
  75. </script>
  76. }
  77. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  78. @using (Ajax.BeginForm(new AjaxOptions
  79. {
  80. OnSuccess = "EMISFunction.FormSuccess",
  81. OnBegin = "EMISFunction.FormSubmit",
  82. OnComplete = "EMISFunction.FormComplete"
  83. }))
  84. {
  85. <div class="p_title" style=" min-width:0px">
  86. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  87. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  88. </div>
  89. <div class="search_list" style=" min-width:0px">
  90. @Html.HiddenFor(x => x.ChargeStandardID)
  91. <table cellpadding="0" cellspacing="0" id="chargestandardtable">
  92. <tr>
  93. <td>
  94. @Html.LabelFor(x => x.GrademajorStr):
  95. </td>
  96. <td colspan="3">
  97. @*@Html.ComboGridFor(x => x.GrademajorID, cgopGrademajor, new Dictionary<string, string> { { "style", "width:85%;" } })*@
  98. @Html.TextBoxFor(x => x.GrademajorStr, new TextBoxOptions()
  99. {
  100. IsEnabled = false
  101. }, new Dictionary<string, string> { { "style", "width:85%;" } })
  102. </td>
  103. </tr>
  104. <tr>
  105. <td>
  106. @Html.LabelFor(x => x.GradeStr):
  107. </td>
  108. <td>
  109. @Html.SchoolYearDropDownListFor((x => x.GradeStr), new DropdownListOptions() { IsEnabled = false })
  110. </td>
  111. <td>
  112. @Html.LabelFor(x => x.MajorStr):
  113. </td>
  114. <td>
  115. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Standard, x => x.StandardID, DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  116. </td>
  117. </tr>
  118. <tr>
  119. <td>
  120. @Html.LabelFor(x => x.EducationName):
  121. </td>
  122. <td>
  123. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Education, x => x.EducationID, DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  124. </td>
  125. <td>
  126. @Html.LabelFor(x => x.LearningformStr):
  127. </td>
  128. <td>
  129. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Learningform, x => x.LearningformID, DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  130. </td>
  131. </tr>
  132. <tr>
  133. <td>
  134. @Html.LabelFor(x => x.LearnSystem):
  135. </td>
  136. <td>
  137. @Html.TextBoxFor(x => x.LearnSystem, new TextBoxOptions() { IsEnabled = false })
  138. </td>
  139. <td>
  140. @Html.LabelFor(x => x.CollegeStr):
  141. </td>
  142. <td>
  143. @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
  144. </td>
  145. </tr>
  146. <tr>
  147. <td>
  148. @Html.LabelFor(x => x.ChargeYear):
  149. </td>
  150. <td>
  151. @Html.SchoolYearDropDownListFor((x => x.ChargeYear), new DropdownListOptions() { IsEnabled = false })
  152. <td>
  153. @Html.LabelFor(x => x.ChargeProjectStr):
  154. </td>
  155. <td>
  156. @Html.ComboGridFor(x => x.ChargeProjectID, cgopChargeProject)
  157. </td>
  158. </tr>
  159. <tr>
  160. <td>
  161. @Html.LabelFor(x => x.Amount):
  162. </td>
  163. <td colspan="3">
  164. @Html.TextBoxFor(x => x.Amount)
  165. </td>
  166. </tr>
  167. </table>
  168. </div>
  169. }
  170. </div>