List.cshtml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. ComboGridOptions cgopCollege = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CollegeID",
  10. ID = "cgCollege",
  11. Name = "cgCollege",
  12. OnSelect = "reloadStandard",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  18. },
  19. OnLoadSuccessFun = "reloadStandard",
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/College/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. ComboGridOptions cgopDepartment = new ComboGridOptions
  28. {
  29. TextField = "Name",
  30. ValueField = "DepartmentID",
  31. OnSelect = "QueryDepartmentComboGridList",
  32. Name = "DepartmentDropdown",
  33. ID = "DepartmentDropdown",
  34. GridOptions = new DataGridOptions
  35. {
  36. Columns = new List<DataGridColumn>()
  37. {
  38. // new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center },
  39. new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center }
  40. },
  41. IsCheckOnSelect = true,
  42. DataSourceUrl = Url.Content("~/Department/List"),
  43. IsPagination = true,
  44. IsShowRowNumbers = true,
  45. IsSingleSelect = false,
  46. }
  47. };
  48. ComboGridOptions cgopClassmajor = new ComboGridOptions
  49. {
  50. TextField = "Name",
  51. ValueField = "ClassmajorID",
  52. Name = "cgClassmajor",
  53. ID = "cgClassmajor",
  54. OnSelect = "reload",
  55. GridOptions = new DataGridOptions
  56. {
  57. Columns = new List<DataGridColumn>()
  58. {
  59. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  60. },
  61. OnLoadSuccessFun = "reload",
  62. IsCheckOnSelect = true,
  63. DataSourceUrl = Url.Content("~/Classmajor/List"),
  64. IsPagination = true,
  65. IsShowRowNumbers = true,
  66. IsSingleSelect = false
  67. }
  68. };
  69. }
  70. @section scripts{
  71. <script src="~/Scripts/Business/EvaluationManage/TeacherEvaluationCount.js" type="text/javascript"></script>
  72. <script type="text/javascript">
  73. var nonSelect = "@DropdownList.SELECT_ALL";
  74. </script>
  75. }
  76. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  77. @Html.Position()
  78. <form id="formQuery" method="post" action="@Url.Content("~/TeacherEvaluationCount/Excel")">
  79. @Html.PositionCondition()
  80. <div class="search_keyword">
  81. <div class="search_input">
  82. <ul>
  83. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  84. <li class="sv">
  85. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "reload", SelectedValue = ViewBag.SchoolYearID }, new Dictionary<string, string> { { "data-condition", "dgTeacherEvaluationCountList" } })
  86. </li>
  87. @*<li class="sn" style="padding-left: 5px;">参评类型:</li>
  88. <li class="sv">
  89. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/EvaluationType/EvaluationTypeDropdownListBanid"), ID = "EvaluationTypeDropdown", Name = "EvaluationTypeDropdown", OnSelect = "QueryEvaluationTypeDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgTeacherEvaluationCountList" } })
  90. </li>*@
  91. </ul>
  92. <ul>
  93. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  94. <li class="sv">
  95. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgTeacherEvaluationCountList" } })
  96. </li>
  97. <li class="sn" style="padding-left: 5px;">教研室:</li>
  98. <li class="sv">
  99. @Html.ComboGrid(cgopDepartment, new Dictionary<string, string> { { "data-condition", "dgTeacherEvaluationCountList" } })
  100. </li>
  101. </ul>
  102. </div>
  103. </div>
  104. <div class="p_title">
  105. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  106. 教师名单列表
  107. </div>
  108. <div style="margin-right: 10px; line-height: 30px; font-size: 12px ;" width="0.7">@Html.ContextMenuBar("List")</div>
  109. </div>
  110. </form>
  111. <div class="search_list">
  112. @Html.DataGrid(new DataGridOptions
  113. {
  114. Columns = new List<DataGridColumn>()
  115. {
  116. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationRegistrationID", Width=0.05, Align=AlignStyle.Center},
  117. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center,Width=0.04},
  118. new BoundFieldColumn { FieldName="TeacherNo", HeaderText="教师工号", Align=AlignStyle.Center,Width=0.03},
  119. new BoundFieldColumn { FieldName="TeacherName", HeaderText="姓名", Align=AlignStyle.Center,Width=0.02 },
  120. //new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center,Width=0.01 },
  121. //new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center,OverflowLength=25 },
  122. new BoundFieldColumn { FieldName="NeedEvaluationCount", HeaderText="需评人次", Align=AlignStyle.Center, Width=0.04 },
  123. new BoundFieldColumn { FieldName="CompleteCount", HeaderText="已评人次", Align=AlignStyle.Center, Width=0.04 },
  124. new BoundFieldColumn { FieldName="UncompletedCount", HeaderText="未评人次", Align=AlignStyle.Center, Width=0.04 }
  125. },
  126. IsCheckOnSelect = true,
  127. DataSourceUrl = Url.Content("~/TeacherEvaluationCount/List"),
  128. ID = "dgTeacherEvaluationCountList",
  129. IsPagination = true,
  130. IsShowRowNumbers = true,
  131. IsSingleSelect = false
  132. })
  133. </div>
  134. </div>