Beispiel #1
0
 public Association(short id, string code, string name, Country country, Language language, IEnumerable<string> address)
     : base(id, name)
 {
     this.Code = code;
     this.Country = country;
     this.Language = language;
     this.Address = new List<string>(address);
 }
Beispiel #2
0
        public CXFFileBuilder BeginFile(Country senderCountry, string senderID)
        {
            if (currentSegments != null) throw new InvalidOperationException("Already building a file.");
            currentSegments = new List<PayloadSegment>();
            this.senderCountry = Contract.Required(senderCountry, "senderCountry");
            this.senderID = senderID ?? senderCountry.Code;

            return this;
        }
Beispiel #3
0
 private static PayloadSegment ConvertRecord(CIFRecord record, CIFFile file, Country country, string id)
 {
     return segmentBuilder
         .BeginSegment()
             .AddCarnetNumber(record.CarnetNumber)
             .AddUpdateFlag("N")
             .AddProcessingDate(record.CreationDate)
             .AddCIFFilename(file.Name)
             .AddDateInCustomsLedger(record.DateInLedger)
             .AddReferenceInCustomsLedger(record.ReferenceInLedger)
             .AddCustomsOfficeReference(record.CustomsOfficeReference)
             .AddDischargeDate(record.DateOfDischarge)
             .AddDischargeReference(record.DischargeReference)
             .AddDischargeType(record.DischargeType)
             .AddVPN(record.VoletPageNumber)
             .AddDischargeStatus(record.DischargeStatus)
             .AddNumberOfPackages(record.NumberOfPackages)
             .AddComment(record.Comments)
             .AddInvoicedAssociationId(record.InvoicedAssociation.ID)
             .AddCountryCode(record.CountryISO)
             .AddSeriesType(record.SeriesType)
             .AddCarnetIndex(record.CarnetIndex)
         .EndSegment(country, id);
 }
 public EmptyHeaderSegment(Country senderCountry)
     : base(senderCountry)
 {
 }
 public EmptyHeaderSegment(Country senderCountry, string senderIdentification)
     : base(senderCountry, senderIdentification)
 {
 }
Beispiel #6
0
 public FooterSegment(Country senderCountry)
     : base(senderCountry)
 {
 }
Beispiel #7
0
 public FooterSegment(Country senderCountry, string senderIdentification)
     : base(senderCountry, senderIdentification)
 {
 }
Beispiel #8
0
 protected BaseSegment(Country senderCountry)
     : this(senderCountry, senderCountry.Code)
 {
 }
Beispiel #9
0
 protected BaseSegment(Country senderCountry, string senderIdentification)
 {
     this.SenderCountry = Contract.Required(senderCountry, "senderCountry");
     this.SenderIdentification = Contract.Required(senderIdentification, "senderIdentification");
 }