Edit.cshtml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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 = false,
  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/SpecialtyApplyEdit.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. @if (Model.ApprovalStatus == BaseExtensions.GetStartFlowStatus(typeof(EMIS.Entities.CF_SpecialtyApply).Name)
  44. || BaseExtensions.GetBackpointStatus(typeof(EMIS.Entities.CF_SpecialtyApply).Name).Contains(Model.ApprovalStatus))
  45. {
  46. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Submit")</div>
  47. }
  48. </div>
  49. <div class="search_list">
  50. @Html.HiddenFor(x => x.SpecialtyApplyID)
  51. <table cellpadding="0" cellspacing="0" id="specialtyapplytable">
  52. <tr>
  53. <td style="color:red;">
  54. @Html.LabelFor(x => x.CollegeName):
  55. </td>
  56. <td>
  57. @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
  58. </td>
  59. <td style="color:red;">
  60. @Html.LabelFor(x => x.GradeID):
  61. </td>
  62. <td>
  63. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Grade, (x => x.GradeID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  64. </td>
  65. </tr>
  66. <tr>
  67. <td style="color:red;">
  68. @Html.LabelFor(x => x.SemesterID):
  69. </td>
  70. <td>
  71. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Semester, (x => x.SemesterID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  72. </td>
  73. <td style="color:red;">
  74. @Html.LabelFor(x => x.StandardName):
  75. </td>
  76. <td>
  77. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Standard, (x => x.StandardID),DropdownListBindType.PleaseSelect,
  78. new ComboGridOptions
  79. {
  80. IsEnabled = false,
  81. OnSelect = "QueryStandard",
  82. GridOptions = new DataGridOptions
  83. {
  84. Columns = new List<DataGridColumn>()
  85. {
  86. new BoundFieldColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 },
  87. new BoundFieldColumn { FieldName="Name", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 }
  88. }
  89. }
  90. })
  91. </td>
  92. </tr>
  93. <tr>
  94. <td style="color:red;">
  95. @Html.LabelFor(x => x.Code):
  96. </td>
  97. <td>
  98. @Html.TextBoxFor(x => x.Code, new TextBoxOptions() { IsEnabled = false })
  99. </td>
  100. <td style="color:red;">
  101. @Html.LabelFor(x => x.EducationID):
  102. </td>
  103. <td>
  104. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Education, (x => x.EducationID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  105. </td>
  106. </tr>
  107. <tr>
  108. <td style="color:red;">
  109. @Html.LabelFor(x => x.LearningformID):
  110. </td>
  111. <td>
  112. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Learningform, (x => x.LearningformID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  113. </td>
  114. <td style="color:red;">
  115. @Html.LabelFor(x => x.LearnSystem):
  116. </td>
  117. <td>
  118. @Html.TextBoxFor(x => x.LearnSystem, new TextBoxOptions() { IsEnabled = false })
  119. </td>
  120. </tr>
  121. <tr>
  122. <td>
  123. @Html.LabelFor(x => x.ScienceclassID):
  124. </td>
  125. <td>
  126. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Scienceclass, (x => x.ScienceclassID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  127. </td>
  128. <td>
  129. @Html.LabelFor(x => x.PropertyID):
  130. </td>
  131. <td>
  132. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Property, (x => x.PropertyID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  133. </td>
  134. </tr>
  135. <tr>
  136. <td>
  137. @Html.LabelFor(x => x.StandardTitle):
  138. </td>
  139. <td>
  140. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_StandardTitle, (x => x.StandardTitle), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  141. </td>
  142. <td>
  143. @Html.LabelFor(x => x.StandardLevel):
  144. </td>
  145. <td>
  146. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_StandardLevel, (x => x.StandardLevel), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  147. </td>
  148. </tr>
  149. <tr>
  150. <td style="color:red;">
  151. @Html.LabelFor(x => x.CreateUserName):
  152. </td>
  153. <td>
  154. @Html.TextBoxFor(x => x.CreateUserName, new TextBoxOptions() { IsEnabled = false })
  155. </td>
  156. <td style="color:red;">
  157. @Html.LabelFor(x => x.CreateTime):
  158. </td>
  159. <td>
  160. @Html.TextBoxFor(x => x.CreateTime, new TextBoxOptions() { IsEnabled = false })
  161. </td>
  162. </tr>
  163. @if (isEnable)
  164. {
  165. <tr>
  166. <td>
  167. @Html.LabelFor(x => x.Comment):
  168. </td>
  169. <td colspan="3">
  170. @Html.TextAreaFor(x => x.Comment, new Dictionary<string, object>
  171. {
  172. { "style", "width: 90%;min-height: 50px" }
  173. })
  174. </td>
  175. </tr>
  176. }
  177. </table>
  178. </div>
  179. }
  180. </div>