Edit.cshtml 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. @model EMIS.ViewModel.GraduationManage.GraduationSetting.GraduationConditionPackageView
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "Edit";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/GraduationManage/GraduationSetting/GraduationConditionPackageEdit.js" type="text/javascript"></script>
  9. <script type="text/javascript">
  10. </script>
  11. }
  12. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  13. @using (Ajax.BeginForm(new AjaxOptions
  14. {
  15. OnSuccess = "EMISFunction.FormSuccess",
  16. OnBegin = "EMISFunction.FormSubmit",
  17. OnComplete = "EMISFunction.FormComplete"
  18. }))
  19. {
  20. <div class="p_title">
  21. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  22. </div>
  23. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  24. @if (ViewBag.Type != "1")//控制列表进入、屏蔽按钮权限
  25. {
  26. @Html.ContextMenuBar("Edit")
  27. }
  28. </div>
  29. </div>
  30. <div class="search_list">
  31. @Html.HiddenFor(x => x.GraduationConditionPackageID)
  32. <table cellpadding="0" cellspacing="0" id="graduationConditionPackagetable">
  33. <tr>
  34. <td style="color: red;">
  35. @Html.LabelFor(x => x.Title):
  36. </td>
  37. <td colspan="3">
  38. @Html.TextBoxFor(x => x.Title, new TextBoxOptions()
  39. {
  40. IsRequired = true
  41. },
  42. new Dictionary<string, string> { { "style", "width:75%;" } })
  43. </td>
  44. </tr>
  45. <tr>
  46. <td>
  47. @Html.LabelFor(x => x.StudentTypeID):
  48. </td>
  49. <td>
  50. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_STUDENTTYPE, x => x.StudentTypeID)
  51. </td>
  52. <td>
  53. @Html.LabelFor(x => x.IsDefault):
  54. </td>
  55. <td>
  56. @Html.CheckBoxFor(x => x.IsDefault, new Dictionary<string, object> { })
  57. </td>
  58. </tr>
  59. <tr>
  60. <td>
  61. @Html.LabelFor(x => x.GraduationCondition):
  62. </td>
  63. <td colspan="3">
  64. @Html.ContextMenuBar("Settings")
  65. @Html.DataGrid(new DataGridOptions
  66. {
  67. Columns = new List<DataGridColumn>()
  68. {
  69. new CheckBoxFieldColumn{ HeaderText="", FieldName="GraduationConditionID" },
  70. new BoundFieldColumn { FieldName="OrderNo", HeaderText="序号", Align=AlignStyle.Center, Width=0.02 },
  71. new BoundFieldColumn { FieldName="Title", HeaderText="条件名称", Align=AlignStyle.Center, Width=0.2 }
  72. },
  73. PageSize = 15,
  74. IsPostBack = true,
  75. IsCheckOnSelect = true,
  76. DataSourceUrl = Url.Content("~/GraduationConditionPackage/GraduationConditionViewList?GraduationConditionPackageID=" + Model.GraduationConditionPackageID),
  77. ID = "dgGraduationConditionList",
  78. IsPagination = true,
  79. IsShowRowNumbers = true,
  80. IsSingleSelect = false,
  81. MaxHeight = 230
  82. })
  83. </td>
  84. </tr>
  85. </table>
  86. </div>
  87. }
  88. </div>