Edit.cshtml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. @model EMIS.ViewModel.EvaluationManage.EvaluationOpenControlView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. String SchoolYearID = ViewBag.SchoolYearID;
  7. ComboGridOptions cgopCollege = new ComboGridOptions
  8. {
  9. TextField = "Name",
  10. ValueField = "CollegeID",
  11. GridOptions = new DataGridOptions
  12. {
  13. Columns = new List<DataGridColumn>()
  14. {
  15. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  16. },
  17. IsCheckOnSelect = true,
  18. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  19. IsPagination = true,
  20. IsShowRowNumbers = true,
  21. IsSingleSelect = false,
  22. }
  23. };
  24. ComboGridOptions cgopGrademajor = new ComboGridOptions
  25. {
  26. TextField = "Name",
  27. ValueField = "GrademajorID",
  28. GridOptions = new DataGridOptions
  29. {
  30. Columns = new List<DataGridColumn>()
  31. {
  32. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center }
  33. },
  34. IsCheckOnSelect = true,
  35. DataSourceUrl = Url.Content("~/Grademajor/List"),
  36. IsPagination = true,
  37. IsShowRowNumbers = true,
  38. IsSingleSelect = false
  39. }
  40. };
  41. }
  42. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  43. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  44. {
  45. <div class="p_title">
  46. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  47. 开放控制设置
  48. </div>
  49. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  50. @Html.ContextMenuBar("Edit")
  51. </div>
  52. </div>
  53. <div class="search_list">
  54. @Html.HiddenFor(x => x.EvaluationGradeControlID)
  55. <table cellpadding="0" cellspacing="0" class="universitytable">
  56. <tr>
  57. <td>@Html.LabelFor(x => x.SchoolyearID):
  58. </td>
  59. <td>@Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { ItemSourceUrl = "~/SchoolYear/DropDown", TextField = "Text", ValueField = "Value"})
  60. </td>
  61. <td>@Html.LabelFor(x => x.CollegeID):
  62. </td>
  63. <td>@Html.ComboGridFor(x => x.CollegeID, cgopCollege)
  64. </td>
  65. </tr>
  66. <tr>
  67. <td>@Html.LabelFor(x => x.GrademajorID):
  68. </td>
  69. <td>@Html.ComboGridFor(x => x.GrademajorID, cgopGrademajor)
  70. </td>
  71. <td>@Html.LabelFor(x => x.StartTime):
  72. </td>
  73. <td>@Html.TextBoxFor(x => x.StartTime, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  74. </td>
  75. </tr>
  76. <tr>
  77. <td>@Html.LabelFor(x => x.EndTime):
  78. </td>
  79. <td>@Html.TextBoxFor(x => x.EndTime, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  80. </td>
  81. <td>@Html.LabelFor(x => x.EvaluationCount):
  82. </td>
  83. <td>@Html.TextBoxFor(x => x.EvaluationCount)
  84. </td>
  85. </tr>
  86. </table>
  87. </div>
  88. }
  89. </div>
  90. @section scripts{
  91. <script type="text/javascript">
  92. function EvaluationOpenControl_Save() {
  93. $(document.forms[0]).submit();
  94. }
  95. </script>
  96. }