| 123456789101112131415161718192021222324 |
- using System;
- using System.Linq.Expressions;
- using Comal.Classes;
- using InABox.Core;
- using InABox.DynamicGrid;
- namespace PRSDesktop.Integrations.Common;
- public class ComponentIntegrationGrid : BaseIntegrationGrid<ProductIntegrationSource, Product, ProductLink>
- {
- protected override DynamicGridColumns LoadColumns()
- {
- var result = base.LoadColumns();
- result.Insert<ProductIntegrationSource>(0, x => x.Quantity, 60, "Qty", "F2", Alignment.MiddleCenter);
- result.Insert<ProductIntegrationSource>(1, x => x.Supplier, 100, "Supplier", "", Alignment.MiddleCenter);
- result.Insert<ProductIntegrationSource>(2, x => x.Group, 100, "Group", "", Alignment.MiddleCenter);
- result.Insert<ProductIntegrationSource>(result.Count-1, x => x.Dimensions.UnitSize, 100, "Pack", "", Alignment.MiddleCenter);
- result.Insert<ProductIntegrationSource>(result.Count-1, x => x.Style, 100, "Style", "", Alignment.MiddleCenter);
- result.Insert<ProductIntegrationSource>(result.Count-1, x => x.Cost, 60, "Cost", "F2", Alignment.MiddleCenter);
- return result;
- }
-
- protected override Expression<Func<Product, object?>> EntityCode => x => x.Code;
- }
|