예제 #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     EnableForm(true);
     customerEL = new pos.EL.Registrations.customers();
 }
예제 #2
0
 public bool Update(pos.EL.Registrations.customers customerEL)
 {
     return(customerDL.Update(customerEL));
 }
예제 #3
0
 public bool Delete(pos.EL.Registrations.customers customerEL)
 {
     return(customerDL.Delete(customerEL));
 }
예제 #4
0
 public long Insert(pos.EL.Registrations.customers customerEL)
 {
     return(customerDL.Insert(customerEL));
 }
 public frmSelectCustomers(frmOrders _frmOrders, pos.EL.Registrations.customers _customerEL)
 {
     InitializeComponent();
     frmOrders  = _frmOrders;
     customerEL = _customerEL;
 }
예제 #6
0
 public bool Delete(pos.EL.Registrations.customers customerEL)
 {
     return(Helper.executeNonQueryBool("DELETE FROM customers WHERE customerid = '" + customerEL.Customerid + "' "));
 }
예제 #7
0
 public bool Update(pos.EL.Registrations.customers customerEL)
 {
     return(Helper.executeNonQueryBool("UPDATE customers set firstname = '" + customerEL.Firstname + "', middlename = '" + customerEL.Middlename + "', lastname = '" + customerEL.Lastname + "', contactnumber = '" + customerEL.Contactnumber + "', address = '" + customerEL.Address + "' WHERE customerid = '" + customerEL.Customerid + "' "));
 }
예제 #8
0
 public long Insert(pos.EL.Registrations.customers customerEL)
 {
     return(Helper.executeNonQueryLong("INSERT INTO customers (firstname, middlename, lastname, contactnumber, address) VALUES ('" + customerEL.Firstname + "', '" + customerEL.Middlename + "', '" + customerEL.Lastname + "', '" + customerEL.Contactnumber + "', '" + customerEL.Address + "')"));
 }