List.cshtml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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/Campus.js" type="text/javascript"></script>
  9. <script type="text/javascript">
  10. var nonSelect = "@DropdownList.SELECT_ALL";
  11. var EMIS_CampusLabel = '@EMIS.Utility.RSL.Get("Campus")';
  12. var EMIS_CollegeLabel = '@EMIS.Utility.RSL.Get("College")';
  13. </script>
  14. }
  15. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  16. @Html.Position()
  17. <div class="p_SearchTitle">
  18. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  19. </div>
  20. <form id="formQuery" method="post" action="@Url.Content("~/Campus/Excel")">
  21. @Html.PositionCondition()
  22. </form>
  23. <div class="p_title">
  24. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">@EMIS.Utility.RSL.Get("Campus")信息列表</div>
  25. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  26. </div>
  27. <div class="search_list">
  28. @Html.DataGrid(new DataGridOptions
  29. {
  30. Columns = new List<DataGridColumn>()
  31. {
  32. new CheckBoxFieldColumn{ HeaderText="", FieldName="CampusID"},
  33. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.06, Handle="edit" },
  34. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.1 },
  35. new BoundFieldColumn { FieldName="SimpleName", HeaderText=@EMIS.Utility.RSL.Get("CampusSimpleName"), Align=AlignStyle.Center, Width=0.1 },
  36. new BoundFieldColumn { FieldName="GeneralsuperName", HeaderText="总负责人", Align=AlignStyle.Center,Width=0.06 },
  37. new BoundFieldColumn { FieldName="Officephone", HeaderText="办公电话", Align=AlignStyle.Center, Width=0.1 },
  38. new BoundFieldColumn { FieldName="FAX", HeaderText="传真", Align=AlignStyle.Center, Width=0.1 },
  39. new BoundFieldColumn { FieldName="Email", HeaderText="电子邮箱", Align=AlignStyle.Center, Width=0.1 },
  40. new BoundFieldColumn { FieldName="UniversityCode", HeaderText="学校代码", Align=AlignStyle.Center, Width=0.04 },
  41. new BoundFieldColumn { FieldName="UniversityName", HeaderText="学校名称", Align=AlignStyle.Center, Width=0.12 },
  42. new LinkButtonColumn { FieldName="CollegeCount", HeaderText=@EMIS.Utility.RSL.Get("CollegeCount"), Align=AlignStyle.Center, Width=0.06, Handle="editCollegeCount" },
  43. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=10 }
  44. },
  45. IsCheckOnSelect = true,
  46. DataSourceUrl = Url.Content("~/Campus/List"),
  47. ID = "dgCampusList",
  48. IsPagination = true,
  49. IsShowRowNumbers = true,
  50. IsSingleSelect = false
  51. })
  52. </div>
  53. </div>