예제 #1
0
def new_zkqd():
	loan_apply_id = request.form["hiddenId"]
	examine = Examine()
	#先删除所有记录
	examine.deleteList(loan_apply_id)
	#新增
	examine.addList(loan_apply_id,request)
	return redirect('Process/dqdc/dqdcXed_zkqd/' + loan_apply_id)
예제 #2
0
파일: data.py 프로젝트: JohnCny/xhsc
def data_zkqd(loan_apply_id, localid):
    if request.method == "GET":
        sc_zkqd = 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_zkqd where customer_id=" + str(localid))
            sc_zkqd = cu.fetchone()
        return render_template("Data/dqdcXed_zkqd.html", loan_apply_id=loan_apply_id, localid=localid, sc_zkqd=sc_zkqd)
    else:
        examine = Examine()
        # 先删除所有记录
        examine.deleteList(loan_apply_id)
        # 新增
        examine.addList(loan_apply_id, request)
        return redirect("Data/sjtb/%d/%d" % (loan_apply_id, localid))