Ejemplo n.º 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);
        }
Ejemplo n.º 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());
            }
        }
Ejemplo n.º 3
0
 public InvoiceManager(NGLib.DATA.CONNECTOR.IDataConnector connector)
 {
     this.InvoiceProvide = new InvoiceProvider(connector);
 }
Ejemplo n.º 4
0
 public InvoiceManager(InvoiceProvider InvoiceProvide)
 {
     this.InvoiceProvide = InvoiceProvide;
 }