资源简介
广东海洋大学 chen liang 数据库课程设计
这是博主本人在大学期间大二时候数据库的课程设计,比较简单,使用linux系统环境下python语言写的,数据库用mysql,大部分都是ui部分,想参考的博友可以下载,里面注释写的很详细,毕竟是本科生的作品,完全是原创的。
有问题可以联系博主邮箱。(邮箱在博主简介)
代码片段和文件信息
from tkinter import *
import datetime
import ui_acc_sql as uas
import tkinter as tk
from tkinter import ttk
class ui():
def a(self):
print(‘按键‘)
def xcgl_ui(self):
pass
# 补空格函数
def bkg(selflengvalue):
kg=‘ ‘
result_str=value
if len(result_str) result_str=result_str+kg*(leng-len(result_str))
return result_str
#注册按钮权限更改
def b1(self):
self.aut = ‘人事专员‘
def b2(self):
self.aut = ‘人事经理‘
def b3(self):
self.aut = ‘薪酬专员‘
def b4(self):
self.aut = ‘薪酬经理‘
#按个人信息查询选择条件
def a1(self):
self.cxlb = ‘bh‘
def a2(self):
self.cxlb = ‘xm‘
def a3(self):
self.cxlb = ‘zw‘
def a4(self):
self.cxlb = ‘xb‘
# 按个人信息查询确认查询,条件判断
def grxx_querenchaxun(self):
self.cxjg=None
if self.cxlb==‘wx‘:
self.text4[‘text‘] = ‘请选择查询条件‘
return
elif self.cxlb==‘bh‘:
self.cxjg=uas.dacx_bh(self.agrxxcx_en.get())
elif self.cxlb==‘xm‘:
self.cxjg = uas.dacx_xm(self.agrxxcx_en.get())
elif self.cxlb==‘zw‘:
self.cxjg = uas.dacx_zw(self.agrxxcx_en.get())
elif self.cxlb==‘xb‘:
self.cxjg = uas.dacx_xb(self.agrxxcx_en.get())
else:
self.text4[‘text‘] = ‘查询系统出错‘
return
if len(self.cxjg)!=0:
self.cxjg_jlxx_ui()
else:
self.text4[‘text‘] = ‘未查询到符合条件的结果‘
return
# 按机构查询确认查询
def jgcx_querenchaxun(self):
self.i_jgcx=self.i_cb.get()
self.ii_jgcx=self.ii_cb.get()
self.iii_jgcx=self.iii_cb.get()
self.zwfl_jgcx=self.zwfl_cb.get()
if len(self.i_jgcx)==0 and len(self.ii_jgcx)==0 and len(self.iii_jgcx)==0 and len(self.zwfl_jgcx)==0:
self.text5[‘text‘] = ‘请输入查询条件‘
return
else:
self.cxjg = uas.dacx_jgcx(self.i_jgcxself.ii_jgcxself.iii_jgcxself.zwfl_jgcx)
if len(self.cxjg)!=0:
self.cxjg_jlxx_ui()
return
else:
self.text5[‘text‘] = ‘未查询到符合条件的结果‘
# 简略信息详情选择条
def click1(selfs):
self.jlxx_ind =0
print(self.cxjg[self.jlxx_ind][:])
self.dafh_ui(self.cxjg[self.jlxx_ind][:])
def click2(selfs):
self.jlxx_ind =1
self.dafh_ui(self.cxjg[self.jlxx_ind][:])
def click3(selfs):
self.jlxx_ind =2
self.dafh_ui(self.cxjg[self.jlxx_ind][:])
def click4(selfs):
self.jlxx_ind =3
self.dafh_ui(self.cxjg[self.jlxx_ind][:])
def click5(selfs):
self.jlxx_ind =4
self.dafh_ui(self.cxjg[self.jlxx_ind][:])
def click6(selfs):
self.jlxx_ind =5
self.dafh_ui(self.cxjg[self.jlxx_ind][:])
def click7(selfs):
self.jlxx_ind =6
self.dafh_ui(self.cxjg[self.jlxx_ind][:])
def click8(selfs):
self.jlxx_ind =7
self.dafh_ui(self.cx
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-03-27 12:48 rlzy\
文件 7316 2019-03-27 12:48 rlzy\ui_acc_sql.py
文件 56458 2019-03-27 10:59 rlzy\ui.py
相关资源
- python +MYSQL+HTML实现21蛋糕网上商城
- python pygame 自制飞机大战游戏(加入
- django+mysql家具购物网站,包含部署教
- mysqlclient-1.3.13-cp36-cp36m-win32.whl
- 基于hadoop的电影推荐系统源码.zip
- 书城购物开发web项目
- 模仿瓜子二手车的python网站
- ScrapyMySQL爬取链家网中北京地区租房信
- 基于协同过滤的电影推荐系统 python
- pymssql-2.1.3-cp34-cp34m-win32.whl
- scrapy整站爬取voa双语新闻并保存到m
- 学生成绩管理系统-python-tkinker.zip
- python写一个商城网页服务器并且实现
- 基于Python+mysql的新闻网站的实现
- mysql-connector-python-2.1.3-py2.7-winx64.msi
- mysql-connector-python-2.1.5-py2.7-win32
- Python-pycharmpython36Django20mysql用户登录与
- 简单教务系统.7z
- 基于Python开发的学生信息管理系统源
- Python爬虫抓取东方财富网股票数据并
- python3导入excel数据到mysql
- Python + PyQt5 + MySQL模拟QQ的聊天与娱乐
- Pycharm+Django+Python+MySQL开发
- python+flask+echarts+mysql实现中国疫情数据
- python爬取漏洞库.zip
- Python+Mysql教务管理系统
- 爬虫多维度抓取链家二手房成交数据
- Flow blog数据库课程设计
- MySQL-python-1.2.3.win-amd64-py2.7
- 树莓派LoRa教程.docx
评论
共有 条评论