List.cshtml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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/SCalendar.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("~/SCalendar/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/ActivitiesTypeDropdownListBanid"), ID = "ActivitiesTypeDropdown", Name = "ActivitiesTypeDropdown", OnSelect = "QueryActivitiesTypeDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgSCalendarList" } })
  24. </li>
  25. <li class="sn" style="padding-left: 5px;">时间段:</li>
  26. <li class="sv">
  27. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Activitie/TimesSegmentDropdownListBanid"), ID = "TimesSegmentDropdown", Name = "TimesSegmentDropdown", OnSelect = "QueryTimesSegmentDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgSCalendarList" } })
  28. </li>
  29. </ul>
  30. </div>
  31. </div>
  32. </form>
  33. <div class="p_title">
  34. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  35. 校历假日列表</div>
  36. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  37. </div>
  38. @Html.PositionBatchModify()
  39. <div class="search_list">
  40. @Html.DataGrid(new DataGridOptions
  41. {
  42. Columns = new List<DataGridColumn>()
  43. {
  44. new CheckBoxFieldColumn{ HeaderText="", FieldName="ActivitiesID"},
  45. new LinkButtonColumn { FieldName="Name", HeaderText="活动名称", Align=AlignStyle.Center , Handle="edit", Width = 0.04},
  46. new BoundFieldColumn { FieldName="ActivitiesTypeName", HeaderText="活动类型", Align=AlignStyle.Center, Width = 0.04 },
  47. new BoundFieldColumn { FieldName="ActivitiesTime", HeaderText="日期",Formatter=Formatter.OnlyYearMonthDay, Align=AlignStyle.Center, Width = 0.03 },
  48. new BoundFieldColumn { FieldName="TimesSegmentName", HeaderText="时间段", Align=AlignStyle.Center, Width = 0.02 },
  49. new BoundFieldColumn { FieldName="ActivitiesContent", HeaderText="活动内容", Align=AlignStyle.Center, Width = 0.15 }
  50. },
  51. IsCheckOnSelect = true,
  52. DataSourceUrl = Url.Content("~/SCalendar/List"),
  53. ID = "dgSCalendarList",
  54. IsPagination = true,
  55. IsShowRowNumbers = true,
  56. IsSingleSelect = false
  57. })
  58. </div>
  59. </div>