List.cshtml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. }
  6. @section scripts{
  7. <script type="text/javascript"></script>
  8. <script src="~/Scripts/Business/TeachingMaterial/StockInSetList.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. 查询条件
  15. </div>
  16. </div>
  17. <form id="formQuery" method="post" action="@Url.Content("~/StockInSet/Excel")">
  18. @*@Html.PositionCondition()*@
  19. <div class="search_keyword">
  20. <div class="search_input">
  21. <ul>
  22. <li style="display:none" class="sv" >
  23. <input id="SupplierDiscountSetID" name="SupplierDiscountSetID" type="text" value="" />
  24. </li>
  25. </ul>
  26. </div>
  27. </div>
  28. </form>
  29. <div class="p_title">
  30. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  31. 供应商折扣率设置列表
  32. </div>
  33. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  34. </div>
  35. <div class="search_list">
  36. @Html.DataGrid(new DataGridOptions
  37. {
  38. Columns = new List<DataGridColumn>()
  39. {
  40. new CheckBoxFieldColumn{ HeaderText="", FieldName="SupplierDiscountSetID" },
  41. new BoundFieldColumn { FieldName="UnitName", HeaderText="供应商名称", Align=AlignStyle.Center, Width=0.06 },
  42. new BoundFieldColumn { FieldName="IsDefaultName", HeaderText="是否默认", Align=AlignStyle.Center, Width=0.06 },
  43. new BoundFieldColumn { FieldName="Discount", HeaderText="折扣率", Align=AlignStyle.Center, Width=0.04 },
  44. },
  45. IsCheckOnSelect = true,
  46. DataSourceUrl = Url.Content("~/StockInSet/List"),
  47. ID = "dgStockInSetList",
  48. IsPagination = true,
  49. IsShowRowNumbers = true,
  50. IsSingleSelect = false
  51. })
  52. </div>
  53. </div>