예제 #1
0
        private void SaveSupplierBacsExport(SupplierBacsExport supplierBacsExport)
        {
            var fileName = string.Format("{0}_BACSExport.csv", BacsExportType.Supplier);

            using (var csv = new CsvWriter(new StreamWriter(new FileStream(fileName, FileMode.Create))))
            {
                csv.WriteRecords(supplierBacsExport.SupplierPayment);
            }
        }
예제 #2
0
        private SupplierBacsExport CreateCandidateBacxExportFromSupplierPayments(IList <InvoiceTransaction> supplierPayments)
        {
            var candidateBacsExport = new SupplierBacsExport
            {
                SupplierPayment = new List <SupplierBacs>()
            };

            candidateBacsExport.SupplierPayment = BuildSupplierPayments(supplierPayments);

            return(candidateBacsExport);
        }
예제 #3
0
        private void SaveSupplierBacsExport(SupplierBacsExport supplierBacsExport)
        {
            var fileName = string.Format("{0}_BACSExport.csv", BacsExportType.Supplier);

            using (var writer = new StreamWriter(new FileStream(fileName, FileMode.Create)))
            {
                using (var csv = new CsvHelper.CsvWriter(writer, System.Globalization.CultureInfo.CurrentCulture))
                {
                    csv.WriteRecords(supplierBacsExport.SupplierPayment);
                }
            }
        }