BatchAdd.cshtml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. @model EMIS.ViewModel.UniversityManage.SpecialtyClassManage.GrademajorView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "BatchAdd";
  6. //院系所
  7. ComboGridOptions cgopCollege = new ComboGridOptions
  8. {
  9. TextField = "Name",
  10. ValueField = "CollegeID",
  11. OnSelect = "queryCollege",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  17. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.3 },
  18. new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.3 }
  19. },
  20. PageSize = 5,
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false
  26. }
  27. };
  28. //专业名称
  29. ComboGridOptions cgopStandard = new ComboGridOptions
  30. {
  31. TextField = "StandardName",
  32. ValueField = "StandardID",
  33. ID = "DictionaryStandard",
  34. Name = "DictionaryStandard",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 },
  40. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 }
  41. },
  42. PageSize = 5,
  43. IsCheckOnSelect = true,
  44. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  45. IsPagination = true,
  46. IsShowRowNumbers = true,
  47. IsSingleSelect = false,
  48. }
  49. };
  50. }
  51. @section scripts{
  52. <script src="~/Scripts/Business/UniversityManage/SpecialtyClassManage/GrademajorBatchAdd.js" type="text/javascript"></script>
  53. <script type="text/javascript">
  54. var nonSelect = "@DropdownList.SELECT_ALL";
  55. </script>
  56. <style>
  57. .labelClass {
  58. width: 20%;
  59. }
  60. </style>
  61. }
  62. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  63. @using (Ajax.BeginForm(new AjaxOptions
  64. {
  65. OnSuccess = "EMISFunction.FormSuccess",
  66. OnBegin = "EMISFunction.FormSubmit",
  67. OnComplete = "EMISFunction.FormComplete"
  68. }))
  69. {
  70. <div class="p_title">
  71. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  72. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  73. @Html.ContextMenuBar("BatchSave")
  74. </div>
  75. </div>
  76. <div class="search_list">
  77. <table cellpadding="0" cellspacing="0" id="grademajorBatchAdd">
  78. <tr>
  79. <td>
  80. @Html.LabelFor(x => x.CollegeID):
  81. </td>
  82. <td>
  83. @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
  84. </td>
  85. <td>
  86. @Html.LabelFor(x => x.GradeID):
  87. </td>
  88. <td>
  89. @Html.SchoolYearDropDownListFor(x => x.GradeID, new DropdownListOptions()
  90. {
  91. OnSelect = "queryGrade"
  92. })
  93. </td>
  94. </tr>
  95. <tr>
  96. <td>
  97. @Html.LabelFor(x => x.StandardName):
  98. </td>
  99. <td colspan="3">
  100. @Html.ComboGridFor(x => x.StandardID, cgopStandard)
  101. </td>
  102. </tr>
  103. <tr>
  104. <td style="color:red;">
  105. @Html.LabelFor(x => x.BatchGradeID):
  106. </td>
  107. <td>
  108. @Html.SchoolYearDropDownListFor(x => x.BatchGradeID)
  109. </td>
  110. <td style="color:red;">
  111. @Html.LabelFor(x => x.IsOverwrite):
  112. </td>
  113. <td>
  114. @Html.CheckBoxFor((x => x.IsOverwrite))
  115. </td>
  116. </tr>
  117. </table>
  118. </div>
  119. }
  120. </div>