List.cshtml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. //校区
  6. ComboGridOptions cgopCampus = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CampusID",
  10. ID = "CampusDropdown",
  11. Name = "CampusDropdown",
  12. OnSelect = "queryCampus",
  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, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.12 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Campus/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. //院系所
  28. ComboGridOptions cgopCollege = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "CollegeID",
  32. ID = "CollegeDropdown",
  33. Name = "CollegeDropdown",
  34. OnSelect = "queryCollege",
  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, Width=0.1 },
  40. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. }
  48. };
  49. //教研室
  50. ComboGridOptions cgopDepartment = new ComboGridOptions
  51. {
  52. TextField = "Name",
  53. ValueField = "DepartmentID",
  54. ID = "DepartmentDropdown",
  55. Name = "DepartmentDropdown",
  56. OnSelect = "queryDepartment",
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. //new LinkButtonColumn { FieldName="No", HeaderText="开课教研室代码", Align=AlignStyle.Center, Width=0.1 },
  62. new BoundFieldColumn { FieldName="Name", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.2 }
  63. },
  64. IsCheckOnSelect = true,
  65. DataSourceUrl = Url.Content("~/Department/List"),
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false
  69. }
  70. };
  71. //教师信息
  72. ComboGridOptions cgopStaff = new ComboGridOptions
  73. {
  74. TextField = "Name",
  75. ValueField = "UserID",
  76. Name = "StaffComboGrid",
  77. ID = "StaffComboGrid",
  78. OnSelect = "reload",
  79. GridOptions = new DataGridOptions
  80. {
  81. Columns = new List<DataGridColumn>()
  82. {
  83. new BoundFieldColumn { FieldName="StaffCode", HeaderText="教师工号", Align=AlignStyle.Center, Width=0.1 },
  84. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.1 }
  85. },
  86. IsCheckOnSelect = true,
  87. DataSourceUrl = Url.Content("~/Staff/List"),
  88. IsPagination = true,
  89. IsShowRowNumbers = true,
  90. IsSingleSelect = false
  91. }
  92. };
  93. //课程信息
  94. ComboGridOptions cgopCourse = new ComboGridOptions
  95. {
  96. TextField = "CourseName",
  97. ValueField = "CoursematerialID",
  98. ID = "CourseComboGrid",
  99. Name = "CourseComboGrid",
  100. OnSelect = "reload",
  101. GridOptions = new DataGridOptions
  102. {
  103. Columns = new List<DataGridColumn>()
  104. {
  105. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.08 },
  106. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.15 }
  107. },
  108. PageSize = 5,
  109. IsCheckOnSelect = true,
  110. DataSourceUrl = Url.Content("~/Coursematerial/List"),
  111. IsPagination = true,
  112. IsShowRowNumbers = true,
  113. IsSingleSelect = false
  114. }
  115. };
  116. }
  117. @section scripts{
  118. <script src="~/Scripts/Business/EvaluationManage/EvaluationManage/EvaluationCollegeScore.js" type="text/javascript"></script>
  119. <script type="text/javascript">
  120. var nonSelect = "@DropdownList.SELECT_ALL";
  121. //开始环节状态
  122. var startStatusID = "@BaseExtensions.GetStartFlowStatus("EM_EvaluationCollegeScore")";
  123. //通过环节状态
  124. var passNoEndStatusID = "@BaseExtensions.GetPassNoEndFlowStatus("EM_EvaluationCollegeScore")";
  125. </script>
  126. }
  127. <div class="easyui-panel" data-options="border:false,fit:true" style="position:relative;">
  128. @Html.Position()
  129. <div class="p_SearchTitle">
  130. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  131. </div>
  132. <form id="formQuery" method="post" action="@Url.Content("~/EvaluationCollegeScore/Excel")">
  133. @Html.PositionCondition()
  134. <div class="search_keyword">
  135. <div class="search_input">
  136. <ul>
  137. <li class="sn" style="padding-left: 5px;color: red;">学年学期:</li>
  138. <li class="sv">
  139. @Html.DropdownList(new DropdownListOptions
  140. {
  141. ID = "SchoolyearDropdown",
  142. Name = "SchoolyearDropdown",
  143. BindType = DropdownListBindType.SelectAll,
  144. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"),
  145. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  146. OnSelect = "reload"
  147. }, new Dictionary<string, string> { { "data-condition", "dgEvaluationCollegeScoreList" } })
  148. </li>
  149. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  150. <li class="sv">
  151. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgEvaluationCollegeScoreList" } })
  152. </li>
  153. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  154. <li class="sv">
  155. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgEvaluationCollegeScoreList" } })
  156. </li>
  157. <li class="sn" style="padding-left: 5px;">教研室:</li>
  158. <li class="sv">
  159. @Html.ComboGrid(cgopDepartment, new Dictionary<string, string> { { "data-condition", "dgEvaluationCollegeScoreList" } })
  160. </li>
  161. </ul>
  162. <ul>
  163. <li class="sn" style="padding-left: 5px;color:red;">任课教师:</li>
  164. <li class="sv">
  165. @Html.ComboGrid(cgopStaff, new Dictionary<string, string> { { "data-condition", "dgEvaluationCollegeScoreList" } })
  166. </li>
  167. <li class="sn" style="padding-left: 5px;color: red;">在职状态:</li>
  168. <li class="sv">
  169. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_IncumbencyState, new DropdownListOptions
  170. {
  171. ID = "DictionaryIncumbencyState",
  172. Name = "DictionaryIncumbencyState",
  173. BindType = DropdownListBindType.SelectAll,
  174. SelectedValue = (int)EMIS.ViewModel.CF_IncumbencyState.Incumbency,
  175. OnSelect = "reload"
  176. }, new Dictionary<string, string> { { "data-condition", "dgEvaluationCollegeScoreList" } })
  177. </li>
  178. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  179. <li class="sv">
  180. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgEvaluationCollegeScoreList" } })
  181. </li>
  182. <li class="sn" style="padding-left: 5px; color: red;">状态:</li>
  183. <li class="sv">
  184. @Html.DropdownList(new DropdownListOptions
  185. {
  186. ID = "DictionaryApprovalStatus",
  187. Name = "DictionaryApprovalStatus",
  188. BindType = DropdownListBindType.SelectAll,
  189. SelectedValue = BaseExtensions.GetStartFlowStatus(typeof(EMIS.Entities.EM_EvaluationCollegeScore).Name),
  190. ItemSourceUrl = Url.Content("~/Common/ApproveStatusDropDown?tableName=" + typeof(EMIS.Entities.EM_EvaluationCollegeScore).Name),
  191. OnSelect = "reload"
  192. }, new Dictionary<string, string> { { "data-condition", "dgEvaluationCollegeScoreList" } })
  193. </li>
  194. </ul>
  195. </div>
  196. </div>
  197. </form>
  198. <div class="p_title">
  199. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">院系评分列表</div>
  200. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  201. </div>
  202. @Html.PositionBatchModify()
  203. <div class="search_list">
  204. @Html.DataGrid(new DataGridOptions
  205. {
  206. Columns = new List<DataGridColumn>()
  207. {
  208. new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationCollegeScoreID" },
  209. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.06 },
  210. new LinkButtonColumn { FieldName="StaffCode", HeaderText="教师工号", Align=AlignStyle.Center, Handle="edit", Width=0.05 },
  211. new BoundFieldColumn { FieldName="StaffName", HeaderText="任课教师", Align=AlignStyle.Center, Width=0.04 },
  212. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, OrderFieldName="SexID", Width=0.03 },
  213. new BoundFieldColumn { FieldName="TeacherTypeName", HeaderText="教师类型", Align=AlignStyle.Center, OrderFieldName="TeacherTypeID", Width=0.04 },
  214. new BoundFieldColumn { FieldName="IncumbencyStateName", HeaderText="在职状态", Align=AlignStyle.Center, OrderFieldName="IncumbencyState", Width=0.04, CustomFormatFun="SetRedColumn" },
  215. new BoundFieldColumn { FieldName="TitleName", HeaderText="职称", Align=AlignStyle.Center, OrderFieldName="TitleID", Width=0.04 },
  216. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
  217. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.08, OverflowLength=10 },
  218. //new BoundFieldColumn { FieldName="DepartmentNo", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.05 },
  219. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="所属教研室", Align=AlignStyle.Center, Width=0.08, OverflowLength=10 },
  220. //new BoundFieldColumn { FieldName="CollegeNo", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
  221. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08, OverflowLength=10 },
  222. //new BoundFieldColumn { FieldName="CampusNo", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.05 },
  223. //new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("Campus"), Align=AlignStyle.Center, Width=0.06, OverflowLength=8 },
  224. new BoundFieldColumn { FieldName="TotalScore", HeaderText="评分", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" },
  225. new ApproveStatusColumn { FieldName="ApprovalStatusName", TableName=typeof(EMIS.Entities.EM_EvaluationCollegeScore).Name, IDFieldName="EvaluationCollegeScoreID", HeaderText="状态", Align=AlignStyle.Center, Width=0.03 },
  226. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=5 }
  227. },
  228. IsCheckOnSelect = true,
  229. DataSourceUrl = Url.Content("~/EvaluationCollegeScore/List"),
  230. ID = "dgEvaluationCollegeScoreList",
  231. IsPagination = true,
  232. IsShowRowNumbers = true,
  233. IsSingleSelect = false
  234. })
  235. </div>
  236. </div>