Esempio n. 1
0
def mShowData():
    mBindData()
    savobjbal = SavingAccounts(beobj.mGetAccno(), beobj.mGetAccname(),
                               beobj.mGetAcctype(), beobj.mGetAmount())
    d = savobjbal.mSearchDataBal(beobj.mGetAccno())
    textaccno = beobj.mGetAccno()
    textname = beobj.mGetAccname()
    textacctype = beobj.mGetAcctype()
    txtamt = beobj.mGetAmount()
Esempio n. 2
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)
Esempio n. 3
0
def mSelectOne():
    mBindData()

    # beobj.mSetAccno(txtaccno.get())
    savobjbal = SavingAccounts(beobj.mGetAccno(), beobj.mGetAccname(),
                               beobj.mGetAcctype(), beobj.mGetAmount())
    # print(beobj.mGetAccno())
    d = savobjbal.mSearchDataBal(beobj.mGetAccno())
    #txtaccno.insert(0,d["Acc_no"])
    txtname.insert(0, d["Acc_Name"])
    txtacctype.insert(0, d["Acc_Type"])
    txtamt.insert(0, d["Amount"])
Esempio n. 4
0
def add():
    # request.querystring method for get method and request.form for post method
    if request.form:
        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.mInsertDataBal(cbetobj)
    return render_template('home.html')
Esempio n. 5
0
def mSelectAll():
    savobjbal = SavingAccounts(beobj.mGetAccno(), beobj.mGetAccname(),
                               beobj.mGetAcctype(), beobj.mGetAmount())
    mydata = savobjbal.mSearchDataAllBal()
Esempio n. 6
0
def mDeleteData():
    mBindData()
    savobjbal = SavingAccounts(beobj.mGetAccno(), beobj.mGetAccname(),
                               beobj.mGetAcctype(), beobj.mGetAmount())
    mydata = savobjbal.mDeleteDataBal(beobj.mGetAccno())
Esempio n. 7
0
def mUpdateData():
    mBindData()
    savobjbal = SavingAccounts(beobj.mGetAccno(), beobj.mGetAccname(),
                               beobj.mGetAcctype(), beobj.mGetAmount())
    savobjbal.mUpdateDataBal(beobj)
Esempio n. 8
0
def delete():
    accno = request.form.get("Acc_no")
    savobj = SavingAccounts()
    savobj.mDeleteDataBal(accno=accno)
    accdetails = savobj.mSearchDataAllBal()
    return render_template('ShowAllData.html', accdetails=accdetails)
Esempio n. 9
0
def DeleteData(accno):
    savobj = SavingAccounts()
    accdetail = savobj.mSearchDataBal(accno=accno)
    return render_template('Delete.html', accdetail=accdetail)
Esempio n. 10
0
def ShowAllData():
    savobj = SavingAccounts()

    accdetails = savobj.mSearchDataAllBal()
    return render_template('ShowAllData.html', accdetails=accdetails)