List.cshtml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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/SchoolCalendar/Activitie.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("~/Activitie/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", "dgActivitieList" } })
  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", "dgActivitieList" } })
  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.1 },
  46. new BoundFieldColumn { FieldName="ActivitiesTime", HeaderText="月日", Align=AlignStyle.Center , Width = 0.1},
  47. new BoundFieldColumn { FieldName="TimesSegmentName", HeaderText="时间段", Align=AlignStyle.Center , Width = 0.1},
  48. new BoundFieldColumn { FieldName="ActivitiesTypeName", HeaderText="活动类型", Align=AlignStyle.Center, Width = 0.1 },
  49. new BoundFieldColumn { FieldName="ActivitiesContent", HeaderText="活动内容", Align=AlignStyle.Center , Width = 0.15}
  50. },
  51. IsCheckOnSelect = true,
  52. DataSourceUrl = Url.Content("~/Activitie/List"),
  53. ID = "dgActivitieList",
  54. IsPagination = true,
  55. IsShowRowNumbers = true,
  56. IsSingleSelect = false
  57. })
  58. </div>
  59. </div>
  60. <div id="add">
  61. </div>