public void pullQuoteData(object sender, EventArgs e) { Sales_Order newSalesOrder = (Sales_Order)((Button)sender).FindForm(); newSalesOrder.clearData(); newSalesOrder.fillData(new Quote().get(newSalesOrder.getId()), false, new QuoteItems().get(newSalesOrder.getId())); }
public void pullSalesOrder(object sender, EventArgs e) { Sales_Order salesOrder = (Sales_Order)((Button)sender).FindForm(); salesOrder.clearData(); salesOrder.fillData(new SalesOrder().getSAddress(salesOrder.getId()), new SalesOrder().getCompleted(salesOrder.getId()), new OrderItems().get(salesOrder.getId())); }