程序示例精选
Python+Django+Html网页医院门诊药物进销存管理系统
如需安装运行环境或远程调试,见文章底部个人QQ名片,由专业技术人员远程协助!
前言
这篇博客针对《Python+Django+Html网页医院门诊药物进销存管理系统》编写代码,代码整洁,规则,易读。 学习与应用推荐首选。
运行结果
文章目录
一、所需工具软件
二、使用步骤
1. 主要代码
2. 运行结果
三、在线协助
一、所需工具软件
1. Python
2. Pycharm
二、使用步骤
代码如下(示例):
class CustomDefinitionPermissions(models.Model):
usert = models.CharField(u'操作人', max_length=256)
data1 = models.CharField(u'货物编号', max_length=256, blank=True, null=True)
category = models.CharField(u'类目', max_length=256)
title = models.CharField(u'货物名称', max_length=256)
pub_date = models.DateTimeField(u'发表时间', auto_now_add=True, editable=True, blank=True, null=True)
update_time = models.DateTimeField(u'更新时间', auto_now=True, blank=True, null=True)
def __str__(self): # 在Python3中用 __str__ 代替 __unicode__
return self.title
class Meta:
db_table = ''
managed = True
verbose_name = '客户自定义权限'
verbose_name_plural = '客户自定义权限'
class Article(models.Model):
usert = models.CharField(u'操作人', max_length=256)
data1 = models.CharField(u'货物编号', max_length=256, blank=True, null=True)
category = models.CharField(u'类目', max_length=256)
title = models.CharField(u'货物名称', max_length=256)
supplier = models.CharField(u'货物供应商', max_length=256)
data2 = models.IntegerField(u'数量', blank=True, null=True)
data3 = models.IntegerField(u'数据(单价:RMB)', blank=True, blank=True, null=True)
content = models.TextField(u'内容', blank=True, null=True)
pub_date = models.DateTimeField(u'发表时间', auto_now_add=True, editable=True, blank=True, null=True)
update_time = models.DateTimeField(u'更新时间', auto_now=True, blank=True, null=True)
def image_data(self):
return format_html(
'<img src="../../../media/{}" width="90px"/>',
self.img,
)
image_data.short_description = u'相片'
def __str__(self): # 在Python3中用 __str__ 代替 __unicode__
return self.title
class Meta:
db_table = ''
managed = True
verbose_name = '货物采购管理'
verbose_name_plural = '货物采购管理'
# permissions = (
# # ("can_view_echart_piePurchase", "can_view_echart_piePurchase"),
# )
class DataLatest(models.Model):
usert = models.CharField(u'操作人', max_length=256)
data1 = models.CharField(u'货物编号', max_length=256, blank=True, null=True)
category = models.CharField(u'类目', max_length=256)
title = models.CharField(u'药货物名称', max_length=256)
supplier = models.CharField(u'货物供应商', max_length=256)
data2 = models.IntegerField(u'数量', blank=True, null=True)
data3 = models.IntegerField(u'数据(总金额:元)', blank=True, blank=True, null=True)
content = models.TextField(u'内容', blank=True, null=True)
pub_date = models.DateTimeField(u'发表时间', auto_now_add=True, editable=True, blank=True, null=True)
update_time = models.DateTimeField(u'更新时间', auto_now=True, blank=True, null=True)
def image_data(self):
return format_html(
'<img src="../../../media/{}" width="90px"/>',
self.img,
)
image_data.short_description = u'相片'
def __str__(self): # 在Python3中用 __str__ 代替 __unicode__
return self.title
class Meta:
db_table = ''
managed = True
verbose_name = '货物销售管理'
verbose_name_plural = '货物品销售管理'
# permissions = (
# # ("can_view_echart_piePurchase", "can_view_echart_piePurchase"),
# )
class storeData(models.Model):
usert = models.CharField(u'操作人', max_length=256)
data1 = models.CharField(u'货物编号', max_length=256, blank=True, null=True)
category = models.CharField(u'类目', max_length=256)
title = models.CharField(u'货物名称', max_length=256)
supplier = models.CharField(u'货物供应商', max_length=256)
blank=True, null=True)
production_date = models.DateField(u'生产日期', blank=True, null=True)
content = models.TextField(u'内容', blank=True, null=True)
pub_date = models.DateTimeField(u'发表时间', auto_now_add=True, editable=True, blank=True, null=True)
update_time = models.DateTimeField(u'更新时间', auto_now=True, blank=True, null=True)
def image_data(self):
return format_html(
'<img src="../../../media/{}" width="90px"/>',
self.img,
)
class Meta:
db_table = ''
managed = True
verbose_name = '仓库管理'
verbose_name_plural = '仓库管理'
# permissions = (
# # ("can_view_echart_barStore", "can_view_echart_barStore"),
# )
#出库
class Outbound(models.Model):
usert = models.CharField(u'操作人', max_length=256)
data1 = models.CharField(u'药品编号', max_length=256, blank=True, null=True)
category = models.CharField(u'类目', max_length=256)
title = models.CharField(u'药品名称', max_length=256)
quantity = models.IntegerField(u'数量', blank=True, null=True)
pub_date = models.DateTimeField(u'出库时间', auto_now_add=True, editable=True, blank=True, null=True)
def __str__(self):
return self.title
class Meta:
db_table = ''
managed = True
verbose_name = '出库申请'
verbose_name_plural = '出库申请'
# permissions = (
# # ("can_view_echart_piePurchase", "can_view_echart_piePurchase"),
# )
#用户注册
class userRegisterModels(models.Model):
usert = models.CharField(u'用户名', max_length=256)
email = models.CharField(u'邮箱', max_length=256)
gender = models.CharField(u'性别', max_length=256)
mobile = models.CharField(u'手机号', max_length=256, blank=True, null=True)
password = models.CharField(u'密码', max_length=256, blank=True, null=True)
pub_date = models.DateTimeField(u'发表时间', auto_now_add=True, editable=True, blank=True, null=True)
update_time = models.DateTimeField(u'更新时间', auto_now=True, blank=True, null=True)
def __str__(self): # 在Python3中用 __str__ 代替 __unicode__
return self.usert
class Meta:
# db_table = ''
# managed = True
verbose_name = '用户注册信息'
verbose_name_plural = '用户注册信息'
#用户注册
class userLoginModels(models.Model):
usert = models.CharField(u'用户名', max_length=256)
email = models.CharField(u'邮箱', max_length=256)
gender = models.CharField(u'性别', max_length=256)
mobile = models.CharField(u'手机号', max_length=256, blank=True, null=True)
password = models.CharField(u'密码', max_length=256, blank=True, null=True)
pub_date = models.DateTimeField(u'发表时间', auto_now_add=True, editable=True, blank=True, null=True)
update_time = models.DateTimeField(u'更新时间', auto_now=True, blank=True, null=True)
def __str__(self): # 在Python3中用 __str__ 代替 __unicode__
return self.usert
class Meta:
# db_table = ''
# managed = True
verbose_name = '用户登录信息'
verbose_name_plural = '用户登录信息'
运行结果
三、在线协助:
如需安装运行环境或远程调试,见文章底部个人 QQ 名片,由专业技术人员远程协助!
1)远程安装运行环境,代码调试
2)Visual Studio, Qt, C++, Python编程语言入门指导
3)界面美化
4)软件制作
5)云服务器申请
6)网站制作
当前文章连接:https://blog.csdn.net/alicema1111/article/details/132666851
个人博客主页:https://blog.csdn.net/alicema1111?type=blog
博主所有文章点这里:https://blog.csdn.net/alicema1111?type=blog
博主推荐:
Python人脸识别考勤打卡系统:
https://blog.csdn.net/alicema1111/article/details/133434445
Python果树水果识别:https://blog.csdn.net/alicema1111/article/details/130862842
Python+Yolov8+Deepsort入口人流量统计:https://blog.csdn.net/alicema1111/article/details/130454430
Python+Qt人脸识别门禁管理系统:https://blog.csdn.net/alicema1111/article/details/130353433
Python+Qt指纹录入识别考勤系统:https://blog.csdn.net/alicema1111/article/details/129338432
Python Yolov5火焰烟雾识别源码分享:https://blog.csdn.net/alicema1111/article/details/128420453
Python+Yolov8路面桥梁墙体裂缝识别:https://blog.csdn.net/alicema1111/article/details/133434445
Python+Yolov5道路障碍物识别:https://blog.csdn.net/alicema1111/article/details/129589741
Python+Yolov5跌倒检测 摔倒检测 人物目标行为 人体特征识别:https://blog.csdn.net/alicema1111/article/details/129272048