public void sendinvoice() { DataInvoice.SOLUTIONS.INVOICES.INVOICE.InvoiceProvider invoiceprovide = new DataInvoice.SOLUTIONS.INVOICES.INVOICE.InvoiceProvider(env.ConnectorSgbd); DataInvoice.SOLUTIONS.INVOICES.INVOICE.InvoiceManager invoiceManager = new DataInvoice.SOLUTIONS.INVOICES.INVOICE.InvoiceManager(invoiceprovide); DataInvoice.SOLUTIONS.INVOICES.INVOICE.Invoice invoice = null; invoice = invoiceprovide.GetInvoice(1); invoiceManager.SendInvoice(invoice); Console.WriteLine(invoice.InvoiceTitle); }
public void getinvoicetest() { DataInvoice.SOLUTIONS.INVOICES.INVOICE.InvoiceProvider invoiceprovide = new DataInvoice.SOLUTIONS.INVOICES.INVOICE.InvoiceProvider(env.ConnectorSgbd); DataInvoice.SOLUTIONS.INVOICES.INVOICE.Invoice invoice = null; invoice = invoiceprovide.GetInvoice(1); Console.WriteLine(invoice.InvoiceTitle); InvoiceResults invoices = invoiceprovide.SearchInvoice(new DataInvoice.SOLUTIONS.INVOICES.INVOICE.FORM.InvoiceSearchForm()); foreach (var invoiceitem in invoices) { Console.WriteLine(invoiceitem.ToString()); } }