forked from Echoyy9/Personnel-Management-System
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainWindow.py
146 lines (140 loc) · 7.84 KB
/
mainWindow.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainWindow.ui'
#
# Created by: PyQt5 UI code generator 5.11.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1086, 568)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/newPrefix/images/admin.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.splitter = QtWidgets.QSplitter(self.centralwidget)
self.splitter.setGeometry(QtCore.QRect(0, 0, 1100, 571))
self.splitter.setMaximumSize(QtCore.QSize(16777215, 571))
self.splitter.setOrientation(QtCore.Qt.Horizontal)
self.splitter.setObjectName("splitter")
self.treeWidget = QtWidgets.QTreeWidget(self.splitter)
self.treeWidget.setMinimumSize(QtCore.QSize(178, 0))
self.treeWidget.setMaximumSize(QtCore.QSize(178, 571))
self.treeWidget.setStyleSheet("background-color:#eeeeee;\n"
"border:outset;\n"
"color:#215b63;")
self.treeWidget.setAutoScroll(True)
self.treeWidget.setEditTriggers(QtWidgets.QAbstractItemView.DoubleClicked|QtWidgets.QAbstractItemView.EditKeyPressed)
self.treeWidget.setTextElideMode(QtCore.Qt.ElideMiddle)
self.treeWidget.setIndentation(25)
self.treeWidget.setRootIsDecorated(True)
self.treeWidget.setUniformRowHeights(False)
self.treeWidget.setItemsExpandable(True)
self.treeWidget.setAnimated(False)
self.treeWidget.setHeaderHidden(True)
self.treeWidget.setExpandsOnDoubleClick(True)
self.treeWidget.setObjectName("treeWidget")
self.treeWidget.headerItem().setIcon(0, icon)
item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/newPrefix/images/file.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
item_0.setIcon(0, icon1)
item_0.setFlags(QtCore.Qt.ItemIsEnabled)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(":/newPrefix/images/paper.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
item_1.setIcon(0, icon2)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
brush.setStyle(QtCore.Qt.NoBrush)
item_1.setBackground(0, brush)
item_1.setIcon(0, icon2)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_1.setIcon(0, icon2)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_1.setIcon(0, icon2)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_1.setIcon(0, icon2)
item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
item_0.setIcon(0, icon1)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_1.setIcon(0, icon2)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_1.setIcon(0, icon2)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_1.setIcon(0, icon2)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_1.setIcon(0, icon2)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_1.setIcon(0, icon2)
item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
item_0.setIcon(0, icon1)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_1.setIcon(0, icon2)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_1.setIcon(0, icon2)
item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
item_0.setIcon(0, icon1)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_1.setIcon(0, icon2)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_1.setIcon(0, icon2)
item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
item_0.setIcon(0, icon1)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_1.setIcon(0, icon2)
item_1 = QtWidgets.QTreeWidgetItem(item_0)
item_1.setIcon(0, icon2)
self.treeWidget.header().setVisible(False)
self.treeWidget.header().setDefaultSectionSize(91)
self.content = QtWidgets.QWidget(self.splitter)
self.content.setEnabled(True)
self.content.setStyleSheet("background-color:#f4f9f4;\n"
"")
self.content.setObjectName("content")
self.label2 = QtWidgets.QLabel(self.content)
self.label2.setGeometry(QtCore.QRect(290, 110, 301, 191))
self.label2.setStyleSheet("border-image: url(:/newPrefix/images/welcome.png);")
self.label2.setText("")
self.label2.setObjectName("label2")
self.label1 = QtWidgets.QLabel(self.content)
self.label1.setGeometry(QtCore.QRect(330, 310, 221, 31))
self.label1.setStyleSheet("font: 16pt \"隶书\";\n"
"color:#6ba083;")
self.label1.setObjectName("label1")
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
self.treeWidget.itemClicked['QTreeWidgetItem*','int'].connect(MainWindow.test)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "人事管理系统"))
self.treeWidget.headerItem().setText(0, _translate("MainWindow", "人事管理系统"))
__sortingEnabled = self.treeWidget.isSortingEnabled()
self.treeWidget.setSortingEnabled(False)
self.treeWidget.topLevelItem(0).setText(0, _translate("MainWindow", "员工管理"))
self.treeWidget.topLevelItem(0).child(0).setText(0, _translate("MainWindow", "添加员工信息"))
self.treeWidget.topLevelItem(0).child(1).setText(0, _translate("MainWindow", "修改员工信息"))
self.treeWidget.topLevelItem(0).child(2).setText(0, _translate("MainWindow", "删除员工信息"))
self.treeWidget.topLevelItem(0).child(3).setText(0, _translate("MainWindow", "查询员工信息"))
self.treeWidget.topLevelItem(0).child(4).setText(0, _translate("MainWindow", "管理权限控制"))
self.treeWidget.topLevelItem(1).setText(0, _translate("MainWindow", "部门管理"))
self.treeWidget.topLevelItem(1).child(0).setText(0, _translate("MainWindow", "添加部门信息"))
self.treeWidget.topLevelItem(1).child(1).setText(0, _translate("MainWindow", "修改部门信息"))
self.treeWidget.topLevelItem(1).child(2).setText(0, _translate("MainWindow", "删除部门信息"))
self.treeWidget.topLevelItem(1).child(3).setText(0, _translate("MainWindow", "查询部门信息"))
self.treeWidget.topLevelItem(1).child(4).setText(0, _translate("MainWindow", "职位信息管理"))
self.treeWidget.topLevelItem(2).setText(0, _translate("MainWindow", "薪资管理"))
self.treeWidget.topLevelItem(2).child(0).setText(0, _translate("MainWindow", "薪资历史查询"))
self.treeWidget.topLevelItem(2).child(1).setText(0, _translate("MainWindow", "薪资分配管理"))
self.treeWidget.topLevelItem(3).setText(0, _translate("MainWindow", "人事管理"))
self.treeWidget.topLevelItem(3).child(0).setText(0, _translate("MainWindow", "调动历史查询"))
self.treeWidget.topLevelItem(3).child(1).setText(0, _translate("MainWindow", "人员调动"))
self.treeWidget.topLevelItem(4).setText(0, _translate("MainWindow", "考核管理"))
self.treeWidget.topLevelItem(4).child(0).setText(0, _translate("MainWindow", "人员考核"))
self.treeWidget.topLevelItem(4).child(1).setText(0, _translate("MainWindow", "考核历史查询"))
self.treeWidget.setSortingEnabled(__sortingEnabled)
self.label1.setText(_translate("MainWindow", "欢迎使用人事管理系统"))
import img_rc