List.cshtml 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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/Duty.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("~/Duty/Excel")">
  17. @Html.PositionCondition()
  18. <div class="search_keyword">
  19. <div class="search_input">
  20. <ul>
  21. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  22. <li class="sv">
  23. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Campus/CampusDropdownListBanid"), ID = "CampusDropdown", Name = "CampusDropdown", OnSelect = "QueryCampusDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgDutyList" } })
  24. </li>
  25. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  26. <li class="sv">
  27. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanid"), ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "QueryCollegeDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgDutyList" } })
  28. </li>
  29. <li class="sn" style="padding-left: 5px;">教研室:</li>
  30. <li class="sv">
  31. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Department/DepartmentDropdownListBanid"), ID = "DepartmentDropdown", Name = "DepartmentDropdown", OnSelect = "QueryDepartmentDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgDutyList" } })
  32. </li>
  33. <li class="sn" style="padding-left: 5px;">时间段:</li>
  34. <li class="sv">
  35. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Activitie/TimesSegmentDropdownListBanid"), ID = "TimesSegmentDropdown", Name = "TimesSegmentDropdown", OnSelect = " QueryTimesSegmentDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgDutyList" } })
  36. </li>
  37. </ul>
  38. </div>
  39. </div>
  40. </form>
  41. <div class="p_title">
  42. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  43. 值班安排列表</div>
  44. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  45. </div>
  46. @Html.PositionBatchModify()
  47. <div class="search_list">
  48. @Html.DataGrid(new DataGridOptions
  49. {
  50. Columns = new List<DataGridColumn>()
  51. {
  52. new CheckBoxFieldColumn{ HeaderText="", FieldName="DutyID"},
  53. new LinkButtonColumn { FieldName="LoginID", HeaderText="工作证号", Align=AlignStyle.Center, Handle="edit", Width = 0.06},
  54. new BoundFieldColumn { FieldName="UserName", HeaderText="值班人名", Align=AlignStyle.Center, Width = 0.05 },
  55. new BoundFieldColumn { FieldName="DutyTime", HeaderText="值班日期",Formatter=Formatter.OnlyYearMonthDay, Align=AlignStyle.Center, Width = 0.08 },
  56. new BoundFieldColumn { FieldName="StartDate", HeaderText="开始时间", Align=AlignStyle.Center, Width = 0.08 },
  57. new BoundFieldColumn { FieldName="EndDate", HeaderText="结束时间", Align=AlignStyle.Center, Width = 0.08 },
  58. new BoundFieldColumn { FieldName="TimesSegmentName", HeaderText="时间段", Align=AlignStyle.Center, Width = 0.03 },
  59. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="教研室", Align=AlignStyle.Center, Width = 0.12 },
  60. new BoundFieldColumn { FieldName="Description", HeaderText="任务描述", Align=AlignStyle.Center, Width = 0.15 }
  61. },
  62. IsCheckOnSelect = true,
  63. DataSourceUrl = Url.Content("~/Duty/List"),
  64. ID = "dgDutyList",
  65. IsPagination = true,
  66. IsShowRowNumbers = true,
  67. IsSingleSelect = false
  68. })
  69. </div>
  70. </div>