BatchAdd.cshtml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. @model EMIS.ViewModel.Specialtyclass.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 = "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/GrademajorBindComboGridOptions"),
  45. IsPagination = true,
  46. IsShowRowNumbers = true,
  47. IsSingleSelect = false,
  48. }
  49. };
  50. }
  51. @section scripts{
  52. <script src="~/Scripts/Business/Specialtyclass/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.SchoolyearID):
  87. </td>
  88. <td>
  89. @*@Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Schoolyear, x => x.SchoolyearID, DropdownListBindType.PleaseSelect, new ComboGridOptions()
  90. {
  91. OnSelect = "QueryComboGridList"
  92. })*@
  93. @Html.SchoolYearDropDownListFor(x => x.SchoolyearID, new DropdownListOptions()
  94. {
  95. OnSelect = "QueryComboGridList"
  96. })
  97. </td>
  98. </tr>
  99. <tr>
  100. <td>
  101. @Html.LabelFor(x => x.StandardName):
  102. </td>
  103. <td colspan="3">
  104. @Html.ComboGridFor(x => x.StandardID, cgopStandard)
  105. </td>
  106. </tr>
  107. <tr>
  108. <td style="color:red;">
  109. @Html.LabelFor(x => x.BatchSchoolyearID):
  110. </td>
  111. <td>
  112. @*@Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Schoolyear, x => x.BatchSchoolyearID, DropdownListBindType.PleaseSelect)*@
  113. @Html.SchoolYearDropDownListFor(x => x.BatchSchoolyearID)
  114. </td>
  115. <td style="color:red;">
  116. @Html.LabelFor(x => x.IsOverwrite):
  117. </td>
  118. <td>
  119. @Html.CheckBoxFor((x => x.IsOverwrite))
  120. </td>
  121. </tr>
  122. </table>
  123. </div>
  124. }
  125. </div>