Edit.cshtml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. @model EMIS.ViewModel.EnrollManage.SpecialtyManage.SpecialtyApplyView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. var isEnable = Request["type"] == "detail" ? false : true;
  7. //院系所
  8. ComboGridOptions cgopCollege = new ComboGridOptions
  9. {
  10. TextField = "Name",
  11. ValueField = "CollegeID",
  12. IsEnabled = isEnable,
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.3 },
  19. new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.3 }
  20. },
  21. PageSize = 5,
  22. IsCheckOnSelect = true,
  23. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false
  27. }
  28. };
  29. }
  30. @section scripts{
  31. <script src="~/Scripts/Business/EnrollManage/SpecialtyManage/SpecialtyAuditingEdit.js" type="text/javascript"></script>
  32. }
  33. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  34. @using (Ajax.BeginForm(new AjaxOptions
  35. {
  36. OnSuccess = "EMISFunction.FormSuccess",
  37. OnBegin = "EMISFunction.FormSubmit",
  38. OnComplete = "EMISFunction.FormComplete"
  39. }))
  40. {
  41. <div class="p_title">
  42. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  43. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  44. @*@if (Request["type"] != "detail")
  45. {
  46. @Html.ContextMenuBar("Edit")
  47. }*@
  48. </div>
  49. </div>
  50. <div class="search_list">
  51. @Html.HiddenFor(x => x.SpecialtyApplyID)
  52. <table cellpadding="0" cellspacing="0" id="specialtyauditingtable">
  53. <tr>
  54. <td style="color:red;">
  55. @Html.LabelFor(x => x.CollegeName):
  56. </td>
  57. <td>
  58. @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
  59. </td>
  60. <td style="color:red;">
  61. @Html.LabelFor(x => x.GradeID):
  62. </td>
  63. <td>
  64. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Grade, (x => x.GradeID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  65. </td>
  66. </tr>
  67. <tr>
  68. <td style="color:red;">
  69. @Html.LabelFor(x => x.SemesterID):
  70. </td>
  71. <td>
  72. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Semester, (x => x.SemesterID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  73. </td>
  74. <td style="color:red;">
  75. @Html.LabelFor(x => x.StandardName):
  76. </td>
  77. <td>
  78. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Standard, (x => x.StandardID),DropdownListBindType.PleaseSelect,
  79. new ComboGridOptions
  80. {
  81. IsEnabled = isEnable,
  82. OnSelect = "QueryStandard",
  83. GridOptions = new DataGridOptions
  84. {
  85. Columns = new List<DataGridColumn>()
  86. {
  87. new BoundFieldColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 },
  88. new BoundFieldColumn { FieldName="Name", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 }
  89. }
  90. }
  91. })
  92. </td>
  93. </tr>
  94. <tr>
  95. <td style="color:red;">
  96. @Html.LabelFor(x => x.Code):
  97. </td>
  98. <td>
  99. @Html.TextBoxFor(x => x.Code, new TextBoxOptions() { IsEnabled = false })
  100. </td>
  101. <td style="color:red;">
  102. @Html.LabelFor(x => x.EducationID):
  103. </td>
  104. <td>
  105. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Education, (x => x.EducationID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  106. </td>
  107. </tr>
  108. <tr>
  109. <td style="color:red;">
  110. @Html.LabelFor(x => x.LearningformID):
  111. </td>
  112. <td>
  113. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Learningform, (x => x.LearningformID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  114. </td>
  115. <td style="color:red;">
  116. @Html.LabelFor(x => x.LearnSystem):
  117. </td>
  118. <td>
  119. @Html.TextBoxFor(x => x.LearnSystem, new TextBoxOptions() { IsEnabled = false })
  120. </td>
  121. </tr>
  122. <tr>
  123. <td>
  124. @Html.LabelFor(x => x.ScienceclassID):
  125. </td>
  126. <td>
  127. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Scienceclass, (x => x.ScienceclassID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  128. </td>
  129. <td>
  130. @Html.LabelFor(x => x.PropertyID):
  131. </td>
  132. <td>
  133. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Property, (x => x.PropertyID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  134. </td>
  135. </tr>
  136. <tr>
  137. <td>
  138. @Html.LabelFor(x => x.StandardTitle):
  139. </td>
  140. <td>
  141. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_StandardTitle, (x => x.StandardTitle), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  142. </td>
  143. <td>
  144. @Html.LabelFor(x => x.StandardLevel):
  145. </td>
  146. <td>
  147. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_StandardLevel, (x => x.StandardLevel), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  148. </td>
  149. </tr>
  150. <tr>
  151. <td style="color:red;">
  152. @Html.LabelFor(x => x.CreateUserName):
  153. </td>
  154. <td>
  155. @Html.TextBoxFor(x => x.CreateUserName, new TextBoxOptions() { IsEnabled = false })
  156. </td>
  157. <td style="color:red;">
  158. @Html.LabelFor(x => x.CreateTime):
  159. </td>
  160. <td style="color:red;">
  161. @Html.TextBoxFor(x => x.CreateTime, new TextBoxOptions() { IsEnabled = false })
  162. </td>
  163. </tr>
  164. </table>
  165. </div>
  166. }
  167. </div>