-
Notifications
You must be signed in to change notification settings - Fork 4
/
home.py
268 lines (261 loc) · 12.5 KB
/
home.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'home.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# 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
class Ui_home(object):
def setupUi(self, home):
home.setObjectName("home")
home.resize(490, 650)
self.groupBox = QtWidgets.QGroupBox(home)
self.groupBox.setGeometry(QtCore.QRect(10, 10, 471, 161))
font = QtGui.QFont()
font.setFamily("微软雅黑")
font.setPointSize(14)
font.setBold(True)
font.setWeight(75)
self.groupBox.setFont(font)
self.groupBox.setObjectName("groupBox")
self.new_material_pushButton = QtWidgets.QPushButton(self.groupBox)
self.new_material_pushButton.setGeometry(QtCore.QRect(30, 40, 111, 41))
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(0, 170, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(0, 170, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
self.new_material_pushButton.setPalette(palette)
font = QtGui.QFont()
font.setFamily("微软雅黑")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.new_material_pushButton.setFont(font)
self.new_material_pushButton.setObjectName("new_material_pushButton")
self.in_material_pushButton = QtWidgets.QPushButton(self.groupBox)
self.in_material_pushButton.setGeometry(QtCore.QRect(330, 40, 111, 41))
font = QtGui.QFont()
font.setFamily("微软雅黑")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.in_material_pushButton.setFont(font)
self.in_material_pushButton.setObjectName("in_material_pushButton")
self.lots_pushButton = QtWidgets.QPushButton(self.groupBox)
self.lots_pushButton.setGeometry(QtCore.QRect(330, 100, 111, 41))
font = QtGui.QFont()
font.setFamily("微软雅黑")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.lots_pushButton.setFont(font)
self.lots_pushButton.setObjectName("lots_pushButton")
self.lots_new_material_pushButton = QtWidgets.QPushButton(self.groupBox)
self.lots_new_material_pushButton.setGeometry(QtCore.QRect(30, 100, 111, 41))
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(0, 170, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(0, 170, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
self.lots_new_material_pushButton.setPalette(palette)
font = QtGui.QFont()
font.setFamily("微软雅黑")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.lots_new_material_pushButton.setFont(font)
self.lots_new_material_pushButton.setObjectName("lots_new_material_pushButton")
self.groupBox_2 = QtWidgets.QGroupBox(home)
self.groupBox_2.setGeometry(QtCore.QRect(10, 300, 471, 101))
font = QtGui.QFont()
font.setFamily("微软雅黑")
font.setPointSize(14)
font.setBold(True)
font.setWeight(75)
self.groupBox_2.setFont(font)
self.groupBox_2.setObjectName("groupBox_2")
self.material_info_btn = QtWidgets.QPushButton(self.groupBox_2)
self.material_info_btn.setGeometry(QtCore.QRect(30, 40, 111, 41))
font = QtGui.QFont()
font.setFamily("微软雅黑")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.material_info_btn.setFont(font)
self.material_info_btn.setObjectName("material_info_btn")
self.in_info_btn = QtWidgets.QPushButton(self.groupBox_2)
self.in_info_btn.setGeometry(QtCore.QRect(180, 40, 111, 41))
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(0, 170, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(0, 170, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
self.in_info_btn.setPalette(palette)
font = QtGui.QFont()
font.setFamily("微软雅黑")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.in_info_btn.setFont(font)
self.in_info_btn.setObjectName("in_info_btn")
self.out_info_btn = QtWidgets.QPushButton(self.groupBox_2)
self.out_info_btn.setGeometry(QtCore.QRect(330, 40, 111, 41))
font = QtGui.QFont()
font.setFamily("微软雅黑")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.out_info_btn.setFont(font)
self.out_info_btn.setObjectName("out_info_btn")
self.groupBox_3 = QtWidgets.QGroupBox(home)
self.groupBox_3.setGeometry(QtCore.QRect(10, 420, 471, 101))
font = QtGui.QFont()
font.setFamily("微软雅黑")
font.setPointSize(14)
font.setBold(True)
font.setWeight(75)
self.groupBox_3.setFont(font)
self.groupBox_3.setObjectName("groupBox_3")
self.clear_material_btn = QtWidgets.QPushButton(self.groupBox_3)
self.clear_material_btn.setGeometry(QtCore.QRect(30, 40, 111, 41))
font = QtGui.QFont()
font.setFamily("微软雅黑")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.clear_material_btn.setFont(font)
self.clear_material_btn.setObjectName("clear_material_btn")
self.clear_in_info_btn = QtWidgets.QPushButton(self.groupBox_3)
self.clear_in_info_btn.setGeometry(QtCore.QRect(180, 40, 111, 41))
font = QtGui.QFont()
font.setFamily("微软雅黑")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.clear_in_info_btn.setFont(font)
self.clear_in_info_btn.setObjectName("clear_in_info_btn")
self.clear_out_info_btn = QtWidgets.QPushButton(self.groupBox_3)
self.clear_out_info_btn.setGeometry(QtCore.QRect(330, 40, 111, 41))
font = QtGui.QFont()
font.setFamily("微软雅黑")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.clear_out_info_btn.setFont(font)
self.clear_out_info_btn.setObjectName("clear_out_info_btn")
self.groupBox_4 = QtWidgets.QGroupBox(home)
self.groupBox_4.setGeometry(QtCore.QRect(10, 540, 471, 101))
font = QtGui.QFont()
font.setFamily("微软雅黑")
font.setPointSize(14)
font.setBold(True)
font.setWeight(75)
self.groupBox_4.setFont(font)
self.groupBox_4.setObjectName("groupBox_4")
self.import_material_btn = QtWidgets.QPushButton(self.groupBox_4)
self.import_material_btn.setGeometry(QtCore.QRect(30, 40, 111, 41))
font = QtGui.QFont()
font.setFamily("微软雅黑")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.import_material_btn.setFont(font)
self.import_material_btn.setObjectName("import_material_btn")
self.import_in_info_btn = QtWidgets.QPushButton(self.groupBox_4)
self.import_in_info_btn.setGeometry(QtCore.QRect(180, 40, 111, 41))
font = QtGui.QFont()
font.setFamily("微软雅黑")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.import_in_info_btn.setFont(font)
self.import_in_info_btn.setObjectName("import_in_info_btn")
self.import_out_info_btn = QtWidgets.QPushButton(self.groupBox_4)
self.import_out_info_btn.setGeometry(QtCore.QRect(330, 40, 111, 41))
font = QtGui.QFont()
font.setFamily("微软雅黑")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.import_out_info_btn.setFont(font)
self.import_out_info_btn.setObjectName("import_out_info_btn")
self.groupBox_5 = QtWidgets.QGroupBox(home)
self.groupBox_5.setGeometry(QtCore.QRect(10, 180, 471, 101))
font = QtGui.QFont()
font.setFamily("微软雅黑")
font.setPointSize(14)
font.setBold(True)
font.setWeight(75)
self.groupBox_5.setFont(font)
self.groupBox_5.setObjectName("groupBox_5")
self.total_data_btn = QtWidgets.QPushButton(self.groupBox_5)
self.total_data_btn.setGeometry(QtCore.QRect(30, 40, 111, 41))
font = QtGui.QFont()
font.setFamily("微软雅黑")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.total_data_btn.setFont(font)
self.total_data_btn.setObjectName("total_data_btn")
self.shoufacun_btn = QtWidgets.QPushButton(self.groupBox_5)
self.shoufacun_btn.setGeometry(QtCore.QRect(180, 40, 111, 41))
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(0, 170, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(0, 170, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
self.shoufacun_btn.setPalette(palette)
font = QtGui.QFont()
font.setFamily("微软雅黑")
font.setPointSize(10)
font.setBold(True)
font.setWeight(75)
self.shoufacun_btn.setFont(font)
self.shoufacun_btn.setObjectName("shoufacun_btn")
self.retranslateUi(home)
QtCore.QMetaObject.connectSlotsByName(home)
def retranslateUi(self, home):
_translate = QtCore.QCoreApplication.translate
home.setWindowTitle(_translate("home", "库房存货管理系统V2.6"))
self.groupBox.setTitle(_translate("home", "存货操作"))
self.new_material_pushButton.setText(_translate("home", "单件新增"))
self.in_material_pushButton.setText(_translate("home", "入库/出库"))
self.lots_pushButton.setText(_translate("home", "批量入/出库"))
self.lots_new_material_pushButton.setText(_translate("home", "批量新增"))
self.groupBox_2.setTitle(_translate("home", "数据查询"))
self.material_info_btn.setText(_translate("home", "存货信息"))
self.in_info_btn.setText(_translate("home", "入库信息"))
self.out_info_btn.setText(_translate("home", "出库信息"))
self.groupBox_3.setTitle(_translate("home", "数据删除"))
self.clear_material_btn.setText(_translate("home", "清空存货数据"))
self.clear_in_info_btn.setText(_translate("home", "清空入库数据"))
self.clear_out_info_btn.setText(_translate("home", "清空出库数据"))
self.groupBox_4.setTitle(_translate("home", "数据导入"))
self.import_material_btn.setText(_translate("home", "导入存货数据"))
self.import_in_info_btn.setText(_translate("home", "导入入库数据"))
self.import_out_info_btn.setText(_translate("home", "导入出库数据"))
self.groupBox_5.setTitle(_translate("home", "数据统计"))
self.total_data_btn.setText(_translate("home", "汇总统计"))
self.shoufacun_btn.setText(_translate("home", "收发存表"))