Edit.cshtml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. @model EMIS.ViewModel.MinorManage.MinorSetting.MinorStandardSettingView
  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/MinorSetting/MinorStandardSettingEdit.js"
  9. type="text/javascript"></script>
  10. <script type="text/javascript">
  11. var nonSelect = "@DropdownList.SELECT_ALL";
  12. </script>
  13. }
  14. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  15. @using (Ajax.BeginForm(new AjaxOptions
  16. {
  17. OnSuccess = "EMISFunction.FormSuccess",
  18. OnBegin = "EMISFunction.FormSubmit",
  19. OnComplete = "EMISFunction.FormComplete"
  20. }))
  21. {
  22. <div class="p_title">
  23. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  24. </div>
  25. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  26. </div>
  27. <div class="search_list">
  28. <table cellpadding="0" cellspacing="0" id="minorStandardSetting">
  29. @Html.Hidden("selectMinorStandardIDs")
  30. @*@Html.HiddenFor(x => x.MinorStandardID)*@
  31. <tr>
  32. <td>
  33. @Html.LabelFor(x => x.StandardName):
  34. </td>
  35. <td colspan="3">
  36. @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" } })
  37. </td>
  38. </tr>
  39. <tr>
  40. <td>
  41. @Html.LabelFor(x => x.MinorStandardName):
  42. </td>
  43. <td colspan="3">
  44. @Html.DataGrid(new DataGridOptions
  45. {
  46. Columns = new List<DataGridColumn>()
  47. {
  48. new CheckBoxFieldColumn{ HeaderText="", FieldName="MinorStandardID" },
  49. new BoundFieldColumn { FieldName="MinorStandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  50. new BoundFieldColumn { FieldName="MinorStandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 },
  51. },
  52. IsCheckOnSelect = true,
  53. IsPostBack = true,
  54. DataSourceUrl = Url.Content("~/MinorStandardSetting/GetStandardNotSelectID"),
  55. ID = "dgMinorStandardList",
  56. IsPagination = true,
  57. IsShowRowNumbers = true,
  58. IsSingleSelect = false,
  59. })
  60. </td>
  61. </tr>
  62. </table>
  63. </div>
  64. }
  65. </div>