RecordList.cshtml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "RecordList";
  6. ComboGridOptions cgopCampus = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CampusID",
  10. OnSelect = "queryCollege",
  11. Name = "CampusDropdown",
  12. ID = "CampusDropdown",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
  19. },
  20. //OnLoadSuccessFun = "reload",
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/Campus/List"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false,
  26. }
  27. };
  28. ComboGridOptions cgopCollege = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "CollegeID",
  32. OnSelect = "queryCollege",
  33. Name = "CollegeDropdown",
  34. ID = "CollegeDropdown",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  40. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  41. },
  42. OnLoadSuccessFun = "reload",
  43. IsCheckOnSelect = true,
  44. DataSourceUrl = Url.Content("~/College/List"),
  45. IsPagination = true,
  46. IsShowRowNumbers = true,
  47. IsSingleSelect = false,
  48. }
  49. };
  50. ComboGridOptions cgopClassmajor = new ComboGridOptions
  51. {
  52. TextField = "Name",
  53. ValueField = "ClassmajorID",
  54. Name = "ClassmajorDropdown",
  55. ID = "ClassmajorDropdown",
  56. OnSelect = "reload",
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
  62. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  63. },
  64. IsCheckOnSelect = true,
  65. DataSourceUrl = Url.Content("~/Classmajor/List"),
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false
  69. }
  70. };
  71. ComboGridOptions cgopStandard = new ComboGridOptions
  72. {
  73. TextField = "StandardName",
  74. ValueField = "StandardID",
  75. OnSelect = "queryStandard",
  76. Name = "StandardDictionaryDropDown",
  77. ID = "StandardDictionaryDropDown",
  78. GridOptions = new DataGridOptions
  79. {
  80. Columns = new List<DataGridColumn>()
  81. {
  82. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  83. },
  84. IsCheckOnSelect = true,
  85. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  86. IsPagination = true,
  87. IsShowRowNumbers = true,
  88. IsSingleSelect = false,
  89. }
  90. };
  91. ComboGridOptions cgExaminationSubject = new ComboGridOptions
  92. {
  93. TextField = "Name",
  94. ValueField = "ExaminationSubjectID",
  95. Name = "ddlExaminationSubject",
  96. ID = "ddlExaminationSubject",
  97. OnSelect = "reload",
  98. GridOptions = new DataGridOptions
  99. {
  100. Columns = new List<DataGridColumn>()
  101. {
  102. new BoundFieldColumn { FieldName="Name", HeaderText="考试科目名称", Align=AlignStyle.Center }
  103. },
  104. //OnLoadSuccessFun = "SelectExaminationSubjectDropdown",
  105. IsCheckOnSelect = true,
  106. DataSourceUrl = Url.Content("~/ExaminationSubject/List"),
  107. IsPagination = true,
  108. IsShowRowNumbers = true,
  109. IsSingleSelect = false
  110. }
  111. };
  112. ComboGridOptions cgopStaff = new ComboGridOptions
  113. {
  114. TextField = "Name",
  115. ValueField = "UserID",
  116. Name = "StaffComboGrid",
  117. ID = "StaffComboGrid",
  118. OnSelect = "reload",
  119. GridOptions = new DataGridOptions
  120. {
  121. Columns = new List<DataGridColumn>()
  122. {
  123. new BoundFieldColumn { FieldName="Name", HeaderText="教师名称", Align=AlignStyle.Center }
  124. },
  125. IsCheckOnSelect = true,
  126. DataSourceUrl = Url.Content("~/Staff/List"),
  127. IsPagination = true,
  128. IsShowRowNumbers = true,
  129. IsSingleSelect = false
  130. }
  131. };
  132. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  133. {
  134. TextField = "LearnSystem",
  135. ValueField = "LearnSystem",
  136. OnSelect = "queryClass",
  137. Name = "DictionaryLearnSystem",
  138. ID = "DictionaryLearnSystem",
  139. GridOptions = new DataGridOptions
  140. {
  141. Columns = new List<DataGridColumn>()
  142. {
  143. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  144. },
  145. IsCheckOnSelect = true,
  146. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  147. IsPagination = true,
  148. IsShowRowNumbers = true,
  149. IsSingleSelect = false,
  150. IsShowHeader = false
  151. }
  152. };
  153. }
  154. @section scripts{
  155. <script src="~/Scripts/Business/EvaluationManage/EvaluationResult.js"></script>
  156. <script type="text/javascript">
  157. var nonSelect = "@DropdownList.SELECT_ALL";
  158. </script>
  159. }
  160. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  161. @Html.Position()
  162. <div class="p_SearchTitle">
  163. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  164. 查询条件
  165. </div>
  166. </div>
  167. <form id="formQuery" method="post" action="@Url.Content("~/EvaluationRecord/Excel")">
  168. @Html.PositionCondition()
  169. <div class="search_keyword">
  170. <div class="search_input">
  171. <ul>
  172. <li class="sn" style="display:none" >@EMIS.Utility.RSL.Get("Campus"):</li>
  173. <li class="sv" style="display:none">
  174. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgEvaluationRecordList" } })
  175. </li>
  176. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  177. <li class="sv">
  178. @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", "dgEvaluationRecordList" } })
  179. </li>
  180. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  181. <li class="sv">
  182. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgEvaluationRecordList" } })
  183. </li>
  184. <li class="sn" style="padding-left: 5px;">年级:</li>
  185. <li class="sv">
  186. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgEvaluationRecordList" } })
  187. </li>
  188. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  189. <li class="sv">
  190. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgEvaluationRecordList" } })
  191. @*@Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "StandardDictionaryDropDown", Name = "StandardDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgList" } })*@
  192. </li>
  193. </ul>
  194. <ul>
  195. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  196. <li class="sv">
  197. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { ID = "DictionaryEducation", Name = "DictionaryEducation", BindType = DropdownListBindType.SelectAll, OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgEvaluationRecordList" } })
  198. </li>
  199. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  200. <li class="sv">
  201. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "LearningformDictionaryDropDown", Name = "LearningformDictionaryDropDown", SelectedValue = BaseExtensions.GetDefaultLearnformForList(), OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgEvaluationRecordList" } })
  202. </li>
  203. <li class="sn" style="padding-left: 5px;">学制:</li>
  204. <li class="sv">
  205. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgEvaluationRecordList" } })
  206. </li>
  207. <li class="sn" style="padding-left: 5px;">班级:</li>
  208. <li class="sv">
  209. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgEvaluationRecordList" } })
  210. </li>
  211. </ul>
  212. <ul>
  213. <li class="sn" style="padding-left: 5px;">被评教师:</li>
  214. <li class="sv">
  215. @Html.ComboGrid(cgopStaff, new Dictionary<string, string> { { "data-condition", "dgEvaluationRecordList" } })
  216. </li>
  217. <li class="sn" style="padding-left: 5px;">评价表名:</li>
  218. <li class="sv">
  219. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/EvaluationTarget/EvaluationTablDropdownListBanid"), ID = "EvaluationTableDropdown", Name = "EvaluationTableDropdown", OnSelect = "QueryEvaluationTableDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgEvaluationRecordList" } })
  220. </li>
  221. <li class="sn" style="padding-left: 5px;">参评类型:</li>
  222. <li class="sv">
  223. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/EvaluationType/EvaluationTypeDropdownListBanid"), ID = "EvaluationTypeDropdown", Name = "EvaluationTypeDropdown", OnSelect = "QueryEvaluationTypeDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgEvaluationRecordList" } })
  224. </li>
  225. </ul>
  226. </div>
  227. </div>
  228. </form>
  229. <div class="p_title">
  230. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  231. 评价记录信息列表
  232. </div>
  233. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  234. </div>
  235. @Html.PositionBatchModify()
  236. <div class="search_list">
  237. @Html.DataGrid(new DataGridOptions
  238. {
  239. Columns = new List<DataGridColumn>()
  240. {
  241. new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationEnterID"},
  242. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.09 },
  243. new BoundFieldColumn { FieldName="EvaluationSettingCode", HeaderText="评价编号", Align=AlignStyle.Center, OverflowLength=18, Width=0.12 },
  244. new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center, OverflowLength=16, Width=0.14 },
  245. new BoundFieldColumn { FieldName="B_EvaluationName", HeaderText="被评教师", Align=AlignStyle.Center, OverflowLength=11, Width=0.1 },
  246. new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.05 },
  247. new BoundFieldColumn { FieldName="EvaluationCode", HeaderText="参评人编号", Align=AlignStyle.Center, Width=0.09 },
  248. new BoundFieldColumn { FieldName="EvaluationName", HeaderText="参评人", Align=AlignStyle.Center, Width=0.06 },
  249. new BoundFieldColumn { FieldName="EvaluationTableName", HeaderText="评价表名", Align=AlignStyle.Center, OverflowLength=12, Width=0.11 },
  250. new BoundFieldColumn { FieldName="EvaluationTableTypeName", HeaderText="评价类型", Align=AlignStyle.Center, Width=0.05 },
  251. new BoundFieldColumn { FieldName="LimitMore", HeaderText="可评次数", Align=AlignStyle.Center, Width=0.05 },
  252. new BoundFieldColumn { FieldName="EvaluationCount", HeaderText="已评次数", Align=AlignStyle.Center, Width=0.05 }
  253. },
  254. IsCheckOnSelect = true,
  255. DataSourceUrl = Url.Content("~/EvaluationRecord/RecordList"),
  256. ID = "dgEvaluationRecordList",
  257. IsPagination = true,
  258. IsShowRowNumbers = true,
  259. IsSingleSelect = false
  260. })
  261. </div>
  262. </div>