BatchAdd.cshtml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. @model EMIS.ViewModel.UniversityManage.SpecialtyClassManage.ClassmajorView
  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 = "QueryComboGridList",
  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/ClassmajorBatchAdd.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 colspan="4" style="padding:1px;height:10px;">
  80. <div id="add" style="width: 16px; float: left; height: 16px; cursor: pointer;
  81. background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0;">
  82. </div>
  83. <div style="float: left;height: 10px; cursor: pointer; color: red;">
  84. 复制的年级专业信息
  85. </div>
  86. </td>
  87. </tr>
  88. <tr>
  89. <td>
  90. @Html.LabelFor(x => x.CollegeID):
  91. </td>
  92. <td>
  93. @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
  94. </td>
  95. <td>
  96. @Html.LabelFor(x => x.GradeID):
  97. </td>
  98. <td>
  99. @*@Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Grade, x => x.SchoolyearID, DropdownListBindType.PleaseSelect, new ComboGridOptions()
  100. {
  101. OnSelect = "QueryComboGridList"
  102. })*@
  103. @Html.SchoolYearDropDownListFor(x => x.GradeID, new DropdownListOptions()
  104. {
  105. OnSelect = "QueryComboGridList"
  106. })
  107. </td>
  108. </tr>
  109. <tr>
  110. <td>
  111. @Html.LabelFor(x => x.StandardName):
  112. </td>
  113. <td colspan="3">
  114. @Html.ComboGridFor(x => x.StandardID, cgopStandard)
  115. </td>
  116. </tr>
  117. <tr>
  118. <td colspan="4" style="padding:1px;height:10px;">
  119. <div id="batchAdd" style="width: 16px; float: left; height: 16px; cursor: pointer;
  120. background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0;">
  121. </div>
  122. <div style="float: left;height: 10px; cursor: pointer; color: red;">
  123. 复制的目标:
  124. </div>
  125. </td>
  126. </tr>
  127. <tr>
  128. <td style="color:red;">
  129. @Html.LabelFor(x => x.BatchGradeID):
  130. </td>
  131. <td>
  132. @*@Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Grade, x => x.BatchSchoolyearID, DropdownListBindType.PleaseSelect)*@
  133. @Html.SchoolYearDropDownListFor(x => x.BatchGradeID)
  134. </td>
  135. <td style="color:red;">
  136. @Html.LabelFor(x => x.IsOverwrite):
  137. </td>
  138. <td>
  139. @Html.CheckBoxFor((x => x.IsOverwrite))
  140. </td>
  141. </tr>
  142. </table>
  143. </div>
  144. }
  145. </div>