SpecialtyClassSettingBatchAdd.cshtml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. @model EMIS.ViewModel.EnrollManage.SpecialtyManage.SpecialtyClassSettingView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @using EMIS.Utility;
  5. @{
  6. ViewBag.Title = "SpecialtyClassSettingBatchAdd";
  7. //学制
  8. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  9. {
  10. TextField = "LearnSystem",
  11. ValueField = "LearnSystem",
  12. ID = "DictionaryLearnSystem",
  13. Name = "DictionaryLearnSystem",
  14. OnSelect = "reload",
  15. GridOptions = new DataGridOptions
  16. {
  17. Columns = new List<DataGridColumn>()
  18. {
  19. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  20. },
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false,
  26. IsShowHeader = false
  27. }
  28. };
  29. }
  30. @section scripts{
  31. <script src="~/Scripts/Business/EnrollManage/SpecialtyManage/SpecialtyClassSettingBatchAdd.js" type="text/javascript"></script>
  32. <script type="text/javascript">
  33. var nonSelect = "@DropdownList.SELECT_ALL";
  34. </script>
  35. }
  36. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  37. @using (Ajax.BeginForm(new AjaxOptions
  38. {
  39. //生成成功后不关闭弹出页面(OnSuccess = "EMISFunction.FormSuccessNoClose")
  40. OnSuccess = "formSuccessReloadNoClose",
  41. OnBegin = "EMISFunction.FormSubmit",
  42. OnComplete = "EMISFunction.FormComplete"
  43. }))
  44. {
  45. <div class="p_SearchTitle">
  46. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  47. </div>
  48. @Html.PositionCondition("SpecialtyClassSettingSelect")
  49. <div class="search_keyword">
  50. <div class="search_input">
  51. <ul>
  52. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  53. <li class="sv">
  54. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll,
  55. new ComboGridOptions
  56. {
  57. ID = "DictionaryStandard",
  58. Name = "DictionaryStandard",
  59. OnSelect = "reload",
  60. GridOptions = new DataGridOptions
  61. {
  62. Columns = new List<DataGridColumn>()
  63. {
  64. new BoundFieldColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 },
  65. new BoundFieldColumn { FieldName="Name", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 }
  66. }
  67. }
  68. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyNoAddList" } })
  69. </li>
  70. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("EducationID"):</li>
  71. <li class="sv">
  72. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  73. new ComboGridOptions
  74. {
  75. ID = "DictionaryEducation",
  76. Name = "DictionaryEducation",
  77. OnSelect = "reload"
  78. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyNoAddList" } })
  79. </li>
  80. </ul>
  81. <ul>
  82. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  83. <li class="sv">
  84. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  85. new ComboGridOptions
  86. {
  87. ID = "DictionaryLearningform",
  88. Name = "DictionaryLearningform",
  89. OnSelect = "reload"
  90. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyNoAddList" } })
  91. </li>
  92. <li class="sn" style="padding-left: 5px;">学制:</li>
  93. <li class="sv">
  94. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgSpecialtyNoAddList" } })
  95. </li>
  96. <li class="sn" style="padding-left: 5px;">专业科类:</li>
  97. <li class="sv">
  98. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Scienceclass, DropdownListBindType.SelectAll,
  99. new ComboGridOptions
  100. {
  101. ID = "DictionaryScienceclass",
  102. Name = "DictionaryScienceclass",
  103. OnSelect = "reload"
  104. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyNoAddList" } })
  105. </li>
  106. </ul>
  107. </div>
  108. </div>
  109. <div class="p_title">
  110. <div style="float: left; margin-left: 6px; line-height: 30px; font-size: 12px;">专业信息列表</div>
  111. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("BatchAdd")</div>
  112. </div>
  113. <div class="search_list">
  114. @Html.Hidden("specialtyIDs")
  115. <table cellpadding="0" cellspacing="0" id="specialtytable">
  116. <tr>
  117. <td>
  118. @Html.DataGrid(new DataGridOptions
  119. {
  120. Columns = new List<DataGridColumn>()
  121. {
  122. new CheckBoxFieldColumn{ HeaderText="", FieldName="SpecialtyID" },
  123. new BoundFieldColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, OrderFieldName="StandardCode", Width=0.06 },
  124. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, OrderFieldName="StandardName", Width=0.1 },
  125. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, OrderFieldName="EducationID", Width=0.05 },
  126. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, OrderFieldName="LearningformID", Width=0.05 },
  127. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  128. new BoundFieldColumn { FieldName="ScienceclassName", HeaderText="专业科类", Align=AlignStyle.Center, OrderFieldName="ScienceclassID", Width=0.05 },
  129. new BoundFieldColumn { FieldName="PropertyName", HeaderText="专业属性", Align=AlignStyle.Center, OrderFieldName="PropertyID", Width=0.05 },
  130. new BoundFieldColumn { FieldName="RecordStatusStr", HeaderText="启用状态", Align=AlignStyle.Center, OrderFieldName="RecordStatus", Width=0.05 }
  131. },
  132. IsPostBack = true,
  133. IsCheckOnSelect = true,
  134. DataSourceUrl = Url.Content("~/SpecialtyClassSetting/SpecialtyNoAddList"),
  135. ID = "dgSpecialtyNoAddList",
  136. IsPagination = true,
  137. IsShowRowNumbers = true,
  138. IsSingleSelect = false
  139. })
  140. </td>
  141. </tr>
  142. </table>
  143. </div>
  144. }
  145. </div>