Пример #1
0
def getAllPIN():
    return peopleHandler().getAllPeopleInNeed()
Пример #2
0
def getOrdersByPerson():
    if not request.args:
        return peopleHandler().getAllOrders()
    else:
        return peopleHandler().getOrdersByPersonInNeed(request.args)
Пример #3
0
def getOrdersBySupplier():
    if not request.args:
        return peopleHandler().getAllOrders()
    else:
        return peopleHandler().getOrdersBySupplier(request.args)
Пример #4
0
def getProductsBySupplier():
    if not request.args:
        return producthandler().getAllProducts()
    else:
        return peopleHandler().getProductsBySupplier(request.args)
Пример #5
0
def getSupplierByProduct():
    if not request.args:
        return peopleHandler().getAllSuppliers()
    else:
        return peopleHandler().getSupplierByProduct(request.args)
Пример #6
0
def get_supplier_by_product_id(p_id):
    return peopleHandler().getSupplierByProduct(p_id)
Пример #7
0
def getAllAdmin():
    return peopleHandler().getAllAdminstrators()
Пример #8
0
def get_account_by_username():
    return peopleHandler().get_all_accounts()
Пример #9
0
def search_account_by_username(a_id):
    return peopleHandler().search_account_by_a_id(a_id)
Пример #10
0
def view_bankinfo_by_sid(s_id):
    if request.method == 'GET':
        return peopleHandler().get_bankinfo_by_SID(s_id)
    elif request.method == 'PUT':
        return peopleHandler().update_bankinfo(s_id, request.form)
Пример #11
0
def get_all_bank_info():
    if request.method == 'GET':
        return peopleHandler().get_all_bank_info()
    elif request.method == 'POST':
        return peopleHandler().insert_bankinfo(request.form)
Пример #12
0
def get_all_users():
    return peopleHandler().getAllUsers()
Пример #13
0
def addressChange(address_id):
    if request.method == 'PUT':
        return peopleHandler().updateAddresses(address_id, request.form)
    else:
        return jsonify(Error="Method not allowed."), 405
Пример #14
0
def getAllAddress():
    return peopleHandler().getAllAddress()