EducationMissionOpenControlBatchAdd.cshtml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. @model EMIS.ViewModel.EducationManage.EducationMissionOpenControlView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @using EMIS.Utility;
  5. @{
  6. ViewBag.Title = "EducationMissionOpenControlBatchAdd";
  7. //校区
  8. ComboGridOptions cgopCampus = new ComboGridOptions
  9. {
  10. TextField = "Name",
  11. ValueField = "CampusID",
  12. ID = "CampusDropdown",
  13. Name = "CampusDropdown",
  14. OnSelect = "queryCampus",
  15. GridOptions = new DataGridOptions
  16. {
  17. Columns = new List<DataGridColumn>()
  18. {
  19. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.1 },
  20. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.12 }
  21. },
  22. IsCheckOnSelect = true,
  23. DataSourceUrl = Url.Content("~/Campus/List"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false,
  27. }
  28. };
  29. //院系所
  30. ComboGridOptions cgopCollege = new ComboGridOptions
  31. {
  32. TextField = "Name",
  33. ValueField = "CollegeID",
  34. ID = "CollegeDropdown",
  35. Name = "CollegeDropdown",
  36. OnSelect = "reload",
  37. GridOptions = new DataGridOptions
  38. {
  39. Columns = new List<DataGridColumn>()
  40. {
  41. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  42. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  43. },
  44. IsCheckOnSelect = true,
  45. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  46. IsPagination = true,
  47. IsShowRowNumbers = true,
  48. IsSingleSelect = false,
  49. }
  50. };
  51. }
  52. @section scripts{
  53. <script src="~/Scripts/Business/EducationManage/EducationMissionOpenControlBatchAdd.js" type="text/javascript"></script>
  54. <script type="text/javascript">
  55. var nonSelect = "@DropdownList.SELECT_ALL";
  56. var college = '@EMIS.Utility.RSL.Get("College")';
  57. </script>
  58. }
  59. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  60. @using (Ajax.BeginForm(new AjaxOptions
  61. {
  62. //生成成功后不关闭弹出页面(OnSuccess = "EMISFunction.FormSuccessNoClose")
  63. OnSuccess = "formSuccessReloadNoClose",
  64. OnBegin = "EMISFunction.FormSubmit",
  65. OnComplete = "EMISFunction.FormComplete"
  66. }))
  67. {
  68. <div class="p_SearchTitle">
  69. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  70. 查询条件</div>
  71. </div>
  72. @Html.PositionCondition("EduOpenControlSelect")
  73. <div class="search_keyword">
  74. <div class="search_input">
  75. <ul>
  76. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  77. <li class="sv">
  78. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgCollegeNoAddList" } })
  79. </li>
  80. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  81. <li class="sv">
  82. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgCollegeNoAddList" } })
  83. </li>
  84. <li class="sn" style="padding-left: 5px;">单位类别:</li>
  85. <li class="sv">
  86. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_UnitCategory, new DropdownListOptions()
  87. {
  88. ID = "DictionaryUnitCategory",
  89. Name = "DictionaryUnitCategory",
  90. BindType = DropdownListBindType.SelectAll,
  91. SelectedValue = (int)EMIS.ViewModel.CF_UnitCategory.College,
  92. OnSelect = "reload"
  93. }, new Dictionary<string, string> { { "data-condition", "dgCollegeNoAddList" } })
  94. </li>
  95. </ul>
  96. <ul>
  97. <li class="sn" style="padding-left: 5px;color:red;">学年学期:</li>
  98. <li class="sv">
  99. @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions
  100. {
  101. TextField = "Text",
  102. ValueField = "Value",
  103. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"),
  104. BindType = DropdownListBindType.None,
  105. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  106. OnSelect = "reload"
  107. }, new Dictionary<string, string> { { "data-condition", "dgCollegeNoAddList" } })
  108. </li>
  109. <li class="sn" style="padding-left: 5px;color:red;">开始日期:</li>
  110. <li class="sv">
  111. @Html.TextBoxFor(x => x.StartDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  112. </li>
  113. <li class="sn" style="padding-left: 5px;color:red;">结束日期:</li>
  114. <li class="sv">
  115. @Html.TextBoxFor(x => x.EndDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  116. </li>
  117. </ul>
  118. </div>
  119. </div>
  120. <div class="p_title">
  121. <div style="float: left; margin-left: 6px; line-height: 30px; font-size: 12px;">
  122. @EMIS.Utility.RSL.Get("College")信息列表
  123. </div>
  124. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("BatchAdd")</div>
  125. </div>
  126. <div class="search_list">
  127. @Html.Hidden("collegeIDList")
  128. <table cellpadding="0" cellspacing="0" id="specialtytable">
  129. <tr>
  130. <td>
  131. @Html.DataGrid(new DataGridOptions
  132. {
  133. Columns = new List<DataGridColumn>()
  134. {
  135. new CheckBoxFieldColumn{ HeaderText="", FieldName="CollegeID" },
  136. new BoundFieldColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.04 },
  137. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.1 },
  138. new BoundFieldColumn { FieldName="SimpleName", HeaderText="简称", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  139. new BoundFieldColumn { FieldName="UnitCategoryName", HeaderText="单位类别", Align=AlignStyle.Center, OrderFieldName="UnitCategoryID", Width=0.04, CustomFormatFun="SetRedColumn" },
  140. //new BoundFieldColumn { FieldName="Officephone", HeaderText="办公电话", Align=AlignStyle.Center, Width=0.08 },
  141. //new BoundFieldColumn { FieldName="CampusNo", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.04 },
  142. new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.06 },
  143. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=3 }
  144. },
  145. IsPostBack = true,
  146. //IsAutoLoad = false,
  147. IsCheckOnSelect = true,
  148. DataSourceUrl = Url.Content("~/EducationMissionOpenControl/CollegeNoAddList"),
  149. ID = "dgCollegeNoAddList",
  150. IsPagination = true,
  151. IsShowRowNumbers = true,
  152. IsSingleSelect = false
  153. })
  154. </td>
  155. </tr>
  156. </table>
  157. </div>
  158. }
  159. </div>