def viewallot(page): allot = EquipmentAllot.query.order_by(-EquipmentAllot.id).all() page = int(page) #获取当前页面页数 total = int(len(allot)) allot = get_obj_for_page(page, POSTS_PER_PAGE, allot) pagination = Pagination('search',page, POSTS_PER_PAGE, total, allot) return render_template('equipment/viewallot.html',allot=allot,pagination=pagination)
def viewequipment(page): equipment = Equipment.query.order_by(-Equipment.id).all() page = int(page) #获取当前页面页数 total = int(len(equipment)) equipment = get_obj_for_page(page, POSTS_PER_PAGE, equipment) pagination = Pagination('search',page, POSTS_PER_PAGE, total, equipment) return render_template('equipment/viewequipments.html', equipment=equipment, pagination=pagination)
def viewformals(page): formals = Formalities.query.order_by(-Formalities.id).all() page = int(page) #获取当前页面页数 total = int(len(formals)) formals = get_obj_for_page(page, POSTS_PER_PAGE, formals) pagination = Pagination('search',page, POSTS_PER_PAGE, total, formals) return render_template('project/viewfor.html', pagination = pagination, formals = formals)
def viewproject(page): project = Project.query.order_by(-Project.id).all() page = int(page) #获取当前页面页数 total = int(len(project)) project = get_obj_for_page(page, POSTS_PER_PAGE, project) pagination = Pagination('search',page, POSTS_PER_PAGE, total, project) return render_template('/project/viewproject.html', project=project,pagination=pagination)
def viewcomsumable(page): page = int(page) #获取当前页面页数 comsumables = Comsumable.query.order_by(-Comsumable.id).all() total = int(len(comsumables)) comsumables = get_obj_for_page(page, POSTS_PER_PAGE, comsumables) pagination = Pagination('search',page, POSTS_PER_PAGE, total, comsumables) return render_template('comsumable/viewcom.html', pagination = pagination, comsumables = comsumables)
def viewallot(page): allot = EquipmentAllot.query.order_by(-EquipmentAllot.id).all() page = int(page) #获取当前页面页数 total = int(len(allot)) allot = get_obj_for_page(page, POSTS_PER_PAGE, allot) pagination = Pagination('search', page, POSTS_PER_PAGE, total, allot) return render_template('equipment/viewallot.html', allot=allot, pagination=pagination)
def viewequipment(page): equipment = Equipment.query.order_by(-Equipment.id).all() page = int(page) #获取当前页面页数 total = int(len(equipment)) equipment = get_obj_for_page(page, POSTS_PER_PAGE, equipment) pagination = Pagination('search', page, POSTS_PER_PAGE, total, equipment) return render_template('equipment/viewequipments.html', equipment=equipment, pagination=pagination)
def viewoutcomsumale(page): getcom = GetComsumable.query.order_by(-GetComsumable.id).all() page = int(page) #获取当前页面页数 total = int(len(getcom)) getcom = get_obj_for_page(page, POSTS_PER_PAGE, getcom) pagination = Pagination('search',page, POSTS_PER_PAGE, total, getcom) return render_template('comsumable/outcom.html', getcom=getcom,pagination=pagination)
def viewformals(page): formals = Formalities.query.order_by(-Formalities.id).all() page = int(page) #获取当前页面页数 total = int(len(formals)) formals = get_obj_for_page(page, POSTS_PER_PAGE, formals) pagination = Pagination('search', page, POSTS_PER_PAGE, total, formals) return render_template('project/viewfor.html', pagination=pagination, formals=formals)
def viewproject(page): project = Project.query.order_by(-Project.id).all() page = int(page) #获取当前页面页数 total = int(len(project)) project = get_obj_for_page(page, POSTS_PER_PAGE, project) pagination = Pagination('search', page, POSTS_PER_PAGE, total, project) return render_template('/project/viewproject.html', project=project, pagination=pagination)
def viewcomsumable(page): page = int(page) #获取当前页面页数 comsumables = Comsumable.query.order_by(-Comsumable.id).all() total = int(len(comsumables)) comsumables = get_obj_for_page(page, POSTS_PER_PAGE, comsumables) pagination = Pagination('search', page, POSTS_PER_PAGE, total, comsumables) return render_template('comsumable/viewcom.html', pagination=pagination, comsumables=comsumables)
def viewoperating(page): '''查看岗位配备信息''' operating = OperatingpostAllot.query.order_by(OperatingpostAllot.id).all()#岗位配备信息 page = int(page) total = int(len(operating)) operating = get_obj_for_page(page,POSTS_PER_PAGE,operating) pagination = Pagination('search',page,POSTS_PER_PAGE,total,operating) return render_template('operatingpostallot/operating.html', operating=operating, pagination=pagination)
def viewoutcomsumale(page): getcom = GetComsumable.query.order_by(-GetComsumable.id).all() page = int(page) #获取当前页面页数 total = int(len(getcom)) getcom = get_obj_for_page(page, POSTS_PER_PAGE, getcom) pagination = Pagination('search', page, POSTS_PER_PAGE, total, getcom) return render_template('comsumable/outcom.html', getcom=getcom, pagination=pagination)