static Admin() { // Initialize the dataset dsSale = new SalesDataset(); // Initialize the table adapters receiptTableAdapter daSales = new receiptTableAdapter(); try { // Fill the data adapter with data from the dataset daSales.Fill(dsSale.receipt); } catch { } }
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 { } }
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 { } }
static Admin() { // Initialize the dataset dsSale = new ReceiptDataSet(); dsWeekly = new WeeklyReviewDataSet(); // Initialize the table adapters receiptTableAdapter daSales = new receiptTableAdapter(); WeeklyReviewTableAdapter daWeekly = new WeeklyReviewTableAdapter(); try { // Fill the data adapter with data from the dataset daSales.Fill(dsSale.receipt); } catch { } }
protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { return; } { receiptTableAdapter daSales = new receiptTableAdapter(); try { daSales.Fill(dsSales.receipt); } catch { } foreach (DataRow r in dsSales.receipt) { MakeTable(r); } } }
static Purchase() { receiptTableAdapter daReceipt = new receiptTableAdapter(); daReceipt.Fill(dsReceipt.receipt); employeeTableAdapter daEmployee = new employeeTableAdapter(); daEmployee.Fill(dsReceipt.employee); productTableAdapter daProducts = new productTableAdapter(); productTable = daProducts.GetData(); order_lineTableAdapter daLine = new order_lineTableAdapter(); daLine.Fill(dsReceipt.order_line); service_orderTableAdapter daService = new service_orderTableAdapter(); daService.Fill(dsReceipt.service_order); equipmentTableAdapter daEqu = new equipmentTableAdapter(); daEqu.Fill(dsReceipt.equipment); }