ProductStyleIntegrationGrid.cs 760 B

12345678910111213141516171819
  1. using System;
  2. using System.Linq.Expressions;
  3. using Comal.Classes;
  4. using InABox.Core;
  5. using InABox.DynamicGrid;
  6. namespace PRSDesktop.Integrations.Common;
  7. public class ProductStyleIntegrationGrid : BaseIntegrationGrid<ProductStyleIntegrationSource, ProductStyle, ProductStyleLink>
  8. {
  9. protected override DynamicGridColumns LoadColumns()
  10. {
  11. var result = base.LoadColumns();
  12. result.Insert<ProductStyleIntegrationSource>(result.Count-1, x => x.StyleType, 100, "Type", "", Alignment.MiddleCenter);
  13. result.Insert<ProductStyleIntegrationSource>(result.Count-1, x => x.Cost, 60, "Cost", "F2", Alignment.MiddleCenter);
  14. return result;
  15. }
  16. protected override Expression<Func<ProductStyle, object?>> EntityCode => x => x.Code;
  17. }