예제 #1
0
def new_car():
	if request.method == 'GET':
		return render_template("Process/dqdc/new_car.html",loan_apply_id=loan_apply_id)
	else:
		loan_apply_id = request.form['hiddenId']
		assets = AssetsList()
		assets.addList(loan_apply_id,request)
		return redirect('Process/dqdc/dqdcXed_gdzcqd/'+loan_apply_id)
예제 #2
0
파일: data.py 프로젝트: JohnCny/xhsc
def data_gdzcqd(loan_apply_id, localid):
    if request.method == "GET":
        sc_gdzcqd = None
        localdb = SC_LocalDB.query.filter_by(user_id=current_user.id).first()
        if localdb:
            cx = sqlite3.connect(os.path.join(LOCALDB_FOLDER_ABS, "%d\\%s" % (current_user.id, localdb.attachment)))
            cu = cx.cursor()
            cu.execute("select * from sc_gdzcqd where customer_id=" + str(localid))
            sc_gdzcqd = cu.fetchone()
        return render_template(
            "Data/dqdcXed_gdzcqd.html", loan_apply_id=loan_apply_id, localid=localid, sc_gdzcqd=sc_gdzcqd
        )
    else:
        assets = AssetsList()
        assets.addList(loan_apply_id, request)

        return redirect("Data/sjtb/%d/%d" % (loan_apply_id, localid))