Exemplo n.º 1
0
 public DeliveryDocketType Resolve(Enquiry source, DeliveryDocketDto destination, DeliveryDocketType destMember,
                                   ResolutionContext context)
 {
     return(source switch
     {
         DuraformEnquiry _ => DeliveryDocketType.Duraform,
         _ => throw new NotImplementedException("Order Type Not Supported")
     });
Exemplo n.º 2
0
        public async Task ExportICBFileAsync(DuraformEnquiry order, string savePath)
        {
            var icbFile = new ICBFileStructure();

            foreach (var component in order.DuraformComponents.OrderBy(x => x.SortNumber))
            {
                icbFile.IcbRows.AddRange(component.ExportIcbLinesStructure());
            }

            await File.WriteAllTextAsync($"{savePath}\\{order.Id}.csv", icbFile.ExportCSVString());
        }