コード例 #1
0
 private void saveUpdateButton_Click(object sender, EventArgs e)
 {
     sdo = new ShipmentsDatabaseOperations();
     shipment.Company.DebtValue += shipment.DebtValue;
     sdo.insertShipment(shipment);
     moveToHome();
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 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 ";
 }
コード例 #4
0
 private void getCurrentSupplierOrders()
 {
     sdo             = new ShipmentsDatabaseOperations();
     this.ordersList = sdo.getOrders(companyObj);
 }
コード例 #5
0
 private void getCurrentSupplierOrders()
 {
     sDOobj             = new ShipmentsDatabaseOperations();
     this.shipmentsList = sDOobj.getAllShipmentsOrdered(FromDatePicker.Value, ToDatePicker.Value, restOfQuery);
 }