Edit.cshtml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. @model EMIS.ViewModel.MinorGraduation.MinorGraduationSetting.MinorGraduationConditionPackageView
  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/MinorGraduation/MinorGraduationSetting/MinorGraduationConditionPackageEdit.js"
  9. type="text/javascript"></script>
  10. <script type="text/javascript">
  11. </script>
  12. }
  13. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  14. @using (Ajax.BeginForm(new AjaxOptions
  15. {
  16. OnSuccess = "EMISFunction.FormSuccess",
  17. OnBegin = "EMISFunction.FormSubmit",
  18. OnComplete = "EMISFunction.FormComplete"
  19. }))
  20. {
  21. <div class="p_title">
  22. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  23. </div>
  24. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  25. @if (ViewBag.Type != "1")
  26. {
  27. @Html.ContextMenuBar("Edit")
  28. }
  29. </div>
  30. </div>
  31. <div class="search_list">
  32. @Html.HiddenFor(x => x.MinorGraduationConditionPackageID)
  33. <table cellpadding="0" cellspacing="0" id="minorGraduationConditionPackagetable">
  34. <tr>
  35. <td>
  36. @Html.LabelFor(x => x.Title):
  37. </td>
  38. <td colspan="3">
  39. @Html.TextBoxFor(x => x.Title, new TextBoxOptions()
  40. {
  41. IsRequired = true
  42. },
  43. new Dictionary<string, string> { { "style", "width:75%;" } })
  44. </td>
  45. </tr>
  46. <tr>
  47. <td>
  48. @Html.LabelFor(x => x.StudentTypeID):
  49. </td>
  50. <td>
  51. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_STUDENTTYPE, x => x.StudentTypeID)
  52. </td>
  53. <td>
  54. @Html.LabelFor(x => x.IsDefault):
  55. </td>
  56. <td>
  57. @Html.CheckBoxFor(x => x.IsDefault, new Dictionary<string, object> { })
  58. </td>
  59. </tr>
  60. <tr>
  61. <td>
  62. @Html.LabelFor(x => x.MinorGraduationCondition):
  63. </td>
  64. <td colspan="3">
  65. @Html.ContextMenuBar("Settings")
  66. @Html.DataGrid(new DataGridOptions
  67. {
  68. Columns = new List<DataGridColumn>()
  69. {
  70. new CheckBoxFieldColumn{ HeaderText="", FieldName="MinorGraduationConditionID" },
  71. //new BoundFieldColumn { FieldName="OrderNo", HeaderText="序号", Align=AlignStyle.Center, Width=0.02 },
  72. new BoundFieldColumn { FieldName="Title", HeaderText="条件名称", Align=AlignStyle.Center, Width=0.2 }
  73. },
  74. IsPostBack = true,
  75. IsCheckOnSelect = true,
  76. DataSourceUrl = Url.Content("~/MinorGraduationConditionPackage/MinorGraduationConditionViewList?minorGraduationConditionPackageID=" + Model.MinorGraduationConditionPackageID),
  77. ID = "dgMinorGraduationConditionList",
  78. IsPagination = true,
  79. IsShowRowNumbers = true,
  80. IsSingleSelect = false,
  81. })
  82. </td>
  83. </tr>
  84. </table>
  85. </div>
  86. }
  87. </div>