List.cshtml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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/Published.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("~/Publisher/Excel")">
  16. @Html.PositionCondition()
  17. <div class="search_keyword">
  18. <div class="search_input">
  19. <ul>
  20. <li class="sn" style="padding-left: 5px;">是否供应商:</li>
  21. <li class="sv">
  22. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "PrivideDropdown", ID = "PrivideDropdown", OnSelect = "QueryPrividetmentDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgPublishList" } })
  23. </li>
  24. <li class="sn" style="padding-left: 5px;">是否出版社:</li>
  25. <li class="sv">
  26. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "PublishDropdown", ID = "PublishDropdown", OnSelect = "QueryPublishDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgPublishList" } })
  27. </li>
  28. <li class="sn" style="padding-left: 5px;">是否印刷厂:</li>
  29. <li class="sv">
  30. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "PrintDropdown", ID = "PrintDropdown", OnSelect = "QueryPrintDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgPublishList" } })
  31. </li>
  32. </ul>
  33. </div>
  34. </div>
  35. </form>
  36. <div class="p_title">
  37. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  38. 出版单位列表</div>
  39. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  40. </div>
  41. @Html.PositionBatchModify()
  42. <div class="search_list">
  43. @Html.DataGrid(new DataGridOptions
  44. {
  45. Columns = new List<DataGridColumn>()
  46. {
  47. new CheckBoxFieldColumn{ HeaderText="", FieldName="PublishID" },
  48. new LinkButtonColumn { FieldName="UnitCode", HeaderText="单位编号", Align=AlignStyle.Center , Handle="edit", Width=0.04 },
  49. new BoundFieldColumn { FieldName="UnitName", HeaderText="单位名称", Align=AlignStyle.Center, Width=0.06 },
  50. new BoundFieldColumn { FieldName="IsPulishName", HeaderText="是否出版社", Align=AlignStyle.Center, Width=0.04 },
  51. new BoundFieldColumn { FieldName="IsSupplierName", HeaderText="是否供应商", Align=AlignStyle.Center, Width=0.04 },
  52. new BoundFieldColumn { FieldName="IsPrintName", HeaderText="是否印刷厂", Align=AlignStyle.Center, Width=0.04 },
  53. new BoundFieldColumn { FieldName="ContectUser", HeaderText="联系人", Align=AlignStyle.Center, Width=0.04 },
  54. new BoundFieldColumn { FieldName="Mobile", HeaderText="移动电话", Align=AlignStyle.Center, Width=0.06 },
  55. new BoundFieldColumn { FieldName="Phone", HeaderText="固定电话", Align=AlignStyle.Center, Width=0.06 },
  56. new BoundFieldColumn { FieldName="Address", HeaderText="单位地址", Align=AlignStyle.Center, Width=0.06, OverflowLength=10 }
  57. },
  58. IsCheckOnSelect = true,
  59. DataSourceUrl = Url.Content("~/Publisher/List"),
  60. ID = "dgPublishList",
  61. IsPagination = true,
  62. IsShowRowNumbers = true,
  63. IsSingleSelect = false
  64. })
  65. </div>
  66. </div>