List.cshtml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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/Campus.js" type="text/javascript"></script>
  9. <script type="text/javascript">
  10. var EMIS_CampusLabel = '@EMIS.Utility.RSL.Get("Campus")';
  11. </script>
  12. }
  13. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  14. @Html.Position()
  15. <div class="p_SearchTitle">
  16. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  17. 查询条件</div>
  18. </div>
  19. <form id="formQuery" method="post" action="@Url.Content("~/Campus/Excel")">
  20. @Html.PositionCondition()
  21. </form>
  22. <div class="p_title">
  23. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  24. @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 BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=10 }
  43. },
  44. IsCheckOnSelect = true,
  45. DataSourceUrl = Url.Content("~/Campus/List"),
  46. ID = "dgCampusList",
  47. IsPagination = true,
  48. IsShowRowNumbers = true,
  49. IsSingleSelect = false
  50. })
  51. </div>
  52. </div>