Edit.cshtml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. @model EMIS.ViewModel.MinorManage.MinorClass.MinorClassView
  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/MinorManage/MinorClass/MinorClassEdit.js" type="text/javascript"></script>
  9. <script type="text/javascript">
  10. function Library_Save() {
  11. $(document.forms[0]).submit();
  12. }
  13. </script>
  14. }
  15. <style type="text/css">
  16. </style>
  17. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  18. @using (Ajax.BeginForm(new AjaxOptions { Url = "/MinorClass/Edit", OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  19. {
  20. @Html.HiddenFor(x => x.ClassminorID)
  21. <div class="p_title">
  22. @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  23. 辅修班级</div>*@
  24. @if (Request["isView"] != "1")
  25. {
  26. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  27. }
  28. </div>
  29. <div class="search_list">
  30. <table cellpadding="0" cellspacing="0" id="stafftable">
  31. <tr>
  32. <td>@Html.LabelFor(x => x.GradeYearID):
  33. </td>
  34. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Grade, x => x.GradeYearID)
  35. </td>
  36. <td>@Html.LabelFor(x => x.Name):
  37. </td>
  38. <td>@Html.TextBoxFor(x => x.Name)
  39. </td>
  40. </tr>
  41. <tr>
  42. <td>@Html.LabelFor(x => x.GrademinorID):
  43. </td>
  44. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Standard, x => x.StandardID, new DropdownListOptions { ID = "StandardID", Name = "StandardID", OnSelect = "StandardSelect" }, new Dictionary<string, string> { { "data-condition", "dgMinorStandardList" } })
  45. </td>
  46. </tr>
  47. </table>
  48. </div>
  49. }
  50. </div>