class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1030, 600) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.gridLayout = QtWidgets.QGridLayout(self.centralwidget) self.gridLayout.setObjectName("gridLayout") self.tabWidget = QtWidgets.QTabWidget(self.centralwidget) self.tabWidget.setObjectName("tabWidget") self.tab = QtWidgets.QWidget() self.tab.setObjectName("tab") self.gridLayout_2 = QtWidgets.QGridLayout(self.tab) self.gridLayout_2.setObjectName("gridLayout_2") self.label_21 = QtWidgets.QLabel(self.tab) self.label_21.setAlignment(QtCore.Qt.AlignCenter) self.label_21.setObjectName("label_21") self.gridLayout_2.addWidget(self.label_21, 9, 0, 1, 1) self.checkBox_conclusion = QtWidgets.QCheckBox(self.tab) self.checkBox_conclusion.setChecked(True) self.checkBox_conclusion.setObjectName("checkBox_conclusion") self.gridLayout_2.addWidget(self.checkBox_conclusion, 9, 10, 1, 1) self.pushButton_print = QtWidgets.QPushButton(self.tab) self.pushButton_print.setObjectName("pushButton_print") self.gridLayout_2.addWidget(self.pushButton_print, 9, 11, 1, 1) self.label_4 = QtWidgets.QLabel(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth()) self.label_4.setSizePolicy(sizePolicy) self.label_4.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) self.label_4.setObjectName("label_4") self.gridLayout_2.addWidget(self.label_4, 2, 0, 1, 1) self.comboBox_result = QtWidgets.QComboBox(self.tab) self.comboBox_result.setEditable(True) self.comboBox_result.setObjectName("comboBox_result") self.gridLayout_2.addWidget(self.comboBox_result, 9, 1, 1, 9) self.label = QtWidgets.QLabel(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) self.label_2 = QtWidgets.QLabel(self.tab) self.label_2.setObjectName("label_2") self.gridLayout_2.addWidget(self.label_2, 5, 0, 1, 1) self.label_producer_text = QtWidgets.QLabel(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_producer_text.sizePolicy().hasHeightForWidth()) self.label_producer_text.setSizePolicy(sizePolicy) self.label_producer_text.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_producer_text.setObjectName("label_producer_text") self.gridLayout_2.addWidget(self.label_producer_text, 3, 4, 1, 1) self.label_13 = QtWidgets.QLabel(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_13.sizePolicy().hasHeightForWidth()) self.label_13.setSizePolicy(sizePolicy) self.label_13.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) self.label_13.setObjectName("label_13") self.gridLayout_2.addWidget(self.label_13, 1, 0, 1, 1) self.label_supplyer_text = QtWidgets.QLabel(self.tab) self.label_supplyer_text.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) self.label_supplyer_text.setObjectName("label_supplyer_text") self.gridLayout_2.addWidget(self.label_supplyer_text, 3, 0, 1, 1) self.label_23 = QtWidgets.QLabel(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_23.sizePolicy().hasHeightForWidth()) self.label_23.setSizePolicy(sizePolicy) self.label_23.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_23.setObjectName("label_23") self.gridLayout_2.addWidget(self.label_23, 7, 3, 1, 1) self.pushButton_save = QtWidgets.QPushButton(self.tab) self.pushButton_save.setObjectName("pushButton_save") self.gridLayout_2.addWidget(self.pushButton_save, 7, 10, 1, 1) self.pushButton_accept = QtWidgets.QPushButton(self.tab) self.pushButton_accept.setObjectName("pushButton_accept") self.gridLayout_2.addWidget(self.pushButton_accept, 7, 11, 1, 1) self.label_6 = QtWidgets.QLabel(self.tab) self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_6.setObjectName("label_6") self.gridLayout_2.addWidget(self.label_6, 1, 4, 1, 1) self.label_sampleamount = QtWidgets.QLabel(self.tab) self.label_sampleamount.setText("") self.label_sampleamount.setObjectName("label_sampleamount") self.gridLayout_2.addWidget(self.label_sampleamount, 1, 6, 1, 1) self.label_sepc_text = QtWidgets.QLabel(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_sepc_text.sizePolicy().hasHeightForWidth()) self.label_sepc_text.setSizePolicy(sizePolicy) self.label_sepc_text.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_sepc_text.setObjectName("label_sepc_text") self.gridLayout_2.addWidget(self.label_sepc_text, 0, 4, 1, 1) self.label_17 = QtWidgets.QLabel(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_17.sizePolicy().hasHeightForWidth()) self.label_17.setSizePolicy(sizePolicy) self.label_17.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_17.setObjectName("label_17") self.gridLayout_2.addWidget(self.label_17, 1, 10, 1, 1) self.label_package = QtWidgets.QLabel(self.tab) self.label_package.setText("") self.label_package.setObjectName("label_package") self.gridLayout_2.addWidget(self.label_package, 0, 11, 1, 1) self.label_24 = QtWidgets.QLabel(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_24.sizePolicy().hasHeightForWidth()) self.label_24.setSizePolicy(sizePolicy) self.label_24.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_24.setObjectName("label_24") self.gridLayout_2.addWidget(self.label_24, 7, 6, 1, 1) self.pushButton_warrantor = SignButton(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_warrantor.sizePolicy().hasHeightForWidth()) self.pushButton_warrantor.setSizePolicy(sizePolicy) self.pushButton_warrantor.setText("") self.pushButton_warrantor.setObjectName("pushButton_warrantor") self.gridLayout_2.addWidget(self.pushButton_warrantor, 7, 8, 1, 1) self.label_7 = QtWidgets.QLabel(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_7.sizePolicy().hasHeightForWidth()) self.label_7.setSizePolicy(sizePolicy) self.label_7.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_7.setObjectName("label_7") self.gridLayout_2.addWidget(self.label_7, 0, 10, 1, 1) self.pushButton_add_oripaper = QtWidgets.QPushButton(self.tab) self.pushButton_add_oripaper.setObjectName("pushButton_add_oripaper") self.gridLayout_2.addWidget(self.pushButton_add_oripaper, 7, 12, 1, 1) self.pushButton_checker = SignButton(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_checker.sizePolicy().hasHeightForWidth()) self.pushButton_checker.setSizePolicy(sizePolicy) self.pushButton_checker.setText("") self.pushButton_checker.setObjectName("pushButton_checker") self.gridLayout_2.addWidget(self.pushButton_checker, 7, 4, 1, 1) self.label_22 = QtWidgets.QLabel(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_22.sizePolicy().hasHeightForWidth()) self.label_22.setSizePolicy(sizePolicy) self.label_22.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_22.setObjectName("label_22") self.gridLayout_2.addWidget(self.label_22, 7, 0, 1, 1) self.pushButton_reporter = SignButton(self.tab) self.pushButton_reporter.setText("") self.pushButton_reporter.setObjectName("pushButton_reporter") self.gridLayout_2.addWidget(self.pushButton_reporter, 7, 1, 1, 1) self.treeWidget_checkitem = QtWidgets.QTreeWidget(self.tab) self.treeWidget_checkitem.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) self.treeWidget_checkitem.setObjectName("treeWidget_checkitem") self.gridLayout_2.addWidget(self.treeWidget_checkitem, 6, 0, 1, 13) self.label_sampledate = QtWidgets.QLabel(self.tab) self.label_sampledate.setText("") self.label_sampledate.setObjectName("label_sampledate") self.gridLayout_2.addWidget(self.label_sampledate, 1, 11, 1, 1) self.label_16 = QtWidgets.QLabel(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_16.sizePolicy().hasHeightForWidth()) self.label_16.setSizePolicy(sizePolicy) self.label_16.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_16.setObjectName("label_16") self.gridLayout_2.addWidget(self.label_16, 5, 10, 1, 1) self.label_12 = QtWidgets.QLabel(self.tab) self.label_12.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_12.setObjectName("label_12") self.gridLayout_2.addWidget(self.label_12, 5, 4, 1, 1) self.lineEdit_paperno = QtWidgets.QLineEdit(self.tab) self.lineEdit_paperno.setObjectName("lineEdit_paperno") self.gridLayout_2.addWidget(self.lineEdit_paperno, 5, 1, 1, 3) self.comboBox_checkgist = QtWidgets.QComboBox(self.tab) self.comboBox_checkgist.setEditable(True) self.comboBox_checkgist.setObjectName("comboBox_checkgist") self.gridLayout_2.addWidget(self.comboBox_checkgist, 5, 11, 1, 2) self.label_producer = QtWidgets.QLabel(self.tab) self.label_producer.setText("") self.label_producer.setObjectName("label_producer") self.gridLayout_2.addWidget(self.label_producer, 3, 6, 1, 2) self.label_supplyer = QtWidgets.QLabel(self.tab) self.label_supplyer.setText("") self.label_supplyer.setObjectName("label_supplyer") self.gridLayout_2.addWidget(self.label_supplyer, 3, 1, 1, 3) self.label_mbatchno_text = QtWidgets.QLabel(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_mbatchno_text.sizePolicy().hasHeightForWidth()) self.label_mbatchno_text.setSizePolicy(sizePolicy) self.label_mbatchno_text.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_mbatchno_text.setObjectName("label_mbatchno_text") self.gridLayout_2.addWidget(self.label_mbatchno_text, 3, 10, 1, 1) self.label_mbatchno = QtWidgets.QLabel(self.tab) self.label_mbatchno.setText("") self.label_mbatchno.setObjectName("label_mbatchno") self.gridLayout_2.addWidget(self.label_mbatchno, 3, 11, 1, 1) self.label_batchno = QtWidgets.QLabel(self.tab) self.label_batchno.setText("") self.label_batchno.setObjectName("label_batchno") self.gridLayout_2.addWidget(self.label_batchno, 2, 11, 1, 1) self.label_batchno_text = QtWidgets.QLabel(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_batchno_text.sizePolicy().hasHeightForWidth()) self.label_batchno_text.setSizePolicy(sizePolicy) self.label_batchno_text.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_batchno_text.setObjectName("label_batchno_text") self.gridLayout_2.addWidget(self.label_batchno_text, 2, 10, 1, 1) self.label_9 = QtWidgets.QLabel(self.tab) self.label_9.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_9.setObjectName("label_9") self.gridLayout_2.addWidget(self.label_9, 2, 4, 1, 1) self.label_checkamount = QtWidgets.QLabel(self.tab) self.label_checkamount.setText("") self.label_checkamount.setObjectName("label_checkamount") self.gridLayout_2.addWidget(self.label_checkamount, 2, 6, 1, 1) self.dateEdit_reportdate = QtWidgets.QDateEdit(self.tab) self.dateEdit_reportdate.setCalendarPopup(True) self.dateEdit_reportdate.setObjectName("dateEdit_reportdate") self.gridLayout_2.addWidget(self.dateEdit_reportdate, 5, 6, 1, 1) self.label_chkitem = QtWidgets.QLabel(self.tab) self.label_chkitem.setText("") self.label_chkitem.setObjectName("label_chkitem") self.gridLayout_2.addWidget(self.label_chkitem, 0, 1, 1, 3) self.label_applydate = QtWidgets.QLabel(self.tab) self.label_applydate.setText("") self.label_applydate.setObjectName("label_applydate") self.gridLayout_2.addWidget(self.label_applydate, 1, 1, 1, 3) self.label_samplesource = QtWidgets.QLabel(self.tab) self.label_samplesource.setText("") self.label_samplesource.setObjectName("label_samplesource") self.gridLayout_2.addWidget(self.label_samplesource, 2, 1, 1, 3) self.label_spec = QtWidgets.QLabel(self.tab) self.label_spec.setText("") self.label_spec.setObjectName("label_spec") self.gridLayout_2.addWidget(self.label_spec, 0, 6, 1, 2) self.tabWidget.addTab(self.tab, "") self.tab_2 = QtWidgets.QWidget() self.tab_2.setObjectName("tab_2") self.gridLayout_3 = QtWidgets.QGridLayout(self.tab_2) self.gridLayout_3.setObjectName("gridLayout_3") self.scrollArea = QtWidgets.QScrollArea(self.tab_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(3) sizePolicy.setHeightForWidth(self.scrollArea.sizePolicy().hasHeightForWidth()) self.scrollArea.setSizePolicy(sizePolicy) self.scrollArea.setWidgetResizable(True) self.scrollArea.setObjectName("scrollArea") self.scrollAreaWidgetContents = QtWidgets.QWidget() self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 970, 295)) self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") self.gridLayout_4 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents) self.gridLayout_4.setObjectName("gridLayout_4") self.label_image = QtWidgets.QLabel(self.scrollAreaWidgetContents) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_image.sizePolicy().hasHeightForWidth()) self.label_image.setSizePolicy(sizePolicy) self.label_image.setText("") self.label_image.setObjectName("label_image") self.gridLayout_4.addWidget(self.label_image, 2, 0, 1, 5) self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.gridLayout_3.addWidget(self.scrollArea, 2, 0, 1, 1) self.treeWidget_imagenamelist = QtWidgets.QTreeWidget(self.tab_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(1) sizePolicy.setHeightForWidth(self.treeWidget_imagenamelist.sizePolicy().hasHeightForWidth()) self.treeWidget_imagenamelist.setSizePolicy(sizePolicy) self.treeWidget_imagenamelist.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) self.treeWidget_imagenamelist.setObjectName("treeWidget_imagenamelist") self.gridLayout_3.addWidget(self.treeWidget_imagenamelist, 0, 0, 1, 1) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label_10 = QtWidgets.QLabel(self.tab_2) self.label_10.setObjectName("label_10") self.horizontalLayout.addWidget(self.label_10) self.label_zoom = QtWidgets.QLabel(self.tab_2) self.label_zoom.setText("") self.label_zoom.setObjectName("label_zoom") self.horizontalLayout.addWidget(self.label_zoom) self.horizontalSlider_zoom = QtWidgets.QSlider(self.tab_2) self.horizontalSlider_zoom.setMinimum(0) self.horizontalSlider_zoom.setMaximum(100) self.horizontalSlider_zoom.setSliderPosition(0) self.horizontalSlider_zoom.setOrientation(QtCore.Qt.Horizontal) self.horizontalSlider_zoom.setInvertedAppearance(False) self.horizontalSlider_zoom.setInvertedControls(False) self.horizontalSlider_zoom.setTickPosition(QtWidgets.QSlider.NoTicks) self.horizontalSlider_zoom.setObjectName("horizontalSlider_zoom") self.horizontalLayout.addWidget(self.horizontalSlider_zoom) self.comboBox_jumpto = QtWidgets.QComboBox(self.tab_2) self.comboBox_jumpto.setObjectName("comboBox_jumpto") self.horizontalLayout.addWidget(self.comboBox_jumpto) self.pushButton_prepage = QtWidgets.QPushButton(self.tab_2) self.pushButton_prepage.setObjectName("pushButton_prepage") self.horizontalLayout.addWidget(self.pushButton_prepage) self.pushButton_nextpage = QtWidgets.QPushButton(self.tab_2) self.pushButton_nextpage.setObjectName("pushButton_nextpage") self.horizontalLayout.addWidget(self.pushButton_nextpage) self.gridLayout_3.addLayout(self.horizontalLayout, 1, 0, 1, 1) self.tabWidget.addTab(self.tab_2, "") self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1030, 30)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "检验报告书")) self.label_21.setText(_translate("MainWindow", "结论:")) self.checkBox_conclusion.setText(_translate("MainWindow", "符合规定")) self.pushButton_print.setText(_translate("MainWindow", "打印")) self.label_4.setText(_translate("MainWindow", "检品来源;")) self.label.setText(_translate("MainWindow", "检品名称:")) self.label_2.setText(_translate("MainWindow", "报告书编号:")) self.label_producer_text.setText(_translate("MainWindow", "生产厂家:")) self.label_13.setText(_translate("MainWindow", "请验日期:")) self.label_supplyer_text.setText(_translate("MainWindow", "供应商:")) self.label_23.setText(_translate("MainWindow", "复核人:")) self.pushButton_save.setText(_translate("MainWindow", "保存")) self.pushButton_accept.setText(_translate("MainWindow", "结束报告")) self.label_6.setText(_translate("MainWindow", "样品数量:")) self.label_sepc_text.setText(_translate("MainWindow", "规 格:")) self.label_17.setText(_translate("MainWindow", "取样日期:")) self.label_24.setText(_translate("MainWindow", "批准人:")) self.label_7.setText(_translate("MainWindow", "包装规格:")) self.pushButton_add_oripaper.setText(_translate("MainWindow", "新建原始检验记录")) self.label_22.setText(_translate("MainWindow", "编制人:")) self.treeWidget_checkitem.headerItem().setText(0, _translate("MainWindow", "id")) self.treeWidget_checkitem.headerItem().setText(1, _translate("MainWindow", "类别")) self.treeWidget_checkitem.headerItem().setText(2, _translate("MainWindow", "项目名称")) self.treeWidget_checkitem.headerItem().setText(3, _translate("MainWindow", "开始时间")) self.treeWidget_checkitem.headerItem().setText(4, _translate("MainWindow", "结束时间")) self.treeWidget_checkitem.headerItem().setText(5, _translate("MainWindow", "标准规定")) self.treeWidget_checkitem.headerItem().setText(6, _translate("MainWindow", "检验结果")) self.treeWidget_checkitem.headerItem().setText(7, _translate("MainWindow", "项目结论")) self.treeWidget_checkitem.headerItem().setText(8, _translate("MainWindow", "检验人")) self.label_16.setText(_translate("MainWindow", "检验依据:")) self.label_12.setText(_translate("MainWindow", "报告日期:")) self.label_mbatchno_text.setText(_translate("MainWindow", "厂家批号:")) self.label_batchno_text.setText(_translate("MainWindow", "进厂批号:")) self.label_9.setText(_translate("MainWindow", "检品数量:")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "检验报告书")) self.treeWidget_imagenamelist.headerItem().setText(0, _translate("MainWindow", "id")) self.treeWidget_imagenamelist.headerItem().setText(1, _translate("MainWindow", "imgid")) self.treeWidget_imagenamelist.headerItem().setText(2, _translate("MainWindow", "标题")) self.treeWidget_imagenamelist.headerItem().setText(3, _translate("MainWindow", "建立人")) self.treeWidget_imagenamelist.headerItem().setText(4, _translate("MainWindow", "建立日期")) self.label_10.setText(_translate("MainWindow", "当前缩放比例:")) self.pushButton_prepage.setText(_translate("MainWindow", "上一页")) self.pushButton_nextpage.setText(_translate("MainWindow", "下一页")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "图片/图谱"))
class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(933, 785) self.gridLayout = QtWidgets.QGridLayout(Dialog) self.gridLayout.setObjectName("gridLayout") self.label_eqno = QtWidgets.QLabel(Dialog) self.label_eqno.setText("") self.label_eqno.setObjectName("label_eqno") self.gridLayout.addWidget(self.label_eqno, 0, 1, 1, 1) self.lineEdit_factormen = QtWidgets.QLineEdit(Dialog) self.lineEdit_factormen.setObjectName("lineEdit_factormen") self.gridLayout.addWidget(self.lineEdit_factormen, 2, 5, 1, 1) self.label_6 = QtWidgets.QLabel(Dialog) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 5, 0, 1, 1) self.label = QtWidgets.QLabel(Dialog) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.label_9 = QtWidgets.QLabel(Dialog) self.label_9.setObjectName("label_9") self.gridLayout.addWidget(self.label_9, 2, 4, 1, 1) self.label_3 = QtWidgets.QLabel(Dialog) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1) self.label_5 = QtWidgets.QLabel(Dialog) self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 3, 0, 1, 1) self.label_4 = QtWidgets.QLabel(Dialog) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 4, 0, 1, 1) self.label_2 = QtWidgets.QLabel(Dialog) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 0, 2, 1, 1) self.lineEdit_place = QtWidgets.QLineEdit(Dialog) self.lineEdit_place.setObjectName("lineEdit_place") self.gridLayout.addWidget(self.lineEdit_place, 2, 1, 1, 1) self.label_eqname = QtWidgets.QLabel(Dialog) self.label_eqname.setText("") self.label_eqname.setObjectName("label_eqname") self.gridLayout.addWidget(self.label_eqname, 0, 3, 1, 1) self.label_8 = QtWidgets.QLabel(Dialog) self.label_8.setObjectName("label_8") self.gridLayout.addWidget(self.label_8, 2, 2, 1, 1) self.dateTimeEdit_occurdate = QtWidgets.QDateTimeEdit(Dialog) self.dateTimeEdit_occurdate.setCalendarPopup(True) self.dateTimeEdit_occurdate.setObjectName("dateTimeEdit_occurdate") self.gridLayout.addWidget(self.dateTimeEdit_occurdate, 2, 3, 1, 1) self.label_13 = QtWidgets.QLabel(Dialog) self.label_13.setObjectName("label_13") self.gridLayout.addWidget(self.label_13, 7, 0, 1, 1) self.label_11 = QtWidgets.QLabel(Dialog) self.label_11.setObjectName("label_11") self.gridLayout.addWidget(self.label_11, 3, 2, 1, 1) self.label_12 = QtWidgets.QLabel(Dialog) self.label_12.setObjectName("label_12") self.gridLayout.addWidget(self.label_12, 6, 0, 1, 1) self.lineEdit_kind = QtWidgets.QLineEdit(Dialog) self.lineEdit_kind.setObjectName("lineEdit_kind") self.gridLayout.addWidget(self.lineEdit_kind, 3, 1, 1, 1) self.plainTextEdit_brief = QtWidgets.QPlainTextEdit(Dialog) self.plainTextEdit_brief.setObjectName("plainTextEdit_brief") self.gridLayout.addWidget(self.plainTextEdit_brief, 4, 1, 1, 5) self.plainTextEdit_reason = QtWidgets.QPlainTextEdit(Dialog) self.plainTextEdit_reason.setObjectName("plainTextEdit_reason") self.gridLayout.addWidget(self.plainTextEdit_reason, 5, 1, 1, 5) self.label_14 = QtWidgets.QLabel(Dialog) self.label_14.setObjectName("label_14") self.gridLayout.addWidget(self.label_14, 8, 0, 1, 1) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem) self.label_7 = QtWidgets.QLabel(Dialog) self.label_7.setObjectName("label_7") self.horizontalLayout_2.addWidget(self.label_7) self.pushButton_filler = SignButton(Dialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.pushButton_filler.sizePolicy().hasHeightForWidth()) self.pushButton_filler.setSizePolicy(sizePolicy) self.pushButton_filler.setText("") self.pushButton_filler.setObjectName("pushButton_filler") self.horizontalLayout_2.addWidget(self.pushButton_filler) self.label_10 = QtWidgets.QLabel(Dialog) self.label_10.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_10.setObjectName("label_10") self.horizontalLayout_2.addWidget(self.label_10) self.dateEdit_filldate = QtWidgets.QDateEdit(Dialog) self.dateEdit_filldate.setCalendarPopup(True) self.dateEdit_filldate.setObjectName("dateEdit_filldate") self.horizontalLayout_2.addWidget(self.dateEdit_filldate) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem1) self.gridLayout.addLayout(self.horizontalLayout_2, 9, 0, 1, 6) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem2) self.pushButton_accept = QtWidgets.QPushButton(Dialog) self.pushButton_accept.setObjectName("pushButton_accept") self.horizontalLayout.addWidget(self.pushButton_accept) self.pushButton_cancel = QtWidgets.QPushButton(Dialog) self.pushButton_cancel.setObjectName("pushButton_cancel") self.horizontalLayout.addWidget(self.pushButton_cancel) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem3) self.gridLayout.addLayout(self.horizontalLayout, 12, 0, 1, 6) self.plainTextEdit_treatadvice = QtWidgets.QPlainTextEdit(Dialog) self.plainTextEdit_treatadvice.setObjectName( "plainTextEdit_treatadvice") self.gridLayout.addWidget(self.plainTextEdit_treatadvice, 7, 1, 1, 5) self.plainTextEdit_loss = QtWidgets.QPlainTextEdit(Dialog) self.plainTextEdit_loss.setObjectName("plainTextEdit_loss") self.gridLayout.addWidget(self.plainTextEdit_loss, 6, 1, 1, 5) self.plainTextEdit_chargeradvice = QtWidgets.QPlainTextEdit(Dialog) self.plainTextEdit_chargeradvice.setObjectName( "plainTextEdit_chargeradvice") self.gridLayout.addWidget(self.plainTextEdit_chargeradvice, 8, 1, 1, 5) self.lineEdit_injury = QtWidgets.QLineEdit(Dialog) self.lineEdit_injury.setObjectName("lineEdit_injury") self.gridLayout.addWidget(self.lineEdit_injury, 3, 3, 1, 3) self.retranslateUi(Dialog) QtCore.QMetaObject.connectSlotsByName(Dialog) Dialog.setTabOrder(self.lineEdit_place, self.dateTimeEdit_occurdate) Dialog.setTabOrder(self.dateTimeEdit_occurdate, self.lineEdit_factormen) Dialog.setTabOrder(self.lineEdit_factormen, self.lineEdit_kind) Dialog.setTabOrder(self.lineEdit_kind, self.lineEdit_injury) Dialog.setTabOrder(self.lineEdit_injury, self.plainTextEdit_brief) Dialog.setTabOrder(self.plainTextEdit_brief, self.plainTextEdit_reason) Dialog.setTabOrder(self.plainTextEdit_reason, self.plainTextEdit_loss) Dialog.setTabOrder(self.plainTextEdit_loss, self.plainTextEdit_treatadvice) Dialog.setTabOrder(self.plainTextEdit_treatadvice, self.plainTextEdit_chargeradvice) Dialog.setTabOrder(self.plainTextEdit_chargeradvice, self.pushButton_filler) Dialog.setTabOrder(self.pushButton_filler, self.dateEdit_filldate) Dialog.setTabOrder(self.dateEdit_filldate, self.pushButton_accept) Dialog.setTabOrder(self.pushButton_accept, self.pushButton_cancel) def retranslateUi(self, Dialog): _translate = QtCore.QCoreApplication.translate Dialog.setWindowTitle(_translate("Dialog", "编辑维修记录")) self.label_6.setText(_translate("Dialog", "原因分析:")) self.label.setText(_translate("Dialog", "设备编号:")) self.label_9.setText(_translate("Dialog", "事故责任者:")) self.label_3.setText(_translate("Dialog", "事故地点:")) self.label_5.setText(_translate("Dialog", "事故性质:")) self.label_4.setText(_translate("Dialog", "事故简况:")) self.label_2.setText(_translate("Dialog", "设备名称:")) self.label_8.setText(_translate("Dialog", "发生时间:")) self.dateTimeEdit_occurdate.setDisplayFormat( _translate("Dialog", "yyyy-MM-dd HH:mm")) self.label_13.setText(_translate("Dialog", "处理意见:")) self.label_11.setText(_translate("Dialog", "人员伤亡情况:")) self.label_12.setText(_translate("Dialog", "损失:")) self.label_14.setText(_translate("Dialog", "主管部门意见:")) self.label_7.setText(_translate("Dialog", "记录人:")) self.label_10.setText(_translate("Dialog", "记录日期:")) self.pushButton_accept.setText(_translate("Dialog", "确认")) self.pushButton_cancel.setText(_translate("Dialog", "取消"))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(830, 464) self.groupBox = QtWidgets.QGroupBox(Form) self.groupBox.setGeometry(QtCore.QRect(9, 9, 810, 451)) self.groupBox.setObjectName("groupBox") self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox) self.gridLayout_2.setObjectName("gridLayout_2") self.lineEdit_old_product = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_old_product.setObjectName("lineEdit_old_product") self.gridLayout_2.addWidget(self.lineEdit_old_product, 1, 1, 1, 1) self.lineEdit_new_product = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_new_product.setObjectName("lineEdit_new_product") self.gridLayout_2.addWidget(self.lineEdit_new_product, 2, 1, 1, 1) self.label_2 = QtWidgets.QLabel(self.groupBox) self.label_2.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_2.setObjectName("label_2") self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1) self.label_10 = QtWidgets.QLabel(self.groupBox) self.label_10.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_10.setObjectName("label_10") self.gridLayout_2.addWidget(self.label_10, 6, 0, 1, 1) self.label_3 = QtWidgets.QLabel(self.groupBox) self.label_3.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_3.setObjectName("label_3") self.gridLayout_2.addWidget(self.label_3, 2, 0, 1, 1) self.label_8 = QtWidgets.QLabel(self.groupBox) self.label_8.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_8.setObjectName("label_8") self.gridLayout_2.addWidget(self.label_8, 4, 0, 1, 1) self.lineEdit_postname = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_postname.setObjectName("lineEdit_postname") self.gridLayout_2.addWidget(self.lineEdit_postname, 0, 4, 1, 1) self.label = QtWidgets.QLabel(self.groupBox) self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) self.lineEdit_old_batchno = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_old_batchno.setObjectName("lineEdit_old_batchno") self.gridLayout_2.addWidget(self.lineEdit_old_batchno, 1, 4, 1, 1) self.label_14 = QtWidgets.QLabel(self.groupBox) self.label_14.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_14.setObjectName("label_14") self.gridLayout_2.addWidget(self.label_14, 5, 3, 1, 1) self.label_sec_clean = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(1) sizePolicy.setHeightForWidth( self.label_sec_clean.sizePolicy().hasHeightForWidth()) self.label_sec_clean.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(15) self.label_sec_clean.setFont(font) self.label_sec_clean.setAlignment(QtCore.Qt.AlignBottom | QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft) self.label_sec_clean.setObjectName("label_sec_clean") self.gridLayout_2.addWidget(self.label_sec_clean, 7, 0, 1, 1) self.label_sec_checkdate = QtWidgets.QLabel(self.groupBox) self.label_sec_checkdate.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_sec_checkdate.setObjectName("label_sec_checkdate") self.gridLayout_2.addWidget(self.label_sec_checkdate, 9, 3, 1, 1) self.lineEdit_sec_checkdate = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_sec_checkdate.setObjectName("lineEdit_sec_checkdate") self.gridLayout_2.addWidget(self.lineEdit_sec_checkdate, 9, 4, 1, 1) self.lineEdit_cleandate = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_cleandate.setObjectName("lineEdit_cleandate") self.gridLayout_2.addWidget(self.lineEdit_cleandate, 4, 4, 1, 1) self.label_4 = QtWidgets.QLabel(self.groupBox) self.label_4.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_4.setObjectName("label_4") self.gridLayout_2.addWidget(self.label_4, 0, 3, 1, 1) self.lineEdit_checkdate = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_checkdate.setObjectName("lineEdit_checkdate") self.gridLayout_2.addWidget(self.lineEdit_checkdate, 5, 4, 1, 1) self.label_9 = QtWidgets.QLabel(self.groupBox) self.label_9.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_9.setObjectName("label_9") self.gridLayout_2.addWidget(self.label_9, 5, 0, 1, 1) self.label_sec_checker = QtWidgets.QLabel(self.groupBox) self.label_sec_checker.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_sec_checker.setObjectName("label_sec_checker") self.gridLayout_2.addWidget(self.label_sec_checker, 9, 0, 1, 1) self.pushButton_sec_cleaner = SignButton(self.groupBox) self.pushButton_sec_cleaner.setText("") self.pushButton_sec_cleaner.setObjectName("pushButton_sec_cleaner") self.gridLayout_2.addWidget(self.pushButton_sec_cleaner, 8, 1, 1, 1) self.lineEdit_roomname = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_roomname.setObjectName("lineEdit_roomname") self.gridLayout_2.addWidget(self.lineEdit_roomname, 0, 1, 1, 1) self.label_15 = QtWidgets.QLabel(self.groupBox) self.label_15.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_15.setObjectName("label_15") self.gridLayout_2.addWidget(self.label_15, 4, 3, 1, 1) self.label_sec_cleandate = QtWidgets.QLabel(self.groupBox) self.label_sec_cleandate.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_sec_cleandate.setObjectName("label_sec_cleandate") self.gridLayout_2.addWidget(self.label_sec_cleandate, 8, 3, 1, 1) self.pushButton_cleaner = SignButton(self.groupBox) self.pushButton_cleaner.setText("") self.pushButton_cleaner.setObjectName("pushButton_cleaner") self.gridLayout_2.addWidget(self.pushButton_cleaner, 4, 1, 1, 1) self.label_5 = QtWidgets.QLabel(self.groupBox) self.label_5.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_5.setObjectName("label_5") self.gridLayout_2.addWidget(self.label_5, 1, 3, 1, 1) self.label_6 = QtWidgets.QLabel(self.groupBox) self.label_6.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_6.setObjectName("label_6") self.gridLayout_2.addWidget(self.label_6, 2, 3, 1, 1) self.label_7 = QtWidgets.QLabel(self.groupBox) font = QtGui.QFont() font.setPointSize(22) self.label_7.setFont(font) self.label_7.setAlignment(QtCore.Qt.AlignCenter) self.label_7.setObjectName("label_7") self.gridLayout_2.addWidget(self.label_7, 3, 0, 1, 5) self.label_sec_cleaner = QtWidgets.QLabel(self.groupBox) self.label_sec_cleaner.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_sec_cleaner.setObjectName("label_sec_cleaner") self.gridLayout_2.addWidget(self.label_sec_cleaner, 8, 0, 1, 1) self.pushButton_checker = SignButton(self.groupBox) self.pushButton_checker.setText("") self.pushButton_checker.setObjectName("pushButton_checker") self.gridLayout_2.addWidget(self.pushButton_checker, 5, 1, 1, 1) self.lineEdit_validdate = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_validdate.setObjectName("lineEdit_validdate") self.gridLayout_2.addWidget(self.lineEdit_validdate, 6, 1, 1, 1) self.lineEdit_new_batchno = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_new_batchno.setObjectName("lineEdit_new_batchno") self.gridLayout_2.addWidget(self.lineEdit_new_batchno, 2, 4, 1, 1) self.pushButton_sec_checker = SignButton(self.groupBox) self.pushButton_sec_checker.setText("") self.pushButton_sec_checker.setObjectName("pushButton_sec_checker") self.gridLayout_2.addWidget(self.pushButton_sec_checker, 9, 1, 1, 1) self.lineEdit_sec_cleandate = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_sec_cleandate.setObjectName("lineEdit_sec_cleandate") self.gridLayout_2.addWidget(self.lineEdit_sec_cleandate, 8, 4, 1, 1) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = QtCore.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Form")) self.groupBox.setTitle(_translate("Form", "清场合格证副本")) self.label_2.setText(_translate("Form", "原生产品名:")) self.label_10.setText(_translate("Form", "有效期至:")) self.label_3.setText(_translate("Form", "调换产品名:")) self.label_8.setText(_translate("Form", "清场者:")) self.label.setText(_translate("Form", "房间:")) self.label_14.setText(_translate("Form", "检查日期:")) self.label_sec_clean.setText(_translate("Form", "二次清场")) self.label_sec_checkdate.setText(_translate("Form", "复查日期:")) self.label_4.setText(_translate("Form", "工序:")) self.label_9.setText(_translate("Form", "检查者:")) self.label_sec_checker.setText(_translate("Form", "复查者:")) self.label_15.setText(_translate("Form", "清场日期:")) self.label_sec_cleandate.setText(_translate("Form", "二次清场日期:")) self.label_5.setText(_translate("Form", "批号:")) self.label_6.setText(_translate("Form", "批号:")) self.label_7.setText(_translate("Form", "清场合格证(副本)")) self.label_sec_cleaner.setText(_translate("Form", "二次清场者:"))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(830, 321) self.groupBox = QtWidgets.QGroupBox(Form) self.groupBox.setGeometry(QtCore.QRect(9, 9, 810, 291)) self.groupBox.setObjectName("groupBox") self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox) self.gridLayout_2.setObjectName("gridLayout_2") self.label_15 = QtWidgets.QLabel(self.groupBox) self.label_15.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_15.setObjectName("label_15") self.gridLayout_2.addWidget(self.label_15, 3, 3, 1, 1) self.lineEdit_cleandate = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_cleandate.setObjectName("lineEdit_cleandate") self.gridLayout_2.addWidget(self.lineEdit_cleandate, 3, 4, 1, 1) self.lineEdit_validdate = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_validdate.setObjectName("lineEdit_validdate") self.gridLayout_2.addWidget(self.lineEdit_validdate, 5, 1, 1, 1) self.lineEdit_checkdate = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_checkdate.setObjectName("lineEdit_checkdate") self.gridLayout_2.addWidget(self.lineEdit_checkdate, 4, 4, 1, 1) self.label_8 = QtWidgets.QLabel(self.groupBox) self.label_8.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_8.setObjectName("label_8") self.gridLayout_2.addWidget(self.label_8, 3, 0, 1, 1) self.pushButton_cleaner = SignButton(self.groupBox) self.pushButton_cleaner.setText("") self.pushButton_cleaner.setObjectName("pushButton_cleaner") self.gridLayout_2.addWidget(self.pushButton_cleaner, 3, 1, 1, 1) self.label_9 = QtWidgets.QLabel(self.groupBox) self.label_9.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_9.setObjectName("label_9") self.gridLayout_2.addWidget(self.label_9, 4, 0, 1, 1) self.label_10 = QtWidgets.QLabel(self.groupBox) self.label_10.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_10.setObjectName("label_10") self.gridLayout_2.addWidget(self.label_10, 5, 0, 1, 1) self.label_14 = QtWidgets.QLabel(self.groupBox) self.label_14.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_14.setObjectName("label_14") self.gridLayout_2.addWidget(self.label_14, 4, 3, 1, 1) self.label = QtWidgets.QLabel(self.groupBox) self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) self.lineEdit_postname = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_postname.setObjectName("lineEdit_postname") self.gridLayout_2.addWidget(self.lineEdit_postname, 0, 4, 1, 1) self.label_7 = QtWidgets.QLabel(self.groupBox) font = QtGui.QFont() font.setPointSize(22) self.label_7.setFont(font) self.label_7.setAlignment(QtCore.Qt.AlignCenter) self.label_7.setObjectName("label_7") self.gridLayout_2.addWidget(self.label_7, 2, 0, 1, 5) self.label_3 = QtWidgets.QLabel(self.groupBox) self.label_3.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_3.setObjectName("label_3") self.gridLayout_2.addWidget(self.label_3, 1, 0, 1, 1) self.lineEdit_batchno = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_batchno.setObjectName("lineEdit_batchno") self.gridLayout_2.addWidget(self.lineEdit_batchno, 1, 4, 1, 1) self.label_6 = QtWidgets.QLabel(self.groupBox) self.label_6.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_6.setObjectName("label_6") self.gridLayout_2.addWidget(self.label_6, 1, 3, 1, 1) self.lineEdit_roomname = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_roomname.setObjectName("lineEdit_roomname") self.gridLayout_2.addWidget(self.lineEdit_roomname, 0, 1, 1, 1) self.lineEdit_product = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_product.setObjectName("lineEdit_product") self.gridLayout_2.addWidget(self.lineEdit_product, 1, 1, 1, 1) self.label_4 = QtWidgets.QLabel(self.groupBox) self.label_4.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_4.setObjectName("label_4") self.gridLayout_2.addWidget(self.label_4, 0, 3, 1, 1) self.pushButton_checker = SignButton(self.groupBox) self.pushButton_checker.setText("") self.pushButton_checker.setObjectName("pushButton_checker") self.gridLayout_2.addWidget(self.pushButton_checker, 4, 1, 1, 1) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = QtCore.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Form")) self.groupBox.setTitle(_translate("Form", "清场合格证副本")) self.label_15.setText(_translate("Form", "清场日期:")) self.label_8.setText(_translate("Form", "清场者:")) self.label_9.setText(_translate("Form", "检查者:")) self.label_10.setText(_translate("Form", "有效期至:")) self.label_14.setText(_translate("Form", "检查日期:")) self.label.setText(_translate("Form", "房间:")) self.label_7.setText(_translate("Form", "清场合格证(正本)")) self.label_3.setText(_translate("Form", "产品名:")) self.label_6.setText(_translate("Form", "批号:")) self.label_4.setText(_translate("Form", "工序:"))
class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(700, 580) self.gridLayout = QtWidgets.QGridLayout(Dialog) self.gridLayout.setObjectName("gridLayout") self.label_eqname = QtWidgets.QLabel(Dialog) self.label_eqname.setText("") self.label_eqname.setObjectName("label_eqname") self.gridLayout.addWidget(self.label_eqname, 1, 1, 1, 1) self.label_5 = QtWidgets.QLabel(Dialog) self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 3, 0, 1, 1) self.label_6 = QtWidgets.QLabel(Dialog) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 5, 0, 1, 1) self.label_4 = QtWidgets.QLabel(Dialog) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 4, 0, 1, 1) self.plainTextEdit_part = QtWidgets.QPlainTextEdit(Dialog) self.plainTextEdit_part.setObjectName("plainTextEdit_part") self.gridLayout.addWidget(self.plainTextEdit_part, 4, 1, 1, 1) self.plainTextEdit_running = QtWidgets.QPlainTextEdit(Dialog) self.plainTextEdit_running.setObjectName("plainTextEdit_running") self.gridLayout.addWidget(self.plainTextEdit_running, 5, 1, 1, 1) self.comboBox_level = QtWidgets.QComboBox(Dialog) self.comboBox_level.setObjectName("comboBox_level") self.comboBox_level.addItem("") self.comboBox_level.addItem("") self.gridLayout.addWidget(self.comboBox_level, 2, 1, 1, 1) self.label_2 = QtWidgets.QLabel(Dialog) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.label_3 = QtWidgets.QLabel(Dialog) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1) self.label_eqno = QtWidgets.QLabel(Dialog) self.label_eqno.setText("") self.label_eqno.setObjectName("label_eqno") self.gridLayout.addWidget(self.label_eqno, 0, 1, 1, 1) self.plainTextEdit_mainpoint = QtWidgets.QPlainTextEdit(Dialog) self.plainTextEdit_mainpoint.setObjectName("plainTextEdit_mainpoint") self.gridLayout.addWidget(self.plainTextEdit_mainpoint, 3, 1, 1, 1) self.label = QtWidgets.QLabel(Dialog) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.label_7 = QtWidgets.QLabel(Dialog) self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 6, 0, 1, 1) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.pushButton_accept = QtWidgets.QPushButton(Dialog) self.pushButton_accept.setObjectName("pushButton_accept") self.horizontalLayout.addWidget(self.pushButton_accept) self.pushButton_cancel = QtWidgets.QPushButton(Dialog) self.pushButton_cancel.setObjectName("pushButton_cancel") self.horizontalLayout.addWidget(self.pushButton_cancel) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.gridLayout.addLayout(self.horizontalLayout, 9, 0, 1, 2) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.pushButton_repairer = SignButton(Dialog) self.pushButton_repairer.setText("") self.pushButton_repairer.setObjectName("pushButton_repairer") self.horizontalLayout_3.addWidget(self.pushButton_repairer) self.label_10 = QtWidgets.QLabel(Dialog) self.label_10.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_10.setObjectName("label_10") self.horizontalLayout_3.addWidget(self.label_10) self.dateEdit_finishdate = QtWidgets.QDateEdit(Dialog) self.dateEdit_finishdate.setCalendarPopup(True) self.dateEdit_finishdate.setObjectName("dateEdit_finishdate") self.horizontalLayout_3.addWidget(self.dateEdit_finishdate) self.gridLayout.addLayout(self.horizontalLayout_3, 6, 1, 1, 1) self.retranslateUi(Dialog) QtCore.QMetaObject.connectSlotsByName(Dialog) def retranslateUi(self, Dialog): _translate = QtCore.QCoreApplication.translate Dialog.setWindowTitle(_translate("Dialog", "编辑维保记录")) self.label_5.setText(_translate("Dialog", "维保内容")) self.label_6.setText(_translate("Dialog", "维保效果:")) self.label_4.setText(_translate("Dialog", "更换部件:")) self.comboBox_level.setItemText(0, _translate("Dialog", "普通")) self.comboBox_level.setItemText(1, _translate("Dialog", "重要")) self.label_2.setText(_translate("Dialog", "设备名称:")) self.label_3.setText(_translate("Dialog", "维保级别:")) self.label.setText(_translate("Dialog", "设备编号:")) self.label_7.setText(_translate("Dialog", "维保人:")) self.pushButton_accept.setText(_translate("Dialog", "确认")) self.pushButton_cancel.setText(_translate("Dialog", "取消")) self.label_10.setText(_translate("Dialog", "维保日期:"))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(750, 678) Form.setTabletTracking(False) self.verticalLayout = QtWidgets.QVBoxLayout(Form) self.verticalLayout.setObjectName("verticalLayout") self.groupBox = QtWidgets.QGroupBox(Form) self.groupBox.setObjectName("groupBox") self.gridLayout = QtWidgets.QGridLayout(self.groupBox) self.gridLayout.setObjectName("gridLayout") self.label_3 = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth()) self.label_3.setSizePolicy(sizePolicy) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 3, 0, 1, 1) self.label_reportpaperno = QtWidgets.QLabel(self.groupBox) self.label_reportpaperno.setText("") self.label_reportpaperno.setObjectName("label_reportpaperno") self.gridLayout.addWidget(self.label_reportpaperno, 8, 1, 1, 1) self.label_dpdate = QtWidgets.QLabel(self.groupBox) self.label_dpdate.setText("") self.label_dpdate.setObjectName("label_dpdate") self.gridLayout.addWidget(self.label_dpdate, 4, 4, 1, 1) self.label_19 = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_19.sizePolicy().hasHeightForWidth()) self.label_19.setSizePolicy(sizePolicy) self.label_19.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_19.setObjectName("label_19") self.gridLayout.addWidget(self.label_19, 15, 3, 1, 1) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.lineEdit_amount = QtWidgets.QLineEdit(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEdit_amount.sizePolicy().hasHeightForWidth()) self.lineEdit_amount.setSizePolicy(sizePolicy) self.lineEdit_amount.setObjectName("lineEdit_amount") self.horizontalLayout.addWidget(self.lineEdit_amount) self.label_unit = QtWidgets.QLabel(self.groupBox) self.label_unit.setText("") self.label_unit.setObjectName("label_unit") self.horizontalLayout.addWidget(self.label_unit) self.gridLayout.addLayout(self.horizontalLayout, 13, 1, 1, 1) self.label_13 = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_13.sizePolicy().hasHeightForWidth()) self.label_13.setSizePolicy(sizePolicy) self.label_13.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_13.setObjectName("label_13") self.gridLayout.addWidget(self.label_13, 4, 3, 1, 1) self.label_8 = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_8.sizePolicy().hasHeightForWidth()) self.label_8.setSizePolicy(sizePolicy) self.label_8.setObjectName("label_8") self.gridLayout.addWidget(self.label_8, 6, 0, 1, 1) self.label_spec = QtWidgets.QLabel(self.groupBox) self.label_spec.setText("") self.label_spec.setObjectName("label_spec") self.gridLayout.addWidget(self.label_spec, 1, 1, 1, 4) self.label = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.lineEdit_oddment = QtWidgets.QLineEdit(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEdit_oddment.sizePolicy().hasHeightForWidth()) self.lineEdit_oddment.setSizePolicy(sizePolicy) self.lineEdit_oddment.setObjectName("lineEdit_oddment") self.horizontalLayout_2.addWidget(self.lineEdit_oddment) self.label_oddmentunit = QtWidgets.QLabel(self.groupBox) self.label_oddmentunit.setText("") self.label_oddmentunit.setObjectName("label_oddmentunit") self.horizontalLayout_2.addWidget(self.label_oddmentunit) self.gridLayout.addLayout(self.horizontalLayout_2, 15, 1, 1, 1) self.label_17 = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_17.sizePolicy().hasHeightForWidth()) self.label_17.setSizePolicy(sizePolicy) self.label_17.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_17.setObjectName("label_17") self.gridLayout.addWidget(self.label_17, 6, 3, 1, 1) self.label_22 = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_22.sizePolicy().hasHeightForWidth()) self.label_22.setSizePolicy(sizePolicy) self.label_22.setObjectName("label_22") self.gridLayout.addWidget(self.label_22, 8, 0, 1, 1) self.label_pidate = QtWidgets.QLabel(self.groupBox) self.label_pidate.setText("") self.label_pidate.setObjectName("label_pidate") self.gridLayout.addWidget(self.label_pidate, 6, 4, 1, 1) self.comboBox_piposition = QtWidgets.QComboBox(self.groupBox) self.comboBox_piposition.setEditable(True) self.comboBox_piposition.setObjectName("comboBox_piposition") self.gridLayout.addWidget(self.comboBox_piposition, 15, 4, 1, 1) self.label_5 = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth()) self.label_5.setSizePolicy(sizePolicy) self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 13, 3, 1, 1) self.comboBox_dpposition = QtWidgets.QComboBox(self.groupBox) self.comboBox_dpposition.setEditable(True) self.comboBox_dpposition.setObjectName("comboBox_dpposition") self.gridLayout.addWidget(self.comboBox_dpposition, 13, 4, 1, 1) self.label_product = QtWidgets.QLabel(self.groupBox) self.label_product.setText("") self.label_product.setObjectName("label_product") self.gridLayout.addWidget(self.label_product, 0, 1, 1, 4) self.label_package = QtWidgets.QLabel(self.groupBox) self.label_package.setText("") self.label_package.setObjectName("label_package") self.gridLayout.addWidget(self.label_package, 3, 1, 1, 4) self.label_20 = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_20.sizePolicy().hasHeightForWidth()) self.label_20.setSizePolicy(sizePolicy) self.label_20.setObjectName("label_20") self.gridLayout.addWidget(self.label_20, 4, 0, 1, 1) self.comboBox_unittype = QtWidgets.QComboBox(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.comboBox_unittype.sizePolicy().hasHeightForWidth()) self.comboBox_unittype.setSizePolicy(sizePolicy) self.comboBox_unittype.setObjectName("comboBox_unittype") self.comboBox_unittype.addItem("") self.comboBox_unittype.addItem("") self.comboBox_unittype.addItem("") self.comboBox_unittype.addItem("") self.gridLayout.addWidget(self.comboBox_unittype, 9, 1, 1, 1) self.label_9 = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_9.sizePolicy().hasHeightForWidth()) self.label_9.setSizePolicy(sizePolicy) self.label_9.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_9.setObjectName("label_9") self.gridLayout.addWidget(self.label_9, 9, 3, 1, 1) self.label_2 = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth()) self.label_2.setSizePolicy(sizePolicy) self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 8, 3, 1, 1) self.label_warehouse = QtWidgets.QLabel(self.groupBox) self.label_warehouse.setText("") self.label_warehouse.setObjectName("label_warehouse") self.gridLayout.addWidget(self.label_warehouse, 9, 4, 1, 1) self.label_checkstatus = QtWidgets.QLabel(self.groupBox) self.label_checkstatus.setText("") self.label_checkstatus.setObjectName("label_checkstatus") self.gridLayout.addWidget(self.label_checkstatus, 8, 4, 1, 1) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.label_piamount = QtWidgets.QLabel(self.groupBox) self.label_piamount.setText("") self.label_piamount.setObjectName("label_piamount") self.horizontalLayout_5.addWidget(self.label_piamount) self.label_dpunit = QtWidgets.QLabel(self.groupBox) self.label_dpunit.setText("") self.label_dpunit.setObjectName("label_dpunit") self.horizontalLayout_5.addWidget(self.label_dpunit) self.gridLayout.addLayout(self.horizontalLayout_5, 6, 1, 1, 1) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.label_dpamount = QtWidgets.QLabel(self.groupBox) self.label_dpamount.setText("") self.label_dpamount.setObjectName("label_dpamount") self.horizontalLayout_4.addWidget(self.label_dpamount) self.label_piunit = QtWidgets.QLabel(self.groupBox) self.label_piunit.setText("") self.label_piunit.setObjectName("label_piunit") self.horizontalLayout_4.addWidget(self.label_piunit) self.gridLayout.addLayout(self.horizontalLayout_4, 4, 1, 1, 1) self.label_18 = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_18.sizePolicy().hasHeightForWidth()) self.label_18.setSizePolicy(sizePolicy) self.label_18.setObjectName("label_18") self.gridLayout.addWidget(self.label_18, 13, 0, 1, 1) self.label_16 = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_16.sizePolicy().hasHeightForWidth()) self.label_16.setSizePolicy(sizePolicy) self.label_16.setObjectName("label_16") self.gridLayout.addWidget(self.label_16, 1, 0, 1, 1) self.label_12 = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_12.sizePolicy().hasHeightForWidth()) self.label_12.setSizePolicy(sizePolicy) self.label_12.setObjectName("label_12") self.gridLayout.addWidget(self.label_12, 15, 0, 1, 1) self.label_6 = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_6.sizePolicy().hasHeightForWidth()) self.label_6.setSizePolicy(sizePolicy) self.label_6.setText("") self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 4, 2, 1, 1) self.verticalLayout.addWidget(self.groupBox) self.groupBox_2 = QtWidgets.QGroupBox(Form) self.groupBox_2.setObjectName("groupBox_2") self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout_3.setObjectName("gridLayout_3") self.checkBox_has_draw_oddments = QtWidgets.QCheckBox(self.groupBox_2) self.checkBox_has_draw_oddments.setEnabled(True) self.checkBox_has_draw_oddments.setTabletTracking(False) self.checkBox_has_draw_oddments.setObjectName("checkBox_has_draw_oddments") self.gridLayout_3.addWidget(self.checkBox_has_draw_oddments, 0, 0, 1, 1) self.treeWidget_oddments = QtWidgets.QTreeWidget(self.groupBox_2) self.treeWidget_oddments.setObjectName("treeWidget_oddments") self.gridLayout_3.addWidget(self.treeWidget_oddments, 1, 0, 1, 1) self.verticalLayout.addWidget(self.groupBox_2) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.pushButton_save = QtWidgets.QPushButton(Form) self.pushButton_save.setObjectName("pushButton_save") self.horizontalLayout_3.addWidget(self.pushButton_save) self.pushButton_accept = QtWidgets.QPushButton(Form) self.pushButton_accept.setObjectName("pushButton_accept") self.horizontalLayout_3.addWidget(self.pushButton_accept) self.pushButton_cancel = QtWidgets.QPushButton(Form) self.pushButton_cancel.setObjectName("pushButton_cancel") self.horizontalLayout_3.addWidget(self.pushButton_cancel) self.pushButton_dp = QtWidgets.QPushButton(Form) self.pushButton_dp.setObjectName("pushButton_dp") self.horizontalLayout_3.addWidget(self.pushButton_dp) self.pushButton_pi = QtWidgets.QPushButton(Form) self.pushButton_pi.setObjectName("pushButton_pi") self.horizontalLayout_3.addWidget(self.pushButton_pi) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem) self.verticalLayout.addLayout(self.horizontalLayout_3) self.gridLayout_2 = QtWidgets.QGridLayout() self.gridLayout_2.setObjectName("gridLayout_2") self.pushButton_applyer = SignButton(Form) self.pushButton_applyer.setText("") self.pushButton_applyer.setObjectName("pushButton_applyer") self.gridLayout_2.addWidget(self.pushButton_applyer, 0, 1, 1, 1) self.label_31 = QtWidgets.QLabel(Form) self.label_31.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_31.setObjectName("label_31") self.gridLayout_2.addWidget(self.label_31, 0, 0, 1, 1) self.pushButton_qa = SignButton(Form) self.pushButton_qa.setText("") self.pushButton_qa.setObjectName("pushButton_qa") self.gridLayout_2.addWidget(self.pushButton_qa, 0, 5, 1, 1) self.label_32 = QtWidgets.QLabel(Form) self.label_32.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_32.setObjectName("label_32") self.gridLayout_2.addWidget(self.label_32, 0, 4, 1, 1) self.label_33 = QtWidgets.QLabel(Form) self.label_33.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_33.setObjectName("label_33") self.gridLayout_2.addWidget(self.label_33, 1, 0, 1, 1) self.pushButton_dpwsman = SignButton(Form) self.pushButton_dpwsman.setText("") self.pushButton_dpwsman.setObjectName("pushButton_dpwsman") self.gridLayout_2.addWidget(self.pushButton_dpwsman, 1, 1, 1, 1) self.label_4 = QtWidgets.QLabel(Form) self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_4.setObjectName("label_4") self.gridLayout_2.addWidget(self.label_4, 1, 4, 1, 1) self.pushButton_piwsman = SignButton(Form) self.pushButton_piwsman.setText("") self.pushButton_piwsman.setObjectName("pushButton_piwsman") self.gridLayout_2.addWidget(self.pushButton_piwsman, 1, 5, 1, 1) self.verticalLayout.addLayout(self.gridLayout_2) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) Form.setTabOrder(self.comboBox_unittype, self.lineEdit_amount) Form.setTabOrder(self.lineEdit_amount, self.lineEdit_oddment) Form.setTabOrder(self.lineEdit_oddment, self.comboBox_dpposition) Form.setTabOrder(self.comboBox_dpposition, self.comboBox_piposition) Form.setTabOrder(self.comboBox_piposition, self.pushButton_accept) Form.setTabOrder(self.pushButton_accept, self.pushButton_cancel) Form.setTabOrder(self.pushButton_cancel, self.pushButton_applyer) Form.setTabOrder(self.pushButton_applyer, self.pushButton_qa) Form.setTabOrder(self.pushButton_qa, self.pushButton_dpwsman) Form.setTabOrder(self.pushButton_dpwsman, self.pushButton_piwsman) Form.setTabOrder(self.pushButton_piwsman, self.treeWidget_oddments) Form.setTabOrder(self.treeWidget_oddments, self.checkBox_has_draw_oddments) def retranslateUi(self, Form): _translate = QtCore.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Form")) self.groupBox.setTitle(_translate("Form", "入库记录")) self.label_3.setText(_translate("Form", "包装规格:")) self.label_19.setText(_translate("Form", "入仓库:")) self.label_13.setText(_translate("Form", "寄库日期:")) self.label_8.setText(_translate("Form", "入库数量:")) self.label.setText(_translate("Form", "产品名称:")) self.label_17.setText(_translate("Form", "入库日期:")) self.label_22.setText(_translate("Form", "检验单号:")) self.label_5.setText(_translate("Form", "寄仓库:")) self.label_20.setText(_translate("Form", "寄库数量:")) self.comboBox_unittype.setItemText(0, _translate("Form", "巨大包装")) self.comboBox_unittype.setItemText(1, _translate("Form", "大包装 ")) self.comboBox_unittype.setItemText(2, _translate("Form", "中包装 ")) self.comboBox_unittype.setItemText(3, _translate("Form", "小包装 ")) self.label_9.setText(_translate("Form", "仓库:")) self.label_2.setText(_translate("Form", "检验结果:")) self.label_18.setText(_translate("Form", "寄库数量:")) self.label_16.setText(_translate("Form", "含量规格:")) self.label_12.setText(_translate("Form", "零头数量:")) self.groupBox_2.setTitle(_translate("Form", "合箱记录")) self.checkBox_has_draw_oddments.setText(_translate("Form", "有合箱记录")) self.treeWidget_oddments.headerItem().setText(0, _translate("Form", "id")) self.treeWidget_oddments.headerItem().setText(1, _translate("Form", "零头批号")) self.treeWidget_oddments.headerItem().setText(2, _translate("Form", "零头数量")) self.treeWidget_oddments.headerItem().setText(3, _translate("Form", "单位")) self.treeWidget_oddments.headerItem().setText(4, _translate("Form", "本批数量")) self.treeWidget_oddments.headerItem().setText(5, _translate("Form", "零头生产日期")) self.pushButton_save.setText(_translate("Form", "保存")) self.pushButton_accept.setText(_translate("Form", "提交寄库")) self.pushButton_cancel.setText(_translate("Form", "取消寄库")) self.pushButton_dp.setText(_translate("Form", "确认寄库")) self.pushButton_pi.setText(_translate("Form", "确认入库")) self.label_31.setText(_translate("Form", "寄库人:")) self.label_32.setText(_translate("Form", "QA:")) self.label_33.setText(_translate("Form", "寄库仓管:")) self.label_4.setText(_translate("Form", "入库仓管:"))
class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(640, 347) self.gridLayout = QtWidgets.QGridLayout(Dialog) self.gridLayout.setObjectName("gridLayout") self.groupBox_5 = QtWidgets.QGroupBox(Dialog) self.groupBox_5.setObjectName("groupBox_5") self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.groupBox_5) self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.label_3 = QtWidgets.QLabel(self.groupBox_5) self.label_3.setObjectName("label_3") self.horizontalLayout_4.addWidget(self.label_3) self.comboBox_startstatus = QtWidgets.QComboBox(self.groupBox_5) self.comboBox_startstatus.setObjectName("comboBox_startstatus") self.comboBox_startstatus.addItem("") self.comboBox_startstatus.addItem("") self.comboBox_startstatus.addItem("") self.comboBox_startstatus.addItem("") self.horizontalLayout_4.addWidget(self.comboBox_startstatus) self.label_12 = QtWidgets.QLabel(self.groupBox_5) self.label_12.setObjectName("label_12") self.horizontalLayout_4.addWidget(self.label_12) self.comboBox_stopstatus = QtWidgets.QComboBox(self.groupBox_5) self.comboBox_stopstatus.setObjectName("comboBox_stopstatus") self.comboBox_stopstatus.addItem("") self.comboBox_stopstatus.addItem("") self.comboBox_stopstatus.addItem("") self.comboBox_stopstatus.addItem("") self.horizontalLayout_4.addWidget(self.comboBox_stopstatus) self.gridLayout.addWidget(self.groupBox_5, 5, 3, 1, 1) self.groupBox_3 = QtWidgets.QGroupBox(Dialog) self.groupBox_3.setObjectName("groupBox_3") self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_3) self.gridLayout_3.setObjectName("gridLayout_3") self.checkBox_6 = QtWidgets.QCheckBox(self.groupBox_3) self.checkBox_6.setObjectName("checkBox_6") self.gridLayout_3.addWidget(self.checkBox_6, 0, 1, 1, 1) self.checkBox_4 = QtWidgets.QCheckBox(self.groupBox_3) self.checkBox_4.setObjectName("checkBox_4") self.gridLayout_3.addWidget(self.checkBox_4, 0, 0, 1, 1) self.checkBox_5 = QtWidgets.QCheckBox(self.groupBox_3) self.checkBox_5.setObjectName("checkBox_5") self.gridLayout_3.addWidget(self.checkBox_5, 1, 0, 1, 1) self.checkBox_7 = QtWidgets.QCheckBox(self.groupBox_3) self.checkBox_7.setObjectName("checkBox_7") self.gridLayout_3.addWidget(self.checkBox_7, 1, 1, 1, 1) self.gridLayout.addWidget(self.groupBox_3, 3, 3, 1, 1) self.groupBox_2 = QtWidgets.QGroupBox(Dialog) self.groupBox_2.setObjectName("groupBox_2") self.horizontalLayout = QtWidgets.QHBoxLayout(self.groupBox_2) self.horizontalLayout.setObjectName("horizontalLayout") self.checkBox_1 = QtWidgets.QCheckBox(self.groupBox_2) self.checkBox_1.setObjectName("checkBox_1") self.horizontalLayout.addWidget(self.checkBox_1) self.checkBox_2 = QtWidgets.QCheckBox(self.groupBox_2) self.checkBox_2.setObjectName("checkBox_2") self.horizontalLayout.addWidget(self.checkBox_2) self.checkBox_3 = QtWidgets.QCheckBox(self.groupBox_2) self.checkBox_3.setObjectName("checkBox_3") self.horizontalLayout.addWidget(self.checkBox_3) self.gridLayout.addWidget(self.groupBox_2, 2, 3, 1, 1) self.groupBox_4 = QtWidgets.QGroupBox(Dialog) self.groupBox_4.setObjectName("groupBox_4") self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.groupBox_4) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.checkBox_8 = QtWidgets.QCheckBox(self.groupBox_4) self.checkBox_8.setObjectName("checkBox_8") self.horizontalLayout_3.addWidget(self.checkBox_8) self.checkBox_9 = QtWidgets.QCheckBox(self.groupBox_4) self.checkBox_9.setObjectName("checkBox_9") self.horizontalLayout_3.addWidget(self.checkBox_9) self.checkBox_10 = QtWidgets.QCheckBox(self.groupBox_4) self.checkBox_10.setObjectName("checkBox_10") self.horizontalLayout_3.addWidget(self.checkBox_10) self.gridLayout.addWidget(self.groupBox_4, 4, 3, 1, 1) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label = QtWidgets.QLabel(Dialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setObjectName("label") self.horizontalLayout_2.addWidget(self.label) self.label_equipment = QtWidgets.QLabel(Dialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_equipment.sizePolicy().hasHeightForWidth()) self.label_equipment.setSizePolicy(sizePolicy) self.label_equipment.setText("") self.label_equipment.setObjectName("label_equipment") self.horizontalLayout_2.addWidget(self.label_equipment) self.gridLayout.addLayout(self.horizontalLayout_2, 1, 0, 1, 2) self.pushButton_filler = SignButton(Dialog) self.pushButton_filler.setText("") self.pushButton_filler.setObjectName("pushButton_filler") self.gridLayout.addWidget(self.pushButton_filler, 6, 1, 1, 1) self.label_11 = QtWidgets.QLabel(Dialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_11.sizePolicy().hasHeightForWidth()) self.label_11.setSizePolicy(sizePolicy) self.label_11.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_11.setObjectName("label_11") self.gridLayout.addWidget(self.label_11, 6, 0, 1, 1) self.pushButton_cancel = QtWidgets.QPushButton(Dialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.pushButton_cancel.sizePolicy().hasHeightForWidth()) self.pushButton_cancel.setSizePolicy(sizePolicy) self.pushButton_cancel.setObjectName("pushButton_cancel") self.gridLayout.addWidget(self.pushButton_cancel, 7, 3, 1, 1) self.pushButton_accept = QtWidgets.QPushButton(Dialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.pushButton_accept.sizePolicy().hasHeightForWidth()) self.pushButton_accept.setSizePolicy(sizePolicy) self.pushButton_accept.setObjectName("pushButton_accept") self.gridLayout.addWidget(self.pushButton_accept, 7, 2, 1, 1) self.groupBox = QtWidgets.QGroupBox(Dialog) self.groupBox.setObjectName("groupBox") self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox) self.gridLayout_2.setObjectName("gridLayout_2") self.label_4 = QtWidgets.QLabel(self.groupBox) self.label_4.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_4.setObjectName("label_4") self.gridLayout_2.addWidget(self.label_4, 0, 0, 1, 1) self.label_6 = QtWidgets.QLabel(self.groupBox) self.label_6.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_6.setObjectName("label_6") self.gridLayout_2.addWidget(self.label_6, 2, 0, 1, 1) self.label_10 = QtWidgets.QLabel(self.groupBox) self.label_10.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_10.setObjectName("label_10") self.gridLayout_2.addWidget(self.label_10, 6, 0, 1, 1) self.label_9 = QtWidgets.QLabel(self.groupBox) self.label_9.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_9.setObjectName("label_9") self.gridLayout_2.addWidget(self.label_9, 5, 0, 1, 1) self.label_5 = QtWidgets.QLabel(self.groupBox) self.label_5.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_5.setObjectName("label_5") self.gridLayout_2.addWidget(self.label_5, 1, 0, 1, 1) self.label_7 = QtWidgets.QLabel(self.groupBox) self.label_7.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_7.setObjectName("label_7") self.gridLayout_2.addWidget(self.label_7, 3, 0, 1, 1) self.lineEdit_batchno = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_batchno.setEnabled(False) self.lineEdit_batchno.setObjectName("lineEdit_batchno") self.gridLayout_2.addWidget(self.lineEdit_batchno, 1, 1, 1, 6) self.dateTimeEdit_runstarttime = QtWidgets.QDateTimeEdit(self.groupBox) self.dateTimeEdit_runstarttime.setDateTime( QtCore.QDateTime(QtCore.QDate(2000, 1, 1), QtCore.QTime(8, 0, 0))) self.dateTimeEdit_runstarttime.setCurrentSection( QtWidgets.QDateTimeEdit.YearSection) self.dateTimeEdit_runstarttime.setCalendarPopup(True) self.dateTimeEdit_runstarttime.setObjectName( "dateTimeEdit_runstarttime") self.gridLayout_2.addWidget(self.dateTimeEdit_runstarttime, 2, 1, 1, 6) self.dateTimeEdit_runendtime = QtWidgets.QDateTimeEdit(self.groupBox) self.dateTimeEdit_runendtime.setCalendarPopup(True) self.dateTimeEdit_runendtime.setObjectName("dateTimeEdit_runendtime") self.gridLayout_2.addWidget(self.dateTimeEdit_runendtime, 3, 1, 1, 6) self.lineEdit_runtime_day = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_runtime_day.setObjectName("lineEdit_runtime_day") self.gridLayout_2.addWidget(self.lineEdit_runtime_day, 4, 1, 1, 1) self.label_8 = QtWidgets.QLabel(self.groupBox) self.label_8.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_8.setObjectName("label_8") self.gridLayout_2.addWidget(self.label_8, 4, 0, 1, 1) self.comboBox_runstatus = QtWidgets.QComboBox(self.groupBox) self.comboBox_runstatus.setObjectName("comboBox_runstatus") self.comboBox_runstatus.addItem("") self.comboBox_runstatus.addItem("") self.comboBox_runstatus.addItem("") self.comboBox_runstatus.addItem("") self.comboBox_runstatus.addItem("") self.gridLayout_2.addWidget(self.comboBox_runstatus, 5, 1, 1, 6) self.lineEdit_remark = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_remark.setObjectName("lineEdit_remark") self.gridLayout_2.addWidget(self.lineEdit_remark, 6, 1, 1, 6) self.lineEdit_product = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_product.setEnabled(False) self.lineEdit_product.setStyleSheet( "background-color: rgb(255, 255, 125);") self.lineEdit_product.setObjectName("lineEdit_product") self.gridLayout_2.addWidget(self.lineEdit_product, 0, 1, 1, 6) self.lineEdit_runtime_minute = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_runtime_minute.setObjectName("lineEdit_runtime_minute") self.gridLayout_2.addWidget(self.lineEdit_runtime_minute, 4, 5, 1, 1) self.label_2 = QtWidgets.QLabel(self.groupBox) self.label_2.setObjectName("label_2") self.gridLayout_2.addWidget(self.label_2, 4, 6, 1, 1) self.label_13 = QtWidgets.QLabel(self.groupBox) self.label_13.setObjectName("label_13") self.gridLayout_2.addWidget(self.label_13, 4, 2, 1, 1) self.lineEdit_runtime_hour = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_runtime_hour.setObjectName("lineEdit_runtime_hour") self.gridLayout_2.addWidget(self.lineEdit_runtime_hour, 4, 3, 1, 1) self.label_14 = QtWidgets.QLabel(self.groupBox) self.label_14.setObjectName("label_14") self.gridLayout_2.addWidget(self.label_14, 4, 4, 1, 1) self.gridLayout.addWidget(self.groupBox, 2, 0, 4, 3) self.retranslateUi(Dialog) QtCore.QMetaObject.connectSlotsByName(Dialog) Dialog.setTabOrder(self.lineEdit_batchno, self.dateTimeEdit_runstarttime) Dialog.setTabOrder(self.dateTimeEdit_runstarttime, self.dateTimeEdit_runendtime) Dialog.setTabOrder(self.dateTimeEdit_runendtime, self.lineEdit_runtime_day) Dialog.setTabOrder(self.lineEdit_runtime_day, self.comboBox_runstatus) Dialog.setTabOrder(self.comboBox_runstatus, self.lineEdit_remark) Dialog.setTabOrder(self.lineEdit_remark, self.checkBox_1) Dialog.setTabOrder(self.checkBox_1, self.checkBox_2) Dialog.setTabOrder(self.checkBox_2, self.checkBox_3) Dialog.setTabOrder(self.checkBox_3, self.checkBox_4) Dialog.setTabOrder(self.checkBox_4, self.checkBox_6) Dialog.setTabOrder(self.checkBox_6, self.checkBox_5) Dialog.setTabOrder(self.checkBox_5, self.checkBox_7) Dialog.setTabOrder(self.checkBox_7, self.checkBox_8) Dialog.setTabOrder(self.checkBox_8, self.checkBox_9) Dialog.setTabOrder(self.checkBox_9, self.checkBox_10) Dialog.setTabOrder(self.checkBox_10, self.comboBox_startstatus) Dialog.setTabOrder(self.comboBox_startstatus, self.comboBox_stopstatus) Dialog.setTabOrder(self.comboBox_stopstatus, self.pushButton_filler) Dialog.setTabOrder(self.pushButton_filler, self.pushButton_accept) Dialog.setTabOrder(self.pushButton_accept, self.pushButton_cancel) def retranslateUi(self, Dialog): _translate = QtCore.QCoreApplication.translate Dialog.setWindowTitle(_translate("Dialog", "Dialog")) self.groupBox_5.setTitle(_translate("Dialog", "运行状态")) self.label_3.setText(_translate("Dialog", "开机准备:")) self.comboBox_startstatus.setItemText(0, _translate("Dialog", "优")) self.comboBox_startstatus.setItemText(1, _translate("Dialog", "良")) self.comboBox_startstatus.setItemText(2, _translate("Dialog", "中")) self.comboBox_startstatus.setItemText(3, _translate("Dialog", "差")) self.label_12.setText(_translate("Dialog", "停机保养:")) self.comboBox_stopstatus.setItemText(0, _translate("Dialog", "优")) self.comboBox_stopstatus.setItemText(1, _translate("Dialog", "良")) self.comboBox_stopstatus.setItemText(2, _translate("Dialog", "中")) self.comboBox_stopstatus.setItemText(3, _translate("Dialog", "差")) self.groupBox_3.setTitle(_translate("Dialog", "使用情况")) self.checkBox_6.setText(_translate("Dialog", "有松动现象")) self.checkBox_4.setText(_translate("Dialog", "有异常震动")) self.checkBox_5.setText(_translate("Dialog", "有异常声响")) self.checkBox_7.setText(_translate("Dialog", "开关失灵")) self.groupBox_2.setTitle(_translate("Dialog", "开机准备")) self.checkBox_1.setText(_translate("Dialog", "设备检查")) self.checkBox_2.setText(_translate("Dialog", "设备清洁")) self.checkBox_3.setText(_translate("Dialog", "系统润滑")) self.groupBox_4.setTitle(_translate("Dialog", "停机保养")) self.checkBox_8.setText(_translate("Dialog", "设备清洁")) self.checkBox_9.setText(_translate("Dialog", "辅助器具清洁")) self.checkBox_10.setText(_translate("Dialog", "系统润滑")) self.label.setText(_translate("Dialog", "设备:")) self.label_11.setText(_translate("Dialog", "填写人:")) self.pushButton_cancel.setText(_translate("Dialog", "取消")) self.pushButton_accept.setText(_translate("Dialog", "确定")) self.groupBox.setTitle(_translate("Dialog", "运行情况")) self.label_4.setText(_translate("Dialog", "产品:")) self.label_6.setText(_translate("Dialog", "开始运行时间:")) self.label_10.setText(_translate("Dialog", "备注:")) self.label_9.setText(_translate("Dialog", "运行情况:")) self.label_5.setText(_translate("Dialog", "批号:")) self.label_7.setText(_translate("Dialog", "结束运行时间:")) self.dateTimeEdit_runstarttime.setDisplayFormat( _translate("Dialog", "yyyy-MM-dd HH:mm")) self.dateTimeEdit_runendtime.setDisplayFormat( _translate("Dialog", "yyyy-MM-dd HH:mm")) self.label_8.setText(_translate("Dialog", "运行时长:")) self.comboBox_runstatus.setItemText(0, _translate("Dialog", "正常运行")) self.comboBox_runstatus.setItemText(1, _translate("Dialog", "停用待修")) self.comboBox_runstatus.setItemText(2, _translate("Dialog", "故障抢修")) self.comboBox_runstatus.setItemText(3, _translate("Dialog", "日常小修")) self.comboBox_runstatus.setItemText(4, _translate("Dialog", "计划大修")) self.label_2.setText(_translate("Dialog", "分钟")) self.label_13.setText(_translate("Dialog", "天")) self.label_14.setText(_translate("Dialog", "小时"))
class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(716, 621) self.gridLayout = QtWidgets.QGridLayout(Dialog) self.gridLayout.setObjectName("gridLayout") self.tabWidget = QtWidgets.QTabWidget(Dialog) self.tabWidget.setObjectName("tabWidget") self.tab = QtWidgets.QWidget() self.tab.setObjectName("tab") self.gridLayout_2 = QtWidgets.QGridLayout(self.tab) self.gridLayout_2.setObjectName("gridLayout_2") self.label_3 = QtWidgets.QLabel(self.tab) self.label_3.setObjectName("label_3") self.gridLayout_2.addWidget(self.label_3, 2, 0, 1, 1) self.label_4 = QtWidgets.QLabel(self.tab) self.label_4.setObjectName("label_4") self.gridLayout_2.addWidget(self.label_4, 3, 0, 1, 1) self.lineEdit_accordance = QtWidgets.QLineEdit(self.tab) self.lineEdit_accordance.setObjectName("lineEdit_accordance") self.gridLayout_2.addWidget(self.lineEdit_accordance, 1, 1, 1, 1) self.plainTextEdit_descrip = QtWidgets.QPlainTextEdit(self.tab) self.plainTextEdit_descrip.setObjectName("plainTextEdit_descrip") self.gridLayout_2.addWidget(self.plainTextEdit_descrip, 2, 1, 1, 1) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.pushButton_qa = SignButton(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_qa.sizePolicy().hasHeightForWidth()) self.pushButton_qa.setSizePolicy(sizePolicy) self.pushButton_qa.setText("") self.pushButton_qa.setObjectName("pushButton_qa") self.horizontalLayout_2.addWidget(self.pushButton_qa) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem) self.gridLayout_2.addLayout(self.horizontalLayout_2, 3, 1, 1, 1) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.pushButton_accept = QtWidgets.QPushButton(self.tab) self.pushButton_accept.setObjectName("pushButton_accept") self.horizontalLayout.addWidget(self.pushButton_accept) self.pushButton_apply = QtWidgets.QPushButton(self.tab) self.pushButton_apply.setObjectName("pushButton_apply") self.horizontalLayout.addWidget(self.pushButton_apply) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem2) self.gridLayout_2.addLayout(self.horizontalLayout, 4, 0, 1, 2) self.label_2 = QtWidgets.QLabel(self.tab) self.label_2.setObjectName("label_2") self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1) self.label = QtWidgets.QLabel(self.tab) self.label.setObjectName("label") self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) self.lineEdit_dept = ComboLine(self.tab) self.lineEdit_dept.setObjectName("lineEdit_dept") self.gridLayout_2.addWidget(self.lineEdit_dept, 0, 1, 1, 1) self.tabWidget.addTab(self.tab, "") self.tab_2 = QtWidgets.QWidget() self.tab_2.setObjectName("tab_2") self.gridLayout_3 = QtWidgets.QGridLayout(self.tab_2) self.gridLayout_3.setObjectName("gridLayout_3") self.label_11 = QtWidgets.QLabel(self.tab_2) self.label_11.setObjectName("label_11") self.gridLayout_3.addWidget(self.label_11, 9, 2, 1, 1) self.label_5 = QtWidgets.QLabel(self.tab_2) self.label_5.setObjectName("label_5") self.gridLayout_3.addWidget(self.label_5, 0, 0, 1, 1) self.label_7 = QtWidgets.QLabel(self.tab_2) self.label_7.setObjectName("label_7") self.gridLayout_3.addWidget(self.label_7, 3, 2, 1, 1) self.label_9 = QtWidgets.QLabel(self.tab_2) self.label_9.setObjectName("label_9") self.gridLayout_3.addWidget(self.label_9, 5, 2, 1, 1) self.plainTextEdit_measure = QtWidgets.QPlainTextEdit(self.tab_2) self.plainTextEdit_measure.setObjectName("plainTextEdit_measure") self.gridLayout_3.addWidget(self.plainTextEdit_measure, 1, 0, 1, 4) self.label_10 = QtWidgets.QLabel(self.tab_2) self.label_10.setObjectName("label_10") self.gridLayout_3.addWidget(self.label_10, 9, 0, 1, 1) self.pushButton_dncharger = SignButton(self.tab_2) self.pushButton_dncharger.setText("") self.pushButton_dncharger.setObjectName("pushButton_dncharger") self.gridLayout_3.addWidget(self.pushButton_dncharger, 9, 1, 1, 1) self.label_12 = QtWidgets.QLabel(self.tab_2) self.label_12.setObjectName("label_12") self.gridLayout_3.addWidget(self.label_12, 11, 0, 1, 1) self.label_8 = QtWidgets.QLabel(self.tab_2) self.label_8.setObjectName("label_8") self.gridLayout_3.addWidget(self.label_8, 5, 0, 1, 1) self.pushButton_cd = SignButton(self.tab_2) self.pushButton_cd.setText("") self.pushButton_cd.setObjectName("pushButton_cd") self.gridLayout_3.addWidget(self.pushButton_cd, 9, 3, 1, 1) self.pushButton_group = SignButton(self.tab_2) self.pushButton_group.setText("") self.pushButton_group.setObjectName("pushButton_group") self.gridLayout_3.addWidget(self.pushButton_group, 3, 3, 1, 1) self.pushButton_gp = SignButton(self.tab_2) self.pushButton_gp.setText("") self.pushButton_gp.setObjectName("pushButton_gp") self.gridLayout_3.addWidget(self.pushButton_gp, 11, 3, 1, 1) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem3) self.pushButton_save = QtWidgets.QPushButton(self.tab_2) self.pushButton_save.setObjectName("pushButton_save") self.horizontalLayout_3.addWidget(self.pushButton_save) self.pushButton_finish = QtWidgets.QPushButton(self.tab_2) self.pushButton_finish.setObjectName("pushButton_finish") self.horizontalLayout_3.addWidget(self.pushButton_finish) spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem4) self.gridLayout_3.addLayout(self.horizontalLayout_3, 12, 0, 1, 4) self.plainTextEdit_done = QtWidgets.QPlainTextEdit(self.tab_2) self.plainTextEdit_done.setObjectName("plainTextEdit_done") self.gridLayout_3.addWidget(self.plainTextEdit_done, 6, 0, 3, 2) self.plainTextEdit_checkdone = QtWidgets.QPlainTextEdit(self.tab_2) self.plainTextEdit_checkdone.setObjectName("plainTextEdit_checkdone") self.gridLayout_3.addWidget(self.plainTextEdit_checkdone, 6, 2, 1, 2) self.label_6 = QtWidgets.QLabel(self.tab_2) self.label_6.setObjectName("label_6") self.gridLayout_3.addWidget(self.label_6, 3, 0, 1, 1) self.pushButton_dcharger = SignButton(self.tab_2) self.pushButton_dcharger.setText("") self.pushButton_dcharger.setObjectName("pushButton_dcharger") self.gridLayout_3.addWidget(self.pushButton_dcharger, 3, 1, 1, 1) self.label_13 = QtWidgets.QLabel(self.tab_2) self.label_13.setObjectName("label_13") self.gridLayout_3.addWidget(self.label_13, 11, 2, 1, 1) self.pushButton_leader = SignButton(self.tab_2) self.pushButton_leader.setText("") self.pushButton_leader.setObjectName("pushButton_leader") self.gridLayout_3.addWidget(self.pushButton_leader, 11, 1, 1, 1) self.line = QtWidgets.QFrame(self.tab_2) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.gridLayout_3.addWidget(self.line, 10, 0, 1, 4) self.tabWidget.addTab(self.tab_2, "") self.gridLayout.addWidget(self.tabWidget, 0, 1, 1, 1) self.retranslateUi(Dialog) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(Dialog) def retranslateUi(self, Dialog): _translate = QtCore.QCoreApplication.translate Dialog.setWindowTitle(_translate("Dialog", "Dialog")) self.label_3.setText(_translate("Dialog", "不合格概述:")) self.label_4.setText(_translate("Dialog", "QA负责人:")) self.pushButton_accept.setText(_translate("Dialog", "保存")) self.pushButton_apply.setText(_translate("Dialog", "下达")) self.label_2.setText(_translate("Dialog", "依据:")) self.label.setText(_translate("Dialog", "受检部门")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("Dialog", "整改通知")) self.label_11.setText(_translate("Dialog", "检查人:")) self.label_5.setText(_translate("Dialog", "整改计划:")) self.label_7.setText(_translate("Dialog", "自检小组负责人:")) self.label_9.setText(_translate("Dialog", "完成情况检查:")) self.label_10.setText(_translate("Dialog", "受检部门负责人:")) self.label_12.setText(_translate("Dialog", "受检部门领导:")) self.label_8.setText(_translate("Dialog", "整改完成情况:")) self.pushButton_save.setText(_translate("Dialog", "保存")) self.pushButton_finish.setText(_translate("Dialog", "完成")) self.label_6.setText(_translate("Dialog", "受检部门负责人:")) self.label_13.setText(_translate("Dialog", "自检小组组长:")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("Dialog", "完成回复"))
class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(700, 320) self.gridLayout = QtWidgets.QGridLayout(Dialog) self.gridLayout.setObjectName("gridLayout") self.label_3 = QtWidgets.QLabel(Dialog) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1) self.label_4 = QtWidgets.QLabel(Dialog) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 4, 0, 1, 1) self.label_5 = QtWidgets.QLabel(Dialog) self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 5, 0, 1, 1) self.label = QtWidgets.QLabel(Dialog) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.pushButton_warrantor = SignButton(Dialog) self.pushButton_warrantor.setText("") self.pushButton_warrantor.setObjectName("pushButton_warrantor") self.gridLayout.addWidget(self.pushButton_warrantor, 6, 1, 1, 1) self.label_6 = QtWidgets.QLabel(Dialog) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 6, 0, 1, 1) self.label_2 = QtWidgets.QLabel(Dialog) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.pushButton_accept = QtWidgets.QPushButton(Dialog) self.pushButton_accept.setObjectName("pushButton_accept") self.horizontalLayout.addWidget(self.pushButton_accept) self.pushButton_cancel = QtWidgets.QPushButton(Dialog) self.pushButton_cancel.setObjectName("pushButton_cancel") self.horizontalLayout.addWidget(self.pushButton_cancel) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.gridLayout.addLayout(self.horizontalLayout, 7, 0, 1, 2) self.dateEdit_invaliddate = QtWidgets.QDateEdit(Dialog) self.dateEdit_invaliddate.setCalendarPopup(True) self.dateEdit_invaliddate.setObjectName("dateEdit_invaliddate") self.gridLayout.addWidget(self.dateEdit_invaliddate, 4, 1, 1, 1) self.lineEdit_remark = QtWidgets.QLineEdit(Dialog) self.lineEdit_remark.setObjectName("lineEdit_remark") self.gridLayout.addWidget(self.lineEdit_remark, 5, 1, 1, 1) self.dateEdit_createdate = QtWidgets.QDateEdit(Dialog) self.dateEdit_createdate.setCalendarPopup(True) self.dateEdit_createdate.setObjectName("dateEdit_createdate") self.gridLayout.addWidget(self.dateEdit_createdate, 3, 1, 1, 1) self.label_7 = QtWidgets.QLabel(Dialog) self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 3, 0, 1, 1) self.pushButton_creator = SignButton(Dialog) self.pushButton_creator.setEnabled(True) self.pushButton_creator.setText("") self.pushButton_creator.setObjectName("pushButton_creator") self.gridLayout.addWidget(self.pushButton_creator, 2, 1, 1, 1) self.lineEdit_supplyer = ComboLine(Dialog) self.lineEdit_supplyer.setObjectName("lineEdit_supplyer") self.gridLayout.addWidget(self.lineEdit_supplyer, 1, 1, 1, 1) self.lineEdit_paperno = QtWidgets.QLineEdit(Dialog) self.lineEdit_paperno.setObjectName("lineEdit_paperno") self.gridLayout.addWidget(self.lineEdit_paperno, 0, 1, 1, 1) self.retranslateUi(Dialog) QtCore.QMetaObject.connectSlotsByName(Dialog) Dialog.setTabOrder(self.lineEdit_paperno, self.lineEdit_supplyer) Dialog.setTabOrder(self.lineEdit_supplyer, self.pushButton_creator) Dialog.setTabOrder(self.pushButton_creator, self.dateEdit_createdate) Dialog.setTabOrder(self.dateEdit_createdate, self.dateEdit_invaliddate) Dialog.setTabOrder(self.dateEdit_invaliddate, self.lineEdit_remark) Dialog.setTabOrder(self.lineEdit_remark, self.pushButton_warrantor) Dialog.setTabOrder(self.pushButton_warrantor, self.pushButton_accept) Dialog.setTabOrder(self.pushButton_accept, self.pushButton_cancel) def retranslateUi(self, Dialog): _translate = QtCore.QCoreApplication.translate Dialog.setWindowTitle(_translate("Dialog", "编辑采购计划单")) self.label_3.setText(_translate("Dialog", "申请人:")) self.label_4.setText(_translate("Dialog", "计划到货日期:")) self.label_5.setText(_translate("Dialog", "备注:")) self.label.setText(_translate("Dialog", "计划单号:")) self.label_6.setText(_translate("Dialog", "批准人:")) self.label_2.setText(_translate("Dialog", "供应商:")) self.pushButton_accept.setText(_translate("Dialog", "确认")) self.pushButton_cancel.setText(_translate("Dialog", "取消")) self.label_7.setText(_translate("Dialog", "建立日期:"))
class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(821, 839) self.gridLayout = QtWidgets.QGridLayout(Dialog) self.gridLayout.setObjectName("gridLayout") self.tabWidget = QtWidgets.QTabWidget(Dialog) self.tabWidget.setObjectName("tabWidget") self.tab = QtWidgets.QWidget() self.tab.setObjectName("tab") self.gridLayout_2 = QtWidgets.QGridLayout(self.tab) self.gridLayout_2.setObjectName("gridLayout_2") self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_14 = QtWidgets.QLabel(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_14.sizePolicy().hasHeightForWidth()) self.label_14.setSizePolicy(sizePolicy) self.label_14.setObjectName("label_14") self.horizontalLayout_3.addWidget(self.label_14) self.label_charger = QtWidgets.QLabel(self.tab) self.label_charger.setObjectName("label_charger") self.horizontalLayout_3.addWidget(self.label_charger) self.label_13 = QtWidgets.QLabel(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_13.sizePolicy().hasHeightForWidth()) self.label_13.setSizePolicy(sizePolicy) self.label_13.setObjectName("label_13") self.horizontalLayout_3.addWidget(self.label_13) self.dateEdit_chdate = QtWidgets.QDateEdit(self.tab) self.dateEdit_chdate.setCalendarPopup(True) self.dateEdit_chdate.setObjectName("dateEdit_chdate") self.horizontalLayout_3.addWidget(self.dateEdit_chdate) self.gridLayout_2.addLayout(self.horizontalLayout_3, 9, 2, 1, 6) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_16 = QtWidgets.QLabel(self.tab) self.label_16.setObjectName("label_16") self.horizontalLayout_2.addWidget(self.label_16) self.lineEdit_conclusion = QtWidgets.QLineEdit(self.tab) self.lineEdit_conclusion.setObjectName("lineEdit_conclusion") self.horizontalLayout_2.addWidget(self.lineEdit_conclusion) self.gridLayout_2.addLayout(self.horizontalLayout_2, 7, 2, 1, 6) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.pushButton_accept = QtWidgets.QPushButton(self.tab) self.pushButton_accept.setObjectName("pushButton_accept") self.horizontalLayout.addWidget(self.pushButton_accept) self.pushButton_cancel = QtWidgets.QPushButton(self.tab) self.pushButton_cancel.setObjectName("pushButton_cancel") self.horizontalLayout.addWidget(self.pushButton_cancel) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.gridLayout_2.addLayout(self.horizontalLayout, 11, 2, 1, 6) self.plainTextEdit_measure = QtWidgets.QPlainTextEdit(self.tab) self.plainTextEdit_measure.setObjectName("plainTextEdit_measure") self.gridLayout_2.addWidget(self.plainTextEdit_measure, 6, 2, 1, 2) self.groupBox = QtWidgets.QGroupBox(self.tab) self.groupBox.setObjectName("groupBox") self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox) self.gridLayout_3.setObjectName("gridLayout_3") self.label_checkitem = QtWidgets.QLabel(self.groupBox) self.label_checkitem.setObjectName("label_checkitem") self.gridLayout_3.addWidget(self.label_checkitem, 0, 3, 1, 1) self.lineEdit_checkers = QtWidgets.QLineEdit(self.groupBox) self.lineEdit_checkers.setObjectName("lineEdit_checkers") self.gridLayout_3.addWidget(self.lineEdit_checkers, 1, 1, 1, 5) self.label_6 = QtWidgets.QLabel(self.groupBox) self.label_6.setObjectName("label_6") self.gridLayout_3.addWidget(self.label_6, 0, 2, 1, 1) self.label_5 = QtWidgets.QLabel(self.groupBox) self.label_5.setObjectName("label_5") self.gridLayout_3.addWidget(self.label_5, 0, 0, 1, 1) self.label_9 = QtWidgets.QLabel(self.groupBox) self.label_9.setObjectName("label_9") self.gridLayout_3.addWidget(self.label_9, 1, 0, 1, 1) self.label_7 = QtWidgets.QLabel(self.groupBox) self.label_7.setObjectName("label_7") self.gridLayout_3.addWidget(self.label_7, 0, 4, 1, 1) self.label_dept = QtWidgets.QLabel(self.groupBox) self.label_dept.setObjectName("label_dept") self.gridLayout_3.addWidget(self.label_dept, 0, 1, 1, 1) self.treeWidget_checkrecords = QtWidgets.QTreeWidget(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.treeWidget_checkrecords.sizePolicy().hasHeightForWidth()) self.treeWidget_checkrecords.setSizePolicy(sizePolicy) self.treeWidget_checkrecords.setObjectName("treeWidget_checkrecords") self.gridLayout_3.addWidget(self.treeWidget_checkrecords, 2, 0, 1, 6) self.dateEdit_checkdate = QtWidgets.QDateEdit(self.groupBox) self.dateEdit_checkdate.setCalendarPopup(True) self.dateEdit_checkdate.setObjectName("dateEdit_checkdate") self.gridLayout_3.addWidget(self.dateEdit_checkdate, 0, 5, 1, 1) self.gridLayout_2.addWidget(self.groupBox, 4, 2, 1, 6) self.label_12 = QtWidgets.QLabel(self.tab) self.label_12.setObjectName("label_12") self.gridLayout_2.addWidget(self.label_12, 5, 4, 1, 1) self.plainTextEdit_evaluation = QtWidgets.QPlainTextEdit(self.tab) self.plainTextEdit_evaluation.setObjectName("plainTextEdit_evaluation") self.gridLayout_2.addWidget(self.plainTextEdit_evaluation, 6, 4, 1, 4) self.groupBox_2 = QtWidgets.QGroupBox(self.tab) self.groupBox_2.setObjectName("groupBox_2") self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout_4.setObjectName("gridLayout_4") self.comboBox_dept = QtWidgets.QComboBox(self.groupBox_2) self.comboBox_dept.setObjectName("comboBox_dept") self.gridLayout_4.addWidget(self.comboBox_dept, 0, 0, 1, 1) self.treeWidget_checkitem = QtWidgets.QTreeWidget(self.groupBox_2) self.treeWidget_checkitem.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) self.treeWidget_checkitem.setObjectName("treeWidget_checkitem") self.gridLayout_4.addWidget(self.treeWidget_checkitem, 1, 0, 1, 1) self.gridLayout_2.addWidget(self.groupBox_2, 4, 0, 8, 1) self.label_8 = QtWidgets.QLabel(self.tab) self.label_8.setObjectName("label_8") self.gridLayout_2.addWidget(self.label_8, 5, 2, 1, 1) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.label_3 = QtWidgets.QLabel(self.tab) self.label_3.setObjectName("label_3") self.horizontalLayout_4.addWidget(self.label_3) self.plainTextEdit_summary = QtWidgets.QPlainTextEdit(self.tab) self.plainTextEdit_summary.setObjectName("plainTextEdit_summary") self.horizontalLayout_4.addWidget(self.plainTextEdit_summary) self.label_4 = QtWidgets.QLabel(self.tab) self.label_4.setObjectName("label_4") self.horizontalLayout_4.addWidget(self.label_4) self.label_creator = QtWidgets.QLabel(self.tab) self.label_creator.setObjectName("label_creator") self.horizontalLayout_4.addWidget(self.label_creator) self.pushButton_modify = QtWidgets.QPushButton(self.tab) self.pushButton_modify.setObjectName("pushButton_modify") self.horizontalLayout_4.addWidget(self.pushButton_modify) self.gridLayout_2.addLayout(self.horizontalLayout_4, 3, 0, 1, 8) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.label = QtWidgets.QLabel(self.tab) self.label.setObjectName("label") self.horizontalLayout_5.addWidget(self.label) self.dateEdit_cdate = QtWidgets.QDateEdit(self.tab) self.dateEdit_cdate.setCalendarPopup(True) self.dateEdit_cdate.setObjectName("dateEdit_cdate") self.horizontalLayout_5.addWidget(self.dateEdit_cdate) self.label_2 = QtWidgets.QLabel(self.tab) self.label_2.setObjectName("label_2") self.horizontalLayout_5.addWidget(self.label_2) self.lineEdit_title = QtWidgets.QLineEdit(self.tab) self.lineEdit_title.setObjectName("lineEdit_title") self.horizontalLayout_5.addWidget(self.lineEdit_title) self.gridLayout_2.addLayout(self.horizontalLayout_5, 2, 0, 1, 8) self.tabWidget.addTab(self.tab, "") self.tab_3 = QtWidgets.QWidget() self.tab_3.setObjectName("tab_3") self.gridLayout_5 = QtWidgets.QGridLayout(self.tab_3) self.gridLayout_5.setObjectName("gridLayout_5") self.tabWidget_2 = QtWidgets.QTabWidget(self.tab_3) self.tabWidget_2.setObjectName("tabWidget_2") self.rectify_0 = QtWidgets.QWidget() self.rectify_0.setObjectName("rectify_0") self.gridLayout_7 = QtWidgets.QGridLayout(self.rectify_0) self.gridLayout_7.setObjectName("gridLayout_7") self.treeWidget_rectify = QtWidgets.QTreeWidget(self.rectify_0) self.treeWidget_rectify.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) self.treeWidget_rectify.setObjectName("treeWidget_rectify") self.gridLayout_7.addWidget(self.treeWidget_rectify, 0, 0, 1, 1) self.tabWidget_2.addTab(self.rectify_0, "") self.rectify_1 = QtWidgets.QWidget() self.rectify_1.setObjectName("rectify_1") self.tabWidget_2.addTab(self.rectify_1, "") self.rectify_2 = QtWidgets.QWidget() self.rectify_2.setObjectName("rectify_2") self.tabWidget_2.addTab(self.rectify_2, "") self.gridLayout_5.addWidget(self.tabWidget_2, 0, 0, 1, 1) self.tabWidget.addTab(self.tab_3, "") self.tab_2 = QtWidgets.QWidget() self.tab_2.setObjectName("tab_2") self.gridLayout_6 = QtWidgets.QGridLayout(self.tab_2) self.gridLayout_6.setObjectName("gridLayout_6") self.treeWidget_deptsigns = QtWidgets.QTreeWidget(self.tab_2) self.treeWidget_deptsigns.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) self.treeWidget_deptsigns.setObjectName("treeWidget_deptsigns") self.gridLayout_6.addWidget(self.treeWidget_deptsigns, 3, 2, 1, 2) self.label_18 = QtWidgets.QLabel(self.tab_2) self.label_18.setObjectName("label_18") self.gridLayout_6.addWidget(self.label_18, 2, 0, 1, 1) self.label_23 = QtWidgets.QLabel(self.tab_2) self.label_23.setObjectName("label_23") self.gridLayout_6.addWidget(self.label_23, 7, 0, 1, 1) self.label_22 = QtWidgets.QLabel(self.tab_2) self.label_22.setObjectName("label_22") self.gridLayout_6.addWidget(self.label_22, 2, 2, 1, 1) self.pushButton_scsign = QtWidgets.QPushButton(self.tab_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_scsign.sizePolicy().hasHeightForWidth()) self.pushButton_scsign.setSizePolicy(sizePolicy) self.pushButton_scsign.setObjectName("pushButton_scsign") self.gridLayout_6.addWidget(self.pushButton_scsign, 2, 1, 1, 1) self.label_15 = QtWidgets.QLabel(self.tab_2) self.label_15.setObjectName("label_15") self.gridLayout_6.addWidget(self.label_15, 0, 0, 1, 1) self.pushButton_charger = SignButton(self.tab_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_charger.sizePolicy().hasHeightForWidth()) self.pushButton_charger.setSizePolicy(sizePolicy) self.pushButton_charger.setText("") self.pushButton_charger.setObjectName("pushButton_charger") self.gridLayout_6.addWidget(self.pushButton_charger, 1, 1, 1, 1) self.label_17 = QtWidgets.QLabel(self.tab_2) self.label_17.setObjectName("label_17") self.gridLayout_6.addWidget(self.label_17, 0, 2, 1, 1) self.dateEdit_fromdate = QtWidgets.QDateEdit(self.tab_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.dateEdit_fromdate.sizePolicy().hasHeightForWidth()) self.dateEdit_fromdate.setSizePolicy(sizePolicy) self.dateEdit_fromdate.setCalendarPopup(True) self.dateEdit_fromdate.setObjectName("dateEdit_fromdate") self.gridLayout_6.addWidget(self.dateEdit_fromdate, 0, 1, 1, 1) self.label_21 = QtWidgets.QLabel(self.tab_2) self.label_21.setObjectName("label_21") self.gridLayout_6.addWidget(self.label_21, 1, 0, 1, 1) self.dateEdit_todate = QtWidgets.QDateEdit(self.tab_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.dateEdit_todate.sizePolicy().hasHeightForWidth()) self.dateEdit_todate.setSizePolicy(sizePolicy) self.dateEdit_todate.setCalendarPopup(True) self.dateEdit_todate.setObjectName("dateEdit_todate") self.gridLayout_6.addWidget(self.dateEdit_todate, 0, 3, 1, 1) self.label_20 = QtWidgets.QLabel(self.tab_2) self.label_20.setObjectName("label_20") self.gridLayout_6.addWidget(self.label_20, 5, 2, 1, 1) self.label_19 = QtWidgets.QLabel(self.tab_2) self.label_19.setObjectName("label_19") self.gridLayout_6.addWidget(self.label_19, 5, 0, 1, 1) self.treeWidget_scsigns = QtWidgets.QTreeWidget(self.tab_2) self.treeWidget_scsigns.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) self.treeWidget_scsigns.setObjectName("treeWidget_scsigns") self.gridLayout_6.addWidget(self.treeWidget_scsigns, 3, 0, 1, 2) self.label_24 = QtWidgets.QLabel(self.tab_2) self.label_24.setObjectName("label_24") self.gridLayout_6.addWidget(self.label_24, 7, 2, 1, 1) self.pushButton_deptsign = QtWidgets.QPushButton(self.tab_2) self.pushButton_deptsign.setObjectName("pushButton_deptsign") self.gridLayout_6.addWidget(self.pushButton_deptsign, 2, 3, 1, 1) self.pushButton_save = QtWidgets.QPushButton(self.tab_2) self.pushButton_save.setObjectName("pushButton_save") self.gridLayout_6.addWidget(self.pushButton_save, 9, 1, 1, 1) self.plainTextEdit_scrange = QtWidgets.QPlainTextEdit(self.tab_2) self.plainTextEdit_scrange.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) self.plainTextEdit_scrange.setObjectName("plainTextEdit_scrange") self.gridLayout_6.addWidget(self.plainTextEdit_scrange, 6, 0, 1, 2) self.plainTextEdit_flaws = QtWidgets.QPlainTextEdit(self.tab_2) self.plainTextEdit_flaws.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) self.plainTextEdit_flaws.setObjectName("plainTextEdit_flaws") self.gridLayout_6.addWidget(self.plainTextEdit_flaws, 8, 0, 1, 2) self.plainTextEdit_assess = QtWidgets.QPlainTextEdit(self.tab_2) self.plainTextEdit_assess.setObjectName("plainTextEdit_assess") self.gridLayout_6.addWidget(self.plainTextEdit_assess, 6, 2, 1, 2) self.plainTextEdit_description = QtWidgets.QPlainTextEdit(self.tab_2) self.plainTextEdit_description.setObjectName("plainTextEdit_description") self.gridLayout_6.addWidget(self.plainTextEdit_description, 8, 2, 1, 2) self.tabWidget.addTab(self.tab_2, "") self.gridLayout.addWidget(self.tabWidget, 0, 1, 1, 1) self.retranslateUi(Dialog) self.tabWidget.setCurrentIndex(0) self.tabWidget_2.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(Dialog) def retranslateUi(self, Dialog): _translate = QtCore.QCoreApplication.translate Dialog.setWindowTitle(_translate("Dialog", "Dialog")) self.label_14.setText(_translate("Dialog", "填写人:")) self.label_charger.setText(_translate("Dialog", "TextLabel")) self.label_13.setText(_translate("Dialog", "填写日期:")) self.label_16.setText(_translate("Dialog", "结论:")) self.pushButton_accept.setText(_translate("Dialog", "确认")) self.pushButton_cancel.setText(_translate("Dialog", "取消")) self.groupBox.setTitle(_translate("Dialog", "自检记录")) self.label_checkitem.setText(_translate("Dialog", "TextLabel")) self.label_6.setText(_translate("Dialog", "自检内容:")) self.label_5.setText(_translate("Dialog", "部门:")) self.label_9.setText(_translate("Dialog", "自检人:")) self.label_7.setText(_translate("Dialog", "自检日期:")) self.label_dept.setText(_translate("Dialog", "TextLabel")) self.treeWidget_checkrecords.headerItem().setText(0, _translate("Dialog", "id")) self.treeWidget_checkrecords.headerItem().setText(1, _translate("Dialog", "序号")) self.treeWidget_checkrecords.headerItem().setText(2, _translate("Dialog", "项目")) self.treeWidget_checkrecords.headerItem().setText(3, _translate("Dialog", "依据")) self.treeWidget_checkrecords.headerItem().setText(4, _translate("Dialog", "结果")) self.treeWidget_checkrecords.headerItem().setText(5, _translate("Dialog", "要求整改期限")) self.treeWidget_checkrecords.headerItem().setText(6, _translate("Dialog", "实际整改完成日期")) self.label_12.setText(_translate("Dialog", "评价")) self.groupBox_2.setTitle(_translate("Dialog", "自检列表")) self.treeWidget_checkitem.headerItem().setText(0, _translate("Dialog", "id")) self.treeWidget_checkitem.headerItem().setText(1, _translate("Dialog", "项目种类")) self.label_8.setText(_translate("Dialog", "纠正预防措施")) self.label_3.setText(_translate("Dialog", "介绍:")) self.label_4.setText(_translate("Dialog", "负责人:")) self.label_creator.setText(_translate("Dialog", "TextLabel")) self.pushButton_modify.setText(_translate("Dialog", "修改")) self.label.setText(_translate("Dialog", "自检日期:")) self.label_2.setText(_translate("Dialog", "标题:")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("Dialog", "自检记录")) self.treeWidget_rectify.headerItem().setText(0, _translate("Dialog", "id")) self.treeWidget_rectify.headerItem().setText(1, _translate("Dialog", "受检部门")) self.treeWidget_rectify.headerItem().setText(2, _translate("Dialog", "依据")) self.treeWidget_rectify.headerItem().setText(3, _translate("Dialog", "检查人")) self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.rectify_0), _translate("Dialog", "编辑")) self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.rectify_1), _translate("Dialog", "已下达")) self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.rectify_2), _translate("Dialog", "完成")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("Dialog", "整改通知")) self.treeWidget_deptsigns.headerItem().setText(0, _translate("Dialog", "人员编号")) self.treeWidget_deptsigns.headerItem().setText(1, _translate("Dialog", "人员姓名")) self.label_18.setText(_translate("Dialog", "自检人员:")) self.label_23.setText(_translate("Dialog", "缺陷项目:")) self.label_22.setText(_translate("Dialog", "受检部门负责人:")) self.pushButton_scsign.setText(_translate("Dialog", "增加")) self.label_15.setText(_translate("Dialog", "开始日期:")) self.label_17.setText(_translate("Dialog", "结束日期:")) self.label_21.setText(_translate("Dialog", "自检小组负责人:")) self.label_20.setText(_translate("Dialog", "评价依据:")) self.label_19.setText(_translate("Dialog", "自检范围:")) self.treeWidget_scsigns.headerItem().setText(0, _translate("Dialog", "人员编号")) self.treeWidget_scsigns.headerItem().setText(1, _translate("Dialog", "人员姓名")) self.label_24.setText(_translate("Dialog", "总结:")) self.pushButton_deptsign.setText(_translate("Dialog", "增加")) self.pushButton_save.setText(_translate("Dialog", "保存")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("Dialog", "自检报告"))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(640, 480) self.gridLayout = QtWidgets.QGridLayout(Form) self.gridLayout.setObjectName("gridLayout") self.label = QtWidgets.QLabel(Form) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setMinimumSize(QtCore.QSize(0, 0)) self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 2, 0, 1, 1) self.label_5 = QtWidgets.QLabel(Form) self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 3, 0, 1, 1) self.label_7 = QtWidgets.QLabel(Form) self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 3, 2, 1, 1) self.label_2 = QtWidgets.QLabel(Form) self.label_2.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 2, 2, 1, 1) self.label_submit_time = QtWidgets.QLabel(Form) self.label_submit_time.setText("") self.label_submit_time.setObjectName("label_submit_time") self.gridLayout.addWidget(self.label_submit_time, 3, 1, 1, 1) self.pushButton_submit = QtWidgets.QPushButton(Form) self.pushButton_submit.setObjectName("pushButton_submit") self.gridLayout.addWidget(self.pushButton_submit, 3, 4, 1, 1) self.label_3 = QtWidgets.QLabel(Form) self.label_3.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 2, 5, 1, 1) self.label_status = QtWidgets.QLabel(Form) self.label_status.setText("") self.label_status.setObjectName("label_status") self.gridLayout.addWidget(self.label_status, 2, 6, 1, 1) self.treeWidget_stufflist = QtWidgets.QTreeWidget(Form) self.treeWidget_stufflist.setObjectName("treeWidget_stufflist") self.treeWidget_stufflist.headerItem().setText(0, "1") self.gridLayout.addWidget(self.treeWidget_stufflist, 0, 0, 1, 9) self.label_operate_time = QtWidgets.QLabel(Form) self.label_operate_time.setText("") self.label_operate_time.setObjectName("label_operate_time") self.gridLayout.addWidget(self.label_operate_time, 3, 3, 1, 1) self.pushButton_submiter = SignButton(Form) self.pushButton_submiter.setText("") self.pushButton_submiter.setObjectName("pushButton_submiter") self.gridLayout.addWidget(self.pushButton_submiter, 2, 1, 1, 1) self.pushButton_operator = SignButton(Form) self.pushButton_operator.setText("") self.pushButton_operator.setObjectName("pushButton_operator") self.gridLayout.addWidget(self.pushButton_operator, 2, 3, 1, 1) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = QtCore.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Form")) self.label.setText(_translate("Form", "领料人:")) self.label_5.setText(_translate("Form", "领料时间;")) self.label_7.setText(_translate("Form", "发料时间:")) self.label_2.setText(_translate("Form", "发料人:")) self.pushButton_submit.setText(_translate("Form", "提交")) self.label_3.setText(_translate("Form", "状态:"))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(821, 480) self.gridLayout = QtWidgets.QGridLayout(Form) self.gridLayout.setObjectName("gridLayout") self.label = QtWidgets.QLabel(Form) self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 1, 0, 1, 1) self.label_7 = QtWidgets.QLabel(Form) self.label_7.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 2, 0, 1, 1) self.treeWidget_stufflist = QtWidgets.QTreeWidget(Form) self.treeWidget_stufflist.setIndentation(0) self.treeWidget_stufflist.setObjectName("treeWidget_stufflist") self.gridLayout.addWidget(self.treeWidget_stufflist, 0, 0, 1, 6) self.label_5 = QtWidgets.QLabel(Form) self.label_5.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 1, 4, 1, 1) self.label_4 = QtWidgets.QLabel(Form) self.label_4.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 1, 2, 1, 1) self.label_2 = QtWidgets.QLabel(Form) self.label_2.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 2, 2, 1, 1) self.pushButton_warrantor = SignButton(Form) self.pushButton_warrantor.setEnabled(False) self.pushButton_warrantor.setText("") self.pushButton_warrantor.setObjectName("pushButton_warrantor") self.gridLayout.addWidget(self.pushButton_warrantor, 1, 3, 1, 1) self.dateEdit_warrantdate = QtWidgets.QDateEdit(Form) self.dateEdit_warrantdate.setEnabled(False) self.dateEdit_warrantdate.setFocusPolicy(QtCore.Qt.NoFocus) self.dateEdit_warrantdate.setReadOnly(True) self.dateEdit_warrantdate.setButtonSymbols( QtWidgets.QAbstractSpinBox.NoButtons) self.dateEdit_warrantdate.setObjectName("dateEdit_warrantdate") self.gridLayout.addWidget(self.dateEdit_warrantdate, 2, 3, 1, 1) self.dateEdit_plandate = QtWidgets.QDateEdit(Form) self.dateEdit_plandate.setEnabled(False) self.dateEdit_plandate.setFocusPolicy(QtCore.Qt.NoFocus) self.dateEdit_plandate.setStyleSheet("") self.dateEdit_plandate.setReadOnly(True) self.dateEdit_plandate.setButtonSymbols( QtWidgets.QAbstractSpinBox.NoButtons) self.dateEdit_plandate.setObjectName("dateEdit_plandate") self.gridLayout.addWidget(self.dateEdit_plandate, 2, 1, 1, 1) self.pushButton_instructor = SignButton(Form) self.pushButton_instructor.setEnabled(False) self.pushButton_instructor.setText("") self.pushButton_instructor.setObjectName("pushButton_instructor") self.gridLayout.addWidget(self.pushButton_instructor, 1, 1, 1, 1) self.pushButton_executor = SignButton(Form) self.pushButton_executor.setEnabled(False) self.pushButton_executor.setText("") self.pushButton_executor.setObjectName("pushButton_executor") self.gridLayout.addWidget(self.pushButton_executor, 1, 5, 1, 1) self.label_3 = QtWidgets.QLabel(Form) self.label_3.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 2, 4, 1, 1) self.dateEdit_executedate = QtWidgets.QDateEdit(Form) self.dateEdit_executedate.setEnabled(False) self.dateEdit_executedate.setObjectName("dateEdit_executedate") self.gridLayout.addWidget(self.dateEdit_executedate, 2, 5, 1, 1) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = QtCore.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Form")) self.label.setText(_translate("Form", "制定人:")) self.label_7.setText(_translate("Form", "制定日期:")) self.treeWidget_stufflist.headerItem().setText( 0, _translate("Form", "id")) self.treeWidget_stufflist.headerItem().setText( 1, _translate("Form", "lrid")) self.treeWidget_stufflist.headerItem().setText( 2, _translate("Form", "物料")) self.treeWidget_stufflist.headerItem().setText( 3, _translate("Form", "进厂批号")) self.treeWidget_stufflist.headerItem().setText( 4, _translate("Form", "含量规格")) self.treeWidget_stufflist.headerItem().setText( 5, _translate("Form", "包装规格")) self.treeWidget_stufflist.headerItem().setText( 6, _translate("Form", "计划量")) self.treeWidget_stufflist.headerItem().setText( 7, _translate("Form", "含量/效价")) self.treeWidget_stufflist.headerItem().setText( 8, _translate("Form", "水分")) self.treeWidget_stufflist.headerItem().setText( 9, _translate("Form", "相对密度")) self.treeWidget_stufflist.headerItem().setText( 10, _translate("Form", "杂质")) self.label_5.setText(_translate("Form", "执行人:")) self.label_4.setText(_translate("Form", "审核人:")) self.label_2.setText(_translate("Form", "审核日期:")) self.label_3.setText(_translate("Form", "执行日期:"))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(640, 480) self.gridLayout = QtWidgets.QGridLayout(Form) self.gridLayout.setObjectName("gridLayout") self.label = QtWidgets.QLabel(Form) self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 1, 0, 1, 1) self.label_3 = QtWidgets.QLabel(Form) self.label_3.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 1, 4, 1, 1) self.label_2 = QtWidgets.QLabel(Form) self.label_2.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 1, 2, 1, 1) self.label_4 = QtWidgets.QLabel(Form) self.label_4.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 1, 6, 1, 1) self.label_5 = QtWidgets.QLabel(Form) self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 2, 0, 1, 1) self.label_7 = QtWidgets.QLabel(Form) self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 2, 4, 1, 1) self.label_6 = QtWidgets.QLabel(Form) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 2, 2, 1, 1) self.label_draft_date = QtWidgets.QLabel(Form) self.label_draft_date.setText("") self.label_draft_date.setObjectName("label_draft_date") self.gridLayout.addWidget(self.label_draft_date, 2, 1, 1, 1) self.label_review_date = QtWidgets.QLabel(Form) self.label_review_date.setText("") self.label_review_date.setObjectName("label_review_date") self.gridLayout.addWidget(self.label_review_date, 2, 3, 1, 1) self.label_check_date = QtWidgets.QLabel(Form) self.label_check_date.setText("") self.label_check_date.setObjectName("label_check_date") self.gridLayout.addWidget(self.label_check_date, 2, 5, 1, 1) self.label_8 = QtWidgets.QLabel(Form) self.label_8.setObjectName("label_8") self.gridLayout.addWidget(self.label_8, 2, 6, 1, 1) self.label_exectu_date = QtWidgets.QLabel(Form) self.label_exectu_date.setText("") self.label_exectu_date.setObjectName("label_exectu_date") self.gridLayout.addWidget(self.label_exectu_date, 2, 7, 1, 1) self.treeWidget_stufflist = QtWidgets.QTreeWidget(Form) self.treeWidget_stufflist.setObjectName("treeWidget_stufflist") self.gridLayout.addWidget(self.treeWidget_stufflist, 0, 0, 1, 8) self.pushButton_stufflist = SignButton(Form) self.pushButton_stufflist.setText("") self.pushButton_stufflist.setObjectName("pushButton_stufflist") self.gridLayout.addWidget(self.pushButton_stufflist, 1, 1, 1, 1) self.pushButton_reviewer = SignButton(Form) self.pushButton_reviewer.setText("") self.pushButton_reviewer.setObjectName("pushButton_reviewer") self.gridLayout.addWidget(self.pushButton_reviewer, 1, 3, 1, 1) self.pushButton_QAchecker = SignButton(Form) self.pushButton_QAchecker.setText("") self.pushButton_QAchecker.setObjectName("pushButton_QAchecker") self.gridLayout.addWidget(self.pushButton_QAchecker, 1, 5, 1, 1) self.pushButton_executor = SignButton(Form) self.pushButton_executor.setText("") self.pushButton_executor.setObjectName("pushButton_executor") self.gridLayout.addWidget(self.pushButton_executor, 1, 7, 1, 1) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = QtCore.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Form")) self.label.setText(_translate("Form", "制订人:")) self.label_3.setText(_translate("Form", "QA复核:")) self.label_2.setText(_translate("Form", "审核人:")) self.label_4.setText(_translate("Form", "执行人:")) self.label_5.setText(_translate("Form", "下达日期:")) self.label_7.setText(_translate("Form", "复核日期:")) self.label_6.setText(_translate("Form", "审核日期:")) self.label_8.setText(_translate("Form", "执行日期;")) self.treeWidget_stufflist.headerItem().setText( 0, _translate("Form", "id")) self.treeWidget_stufflist.headerItem().setText( 1, _translate("Form", "编号")) self.treeWidget_stufflist.headerItem().setText( 2, _translate("Form", "名称")) self.treeWidget_stufflist.headerItem().setText( 3, _translate("Form", "类别")) self.treeWidget_stufflist.headerItem().setText( 4, _translate("Form", "来源")) self.treeWidget_stufflist.headerItem().setText( 5, _translate("Form", "包装规格")) self.treeWidget_stufflist.headerItem().setText( 6, _translate("Form", "进厂批号")) self.treeWidget_stufflist.headerItem().setText( 7, _translate("Form", "计划量")) self.treeWidget_stufflist.headerItem().setText( 8, _translate("Form", "单位")) self.treeWidget_stufflist.headerItem().setText( 9, _translate("Form", "含量")) self.treeWidget_stufflist.headerItem().setText( 10, _translate("Form", "水分")) self.treeWidget_stufflist.headerItem().setText( 11, _translate("Form", "杂质")) self.treeWidget_stufflist.headerItem().setText( 12, _translate("Form", "相对密度"))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(750, 466) Form.setTabletTracking(False) self.verticalLayout = QtWidgets.QVBoxLayout(Form) self.verticalLayout.setObjectName("verticalLayout") self.groupBox = QtWidgets.QGroupBox(Form) self.groupBox.setObjectName("groupBox") self.gridLayout = QtWidgets.QGridLayout(self.groupBox) self.gridLayout.setObjectName("gridLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.lineEdit_amount = QtWidgets.QLineEdit(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.lineEdit_amount.sizePolicy().hasHeightForWidth()) self.lineEdit_amount.setSizePolicy(sizePolicy) self.lineEdit_amount.setObjectName("lineEdit_amount") self.horizontalLayout.addWidget(self.lineEdit_amount) self.label_unit = QtWidgets.QLabel(self.groupBox) self.label_unit.setText("") self.label_unit.setObjectName("label_unit") self.horizontalLayout.addWidget(self.label_unit) self.gridLayout.addLayout(self.horizontalLayout, 11, 1, 1, 1) self.label_spec = QtWidgets.QLabel(self.groupBox) self.label_spec.setText("") self.label_spec.setObjectName("label_spec") self.gridLayout.addWidget(self.label_spec, 1, 1, 1, 4) self.label_3 = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_3.sizePolicy().hasHeightForWidth()) self.label_3.setSizePolicy(sizePolicy) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 3, 0, 1, 1) self.comboBox_piposition = QtWidgets.QComboBox(self.groupBox) self.comboBox_piposition.setEditable(True) self.comboBox_piposition.setObjectName("comboBox_piposition") self.gridLayout.addWidget(self.comboBox_piposition, 11, 4, 1, 1) self.label_2 = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_2.sizePolicy().hasHeightForWidth()) self.label_2.setSizePolicy(sizePolicy) self.label_2.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 4, 3, 1, 1) self.label = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.label_product = QtWidgets.QLabel(self.groupBox) self.label_product.setText("") self.label_product.setObjectName("label_product") self.gridLayout.addWidget(self.label_product, 0, 1, 1, 4) self.label_package = QtWidgets.QLabel(self.groupBox) self.label_package.setText("") self.label_package.setObjectName("label_package") self.gridLayout.addWidget(self.label_package, 3, 1, 1, 4) self.label_6 = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_6.sizePolicy().hasHeightForWidth()) self.label_6.setSizePolicy(sizePolicy) self.label_6.setText("") self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 4, 2, 1, 1) self.label_18 = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_18.sizePolicy().hasHeightForWidth()) self.label_18.setSizePolicy(sizePolicy) self.label_18.setObjectName("label_18") self.gridLayout.addWidget(self.label_18, 11, 0, 1, 1) self.label_16 = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_16.sizePolicy().hasHeightForWidth()) self.label_16.setSizePolicy(sizePolicy) self.label_16.setObjectName("label_16") self.gridLayout.addWidget(self.label_16, 1, 0, 1, 1) self.label_22 = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_22.sizePolicy().hasHeightForWidth()) self.label_22.setSizePolicy(sizePolicy) self.label_22.setObjectName("label_22") self.gridLayout.addWidget(self.label_22, 4, 0, 1, 1) self.label_19 = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_19.sizePolicy().hasHeightForWidth()) self.label_19.setSizePolicy(sizePolicy) self.label_19.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_19.setObjectName("label_19") self.gridLayout.addWidget(self.label_19, 11, 3, 1, 1) self.label_checkstatus = QtWidgets.QLabel(self.groupBox) self.label_checkstatus.setText("") self.label_checkstatus.setObjectName("label_checkstatus") self.gridLayout.addWidget(self.label_checkstatus, 4, 4, 1, 1) self.label_reportpaperno = QtWidgets.QLabel(self.groupBox) self.label_reportpaperno.setText("") self.label_reportpaperno.setObjectName("label_reportpaperno") self.gridLayout.addWidget(self.label_reportpaperno, 4, 1, 1, 1) self.groupBox_2 = QtWidgets.QGroupBox(self.groupBox) self.groupBox_2.setTitle("") self.groupBox_2.setObjectName("groupBox_2") self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout_3.setObjectName("gridLayout_3") self.lineEdit_content = QtWidgets.QLineEdit(self.groupBox_2) self.lineEdit_content.setObjectName("lineEdit_content") self.gridLayout_3.addWidget(self.lineEdit_content, 0, 1, 1, 1) self.label_5 = QtWidgets.QLabel(self.groupBox_2) self.label_5.setObjectName("label_5") self.gridLayout_3.addWidget(self.label_5, 0, 0, 1, 1) self.label_9 = QtWidgets.QLabel(self.groupBox_2) self.label_9.setObjectName("label_9") self.gridLayout_3.addWidget(self.label_9, 1, 3, 1, 1) self.label_waterunit = QtWidgets.QLabel(self.groupBox_2) self.label_waterunit.setObjectName("label_waterunit") self.gridLayout_3.addWidget(self.label_waterunit, 1, 2, 1, 1) self.label_contentunit = QtWidgets.QLabel(self.groupBox_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_contentunit.sizePolicy().hasHeightForWidth()) self.label_contentunit.setSizePolicy(sizePolicy) self.label_contentunit.setText("") self.label_contentunit.setObjectName("label_contentunit") self.gridLayout_3.addWidget(self.label_contentunit, 0, 2, 1, 1) self.label_7 = QtWidgets.QLabel(self.groupBox_2) self.label_7.setObjectName("label_7") self.gridLayout_3.addWidget(self.label_7, 1, 0, 1, 1) self.label_impurityunit = QtWidgets.QLabel(self.groupBox_2) self.label_impurityunit.setObjectName("label_impurityunit") self.gridLayout_3.addWidget(self.label_impurityunit, 1, 5, 1, 1) self.lineEdit_water = QtWidgets.QLineEdit(self.groupBox_2) self.lineEdit_water.setObjectName("lineEdit_water") self.gridLayout_3.addWidget(self.lineEdit_water, 1, 1, 1, 1) self.label_8 = QtWidgets.QLabel(self.groupBox_2) self.label_8.setObjectName("label_8") self.gridLayout_3.addWidget(self.label_8, 0, 3, 1, 1) self.label_rdensityunit = QtWidgets.QLabel(self.groupBox_2) self.label_rdensityunit.setText("") self.label_rdensityunit.setObjectName("label_rdensityunit") self.gridLayout_3.addWidget(self.label_rdensityunit, 0, 5, 1, 1) self.lineEdit_rdensity = QtWidgets.QLineEdit(self.groupBox_2) self.lineEdit_rdensity.setObjectName("lineEdit_rdensity") self.gridLayout_3.addWidget(self.lineEdit_rdensity, 0, 4, 1, 1) self.lineEdit_impurity = QtWidgets.QLineEdit(self.groupBox_2) self.lineEdit_impurity.setObjectName("lineEdit_impurity") self.gridLayout_3.addWidget(self.lineEdit_impurity, 1, 4, 1, 1) self.gridLayout.addWidget(self.groupBox_2, 12, 0, 1, 5) self.verticalLayout.addWidget(self.groupBox) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.pushButton_save = QtWidgets.QPushButton(Form) self.pushButton_save.setObjectName("pushButton_save") self.horizontalLayout_3.addWidget(self.pushButton_save) self.pushButton_accept = QtWidgets.QPushButton(Form) self.pushButton_accept.setObjectName("pushButton_accept") self.horizontalLayout_3.addWidget(self.pushButton_accept) self.pushButton_cancel = QtWidgets.QPushButton(Form) self.pushButton_cancel.setObjectName("pushButton_cancel") self.horizontalLayout_3.addWidget(self.pushButton_cancel) self.pushButton_pi = QtWidgets.QPushButton(Form) self.pushButton_pi.setObjectName("pushButton_pi") self.horizontalLayout_3.addWidget(self.pushButton_pi) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem) self.verticalLayout.addLayout(self.horizontalLayout_3) self.gridLayout_2 = QtWidgets.QGridLayout() self.gridLayout_2.setObjectName("gridLayout_2") self.pushButton_applyer = SignButton(Form) self.pushButton_applyer.setText("") self.pushButton_applyer.setObjectName("pushButton_applyer") self.gridLayout_2.addWidget(self.pushButton_applyer, 0, 1, 1, 1) self.label_31 = QtWidgets.QLabel(Form) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_31.sizePolicy().hasHeightForWidth()) self.label_31.setSizePolicy(sizePolicy) self.label_31.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_31.setObjectName("label_31") self.gridLayout_2.addWidget(self.label_31, 0, 0, 1, 1) self.pushButton_qa = SignButton(Form) self.pushButton_qa.setText("") self.pushButton_qa.setObjectName("pushButton_qa") self.gridLayout_2.addWidget(self.pushButton_qa, 0, 5, 1, 1) self.label_32 = QtWidgets.QLabel(Form) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_32.sizePolicy().hasHeightForWidth()) self.label_32.setSizePolicy(sizePolicy) self.label_32.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_32.setObjectName("label_32") self.gridLayout_2.addWidget(self.label_32, 0, 4, 1, 1) self.label_4 = QtWidgets.QLabel(Form) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_4.sizePolicy().hasHeightForWidth()) self.label_4.setSizePolicy(sizePolicy) self.label_4.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_4.setObjectName("label_4") self.gridLayout_2.addWidget(self.label_4, 1, 0, 1, 1) self.pushButton_piwsman = SignButton(Form) self.pushButton_piwsman.setText("") self.pushButton_piwsman.setObjectName("pushButton_piwsman") self.gridLayout_2.addWidget(self.pushButton_piwsman, 1, 1, 1, 1) self.label_10 = QtWidgets.QLabel(Form) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_10.sizePolicy().hasHeightForWidth()) self.label_10.setSizePolicy(sizePolicy) self.label_10.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_10.setObjectName("label_10") self.gridLayout_2.addWidget(self.label_10, 1, 4, 1, 1) self.label_warehouse = QtWidgets.QLabel(Form) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_warehouse.sizePolicy().hasHeightForWidth()) self.label_warehouse.setSizePolicy(sizePolicy) self.label_warehouse.setText("") self.label_warehouse.setObjectName("label_warehouse") self.gridLayout_2.addWidget(self.label_warehouse, 1, 5, 1, 1) self.verticalLayout.addLayout(self.gridLayout_2) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) Form.setTabOrder(self.lineEdit_amount, self.pushButton_accept) Form.setTabOrder(self.pushButton_accept, self.pushButton_cancel) Form.setTabOrder(self.pushButton_cancel, self.pushButton_applyer) Form.setTabOrder(self.pushButton_applyer, self.pushButton_qa) def retranslateUi(self, Form): _translate = QtCore.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Form")) self.groupBox.setTitle(_translate("Form", "入库记录")) self.label_3.setText(_translate("Form", "包装规格:")) self.label_2.setText(_translate("Form", "检验结果:")) self.label.setText(_translate("Form", "产品名称:")) self.label_18.setText(_translate("Form", "入库数量:")) self.label_16.setText(_translate("Form", "含量规格:")) self.label_22.setText(_translate("Form", "检验单号:")) self.label_19.setText(_translate("Form", "位置:")) self.label_5.setText(_translate("Form", "含量:")) self.label_9.setText(_translate("Form", "杂质:")) self.label_waterunit.setText(_translate("Form", "%")) self.label_7.setText(_translate("Form", "水分:")) self.label_impurityunit.setText(_translate("Form", "%")) self.label_8.setText(_translate("Form", "相对密度:")) self.pushButton_save.setText(_translate("Form", "保存")) self.pushButton_accept.setText(_translate("Form", "提交入库")) self.pushButton_cancel.setText(_translate("Form", "取消入库库")) self.pushButton_pi.setText(_translate("Form", "确认入库")) self.label_31.setText(_translate("Form", "入库人:")) self.label_32.setText(_translate("Form", "QA:")) self.label_4.setText(_translate("Form", "仓管:")) self.label_10.setText(_translate("Form", "仓库:"))