Beispiel #1
0
 public static Pedido Map(this CompraERPDto model)
 {
     return(new Pedido()
     {
         Cliente = MapCliente(model),
         IdCompra = model.IdCompra,
         Skus = new List <Sku>()
         {
             MapSku(model)
         }
     });
 }
Beispiel #2
0
 private static Sku MapSku(this CompraERPDto model)
 {
     return(new Sku()
     {
         IdCompraEntregaSku = model.IdCompraEntregaSku,
         GerencialId = model.GerencialId,
         Sequencial = model.SequencialId,
         TentativasIntegracaoERP = model.TentativasIntegracaoERP,
         DataIntegracaoERP = model.DataIntegracaoERP,
         LogRetornoERP = model.LogRetornoERP,
         StatusIntegracaoERP = model.StatusIntegracaoERP
     });
 }
Beispiel #3
0
        public static CompraERP MapStatus(this CompraERPDto entity)
        {
            if (entity == null)
            {
                return(null);
            }

            return(new CompraERP()
            {
                IdCompra = entity.IdCompra,
                DataIntegracaoERP = entity.DataIntegracaoERP,
                StatusIntegracaoERP = entity.StatusIntegracaoERP,
                GerencialID = entity.GerencialID,
                IdCompraEntregaSku = entity.IdCompraEntregaSku,
                LogRetornoERP = entity.LogRetornoERP,
                TentativasIntegracaoERP = entity.TentativasIntegracaoERP,
                SequencialID = entity.SequencialID
            });
        }
Beispiel #4
0
 private static Cliente MapCliente(this CompraERPDto model)
 {
     return(new Cliente()
     {
     });
 }