Exemplo n.º 1
0
def query_delete_product(sku):
    utilities.execute("DELETE FROM Products " "WHERE SKU='" + sku + "'")
Exemplo n.º 2
0
def insert_quantify(sku, staffid):
    now = datetime.datetime.now()
    utilities.execute(
        "INSERT INTO Quantify(SKU,Date_info, Staff_ID) values('" + str(sku) +
        "','" + str(now.year) + "/" + str(now.month) + "/" + str(now.day) +
        "','" + str(staffid) + "')")
Exemplo n.º 3
0
 def query_change_salary(self, managerid, salary):
     utilities.execute("UPDATE Managers SET Salary = '" + salary +
                       "' WHERE Staff_ID = " + managerid)
Exemplo n.º 4
0
def query_price_update(sku, price):
    utilities.execute("UPDATE Products "
                      "SET Product_Price='" + price + "' "
                      "WHERE SKU='" + sku + "'")
Exemplo n.º 5
0
 def query_delete_worker(self, workerid):
     utilities.execute("DELETE FROM Staff WHERE Staff_ID = " + workerid)
Exemplo n.º 6
0
 def query_change_wage(self, workerid, wage):
     utilities.execute("UPDATE Workers SET Hourly_Rate = '" + wage +
                       "' WHERE Staff_ID = " + workerid)
Exemplo n.º 7
0
 def query_user_info(self, sku, price):
     utilities.execute("UPDATE Product SET Product_Price='" + price +
                       "' WHERE SKU='" + sku + "'")
Exemplo n.º 8
0
 def query_delete_product(self, sku):
     utilities.execute("DELETE FROM Product where SKU='" + sku + "'")
Exemplo n.º 9
0
def insert_producer(email, name, phone, owner, address):
    utilities.execute("INSERT INTO Producers values (0,'" + email + "','" +
                      phone + "','" + name + "','" + owner + "','" + address +
                      "')")
Exemplo n.º 10
0
def del_vendor(id_party):
    return utilities.execute("DELETE FROM Vendors where V_ID=" + id_party)
Exemplo n.º 11
0
def insert_import(email, name, phone, owner, address):
    return utilities.execute("INSERT INTO Vendors value (0,'" + email + "','" +
                             phone + "','" + name + "','" + owner + "','" +
                             address + "')")