Esempio n. 1
0
 public Carnet(CarnetNumber number, State state, Reason reason, Association association, DateTime? dateTime, User user, string archiveNumber)
     : base(number)
 {
     this.State = state;
     this.Reason = reason;
     this.Association = association;
     this.DateTime = dateTime;
     this.User = user;
     this.ArchiveNumber = archiveNumber;
 }
Esempio n. 2
0
        public Serie(CarnetNumber number, State state, SerieType type, Language language, Association association, DateTime? dateTime, User user, string comments, Usage usage, Surcharge surcharge, IEnumerable<Packet> packets)
            : base(number)
        {
            this.packets = new List<Packet>(Contract.Required(packets, "packets"));

            this.State = state;
            this.Type = type;
            this.Language = language;
            this.Association = association;
            this.Date = dateTime;
            this.User = user;
            this.Comments = comments;
            this.Usage = usage;
            this.Surcharge = surcharge;

            packets.Apply(packet => packet.Serie = this);
        }
Esempio n. 3
0
        public Packet(CarnetNumber number, State state, DateTime date, Association association, DeliveryMode deliveryMode, Invoice invoice, DeliveryNote deliveryNote, User user, string comments, string reference, PacketType type, Clause31Insurer c31Insurer, IEnumerable<Carnet> carnets)
            : base(number)
        {
            Carnets = new List<Carnet>(Contract.Required(carnets, "carnets"));

            this.State = state;
            this.Date = date;
            this.Association = association;
            this.DeliveryMode = deliveryMode;
            this.Invoice = invoice;
            this.User = user;
            this.Comments = comments;
            this.Reference = reference;
            this.Type = type;
            this.Clause31Insurer = c31Insurer;

            carnets.Apply(carnet => carnet.Packet = this);
        }
Esempio n. 4
0
 public CIFRecord(CarnetNumber carnetNumber, DateTime dateInLedger, string refInLedger, string customsOfficeReference, DateTime dateOfDischarge, string dischargeReference, string dischargeType, int vpn, string dischargeStatus, int numOfPacks, string comments, Association invoicedAssociation, string countryISO, short seriesType, int carnetIndex, DateTime creationDate)
 {
     this.CarnetNumber = carnetNumber;
     this.DateInLedger = dateInLedger;
     this.ReferenceInLedger = refInLedger;
     this.CustomsOfficeReference = customsOfficeReference;
     this.DateOfDischarge = dateOfDischarge;
     this.DischargeReference = dischargeReference;
     this.DischargeType = dischargeType;
     this.VoletPageNumber = vpn;
     this.DischargeStatus = dischargeStatus;
     this.NumberOfPackages = numOfPacks;
     this.Comments = comments;
     this.InvoicedAssociation = invoicedAssociation;
     this.CountryISO = countryISO;
     this.SeriesType = seriesType;
     this.CarnetIndex = carnetIndex;
     this.CreationDate = creationDate;
 }
Esempio n. 5
0
 protected BaseCSPObject(CarnetNumber number)
 {
     this.Number = Contract.Required(number, "number");
 }