List.cshtml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/CalendarManage/CoursesTime.js" type="text/javascript"></script>
  9. }
  10. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  11. @Html.Position()
  12. <div class="p_SearchTitle">
  13. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  14. 查询条件</div>
  15. </div>
  16. <form id="formQuery" method="post" action="@Url.Content("~/CoursesTime/Excel")">
  17. @Html.PositionCondition()
  18. <div class="search_keyword">
  19. <div class="search_input">
  20. <ul>
  21. <li class="sn" style="padding-left: 5px;">时间段:</li>
  22. <li class="sv">
  23. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Activitie/TimesSegmentDropdownListBanid"), ID = "TimesSegmentDropdown", Name = "TimesSegmentDropdown", OnSelect = "QueryTimesSegmentDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgCoursesTimeList" } })
  24. </li>
  25. </ul>
  26. </div>
  27. </div>
  28. </form>
  29. <div class="p_title">
  30. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  31. 节次时间列表</div>
  32. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  33. </div>
  34. @Html.PositionBatchModify()
  35. <div class="search_list">
  36. @Html.DataGrid(new DataGridOptions
  37. {
  38. Columns = new List<DataGridColumn>()
  39. {
  40. new CheckBoxFieldColumn{ HeaderText="", FieldName="CoursesTimeID"},
  41. new LinkButtonColumn { FieldName="StartTimes", HeaderText="开始节次", Align=AlignStyle.Center , Handle="edit", Width=0.1 },
  42. new LinkButtonColumn { FieldName="EndTimes", HeaderText="结束节次", Align=AlignStyle.Center , Handle="edit", Width=0.1 },
  43. new BoundFieldColumn { FieldName="TimesSegmentName", HeaderText="时间段", Align=AlignStyle.Center, Width=0.15 },
  44. new BoundFieldColumn { FieldName="StartDate", HeaderText="开始时间", CustomFormatFun="formatStartTime", Align=AlignStyle.Center, Width=0.2 },
  45. new BoundFieldColumn { FieldName="EndDate", HeaderText="结束时间", CustomFormatFun="formatEndTime", Align=AlignStyle.Center, Width=0.2 },
  46. new BoundFieldColumn { FieldName="Workhours", HeaderText="学时数", Align=AlignStyle.Center, Width=0.1 }
  47. },
  48. IsCheckOnSelect = true,
  49. DataSourceUrl = Url.Content("~/CoursesTime/List"),
  50. ID = "dgCoursesTimeList",
  51. IsPagination = true,
  52. IsShowRowNumbers = true,
  53. IsSingleSelect = false
  54. })
  55. </div>
  56. </div>