List.cshtml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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/UniversityManage/AdministrativeOrgan/University.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;">查询条件</div>
  14. </div>
  15. <form id="formQuery" method="post" action="@Url.Content("~/University/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;">学校信息列表</div>
  20. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  21. </div>
  22. <div class="search_list">
  23. @Html.DataGrid(new DataGridOptions
  24. {
  25. Columns = new List<DataGridColumn>()
  26. {
  27. new CheckBoxFieldColumn{ HeaderText="", FieldName="UniversityID"},
  28. new LinkButtonColumn { FieldName="Code", HeaderText="学校代码", Align=AlignStyle.Center , Handle="edit", Width=0.06 },
  29. new BoundFieldColumn { FieldName="Name", HeaderText="学校名称", Align=AlignStyle.Center, Width=0.15 },
  30. //new BoundFieldColumn { FieldName="EnglishName", HeaderText="英文名称", Align=AlignStyle.Center, Width=0.1 },
  31. new BoundFieldColumn { FieldName="SimpleName", HeaderText="学校简称", Align=AlignStyle.Center, Width=0.1, OverflowLength=8 },
  32. new BoundFieldColumn { FieldName="ZIPCode", HeaderText="邮政编码", Align=AlignStyle.Center, Width=0.06 },
  33. new BoundFieldColumn { FieldName="Telephone", HeaderText="联系电话", Align=AlignStyle.Center, Width=0.08 },
  34. new BoundFieldColumn { FieldName="FAX", HeaderText="传真", Align=AlignStyle.Center, Width=0.08 },
  35. //new BoundFieldColumn { FieldName="Email", HeaderText="电子邮箱", Align=AlignStyle.Center, Width=0.12 },
  36. new BoundFieldColumn { FieldName="HomePage", HeaderText="主页地址", Align=AlignStyle.Center, Width=0.15, OverflowLength=60 },
  37. //new BoundFieldColumn { FieldName="PublicNum", HeaderText="微信公众号", Align=AlignStyle.Center, Width=0.1 },
  38. new BoundFieldColumn { FieldName="Address", HeaderText="学校地址", Align=AlignStyle.Center, Width=0.12, OverflowLength=15 }
  39. },
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/University/List"),
  42. ID = "dgUniversityList",
  43. IsPagination = true,
  44. IsShowRowNumbers = true,
  45. IsSingleSelect = false
  46. })
  47. </div>
  48. </div>