소스 검색

Added buttons to post entities

Kenric Nugteren 1 년 전
부모
커밋
36dc7b91ec
2개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      prs.desktop/Panels/Customers/CustomerReceipts.cs
  2. 6 0
      prs.desktop/Panels/Suppliers/SupplierPanel.xaml.cs

+ 5 - 0
prs.desktop/Panels/Customers/CustomerReceipts.cs

@@ -78,6 +78,11 @@ public class CustomerReceipts : DynamicDataGrid<Receipt>, IPanel<Receipt>
     {
         AccountsSetupActions.Standard(host);
         //
+        PostUtils.CreateToolbarButtons(
+            host,
+            () => (DataModel(Selection.Selected) as IDataModel<Receipt>)!,
+            () => Refresh(false, true),
+            true);
     }
 
     public Dictionary<string, object[]> Selected()

+ 6 - 0
prs.desktop/Panels/Suppliers/SupplierPanel.xaml.cs

@@ -69,6 +69,12 @@ public partial class SupplierPanel : UserControl, IPanel<Supplier>
         
         host.CreateSetupSeparator();
         AccountsSetupActions.SupplierSpreadsheetTemplates(host);
+
+        PostUtils.CreateToolbarButtons(
+            host,
+            () => (DataModel(Selection.Selected) as IDataModel<Supplier>)!,
+            () => Suppliers.Refresh(false, true),
+            true);
     }
 
     public string SectionName => "Suppliers";