List.cshtml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions time = new ComboGridOptions
  6. {
  7. TextField = "starTime_endTime",
  8. ValueField = "CoursesTimeID",
  9. OnSelect = "reload",
  10. Name = "TimeComboGrid",
  11. ID="TimeComboGrid",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="TimesSegmentName", HeaderText="时间段", Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="time_starTime_endTime", HeaderText="上课时间", Align=AlignStyle.Center },
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/CoursesTime/List"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. }
  27. @section scripts{
  28. <script src="~/Scripts/Business/SchedulingManage/SchedulingSettings/CourseTimeHours.js"
  29. type="text/javascript"></script>
  30. }
  31. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  32. @Html.Position()
  33. <div class="p_SearchTitle">
  34. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  35. 查询条件</div>
  36. </div>
  37. <div class="search_keyword">
  38. <div class="search_input">
  39. <ul>
  40. <li class="sn" style="padding-left: 5px;">年级:</li>
  41. <li class="sv">
  42. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  43. </li>
  44. <li class="sn" style="padding-left: 5px;">课时类别:</li>
  45. <li class="sv">
  46. @Html.ComboGrid(time, new Dictionary<string, string> { { "data-condition", "dgList" } })
  47. </li>
  48. <li class="sn" style="padding-left: 20px;"><a href="javascript:void(0)" class="easyui-linkbutton"
  49. data-options="iconCls:'icon-search'" onclick="reload();">查询</a></li>
  50. </ul>
  51. </div>
  52. </div>
  53. <div class="p_title">
  54. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  55. 学时转换列表</div>
  56. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  57. </div>
  58. @Html.PositionBatchModify()
  59. <div class="search_list">
  60. @Html.DataGrid(new DataGridOptions
  61. {
  62. Columns = new List<DataGridColumn>()
  63. {
  64. new CheckBoxFieldColumn{ HeaderText="", FieldName="CourseTimeHoursID"},
  65. new LinkButtonColumn { FieldName="Year", HeaderText="年级", Align=AlignStyle.Center , Handle="edit" },
  66. new BoundFieldColumn { FieldName="time_starTime_endTime", HeaderText="课程类别", Align=AlignStyle.Center },
  67. new LinkButtonColumn { FieldName="Hours", HeaderText="学时数", Align=AlignStyle.Center }
  68. },
  69. IsCheckOnSelect = true,
  70. DataSourceUrl = Url.Content("~/CourseTimeHours/List"),
  71. ID = "dgList",
  72. IsPagination = true,
  73. IsShowRowNumbers = true,
  74. IsSingleSelect = false
  75. })
  76. </div>
  77. </div>