CollegePriorityBatchAdd.cshtml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. @model EMIS.ViewModel.SchedulingManage.CollegePriorityView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @using EMIS.Utility;
  5. @{
  6. ViewBag.Title = "CollegePriorityBatchAdd";
  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/SchedulingManage/SchedulingSettings/CollegePriorityBatchAdd.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("CollegePrioritySelect")
  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.TextBoxFor(x => x.Priority)
  100. </li>
  101. <li class="sn" style="padding-left: 5px;color:red;">开始日期:</li>
  102. <li class="sv">
  103. @Html.TextBoxFor(x => x.StartDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  104. </li>
  105. <li class="sn" style="padding-left: 5px;color:red;">结束日期:</li>
  106. <li class="sv">
  107. @Html.TextBoxFor(x => x.EndDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  108. </li>
  109. </ul>
  110. </div>
  111. </div>
  112. <div class="p_title">
  113. <div style="float: left; margin-left: 6px; line-height: 30px; font-size: 12px;">
  114. @EMIS.Utility.RSL.Get("College")信息列表
  115. </div>
  116. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("BatchAdd")</div>
  117. </div>
  118. <div class="search_list">
  119. @Html.Hidden("collegeIDList")
  120. <table cellpadding="0" cellspacing="0" id="specialtytable">
  121. <tr>
  122. <td>
  123. @Html.DataGrid(new DataGridOptions
  124. {
  125. Columns = new List<DataGridColumn>()
  126. {
  127. new CheckBoxFieldColumn{ HeaderText="", FieldName="CollegeID" },
  128. new BoundFieldColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.04 },
  129. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.1 },
  130. new BoundFieldColumn { FieldName="SimpleName", HeaderText="简称", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  131. new BoundFieldColumn { FieldName="UnitCategoryName", HeaderText="单位类别", Align=AlignStyle.Center, OrderFieldName="UnitCategoryID", Width=0.04, CustomFormatFun="SetRedColumn" },
  132. //new BoundFieldColumn { FieldName="Officephone", HeaderText="办公电话", Align=AlignStyle.Center, Width=0.08 },
  133. //new BoundFieldColumn { FieldName="CampusNo", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.04 },
  134. new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.06 },
  135. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=3 }
  136. },
  137. IsPostBack = true,
  138. //IsAutoLoad = false,
  139. IsCheckOnSelect = true,
  140. DataSourceUrl = Url.Content("~/CollegePriority/CollegeNoAddList"),
  141. ID = "dgCollegeNoAddList",
  142. IsPagination = true,
  143. IsShowRowNumbers = true,
  144. IsSingleSelect = false
  145. })
  146. </td>
  147. </tr>
  148. </table>
  149. </div>
  150. }
  151. </div>