Edit.cshtml 7.0 KB

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