List.cshtml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. }
  6. @section scripts{
  7. <script src="~/Scripts/Business/SupervisionManage/LessonRecordList.js" type="text/javascript"></script>
  8. <script type="text/javascript">
  9. var nonSelect = "@DropdownList.SELECT_ALL";
  10. </script>
  11. }
  12. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  13. @Html.Position()
  14. <div class="p_SearchTitle">
  15. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  16. 查询条件
  17. </div>
  18. </div>
  19. <form id="formQuery" method="post" action="@Url.Content("~/LessonRecord/Excel")">
  20. @Html.PositionCondition()
  21. @Html.Hidden("LessonRecordIDs")
  22. <div class="search_keyword">
  23. <div class="search_input">
  24. <ul>
  25. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  26. <li class="sv">
  27. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "Schoolyear", ID = "Schoolyear", SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnSelect = "reload", OnLoadSuccess = "reload" }, new Dictionary<string, string> { { "data-condition", "dgLessonRecordList" } })
  28. </li>
  29. <li class="sn" style="padding-left: 5px;">@(EMIS.Utility.RSL.Get("College")):</li>
  30. <li class="sv">
  31. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/AllCollegeDropdownListBanid"), Name = "College", ID = "College", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgLessonRecordList" } })
  32. </li>
  33. <li class="sn" style="padding-left: 5px;">督导院系:</li>
  34. <li class="sv">
  35. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SupervisionCollege/Dropdown"), Name = "SupervisionCollege", ID = "SupervisionCollege", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgLessonRecordList" } })
  36. </li>
  37. <li class="sn" style="padding-left: 5px;">督导时间:</li>
  38. <li class="sv">
  39. @Html.TextBox(new TextBoxOptions { ID = "StartDate", Name = "StartDate", TextBoxType = TextBoxType.Date, OnChange = "startDateChanged" }, new Dictionary<string, string> { { "data-condition", "dgLessonRecordList" } })
  40. @Html.TextBox(new TextBoxOptions { ID = "EndDate", Name = "EndDate", TextBoxType = TextBoxType.Date, OnChange = "endDateChanged" }, new Dictionary<string, string> { { "data-condition", "dgLessonRecordList" } })
  41. </li>
  42. </ul>
  43. </div>
  44. </div>
  45. <div class="p_title">
  46. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  47. 学生评分
  48. </div>
  49. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  50. </div>
  51. </form>
  52. <div class="search_list">
  53. @Html.DataGrid(new DataGridOptions
  54. {
  55. Columns = new List<DataGridColumn>()
  56. {
  57. new CheckBoxFieldColumn { HeaderText="", FieldName = "LessonRecordID" },
  58. new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Handle="show" },
  59. new BoundFieldColumn { FieldName="SupervisionTypeDesc", HeaderText="督导类型", Align=AlignStyle.Center },
  60. new BoundFieldColumn { FieldName="LessonDateDesc", HeaderText="督导时间", Align=AlignStyle.Center },
  61. new BoundFieldColumn { FieldName="SupervisionCollegeName", HeaderText="督导院系", Align=AlignStyle.Center },
  62. new BoundFieldColumn { FieldName="Location", HeaderText="督导地点", Align=AlignStyle.Center },
  63. new BoundFieldColumn { FieldName="UserName", HeaderText="督导对象", Align=AlignStyle.Center },
  64. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="授课班级", Align=AlignStyle.Center },
  65. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center },
  66. new BoundFieldColumn { FieldName="TotalScore", HeaderText="评分", Align=AlignStyle.Center, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
  67. new BoundFieldColumn { FieldName="CreateUserName", HeaderText="督导员", Align=AlignStyle.Center }
  68. },
  69. IsCheckOnSelect = true,
  70. DataSourceUrl = Url.Content("~/LessonRecord/List"),
  71. ID = "dgLessonRecordList",
  72. IsPagination = true,
  73. IsShowRowNumbers = true,
  74. IsSingleSelect = false
  75. })
  76. </div>
  77. </div>