TeacherList.cshtml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions optCourse = new ComboGridOptions
  6. {
  7. TextField = "CourseName",
  8. ValueField = "CoursematerialID",
  9. OnSelect = "reload",
  10. ID = "cgbCourse",
  11. Name = "cgbCourse",
  12. SelectedIndex = 0,
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.12 },
  18. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
  19. },
  20. IsAutoLoad = false,
  21. OnLoadSuccessFun = "reload",
  22. IsCheckOnSelect = true,
  23. DataSourceUrl = Url.Content("~/SOC/TeacherCoursematerialList"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false,
  27. }
  28. };
  29. }
  30. @section scripts{
  31. <script src="~/Scripts/Business/DQPSystem/TeacherCommunicate.js" type="text/javascript"></script>
  32. <script type="text/javascript">
  33. var nonSelect = "@DropdownList.SELECT_ALL";
  34. </script>
  35. }
  36. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  37. @Html.Position()
  38. <div class="p_SearchTitle">
  39. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  40. 查询条件
  41. </div>
  42. </div>
  43. <form id="formQuery" method="post">
  44. <div class="search_keyword">
  45. <div class="search_input">
  46. <ul>
  47. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  48. <li class="sv">
  49. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "ddlSchoolyear", ID = "ddlSchoolyear", SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnSelect = "queryCourse", OnLoadSuccess = "queryCourse" }, new Dictionary<string, string> { { "data-condition", "dgTeacherCommunicateList" } })
  50. </li>
  51. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  52. <li class="sv">
  53. @Html.ComboGrid(optCourse, new Dictionary<string, string> { { "data-condition", "dgTeacherCommunicateList" } })
  54. </li>
  55. </ul>
  56. </div>
  57. </div>
  58. <div class="p_title">
  59. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  60. 辅导交流
  61. </div>
  62. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;"></div>
  63. </div>
  64. </form>
  65. <div class="search_list">
  66. @Html.DataGrid(new DataGridOptions
  67. {
  68. Columns = new List<DataGridColumn>()
  69. {
  70. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center, Width=120 },
  71. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=60 },
  72. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=60 },
  73. new ImageButtonColumn { HeaderText="QQ", FieldName="HeadImage", Align=AlignStyle.Center, Width=40, ImageWidth=32, ImageHeight=32, Handle="openQQ" }
  74. },
  75. IsPostBack = true,
  76. IsCheckOnSelect = true,
  77. DataSourceUrl = Url.Content("~/DQPCommunicate/TeacherList"),
  78. ID = "dgTeacherCommunicateList",
  79. IsPagination = true,
  80. IsShowRowNumbers = true,
  81. IsSingleSelect = false
  82. })
  83. </div>
  84. </div>