Exemplo n.º 1
0
        internal static PackDto vidalToDto(ServicePack.pack wsPack)
        {
            PackDto dto = new PackDto();

            dto.ActCodeValue = wsPack.actCodeValue;
            dto.Cip = wsPack.cip;
            dto.Cip13 = wsPack.cip13;
            dto.Cis = wsPack.cis;
            dto.CommunityAgrement = wsPack.communityAgrement;
            dto.Dose = wsPack.dose;
            dto.DoseUnit = wsPack.doseUnit;
            dto.Ean = wsPack.ean;
            dto.Id = wsPack.id;
            dto.ListValue = wsPack.listValue;
            dto.ManufacturerPrice = wsPack.manufacturerPrice;
            dto.Name = wsPack.name;
            dto.NarcoticPrescription = wsPack.narcoticPrescription;
            dto.PharmacistPrice = wsPack.pharmacistPrice;
            dto.PricePerDose = wsPack.pricePerDose;
            dto.ProductId = wsPack.productId;
            dto.PublicPrice = wsPack.publicPrice;
            dto.RefundingBase = wsPack.refundingBase;
            dto.RefundingRateValue = wsPack.refundingRateValue;
            dto.SafetyAlert = wsPack.safetyAlert;
            dto.ShortName = wsPack.shortName;
            dto.Tfr = wsPack.tfr;
            dto.UcdPrice = wsPack.ucdPrice;
            dto.VatRateValue = wsPack.vatRateValue; return dto;
        }
Exemplo n.º 2
0
        internal static PackDto vidalToDto(VidalAPI.Domain.Pack nativePack)
        {
            PackDto dto = new PackDto();
            dto.ActCodeValue = nativePack.ActCodeValue;
            dto.Cip = nativePack.Cip;
            dto.Cip13 = nativePack.Cip13;
            dto.Cis = nativePack.Cis;
            dto.CommunityAgrement = nativePack.CommunityAgrement;
            dto.Dose = nativePack.Dose;
            dto.DoseUnit = nativePack.DoseUnit;
            dto.Ean = nativePack.Ean;
            dto.Id = nativePack.Id;
            dto.ListValue = nativePack.ListValue;
            dto.ManufacturerPrice = nativePack.ManufacturerPrice;
            dto.Name = nativePack.Name;
            dto.NarcoticPrescription = nativePack.NarcoticPrescription;
            dto.PharmacistPrice = nativePack.PharmacistPrice;
            dto.PricePerDose = nativePack.PricePerDose;
            dto.ProductId = nativePack.ProductId;
            dto.PublicPrice = nativePack.PublicPrice;
            dto.RefundingBase = nativePack.RefundingBase;
            dto.RefundingRateValue = nativePack.RefundingRateValue;
            dto.SafetyAlert = nativePack.SafetyAlert;
            dto.ShortName = nativePack.ShortName;
            dto.Tfr = nativePack.Tfr;
            dto.UcdPrice = nativePack.UcdPrice;
            dto.VatRateValue = nativePack.VatRateValue;

            return dto;
        }