EvaluationGradeControlBatchAdd.cshtml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. @model EMIS.ViewModel.EvaluationManage.EvaluationSetting.EvaluationGradeControlView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @using EMIS.Utility;
  5. @{
  6. ViewBag.Title = "EvaluationGradeControlBatchAdd";
  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 = "queryCollege",
  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. ComboGridOptions cgopStandard = new ComboGridOptions
  53. {
  54. TextField = "StandardName",
  55. ValueField = "StandardID",
  56. ID = "DictionaryStandard",
  57. Name = "DictionaryStandard",
  58. OnSelect = "queryStandard",
  59. GridOptions = new DataGridOptions
  60. {
  61. Columns = new List<DataGridColumn>()
  62. {
  63. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  64. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  65. },
  66. IsCheckOnSelect = true,
  67. DataSourceUrl = Url.Content("~/Facultymajor/Standard"),
  68. IsPagination = true,
  69. IsShowRowNumbers = true,
  70. IsSingleSelect = false,
  71. }
  72. };
  73. //学制
  74. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  75. {
  76. TextField = "LearnSystem",
  77. ValueField = "LearnSystem",
  78. ID = "DictionaryLearnSystem",
  79. Name = "DictionaryLearnSystem",
  80. OnSelect = "reload",
  81. GridOptions = new DataGridOptions
  82. {
  83. Columns = new List<DataGridColumn>()
  84. {
  85. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  86. },
  87. IsCheckOnSelect = true,
  88. DataSourceUrl = Url.Content("~/Facultymajor/LearnSystem"),
  89. IsPagination = true,
  90. IsShowRowNumbers = true,
  91. IsSingleSelect = false,
  92. IsShowHeader = false
  93. }
  94. };
  95. }
  96. @section scripts{
  97. <script src="~/Scripts/Business/EvaluationManage/EvaluationSetting/EvaluationGradeControlBatchAdd.js" type="text/javascript"></script>
  98. <script type="text/javascript">
  99. var nonSelect = "@DropdownList.SELECT_ALL";
  100. </script>
  101. }
  102. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  103. @using (Ajax.BeginForm(new AjaxOptions
  104. {
  105. //生成成功后不关闭弹出页面(OnSuccess = "EMISFunction.FormSuccessNoClose")
  106. OnSuccess = "formSuccessReloadNoClose",
  107. OnBegin = "EMISFunction.FormSubmit",
  108. OnComplete = "EMISFunction.FormComplete"
  109. }))
  110. {
  111. <div class="p_SearchTitle">
  112. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  113. </div>
  114. @Html.PositionCondition("EvaluationGradeControlSelect")
  115. <div class="search_keyword">
  116. <div class="search_input">
  117. <ul>
  118. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  119. <li class="sv">
  120. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgGrademajorNoAddList" } })
  121. </li>
  122. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  123. <li class="sv">
  124. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgGrademajorNoAddList" } })
  125. </li>
  126. <li class="sn" style="padding-left: 5px;">年级:</li>
  127. <li class="sv">
  128. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Grade, DropdownListBindType.SelectAll,
  129. new ComboGridOptions
  130. {
  131. ID = "DictionaryGrade",
  132. Name = "DictionaryGrade",
  133. //SelectedValue = BaseExtensions.GetCurrentYearID(),
  134. OnSelect = "reload"
  135. }, new Dictionary<string, string> { { "data-condition", "dgGrademajorNoAddList" } })
  136. </li>
  137. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  138. <li class="sv">
  139. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgGrademajorNoAddList" } })
  140. </li>
  141. </ul>
  142. <ul>
  143. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  144. <li class="sv">
  145. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  146. new ComboGridOptions
  147. {
  148. ID = "DictionaryEducation",
  149. Name = "DictionaryEducation",
  150. OnSelect = "reload"
  151. }, new Dictionary<string, string> { { "data-condition", "dgGrademajorNoAddList" } })
  152. </li>
  153. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  154. <li class="sv">
  155. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  156. new ComboGridOptions
  157. {
  158. ID = "DictionaryLearningform",
  159. Name = "DictionaryLearningform",
  160. OnSelect = "reload"
  161. }, new Dictionary<string, string> { { "data-condition", "dgGrademajorNoAddList" } })
  162. </li>
  163. <li class="sn" style="padding-left: 5px;">学制:</li>
  164. <li class="sv">
  165. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgGrademajorNoAddList" } })
  166. </li>
  167. <li class="sn" style="padding-left: 5px;color:red;">在校状态:</li>
  168. <li class="sv">
  169. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, new DropdownListOptions
  170. {
  171. ID = "DictionaryInschoolStatus",
  172. Name = "DictionaryInschoolStatus",
  173. BindType = DropdownListBindType.SelectAll,
  174. OnSelect = "reload",
  175. SelectedValue = (int)EMIS.ViewModel.CF_INOrOutSchoolStatus.Yes
  176. }, new Dictionary<string, string> { { "data-condition", "dgGrademajorNoAddList" } })
  177. </li>
  178. </ul>
  179. <ul>
  180. <li class="sn" style="padding-left: 5px;color:red;">学年学期:</li>
  181. <li class="sv">
  182. @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions
  183. {
  184. TextField = "Text",
  185. ValueField = "Value",
  186. BindType = DropdownListBindType.PleaseSelect,
  187. ItemSourceUrl = Url.Content("~/SchoolYear/DropDownBeforeCurrent"),
  188. OnSelect = "reload",
  189. SelectedValue = BaseExtensions.GetCurrentSchoolYearID()
  190. }, new Dictionary<string, string> { { "data-condition", "dgGrademajorNoAddList" } })
  191. </li>
  192. <li class="sn" style="padding-left: 5px;color:red;">可评次数:</li>
  193. <li class="sv">
  194. @Html.TextBoxFor(x => x.Number, new TextBoxOptions())
  195. </li>
  196. <li class="sn" style="padding-left: 5px;color:red;">开始时间:</li>
  197. <li class="sv">
  198. @Html.TextBoxFor(x => x.StartTime, new TextBoxOptions() { TextBoxType = TextBoxType.DateTime })
  199. </li>
  200. <li class="sn" style="padding-left: 5px;color:red;">结束时间:</li>
  201. <li class="sv">
  202. @Html.TextBoxFor(x => x.EndTime, new TextBoxOptions() { TextBoxType = TextBoxType.DateTime })
  203. </li>
  204. </ul>
  205. </div>
  206. </div>
  207. <div class="p_title">
  208. <div style="float: left; margin-left: 6px; line-height: 30px; font-size: 12px;">年级专业信息列表</div>
  209. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("BatchAdd")</div>
  210. </div>
  211. <div class="search_list">
  212. @Html.Hidden("grademajorIDList")
  213. <table cellpadding="0" cellspacing="0" id="specialtytable">
  214. <tr>
  215. <td>
  216. @Html.DataGrid(new DataGridOptions
  217. {
  218. Columns = new List<DataGridColumn>()
  219. {
  220. new CheckBoxFieldColumn{ HeaderText="", FieldName="GrademajorID" },
  221. new BoundFieldColumn { FieldName="Code", HeaderText="年级专业编号", Align=AlignStyle.Center, Width=0.08 },
  222. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.12 },
  223. //new BoundFieldColumn { FieldName="FacultymajorName", HeaderText="院系专业名称", Align=AlignStyle.Center, Width=0.1 },
  224. new BoundFieldColumn { FieldName="GradeID", HeaderText="年级", Align=AlignStyle.Center, OrderFieldName="GradeID", Width=0.03 },
  225. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, OrderFieldName="StandardID", Width=0.06 },
  226. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, OrderFieldName="StandardID", Width=0.08 },
  227. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, OrderFieldName="EducationID", Width=0.04 },
  228. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, OrderFieldName="LearningformID", Width=0.05 },
  229. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  230. //new BoundFieldColumn { FieldName="SemesterName", HeaderText="入学学期", Align=AlignStyle.Center, OrderFieldName="SemesterID", Width=0.04 },
  231. new BoundFieldColumn { FieldName="StartSchoolyearCode", HeaderText="入学学年学期", Align=AlignStyle.Center, Width=0.08 },
  232. new BoundFieldColumn { FieldName="GraduateSchoolyearCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.08 },
  233. //new BoundFieldColumn { FieldName="CollegeCode", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
  234. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  235. new BoundFieldColumn { FieldName="StudentCount", HeaderText="人数", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" }
  236. //new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03 }
  237. },
  238. IsPostBack = true,
  239. IsAutoLoad = true,
  240. IsCheckOnSelect = true,
  241. DataSourceUrl = Url.Content("~/EvaluationGradeControl/GrademajorNoAddList"),
  242. ID = "dgGrademajorNoAddList",
  243. IsPagination = true,
  244. IsShowRowNumbers = true,
  245. IsSingleSelect = false
  246. })
  247. </td>
  248. </tr>
  249. </table>
  250. </div>
  251. }
  252. </div>