Пример #1
0
 internal MasterBolViewModel(ParentShipment entity)
 {
     this.CarrierId     = entity.CarrierId;
     this.CarrierName   = entity.CarrierName;
     this.CustomerID    = entity.CustomerID;
     this.CustomerName  = entity.CustomerName;
     this.FromAddress   = entity.FromAddress;
     this.FromCity      = entity.FromCity;
     this.FromCompany   = entity.FromCompany;
     this.FromCountry   = entity.FromCountry;
     this.FromState     = entity.FromState;
     this.FromZipCode   = entity.FromZipCode;
     this.IsTransferred = entity.IsTransferred;
     this.MBolID        = entity.MBolID;
 }
Пример #2
0
        internal ParentShipmentViewModel(ParentShipment entity)
        {
            switch (entity.FreightChargeTerm)
            {
            case "CC":
                this.FreightChargeTerm = "Collect";
                break;

            case "PP":
                FreightChargeTerm = "Prepaid";
                break;

            case "PC":
                FreightChargeTerm = "Third Party";
                break;

            default:
                FreightChargeTerm = entity.FreightChargeTerm;
                break;
            }

            this.OnHoldFlag        = entity.OnHoldFlag;
            this.AppointmentNumber = entity.AppointmentNumber;
            this.ArrivalDate       = entity.ArrivalDate;
            this.CarrierId         = entity.CarrierId;
            this.CarrierName       = entity.CarrierName;
            this.City             = entity.City;
            this.Country          = entity.Country;
            this.CustomerDcId     = entity.CustomerDcId;
            this.CustomerID       = entity.CustomerID;
            this.CustomerName     = entity.CustomerName;
            this.FromAddress      = entity.FromAddress;
            this.FromCity         = entity.FromCity;
            this.FromCompany      = entity.FromCompany;
            this.FromCountry      = entity.FromCountry;
            this.FromState        = entity.FromState;
            this.FromZipCode      = entity.FromZipCode;
            this.IsTransferred    = entity.IsTransferred;
            this.ParentShippingId = entity.ParentShippingId;
            this.ShippingDate     = entity.ShippingDate;
            this.State            = entity.State;
            this.ToAddress        = entity.ToAddress;
            this.ZipCode          = entity.ZipCode;
            this.MBolID           = entity.MBolID;
        }