List.cshtml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. }
  6. @section scripts{
  7. <script src="../../Scripts/Business/TeachingMaterial/Library.js" type="text/javascript"></script>
  8. }
  9. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  10. @Html.Position()
  11. <div class="p_SearchTitle">
  12. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  13. 查询条件</div>
  14. </div>
  15. <form id="formQuery" method="post" action="@Url.Content("~/Library/Excel")">
  16. @Html.PositionCondition()
  17. </form>
  18. <div class="p_title">
  19. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  20. 书库信息列表</div>
  21. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  22. </div>
  23. <div class="search_list">
  24. @Html.DataGrid(new DataGridOptions
  25. {
  26. Columns = new List<DataGridColumn>()
  27. {
  28. new CheckBoxFieldColumn{ HeaderText="", FieldName="LibraryID" },
  29. new LinkButtonColumn { FieldName="LibraryCode", HeaderText="书库编号", Align=AlignStyle.Center , Handle="edit", Width=0.04 },
  30. new BoundFieldColumn { FieldName="LibraryName", HeaderText="书库名称", Align=AlignStyle.Center, Width=0.05 },
  31. new BoundFieldColumn { FieldName="HeadPeople", HeaderText="负责人", Align=AlignStyle.Center, Width=0.05 },
  32. new BoundFieldColumn { FieldName="ContectTelNumber", HeaderText="联系电话", Align=AlignStyle.Center, Width=0.06 },
  33. new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.06 },
  34. new BoundFieldColumn { FieldName="CreateUserName", HeaderText="创建人", Align=AlignStyle.Center, Width=0.05 },
  35. new BoundFieldColumn { FieldName="CreateTime", HeaderText="创建时间", Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay, Width=0.06 }
  36. },
  37. IsCheckOnSelect = true,
  38. DataSourceUrl = Url.Content("~/Library/List"),
  39. ID = "dgLibraryList",
  40. IsPagination = true,
  41. IsShowRowNumbers = true,
  42. IsSingleSelect = false
  43. })
  44. </div>
  45. </div>