List.cshtml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions ddCollege = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CollegeID",
  9. OnSelect = "reload",
  10. Name = "DDCollegeDropdown",
  11. ID = "DDCollegeDropdown",
  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 src="../../Scripts/Business/SupervisionManage/SupEvaluationList.js" type="text/javascript"></script>
  29. }
  30. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  31. @Html.Position()
  32. <div class="p_SearchTitle">
  33. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  34. 查询条件
  35. </div>
  36. </div>
  37. <form id="formQuery" method="post" action="@Url.Content("~/SupEvaluation/Excel")">
  38. @Html.PositionCondition()
  39. <div class="search_keyword">
  40. <div class="search_input">
  41. <ul>
  42. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  43. <li class="sv">
  44. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolyearDropdown", Name = "SchoolyearDropdown", OnSelect = "reload", SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }, new Dictionary<string, string> { { "data-condition", "dgSupEvaluationList" } })
  45. </li>
  46. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  47. <li class="sv">
  48. @Html.ComboGrid(ddCollege, new Dictionary<string, string> { { "data-condition", "dgSupEvaluationList" } })
  49. </li>
  50. <li class="sn" style="padding-left: 5px;">督导类型:</li>
  51. <li class="sv">
  52. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.SUP_EvaluationType, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SupervisionType", Name = "SupervisionType", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSupEvaluationList" } })
  53. </li>
  54. </ul>
  55. <ul>
  56. <li class="sn" style="padding-left: 5px;">评价日期:</li>
  57. <li class="sv">
  58. @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date,ID="txtStartDate" ,Name = "txtStartDate" }, new Dictionary<string, string> { { "data-condition", "dgSupEvaluationList" } })
  59. </li>
  60. <li class="sn" style="padding-left: 5px;">至:</li>
  61. <li class="sv">
  62. @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, ID = "txtEndDate", Name = "txtEndDate" }, new Dictionary<string, string> { { "data-condition", "dgSupEvaluationList" } })
  63. </li>
  64. @*导出数据*@
  65. <li style="display:none" class="sv" >
  66. <input id="LessonRecordIDs" name="LessonRecordIDs" type="text" value="" />
  67. </li>
  68. <li style="display:none" class="sv" >
  69. <input id="ProjectRecordIDs" name="ProjectRecordIDs" type="text" value="" />
  70. </li>
  71. </ul>
  72. </div>
  73. </div>
  74. </form>
  75. <div class="p_title">
  76. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  77. 督导评价列表
  78. </div>
  79. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  80. </div>
  81. <div class="search_list">
  82. @Html.DataGrid(new DataGridOptions
  83. {
  84. Columns = new List<DataGridColumn>()
  85. {
  86. new CheckBoxFieldColumn{ HeaderText="", FieldName="TeachersOrderID"},
  87. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center,Width=0.06 },
  88. new BoundFieldColumn { FieldName="SupervisionCollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center,Width=0.08 },
  89. new BoundFieldColumn { FieldName="UserName", HeaderText="督导对象", Align=AlignStyle.Center },
  90. new BoundFieldColumn { FieldName="SupervisionTypeName", HeaderText="督导类型", Align=AlignStyle.Center },
  91. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center},
  92. new BoundFieldColumn { FieldName="LessonDateStr", HeaderText="评价日期", Align=AlignStyle.Center,Width=0.08 },
  93. new BoundFieldColumn { FieldName="Advise", HeaderText="评价建议", Align=AlignStyle.Center,Width=0.25},
  94. new BoundFieldColumn { FieldName="TotalScore", HeaderText="评分", Align=AlignStyle.Center,Width=0.06 }
  95. },
  96. IsCheckOnSelect = true,
  97. DataSourceUrl = Url.Content("~/SupEvaluation/List"),
  98. ID = "dgSupEvaluationList",
  99. IsPagination = true,
  100. IsShowRowNumbers = true,
  101. IsSingleSelect = false
  102. })
  103. </div>
  104. </div>