Add.cshtml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. @model EMIS.ViewModel.EvaluationManage.EvaluationOpenControlView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. ComboGridOptions cgopCollege = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CollegeID",
  10. GridOptions = new DataGridOptions
  11. {
  12. Columns = new List<DataGridColumn>()
  13. {
  14. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  15. },
  16. IsCheckOnSelect = true,
  17. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  18. IsPagination = true,
  19. IsShowRowNumbers = true,
  20. IsSingleSelect = false,
  21. }
  22. };
  23. }
  24. @section scripts{
  25. <script src="~/Scripts/Business/EvaluationManage/EvaluationOpenControlAdd.js" type="text/javascript"></script>
  26. <script type="text/javascript">
  27. var nonSelect = "@DropdownList.SELECT_ALL";
  28. </script>
  29. }
  30. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  31. @using (Ajax.BeginForm(new AjaxOptions
  32. {
  33. OnSuccess = "EMISFunction.FormSuccess",
  34. OnBegin = "EMISFunction.FormSubmit",
  35. OnComplete = "EMISFunction.FormComplete"
  36. }))
  37. {
  38. <div class="p_title">
  39. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  40. 专业计划新增</div>
  41. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  42. </div>
  43. <div class="search_list">
  44. <table cellpadding="0" cellspacing="0" id="planApplicationtable">
  45. <tr>
  46. <td>@Html.LabelFor(x => x.SchoolyearID):
  47. </td>
  48. <td>@Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { ItemSourceUrl = "~/SchoolYear/DropDown", TextField = "Text", ValueField = "Value" })
  49. </td>
  50. <td>@Html.LabelFor(x => x.EvaluationCount):
  51. </td>
  52. <td>@Html.TextBoxFor(x => x.EvaluationCount)
  53. </td>
  54. </tr>
  55. <tr>
  56. <td>@Html.LabelFor(x => x.StartTime):
  57. </td>
  58. <td>@Html.TextBoxFor(x => x.StartTime, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  59. </td>
  60. <td>@Html.LabelFor(x => x.EndTime):
  61. </td>
  62. <td>@Html.TextBoxFor(x => x.EndTime, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  63. </td>
  64. </tr>
  65. <tr>
  66. <td>
  67. @Html.LabelFor(x => x.GrademajorID):
  68. </td>
  69. <td colspan="3">
  70. @Html.ContextMenuBar("Edit_SpecialtyGrid")
  71. @Html.DataGrid(new DataGridOptions
  72. {
  73. Columns = new List<DataGridColumn>()
  74. {
  75. new CheckBoxFieldColumn{ HeaderText="", FieldName="GrademajorID" },
  76. new LinkButtonColumn { FieldName="Code", HeaderText="年级专业编号", Align=AlignStyle.Center , Handle="edit", Width=0.08 },
  77. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.12 },
  78. //new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 },
  79. //new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  80. //new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.08 },
  81. //new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.04 },
  82. //new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.05 },
  83. //new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  84. //new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="入学学期", Align=AlignStyle.Center, Width=0.04 },
  85. //new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.08 },
  86. //new BoundFieldColumn { FieldName="CollegeCode", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
  87. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  88. //new LinkButtonColumn { FieldName="StudentCount", HeaderText="人数", Align=AlignStyle.Center, Handle="editStudentCount", Width=0.03 }
  89. },
  90. IsAutoLoad = false,
  91. IsCheckOnSelect = true,
  92. IsPostBack = true,
  93. ID = "dgGrademajorList",
  94. IsPagination = false,
  95. IsShowRowNumbers = true,
  96. IsSingleSelect = false,
  97. })
  98. </td>
  99. </tr>
  100. </table>
  101. </div>
  102. }
  103. </div>