Пример #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;
 }
Пример #2
0
        public IssueDetails(Carnet carnet, DateTime processingDate, DateTime issuedOn, DateTime expiryDate, Holder issuedTo, bool? isHighValue, Association issuedBy)
        {
            this.Carnet = Contract.Required(carnet, "carnet");
            this.ProcessingDate = processingDate;
            this.IssuedOn = issuedOn;
            this.ExpiryDate = expiryDate;
            this.IssuedTo = issuedTo;
            this.IsHighValue = isHighValue;
            this.IssuedBy = issuedBy;

            this.Carnet.IssueDetails = this;
        }
Пример #3
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);
        }
Пример #4
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);
        }
Пример #5
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;
 }
Пример #6
0
 public static string MakeFilename(Association association)
 {
     return String.Format("I2A_{0}_{1}_{2:000}_{3}.CXF", DateTime.Now.ToString("yyyyMMdd_hhmmss"), association.Country.Code, association.ID, TransformAssociationNameForCXFFilename(association.Code));
 }