Edit.cshtml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. @model EMIS.ViewModel.Specialtymanage.SpecialtyView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/Specialtymanage/SpecialtyEdit.js" type="text/javascript"></script>
  9. }
  10. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  11. @using (Ajax.BeginForm(new AjaxOptions
  12. {
  13. OnSuccess = "EMISFunction.FormSuccess",
  14. OnBegin = "EMISFunction.FormSubmit",
  15. OnComplete = "EMISFunction.FormComplete"
  16. }))
  17. {
  18. <div class="p_title">
  19. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  20. @if (Request["Isdisplay"] == "" || Request["Isdisplay"] == null)
  21. {
  22. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  23. }
  24. </div>
  25. <div class="search_list">
  26. @Html.HiddenFor(x => x.SpecialtyID)
  27. <table cellpadding="0" cellspacing="0" id="specialtytable">
  28. <tr>
  29. <td style="color:red;">
  30. @Html.LabelFor(x => x.StandardName):
  31. </td>
  32. <td>
  33. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Standard, (x => x.StandardID),DropdownListBindType.PleaseSelect,
  34. new ComboGridOptions
  35. {
  36. OnSelect = "QueryStandard",
  37. GridOptions = new DataGridOptions
  38. {
  39. Columns = new List<DataGridColumn>()
  40. {
  41. new BoundFieldColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 },
  42. new BoundFieldColumn { FieldName="Name", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 }
  43. }
  44. }
  45. })
  46. </td>
  47. <td style="color:red;">
  48. @Html.LabelFor(x => x.Code):
  49. </td>
  50. <td>
  51. @Html.TextBoxFor(x => x.Code, new TextBoxOptions() { IsEnabled=false })
  52. </td>
  53. </tr>
  54. <tr>
  55. <td style="color:red;">
  56. @Html.LabelFor(x => x.EducationID):
  57. </td>
  58. <td>
  59. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Education, (x => x.EducationID))
  60. </td>
  61. <td style="color:red;">
  62. @Html.LabelFor(x => x.LearningformID):
  63. </td>
  64. <td>
  65. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Learningform, (x => x.LearningformID))
  66. </td>
  67. </tr>
  68. <tr>
  69. <td style="color:red;">
  70. @Html.LabelFor(x => x.LearnSystem):
  71. </td>
  72. <td>
  73. @Html.TextBoxFor(x => x.LearnSystem)
  74. </td>
  75. <td>
  76. @Html.LabelFor(x => x.ScienceclassID):
  77. </td>
  78. <td>
  79. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Scienceclass, (x => x.ScienceclassID))
  80. </td>
  81. </tr>
  82. <tr>
  83. <td>
  84. @Html.LabelFor(x => x.PropertyID):
  85. </td>
  86. <td>
  87. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Property, (x => x.PropertyID))
  88. </td>
  89. <td>
  90. @Html.LabelFor(x => x.StandardTitle):
  91. </td>
  92. <td>
  93. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StandardTitle, (x => x.StandardTitle))
  94. </td>
  95. </tr>
  96. <tr>
  97. <td>
  98. @Html.LabelFor(x => x.StandardLevel):
  99. </td>
  100. <td>
  101. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StandardLevel, (x => x.StandardLevel))
  102. </td>
  103. <td style="color:red;">
  104. @Html.LabelFor(x => x.RecordStatus):
  105. </td>
  106. <td>
  107. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.SYS_STATUS, (x => x.RecordStatus))
  108. </td>
  109. </tr>
  110. <tr>
  111. <td>
  112. @Html.LabelFor(x => x.Remark):
  113. </td>
  114. <td colspan="3">
  115. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 50px" } })
  116. </td>
  117. </tr>
  118. </table>
  119. </div>
  120. }
  121. </div>