Edit.cshtml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. @model EMIS.ViewModel.MinorGraduation.MinorGraduationSetting.MinorGraduationStandardView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. //年级专业
  7. ComboGridOptions cgopGrademajor = new ComboGridOptions
  8. {
  9. TextField = "Name",
  10. ValueField = "GrademajorID",
  11. IsEnabled = false,
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Width=0.1, Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Width=0.2, Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/Grademajor/List"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. //院系所
  27. ComboGridOptions cgopCollege = new ComboGridOptions
  28. {
  29. TextField = "Name",
  30. ValueField = "CollegeID",
  31. IsEnabled = false,
  32. GridOptions = new DataGridOptions
  33. {
  34. Columns = new List<DataGridColumn>()
  35. {
  36. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  37. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  38. },
  39. IsCheckOnSelect = true,
  40. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  41. IsPagination = true,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false,
  44. }
  45. };
  46. }
  47. @section scripts{
  48. <script src="~/Scripts/Business/MinorGraduation/MinorGraduationSetting/MinorGraduationStandardEdit.js"
  49. type="text/javascript"></script>
  50. <script type="text/javascript">
  51. var nonSelect = "@DropdownList.SELECT_ALL";
  52. </script>
  53. }
  54. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  55. @using (Ajax.BeginForm(new AjaxOptions
  56. {
  57. OnSuccess = "EMISFunction.FormSuccess",
  58. OnBegin = "EMISFunction.FormSubmit",
  59. OnComplete = "EMISFunction.FormComplete"
  60. }))
  61. {
  62. <div class="p_title" style=" min-width:0px">
  63. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  64. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  65. </div>
  66. <div class="search_list" style=" min-width:0px">
  67. @Html.HiddenFor(x => x.MinorGraduationStandardID)
  68. <table cellpadding="0" cellspacing="0" id="chargestandardtable">
  69. <tr>
  70. <td>
  71. @Html.LabelFor(x => x.YearID):
  72. </td>
  73. <td>
  74. @Html.SchoolYearDropDownListFor((x => x.YearID), new DropdownListOptions() { IsEnabled = false })
  75. </td>
  76. <td>
  77. @Html.LabelFor(x => x.CollegeName):
  78. </td>
  79. <td>
  80. @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
  81. </td>
  82. </tr>
  83. <tr>
  84. <td>
  85. @Html.LabelFor(x => x.StandardName):
  86. </td>
  87. <td>
  88. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Standard, x => x.StandardID, DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  89. </td>
  90. <td>
  91. @Html.LabelFor(x => x.GraduationCredit):
  92. </td>
  93. <td>
  94. @Html.TextBoxFor(x => x.GraduationCredit)
  95. </td>
  96. </tr>
  97. </table>
  98. </div>
  99. }
  100. </div>