List.cshtml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "评价设定";
  6. ComboGridOptions cgop = new ComboGridOptions
  7. {
  8. TextField = "CourseName",
  9. ValueField = "CoursematerialID",
  10. OnSelect = "QueryComboGridList",
  11. Name = "CoursematerialComboGrid",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.1 },
  17. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false,
  24. }
  25. };
  26. ComboGridOptions cgopCollege = new ComboGridOptions
  27. {
  28. TextField = "Name",
  29. ValueField = "CollegeID",
  30. OnSelect = "queryCollege",
  31. Name = "CollegeDropdown",
  32. ID = "CollegeDropdown",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  38. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.1 }
  39. },
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/College/List"),
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false,
  45. }
  46. };
  47. ComboGridOptions cgopCampus = new ComboGridOptions
  48. {
  49. TextField = "Name",
  50. ValueField = "CampusID",
  51. OnSelect = "QueryCampusComboGridList",
  52. Name = "CampusDropdown",
  53. ID = "CampusDropdown",
  54. GridOptions = new DataGridOptions
  55. {
  56. Columns = new List<DataGridColumn>()
  57. {
  58. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.1 },
  59. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.1 }
  60. },
  61. IsCheckOnSelect = true,
  62. DataSourceUrl = Url.Content("~/Campus/List"),
  63. IsPagination = true,
  64. IsShowRowNumbers = true,
  65. IsSingleSelect = false,
  66. }
  67. };
  68. ComboGridOptions cgopGrademajor = new ComboGridOptions
  69. {
  70. TextField = "Name",
  71. ValueField = "GrademajorID",
  72. Name = "GrademajorComboGrid",
  73. ID = "GrademajorComboGrid",
  74. OnSelect = "QueryGrademajorDropdownList",
  75. GridOptions = new DataGridOptions
  76. {
  77. Columns = new List<DataGridColumn>()
  78. {
  79. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.2 }
  80. },
  81. IsCheckOnSelect = true,
  82. DataSourceUrl = Url.Content("~/Grademajor/List"),
  83. IsPagination = true,
  84. IsShowRowNumbers = true,
  85. IsSingleSelect = false
  86. }
  87. };
  88. ComboGridOptions cgopClassmajor = new ComboGridOptions
  89. {
  90. TextField = "Name",
  91. ValueField = "ClassmajorID",
  92. Name = "ClassmajorComboGrid",
  93. ID = "ClassmajorComboGrid",
  94. OnSelect = "reload",
  95. GridOptions = new DataGridOptions
  96. {
  97. Columns = new List<DataGridColumn>()
  98. {
  99. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.2 }
  100. },
  101. IsCheckOnSelect = true,
  102. DataSourceUrl = Url.Content("~/Classmajor/List"),
  103. IsPagination = true,
  104. IsShowRowNumbers = true,
  105. IsSingleSelect = false
  106. }
  107. };
  108. ComboGridOptions cgopStaff = new ComboGridOptions
  109. {
  110. TextField = "Name",
  111. ValueField = "UserID",
  112. Name = "StaffComboGrid",
  113. ID = "StaffComboGrid",
  114. OnSelect = "reload",
  115. GridOptions = new DataGridOptions
  116. {
  117. Columns = new List<DataGridColumn>()
  118. {
  119. new BoundFieldColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center, Width=0.1 },
  120. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.1 }
  121. },
  122. IsCheckOnSelect = true,
  123. DataSourceUrl = Url.Content("~/Staff/List"),
  124. IsPagination = true,
  125. IsShowRowNumbers = true,
  126. IsSingleSelect = false
  127. }
  128. };
  129. ComboGridOptions cgopStandard = new ComboGridOptions
  130. {
  131. TextField = "StandardName",
  132. ValueField = "StandardID",
  133. OnSelect = "queryStandard",
  134. Name = "StandardDictionaryDropDown",
  135. ID = "StandardDictionaryDropDown",
  136. GridOptions = new DataGridOptions
  137. {
  138. Columns = new List<DataGridColumn>()
  139. {
  140. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  141. },
  142. IsCheckOnSelect = true,
  143. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  144. IsPagination = true,
  145. IsShowRowNumbers = true,
  146. IsSingleSelect = false,
  147. }
  148. };
  149. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  150. {
  151. TextField = "LearnSystem",
  152. ValueField = "LearnSystem",
  153. OnSelect = "queryClass",
  154. Name = "DictionaryLearnSystem",
  155. ID = "DictionaryLearnSystem",
  156. GridOptions = new DataGridOptions
  157. {
  158. Columns = new List<DataGridColumn>()
  159. {
  160. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  161. },
  162. IsCheckOnSelect = true,
  163. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  164. IsPagination = true,
  165. IsShowRowNumbers = true,
  166. IsSingleSelect = false,
  167. IsShowHeader = false
  168. }
  169. };
  170. }
  171. @section scripts{
  172. <script src="~/Scripts/Business/EvaluationManage/EvaluationManage/EvaluationSetting.js" type="text/javascript"></script>
  173. <script type="text/javascript">
  174. var nonSelect = "@DropdownList.SELECT_ALL";
  175. </script>
  176. }
  177. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  178. @Html.Position()
  179. <div class="p_SearchTitle">
  180. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  181. 查询条件
  182. </div>
  183. </div>
  184. <form id="formQuery" method="post" action="@Url.Action("Excel")">
  185. @Html.PositionCondition()
  186. <div class="search_keyword">
  187. <div class="search_input">
  188. <ul>
  189. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  190. <li class="sv">
  191. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "SchoolYearDropdownList", SelectedValue = ViewBag.SchoolYearID }, new Dictionary<string, string> { { "data-condition", "dgEvaluationSettingList" } })
  192. </li>
  193. @*<li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  194. <li class="sv">
  195. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgEvaluationSettingList" } })
  196. </li>*@
  197. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  198. <li class="sv">
  199. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgEvaluationSettingList" } })
  200. </li>
  201. @* <li class="sn" style="padding-left: 5px;">年级:</li>
  202. <li class="sv">
  203. @Html.SchoolYearDropDownList(new DropdownListOptions { Name = "DictionarySchoolyear", BindType = DropdownListBindType.SelectAll, OnSelect = "QueryLearningformDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgEvaluationSettingList" } })
  204. </li>*@
  205. <li class="sn" style="padding-left: 5px;">年级:</li>
  206. <li class="sv">
  207. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgEvaluationSettingList" } })
  208. </li>
  209. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  210. <li class="sv">
  211. @* @Html.ComboGrid(cgopGrademajor, new Dictionary<string, string> { { "data-condition", "dgEvaluationSettingList" } })*@
  212. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgEvaluationSettingList" } })
  213. </li>
  214. </ul>
  215. <ul>
  216. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  217. <li class="sv">
  218. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { ID = "DictionaryEducation", Name = "DictionaryEducation", BindType = DropdownListBindType.SelectAll, OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgEvaluationSettingList" } })
  219. </li>
  220. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  221. <li class="sv">
  222. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "LearningformDictionaryDropDown", Name = "LearningformDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgEvaluationSettingList" } })
  223. </li>
  224. <li class="sn" style="padding-left: 5px;">学制:</li>
  225. <li class="sv">
  226. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgEvaluationSettingList" } })
  227. </li>
  228. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  229. <li class="sv">
  230. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgEvaluationSettingList" } })
  231. @* @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ID = "ClassmajorDropdown", Name = "ClassmajorDropdown", OnSelect = "reload", OnLoadSuccess = "QueryClassmajorDropdownList" })*@
  232. </li>
  233. </ul>
  234. <ul>
  235. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  236. <li class="sv">
  237. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgEvaluationSettingList" } })
  238. </li>
  239. <li class="sn" style="padding-left: 5px;">被评教师:</li>
  240. <li class="sv">
  241. @Html.ComboGrid(cgopStaff, new Dictionary<string, string> { { "data-condition", "dgEvaluationSettingList" } })
  242. </li>
  243. <li class="sn" style="padding-left: 5px;">开放状态:</li>
  244. <li class="sv">
  245. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_YesOrNoStatus, new DropdownListOptions { Name = "DictionaryOpenStatus", BindType = DropdownListBindType.SelectAll, OnSelect = "DictionaryOpenDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgEvaluationSettingList" } })
  246. </li>
  247. </ul>
  248. </div>
  249. </div>
  250. </form>
  251. <div class="p_title">
  252. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  253. 评价设定列表
  254. </div>
  255. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  256. </div>
  257. @Html.PositionBatchModify()
  258. <div class="search_list">
  259. @Html.DataGrid(new DataGridOptions
  260. {
  261. Columns = new List<DataGridColumn>()
  262. {
  263. new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationSettingID"},
  264. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08 },
  265. new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center, Width=0.16 },
  266. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.05 },
  267. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
  268. //new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.05 },
  269. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08 },
  270. new BoundFieldColumn { FieldName="EvaluationTableTypeName", HeaderText="评价类型", Align=AlignStyle.Center, Width=0.04 },
  271. new BoundFieldColumn { FieldName="UserCodes", HeaderText="被评教师编号", Align=AlignStyle.Center, Width=0.06, OverflowLength=8 },
  272. new BoundFieldColumn { FieldName="UserNames", HeaderText="被评教师", Align=AlignStyle.Center, Width=0.04, OverflowLength=4 },
  273. new LinkButtonColumn { FieldName="StudentCount", HeaderText="学生人数", Align=AlignStyle.Center, Handle="StudentCountView", Width=0.04 },
  274. //new LinkButtonColumn { FieldName="StaffCount", HeaderText="同行人数", Align=AlignStyle.Center, Handle="StaffCountView", Width=0.04 },
  275. new BoundFieldColumn { FieldName="OpenStatus", HeaderText="开放状态", Align=AlignStyle.Center, IsHidden=true, Width=0.04 },
  276. new BoundFieldColumn { FieldName="OpenStatusName", HeaderText="开放状态", Align=AlignStyle.Center, Width=0.04 }
  277. },
  278. PageSize = 30,
  279. IsCheckOnSelect = true,
  280. DataSourceUrl = Url.Action("List"),
  281. ID = "dgEvaluationSettingList",
  282. IsPagination = true,
  283. IsShowRowNumbers = true,
  284. IsSingleSelect = false
  285. })
  286. </div>
  287. </div>