private void saveUpdateButton_Click(object sender, EventArgs e) { sdo = new ShipmentsDatabaseOperations(); shipment.Company.DebtValue += shipment.DebtValue; sdo.insertShipment(shipment); moveToHome(); }
public SupplierProfile(Home home, Company companyObj) { InitializeComponent(); this.home = home; this.companyObj = companyObj; this.table = new DataTable(); this.sdo = new ShipmentsDatabaseOperations(); this.operation = new CompaniesOperations(); }
private void setOjects(Home home) { this.home = home; this.sDOobj = new ShipmentsDatabaseOperations(); table = new DataTable(); FromDatePicker.Value = DateTime.Today; ToDatePicker.Value = DateTime.Today.AddDays(-1); restOfQuery = " AND DebtValue > 0 "; }
private void getCurrentSupplierOrders() { sdo = new ShipmentsDatabaseOperations(); this.ordersList = sdo.getOrders(companyObj); }
private void getCurrentSupplierOrders() { sDOobj = new ShipmentsDatabaseOperations(); this.shipmentsList = sDOobj.getAllShipmentsOrdered(FromDatePicker.Value, ToDatePicker.Value, restOfQuery); }