Exemple #1
0
def update():
    cbetobj = CBusinessEntities()
    cbetobj.mSetAccno(request.form.get(
        "Acc_no"))  # same as form name in html form, database col name
    cbetobj.mSetAccname(request.form.get("AccName"))
    cbetobj.mSetAcctype(request.form.get("TranType"))
    cbetobj.mSetAmount(request.form.get("Amount"))
    savobj = SavingAccounts()
    savobj.mUpdateDataBal(cbetobj)
    accdetails = savobj.mSearchDataAllBal()
    return render_template('ShowAllData.html', accdetails=accdetails)
def mUpdateData():
    mBindData()
    savobjbal = SavingAccounts(beobj.mGetAccno(), beobj.mGetAccname(),
                               beobj.mGetAcctype(), beobj.mGetAmount())
    savobjbal.mUpdateDataBal(beobj)