List.cshtml 2.8 KB

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