qt怎么将按钮设为图片
298
2022-09-04
计算机毕业设计Python+djang的药物管理系统
项目介绍
随着时代的发展,药店对药品超市的管理提出了新的要求,传统的药品超市管理,已经不能够满足当前药店对药物的管理了,药物一般都拥有种类繁多, 价格不一,治疗功效不易,用法用量不同等特点,如何对这些琳琅满目的药物进行更加科学合理的管理,是很多药店的管理人员一直以为所关心的问题。为了解决这一问题我们开发了药品超市管理系统。
本药品超市管理系统分为管理人员和员工两部分,管理人员可以管理系统内的所有功能,员工是帮助管理人员管理客户信息和销售信息的,这样在一定程度上减轻了管理人员的工作负担。该系统的基本功能包括用户登录,药品信息管理,客户信息管理,员工信息管理,销售信息管理,采购信息管理,统计报表,基础资料设置,系统管理等功能。
开发环境
系统截图
本界面为后台管理人员对药物入库信息相关操作主要包括药物名称药物编号药物的类别图片规格,主要包括药物名称,药物编号,药物的类别,图片,规格,厂家进价售价总价入库时间等,售价,总价格,入库时间等信息。
本界面为药品基本信息的界面展示主要包括药物的编号药物的名称药物的类别,主要包括药物的编号,药物的名称,药物的类别,药物的图。图片药物的,药物的规格,厂家有效期等信息。
核心代码
yaowuchuku_register(request): if request.method in ["POST", "GET"]: msg = {'code': normal_code, "msg": mes.normal_code} req_dict = request.session.get("req_dict") error = yaowuchuku.createbyreq(yaowuchuku, yaowuchuku, req_dict) if error != None: msg['code'] = crud_error_code msg['msg'] = "用户已存在,请勿重复注册!" return JsonResponse(msg)def yaowuchuku_login(request): if request.method in ["POST", "GET"]: msg = {'code': normal_code, "msg": mes.normal_code} req_dict = request.session.get("req_dict") datas = yaowuchuku.getbyparams(yaowuchuku, yaowuchuku, req_dict) if not datas: msg['code'] = password_error_code msg['msg'] = mes.password_error_code return JsonResponse(msg) try: __sfsh__= yaowuchuku.__sfsh__ except: __sfsh__=None if __sfsh__=='是': if datas[0].get('sfsh')=='否': msg['code']=other_code msg['msg'] = "账号已锁定,请联系管理员审核!" return JsonResponse(msg) req_dict['id'] = datas[0].get('id') return Auth.authenticate(Auth, yaowuchuku, req_dict)def yaowuchuku_logout(request): if request.method in ["POST", "GET"]: msg = { "msg": "登出成功", "code": 0 } return JsonResponse(msg)def yaowuchuku_resetPass(request): ''' ''' if request.method in ["POST", "GET"]: msg = {"code": normal_code, "msg": mes.normal_code} req_dict = request.session.get("req_dict") columns= yaowuchuku.getallcolumn( yaowuchuku, yaowuchuku) try: __loginUserColumn__= yaowuchuku.__loginUserColumn__ except: __loginUserColumn__=None username=req_dict.get(list(req_dict.keys())[0]) if __loginUserColumn__: username_str=__loginUserColumn__ else: username_str=username if 'mima' in columns: password_str='mima' else: password_str='password' eval('''yaowuchuku.objects.filter({}='{}').update({}='123456')'''.format(username_str,username,password_str)) return JsonResponse(msg)
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~