DeliveryDetailItemShell.cs 713 B

1234567891011121314151617181920212223
  1. using System;
  2. using Comal.Classes;
  3. namespace comal.timesheets
  4. {
  5. public class DeliveryDetailItemShell : DetailShell<DeliveryDetailModel, DeliveryItem>
  6. {
  7. static DeliveryDetailItemShell()
  8. {
  9. Columns
  10. .Map(nameof(Description), x => x.Description)
  11. .Map(nameof(Setout), x => x.ManufacturingPacketLink.SetoutLink.Number)
  12. .Map(nameof(Rack), x => x.ShipmentLink.Code)
  13. .Map(nameof(Requi), x => x.RequisitionLink.Number);
  14. }
  15. public String Description => Get<String>();
  16. public string Setout => Get<String>();
  17. public string Rack => Get<String>();
  18. public int Requi => Get<int>();
  19. }
  20. }