| 1234567891011121314151617181920212223242526272829303132333435363738 | 
							- using System;
 
- using System.Collections.Generic;
 
- using System.Linq;
 
- using InABox.Core;
 
- namespace Comal.Classes
 
- {
 
-     public class ProductLookups : EntityLookup<Product>
 
-     {
 
-         public override Columns<Product> DefineColumns()
 
-         {
 
-             return Columns.None<Product>()
 
-                 .Add(
 
-                     x => x.ID,
 
-                     x => x.Code,
 
-                     x => x.Name,
 
-                     x => x.TaxCode.ID,
 
-                     x => x.PurchaseGL.ID,
 
-                     x => x.NettCost)
 
-                 .AddDimensionsColumns(x => x.DefaultInstance.Dimensions, Dimensions.ColumnsType.All);
 
-         }
 
-         
 
-         public override string FormatLookup(Dictionary<string, object?> values, IEnumerable<string> exclude)
 
-         {
 
-             return $"{values["Name"]}";
 
-         }
 
-         public override Filter<Product> DefineFilter()
 
-         {
 
-             return new Filter<Product>(x => x.Expired).IsEqualTo(DateTime.MinValue);
 
-         }
 
-         public override SortOrder<Product> DefineSortOrder()
 
-         {
 
-             return new SortOrder<Product>(x => x.Code);
 
-         }
 
-     }
 
- }
 
 
  |