Exemplo n.º 1
0
        static SalesNew()
        {
            dsAddSale = new EmmasDataSet();
            receiptTableAdapter    daReceipt   = new receiptTableAdapter();
            orderLineTableAdapter  daOrderLine = new orderLineTableAdapter();
            salesInvenTableAdapter daInventory = new salesInvenTableAdapter();

            try
            {
                daReceipt.Fill(dsAddSale.receipt);
                daOrderLine.Fill(dsAddSale.orderLine);
                daInventory.Fill(dsAddSale.salesInven);
            }
            catch { }
        }
Exemplo n.º 2
0
        static salesUpdate()
        {
            //load data at the beginning of the session
            dsEmma = new EmmasDataSet();
            receiptTableAdapter      daReceipt   = new receiptTableAdapter();
            orderLineTableAdapter    daOrderLine = new orderLineTableAdapter();
            orderProductTableAdapter daInventory = new orderProductTableAdapter();

            try
            {
                daReceipt.Fill(dsEmma.receipt);
                daOrderLine.Fill(dsEmma.orderLine);
                daInventory.Fill(dsEmma.orderProduct);
            }
            catch { }
        }