コード例 #1
0
ファイル: Carnet.cs プロジェクト: mriceberg/ScriptLib
 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;
 }
コード例 #2
0
ファイル: Serie.cs プロジェクト: mriceberg/ScriptLib
        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);
        }
コード例 #3
0
ファイル: Packet.cs プロジェクト: mriceberg/ScriptLib
        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);
        }
コード例 #4
0
ファイル: Program.cs プロジェクト: mriceberg/ScriptLib
 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;
 }
コード例 #5
0
ファイル: BaseCSPObject.cs プロジェクト: mriceberg/ScriptLib
 protected BaseCSPObject(CarnetNumber number)
 {
     this.Number = Contract.Required(number, "number");
 }