Index.cshtml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions collegeOption = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CollegeID",
  9. Name = "cbgCollege",
  10. ID = "cbgCollege",
  11. OnSelect = "reload",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  17. },
  18. OnLoadSuccessFun = "reload",
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/College/List"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. }
  27. @section scripts{
  28. <script type="text/javascript">
  29. var nonSelect = "@DropdownList.SELECT_ALL";
  30. var startStatusID = @ViewBag.StartStatusID;
  31. </script>
  32. <script src="~/Scripts/Business/EvaluationManage/SatisfyRateReport.js" type="text/javascript"></script>
  33. }
  34. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  35. <form id="formQuery" method="post" action="@Url.Content("~/SatisfyRateReport/Excel")">
  36. @Html.Position()
  37. <div class="p_SearchTitle">
  38. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  39. 查询条件
  40. </div>
  41. </div>
  42. @Html.PositionCondition()
  43. <div class="search_keyword">
  44. <div class="search_input">
  45. <ul>
  46. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  47. <li class="sv">
  48. @Html.ComboGrid(collegeOption, new Dictionary<string, string> { { "data-condition", "dgSatisfyRateList" } })
  49. </li>
  50. <li class="sn" style="padding-left: 5px;">参评类型:</li>
  51. <li class="sv">
  52. @Html.DropdownList(new DropdownListOptions { ID = "ddlEvaluationType", Name = "ddlEvaluationType", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSatisfyRateList" } })
  53. </li>
  54. <li class="sn" style="padding-left: 5px;">教师类型:</li>
  55. <li class="sv">
  56. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_TeacherType, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlTeacherType", Name = "ddlTeacherType", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSatisfyRateList" } })
  57. </li>
  58. </ul>
  59. </div>
  60. </div>
  61. </form>
  62. <div class="p_title">
  63. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  64. 满意率列表
  65. </div>
  66. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  67. </div>
  68. <div class="search_list">
  69. @Html.DataGrid(new DataGridOptions
  70. {
  71. Columns = new List<DataGridColumn>()
  72. {
  73. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" },
  74. new BoundFieldColumn { FieldName="LoginID", HeaderText="教师工号", Align=AlignStyle.Center },
  75. new BoundFieldColumn { FieldName="Name", HeaderText="教师姓名", Align=AlignStyle.Center },
  76. new BoundFieldColumn { FieldName="TeacherTypeDesc", HeaderText="教师类型", Align=AlignStyle.Center },
  77. new BoundFieldColumn { FieldName="CollegeName", HeaderText="所在教学点", Align=AlignStyle.Center },
  78. new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="参评类型", Align=AlignStyle.Center },
  79. new BoundFieldColumn { FieldName="SatisfyRate", HeaderText="满意率", Align=AlignStyle.Center, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" }
  80. },
  81. IsCheckOnSelect = true,
  82. DataSourceUrl = Url.Content("~/SatisfyRateReport/List"),
  83. ID = "dgSatisfyRateList",
  84. IsPagination = true,
  85. IsShowRowNumbers = true,
  86. IsSingleSelect = false
  87. })
  88. </div>
  89. </div>