基于 Python实现的校园快递管理系统
立即下载
资源介绍:
基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统基于 Python实现的校园快递管理系统
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'AdministratorPage.ui'
#
# Created by: PyQt5 UI code generator 5.15.10
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.Qt import QMainWindow
from PyQt5.QtCore import QSize
import random # 随机函数
from datetime import datetime # 当前时间
import connector.DatabaseDriver
import dao.CourierDao
from PyQt5.QtWidgets import QMessageBox, QListWidgetItem, QWidget, QHBoxLayout, QLabel, QVBoxLayout, QPushButton
from tool import MessageBoxTools
import dao.UserDao
class AdministratorPage(QMainWindow):
def __init__(self):
super().__init__()
self.setupUi()
self.show()
# 初始化数据库驱动
self.drive = connector.DatabaseDriver.DatabaseDriver()
def setupUi(self):
self.setObjectName("MainWindow")
self.resize(800, 556)
self.centralwidget = QtWidgets.QWidget(self)
self.centralwidget.setObjectName("centralwidget")
self.toolBox = QtWidgets.QToolBox(self.centralwidget)
self.toolBox.setGeometry(QtCore.QRect(0, 0, 771, 521))
self.toolBox.setObjectName("toolBox")
self.page = QtWidgets.QWidget()
self.page.setGeometry(QtCore.QRect(0, 0, 771, 469))
self.page.setObjectName("page")
self.label = QtWidgets.QLabel(self.page)
self.label.setGeometry(QtCore.QRect(30, 40, 141, 41))
self.label.setStyleSheet("font: 24pt \"AcadEref\";")
self.label.setObjectName("label")
self.search_btn = QtWidgets.QPushButton(self.page)
self.search_btn.setGeometry(QtCore.QRect(680, 70, 81, 51))
self.search_btn.setStyleSheet("font: 16pt \"AcadEref\";")
self.search_btn.setObjectName("search_btn")
self.out_btn = QtWidgets.QPushButton(self.page)
self.out_btn.setGeometry(QtCore.QRect(680, 0, 81, 51))
self.out_btn.setObjectName("out_btn")
self.out_btn.setStyleSheet("font: 16pt \"AcadEref\";")
self.courier_number = QtWidgets.QLineEdit(self.page)
self.courier_number.setGeometry(QtCore.QRect(170, 40, 461, 41))
self.courier_number.setObjectName("courier_number")
self.listWidget = QtWidgets.QListWidget(self.page)
self.listWidget.setGeometry(QtCore.QRect(20, 130, 741, 331))
self.listWidget.setObjectName("listWidget")
self.toolBox.addItem(self.page, "")
self.page_2 = QtWidgets.QWidget()
self.page_2.setGeometry(QtCore.QRect(0, 0, 771, 469))
self.page_2.setObjectName("page_2")
self.label_2 = QtWidgets.QLabel(self.page_2)
self.label_2.setGeometry(QtCore.QRect(40, 30, 81, 31))
self.label_2.setStyleSheet("font: 18pt \"AcadEref\";")
self.label_2.setObjectName("label_2")
self.label_3 = QtWidgets.QLabel(self.page_2)
self.label_3.setGeometry(QtCore.QRect(420, 130, 111, 31))
self.label_3.setStyleSheet("font: 18pt \"AcadEref\";")
self.label_3.setObjectName("label_3")
self.label_4 = QtWidgets.QLabel(self.page_2)
self.label_4.setGeometry(QtCore.QRect(40, 80, 81, 31))
self.label_4.setStyleSheet("font: 18pt \"AcadEref\";")
self.label_4.setObjectName("label_4")
self.label_5 = QtWidgets.QLabel(self.page_2)
self.label_5.setGeometry(QtCore.QRect(440, 80, 91, 31))
self.label_5.setStyleSheet("font: 18pt \"AcadEref\";")
self.label_5.setObjectName("label_5")
self.label_6 = QtWidgets.QLabel(self.page_2)
self.label_6.setGeometry(QtCore.QRect(20, 130, 111, 31))
self.label_6.setStyleSheet("font: 18pt \"AcadEref\";")
self.label_6.setObjectName("label_6")
self.user_name_edit = QtWidgets.QLineEdit(self.page_2)
self.user_name_edit.setGeometry(QtCore.QRect(130, 30, 171, 31))
self.user_name_edit.setObjectName("user_name_edit")
self.place_of_shipment_edit = QtWidgets.QLineEdit(self.page_2)
self.place_of_shipment_edit.setGeometry(QtCore.QRect(130, 80, 171, 31))
self.place_of_shipment_edit.setObjectName("place_of_shipment_edit")
self.courier_namber_edit = QtWidgets.QLineEdit(self.page_2)
self.courier_namber_edit.setGeometry(QtCore.QRect(540, 130, 151, 31))
self.courier_namber_edit.setObjectName("courier_namber_edit")
self.destination_edit = QtWidgets.QLineEdit(self.page_2)
self.destination_edit.setGeometry(QtCore.QRect(540, 80, 151, 31))
self.destination_edit.setObjectName("destination_edit")
self.companies_edit = QtWidgets.QLineEdit(self.page_2)
self.companies_edit.setGeometry(QtCore.QRect(130, 130, 171, 31))
self.companies_edit.setObjectName("companies_edit")
self.listView_2 = QtWidgets.QListView(self.page_2)
self.listView_2.setGeometry(QtCore.QRect(300, 280, 41, 41))
self.listView_2.setStyleSheet("border-image: url(views/image/6.png);")
self.listView_2.setObjectName("listView_2")
self.warehouseing_btn = QtWidgets.QPushButton(self.page_2)
self.warehouseing_btn.setGeometry(QtCore.QRect(350, 280, 71, 41))
font = QtGui.QFont()
font.setFamily("AcadEref")
font.setPointSize(20)
self.warehouseing_btn.setFont(font)
self.warehouseing_btn.setObjectName("warehouseing_btn")
self.label_7 = QtWidgets.QLabel(self.page_2)
self.label_7.setGeometry(QtCore.QRect(350, 30, 181, 31))
self.label_7.setStyleSheet("font: 18pt \"AcadEref\";")
self.label_7.setObjectName("label_7")
self.recipients_phone_edit = QtWidgets.QLineEdit(self.page_2)
self.recipients_phone_edit.setGeometry(QtCore.QRect(540, 30, 151, 31))
self.recipients_phone_edit.setObjectName("recipients_phone_edit")
self.label_15 = QtWidgets.QLabel(self.page_2)
self.label_15.setGeometry(QtCore.QRect(40, 180, 81, 31))
self.label_15.setStyleSheet("font: 18pt \"AcadEref\";")
self.label_15.setObjectName("label_15")
self.sender_edit = QtWidgets.QLineEdit(self.page_2)
self.sender_edit.setGeometry(QtCore.QRect(130, 180, 171, 31))
self.sender_edit.setObjectName("sender_edit")
self.sender_phone_edit = QtWidgets.QLineEdit(self.page_2)
self.sender_phone_edit.setGeometry(QtCore.QRect(540, 180, 151, 31))
self.sender_phone_edit.setObjectName("sender_phone_edit")
self.label_16 = QtWidgets.QLabel(self.page_2)
self.label_16.setGeometry(QtCore.QRect(350, 170, 181, 31))
self.label_16.setStyleSheet("font: 18pt \"AcadEref\";")
self.label_16.setObjectName("label_16")
self.toolBox.addItem(self.page_2, "")
self.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(self)
self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 23))
self.menubar.setObjectName("menubar")
self.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(self)
self.statusbar.setObjectName("statusbar")
self.setStatusBar(self.statusbar)
self.retranslateUi(self)
self.toolBox.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(self)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "管理员界面"))
self.label.setText(_translate("MainWindow", "快递单号:"))
self.search_btn.setText(_translate("MainWindow", "搜索"))
self.out_btn.setText(_translate("MainWindow", "退出"))
self.toolBox.setItemText(self.toolBox.indexOf(self.page), _translate("MainWindow", "查询操作"))
self.label_2.setText(_translate("MainWindow", "收件人:"))
self.label_3.setText(_translate("MainWindow", "快递单号:"))
self.label_4.setTex