예제 #1
0
        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);
        }
예제 #2
0
        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());
            }
        }