示例#1
0
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(699, 278)
        self.gridLayout = QtWidgets.QGridLayout(Dialog)
        self.gridLayout.setObjectName("gridLayout")
        self.label_4 = QtWidgets.QLabel(Dialog)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 3, 0, 1, 1)
        self.lineEdit_remark = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_remark.setObjectName("lineEdit_remark")
        self.gridLayout.addWidget(self.lineEdit_remark, 3, 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.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, 4, 0, 1, 2)
        self.comboBox_pokind = QtWidgets.QComboBox(Dialog)
        self.comboBox_pokind.setEditable(True)
        self.comboBox_pokind.setObjectName("comboBox_pokind")
        self.gridLayout.addWidget(self.comboBox_pokind, 1, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(Dialog)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1)
        self.lineEdit_client = ComboLine(Dialog)
        self.lineEdit_client.setObjectName("lineEdit_client")
        self.gridLayout.addWidget(self.lineEdit_client, 0, 1, 1, 1)
        self.lineEdit_remark.raise_()
        self.comboBox_pokind.raise_()
        self.label_2.raise_()
        self.label_4.raise_()
        self.label_3.raise_()
        self.lineEdit_client.raise_()

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        Dialog.setTabOrder(self.lineEdit_client, self.comboBox_pokind)
        Dialog.setTabOrder(self.comboBox_pokind, self.lineEdit_remark)
        Dialog.setTabOrder(self.lineEdit_remark, self.pushButton_cancel)
        Dialog.setTabOrder(self.pushButton_cancel, self.pushButton_accept)

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
        self.label_4.setText(_translate("Dialog", "备注:"))
        self.label_2.setText(_translate("Dialog", "出库类别:"))
        self.pushButton_accept.setText(_translate("Dialog", "确认"))
        self.pushButton_cancel.setText(_translate("Dialog", "取消"))
        self.label_3.setText(_translate("Dialog", "客户:"))
示例#2
0
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(625, 226)
        self.gridLayout = QtWidgets.QGridLayout(Dialog)
        self.gridLayout.setObjectName("gridLayout")
        self.producerlabel = QtWidgets.QLabel(Dialog)
        self.producerlabel.setObjectName("producerlabel")
        self.gridLayout.addWidget(self.producerlabel, 1, 0, 1, 1)
        self.lineEdit_producer = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_producer.setObjectName("lineEdit_producer")
        self.gridLayout.addWidget(self.lineEdit_producer, 1, 1, 1, 1)
        self.lineEdit_supplyer = ComboLine(Dialog)
        self.lineEdit_supplyer.setObjectName("lineEdit_supplyer")
        self.gridLayout.addWidget(self.lineEdit_supplyer, 0, 1, 1, 1)
        self.supplyeridlabel = QtWidgets.QLabel(Dialog)
        self.supplyeridlabel.setObjectName("supplyeridlabel")
        self.gridLayout.addWidget(self.supplyeridlabel, 0, 0, 1, 1)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        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.horizontalLayout_2.addWidget(self.pushButton_accept)
        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.horizontalLayout_2.addWidget(self.pushButton_cancel)
        self.gridLayout.addLayout(self.horizontalLayout_2, 2, 0, 1, 2)
        self.lineEdit_producer.raise_()
        self.producerlabel.raise_()
        self.supplyeridlabel.raise_()
        self.lineEdit_supplyer.raise_()

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        Dialog.setTabOrder(self.lineEdit_supplyer, self.lineEdit_producer)
        Dialog.setTabOrder(self.lineEdit_producer, 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.producerlabel.setText(_translate("Dialog", "生产厂家:"))
        self.supplyeridlabel.setText(_translate("Dialog", "供应商:"))
        self.pushButton_accept.setText(_translate("Dialog", "确认"))
        self.pushButton_cancel.setText(_translate("Dialog", "取消"))
示例#3
0
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(542, 389)
        self.gridLayout = QtWidgets.QGridLayout(Dialog)
        self.gridLayout.setObjectName("gridLayout")
        self.label_4 = QtWidgets.QLabel(Dialog)
        self.label_4.setSizeIncrement(QtCore.QSize(0, 0))
        self.label_4.setBaseSize(QtCore.QSize(0, 0))
        self.label_4.setStyleSheet("border-image: url(:/images/logo.png);")
        self.label_4.setText("")
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 0, 0, 1, 4)
        self.Label = QtWidgets.QLabel(Dialog)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.Label.setFont(font)
        self.Label.setAlignment(QtCore.Qt.AlignCenter)
        self.Label.setObjectName("Label")
        self.gridLayout.addWidget(self.Label, 1, 0, 1, 1)
        self.lineEdit_username = ComboLine(Dialog)
        self.lineEdit_username.setObjectName("lineEdit_username")
        self.gridLayout.addWidget(self.lineEdit_username, 1, 1, 1, 2)
        self.pushButton_accept = QtWidgets.QPushButton(Dialog)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_accept.setFont(font)
        self.pushButton_accept.setObjectName("pushButton_accept")
        self.gridLayout.addWidget(self.pushButton_accept, 1, 3, 1, 1)
        self.Label_2 = QtWidgets.QLabel(Dialog)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.Label_2.setFont(font)
        self.Label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.Label_2.setObjectName("Label_2")
        self.gridLayout.addWidget(self.Label_2, 2, 0, 1, 1)
        self.lineEdit_password = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_password.setObjectName("lineEdit_password")
        self.gridLayout.addWidget(self.lineEdit_password, 2, 1, 1, 2)
        self.pushButton_cancel = QtWidgets.QPushButton(Dialog)
        self.pushButton_cancel.setEnabled(True)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_cancel.setFont(font)
        self.pushButton_cancel.setObjectName("pushButton_cancel")
        self.gridLayout.addWidget(self.pushButton_cancel, 2, 3, 1, 1)
        self.label_tips = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_tips.sizePolicy().hasHeightForWidth())
        self.label_tips.setSizePolicy(sizePolicy)
        self.label_tips.setStyleSheet("color: rgb(255, 85, 0);")
        self.label_tips.setObjectName("label_tips")
        self.gridLayout.addWidget(self.label_tips, 3, 1, 1, 2)
        self.label_changepassword = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_changepassword.sizePolicy().hasHeightForWidth())
        self.label_changepassword.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(11)
        font.setUnderline(True)
        self.label_changepassword.setFont(font)
        self.label_changepassword.setAlignment(QtCore.Qt.AlignCenter)
        self.label_changepassword.setObjectName("label_changepassword")
        self.gridLayout.addWidget(self.label_changepassword, 4, 0, 1, 2)
        self.label_forgetpassword = QtWidgets.QLabel(Dialog)
        font = QtGui.QFont()
        font.setPointSize(11)
        font.setUnderline(True)
        self.label_forgetpassword.setFont(font)
        self.label_forgetpassword.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.label_forgetpassword.setAlignment(QtCore.Qt.AlignCenter)
        self.label_forgetpassword.setObjectName("label_forgetpassword")
        self.gridLayout.addWidget(self.label_forgetpassword, 4, 2, 1, 1)
        self.label = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setMaximumSize(QtCore.QSize(16777214, 16777215))
        font = QtGui.QFont()
        font.setFamily("Microsoft YaHei UI")
        font.setPointSize(17)
        font.setBold(False)
        font.setWeight(50)
        self.label.setFont(font)
        self.label.setAutoFillBackground(False)
        self.label.setStyleSheet("border-image: url(:/images/switch.png);")
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 5, 0, 1, 4)
        self.label_changepassword.raise_()
        self.label.raise_()
        self.label_tips.raise_()
        self.pushButton_cancel.raise_()
        self.lineEdit_password.raise_()
        self.Label_2.raise_()
        self.label_forgetpassword.raise_()
        self.lineEdit_username.raise_()
        self.pushButton_accept.raise_()
        self.label_4.raise_()
        self.Label.raise_()

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "用户登录"))
        self.Label.setText(_translate("Dialog", "姓名"))
        self.pushButton_accept.setText(_translate("Dialog", "确认"))
        self.Label_2.setText(_translate("Dialog", "密码"))
        self.pushButton_cancel.setText(_translate("Dialog", "取消"))
        self.label_tips.setText(_translate("Dialog", "帐号/密码错误"))
        self.label_changepassword.setText(_translate("Dialog", "修改密码"))
        self.label_forgetpassword.setText(_translate("Dialog", "忘记密码"))
        self.label.setText(_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", "建立日期:"))
示例#5
0
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(776, 507)
        self.gridLayout = QtWidgets.QGridLayout(Dialog)
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtWidgets.QLabel(Dialog)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
        self.label_2 = QtWidgets.QLabel(Dialog)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 2, 1, 1)
        self.lineEdit_id = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_id.setObjectName("lineEdit_id")
        self.gridLayout.addWidget(self.lineEdit_id, 1, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(Dialog)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 2, 2, 1, 1)
        self.label_4 = QtWidgets.QLabel(Dialog)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 0, 0, 1, 1)
        self.lineEdit_version = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_version.setObjectName("lineEdit_version")
        self.gridLayout.addWidget(self.lineEdit_version, 2, 3, 1, 1)
        self.lineEdit_name = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_name.setObjectName("lineEdit_name")
        self.gridLayout.addWidget(self.lineEdit_name, 1, 3, 1, 1)
        self.comboBox_kind = QtWidgets.QComboBox(Dialog)
        self.comboBox_kind.setEditable(True)
        self.comboBox_kind.setObjectName("comboBox_kind")
        self.gridLayout.addWidget(self.comboBox_kind, 2, 1, 1, 1)
        self.label_5 = QtWidgets.QLabel(Dialog)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 2, 0, 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, 4, 1, 1, 1)
        self.dateEdit_startdate = QtWidgets.QDateEdit(Dialog)
        self.dateEdit_startdate.setCalendarPopup(True)
        self.dateEdit_startdate.setObjectName("dateEdit_startdate")
        self.gridLayout.addWidget(self.dateEdit_startdate, 4, 3, 1, 1)
        self.label_6 = QtWidgets.QLabel(Dialog)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 4, 0, 1, 1)
        self.label_7 = QtWidgets.QLabel(Dialog)
        self.label_7.setObjectName("label_7")
        self.gridLayout.addWidget(self.label_7, 4, 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.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.pushButton_select_all = QtWidgets.QPushButton(self.groupBox)
        self.pushButton_select_all.setObjectName("pushButton_select_all")
        self.horizontalLayout_4.addWidget(self.pushButton_select_all)
        self.pushButton_inverse_select = QtWidgets.QPushButton(self.groupBox)
        self.pushButton_inverse_select.setObjectName(
            "pushButton_inverse_select")
        self.horizontalLayout_4.addWidget(self.pushButton_inverse_select)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem)
        self.gridLayout_2.addLayout(self.horizontalLayout_4, 0, 0, 1, 1)
        self.treeWidget_dept = QtWidgets.QTreeWidget(self.groupBox)
        self.treeWidget_dept.setObjectName("treeWidget_dept")
        self.gridLayout_2.addWidget(self.treeWidget_dept, 1, 0, 1, 1)
        self.gridLayout.addWidget(self.groupBox, 6, 0, 1, 4)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.lineEdit_file_route = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_file_route.setObjectName("lineEdit_file_route")
        self.horizontalLayout.addWidget(self.lineEdit_file_route)
        self.toolButton_selec_file = QtWidgets.QToolButton(Dialog)
        self.toolButton_selec_file.setObjectName("toolButton_selec_file")
        self.horizontalLayout.addWidget(self.toolButton_selec_file)
        self.gridLayout.addLayout(self.horizontalLayout, 0, 1, 1, 3)
        self.lineEdit_create_dept = ComboLine(Dialog)
        self.lineEdit_create_dept.setObjectName("lineEdit_create_dept")
        self.gridLayout.addWidget(self.lineEdit_create_dept, 5, 1, 1, 1)
        self.label_8 = QtWidgets.QLabel(Dialog)
        self.label_8.setObjectName("label_8")
        self.gridLayout.addWidget(self.label_8, 5, 0, 1, 1)
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem1)
        self.pushButton_accept = QtWidgets.QPushButton(Dialog)
        self.pushButton_accept.setObjectName("pushButton_accept")
        self.horizontalLayout_7.addWidget(self.pushButton_accept)
        self.pushButton_cancel = QtWidgets.QPushButton(Dialog)
        self.pushButton_cancel.setObjectName("pushButton_cancel")
        self.horizontalLayout_7.addWidget(self.pushButton_cancel)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem2)
        self.gridLayout.addLayout(self.horizontalLayout_7, 7, 0, 1, 4)
        self.label_9 = QtWidgets.QLabel(Dialog)
        self.label_9.setObjectName("label_9")
        self.gridLayout.addWidget(self.label_9, 5, 2, 1, 1)
        self.label_creator = QtWidgets.QLabel(Dialog)
        self.label_creator.setText("")
        self.label_creator.setObjectName("label_creator")
        self.gridLayout.addWidget(self.label_creator, 5, 3, 1, 1)

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
        self.label.setText(_translate("Dialog", "文档编号:"))
        self.label_2.setText(_translate("Dialog", "文档名称:"))
        self.label_3.setText(_translate("Dialog", "版本号:"))
        self.label_4.setText(_translate("Dialog", "文档路径:"))
        self.label_5.setText(_translate("Dialog", "文档类别:"))
        self.label_6.setText(_translate("Dialog", "建立日期:"))
        self.label_7.setText(_translate("Dialog", "生效日期:"))
        self.groupBox.setTitle(_translate("Dialog", "分发部门"))
        self.pushButton_select_all.setText(_translate("Dialog", "全选"))
        self.pushButton_inverse_select.setText(_translate("Dialog", "全部反选"))
        self.treeWidget_dept.headerItem().setText(0,
                                                  _translate("Dialog", "id"))
        self.treeWidget_dept.headerItem().setText(1,
                                                  _translate("Dialog", "部门编号"))
        self.treeWidget_dept.headerItem().setText(2,
                                                  _translate("Dialog", "部门名称"))
        self.toolButton_selec_file.setText(_translate("Dialog", "..."))
        self.label_8.setText(_translate("Dialog", "建立部门:"))
        self.pushButton_accept.setText(_translate("Dialog", "确认"))
        self.pushButton_cancel.setText(_translate("Dialog", "取消"))
        self.label_9.setText(_translate("Dialog", "建立人:"))
示例#6
0
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(680, 414)
        self.gridLayout = QtWidgets.QGridLayout(Dialog)
        self.gridLayout.setObjectName("gridLayout")
        self.label_4 = QtWidgets.QLabel(Dialog)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 12, 0, 1, 1)
        self.lineEdit_remark = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_remark.setObjectName("lineEdit_remark")
        self.gridLayout.addWidget(self.lineEdit_remark, 12, 1, 1, 1)
        self.lineEdit_client = ComboLine(Dialog)
        self.lineEdit_client.setEnabled(True)
        self.lineEdit_client.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.lineEdit_client.setObjectName("lineEdit_client")
        self.gridLayout.addWidget(self.lineEdit_client, 1, 1, 1, 1)
        self.label_7 = QtWidgets.QLabel(Dialog)
        self.label_7.setObjectName("label_7")
        self.gridLayout.addWidget(self.label_7, 11, 0, 1, 1)
        self.lineEdit_telno = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_telno.setObjectName("lineEdit_telno")
        self.gridLayout.addWidget(self.lineEdit_telno, 5, 1, 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_9 = QtWidgets.QLabel(Dialog)
        self.label_9.setObjectName("label_9")
        self.gridLayout.addWidget(self.label_9, 9, 0, 1, 1)
        self.comboBox_paymethod = QtWidgets.QComboBox(Dialog)
        self.comboBox_paymethod.setEditable(True)
        self.comboBox_paymethod.setObjectName("comboBox_paymethod")
        self.gridLayout.addWidget(self.comboBox_paymethod, 11, 1, 1, 1)
        self.comboBox_conveyance = QtWidgets.QComboBox(Dialog)
        self.comboBox_conveyance.setEditable(True)
        self.comboBox_conveyance.setObjectName("comboBox_conveyance")
        self.gridLayout.addWidget(self.comboBox_conveyance, 10, 1, 1, 1)
        self.dateEdit_deliverydate = QtWidgets.QDateEdit(Dialog)
        self.dateEdit_deliverydate.setCalendarPopup(True)
        self.dateEdit_deliverydate.setObjectName("dateEdit_deliverydate")
        self.gridLayout.addWidget(self.dateEdit_deliverydate, 9, 1, 1, 1)
        self.lineEdit_deliveryplace = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_deliveryplace.setObjectName("lineEdit_deliveryplace")
        self.gridLayout.addWidget(self.lineEdit_deliveryplace, 3, 1, 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.pushButton_accept = QtWidgets.QPushButton(Dialog)
        self.pushButton_accept.setObjectName("pushButton_accept")
        self.horizontalLayout_2.addWidget(self.pushButton_accept)
        self.pushButton_cancel = QtWidgets.QPushButton(Dialog)
        self.pushButton_cancel.setObjectName("pushButton_cancel")
        self.horizontalLayout_2.addWidget(self.pushButton_cancel)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.gridLayout.addLayout(self.horizontalLayout_2, 13, 0, 1, 2)
        self.label = QtWidgets.QLabel(Dialog)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
        self.label_10 = QtWidgets.QLabel(Dialog)
        self.label_10.setObjectName("label_10")
        self.gridLayout.addWidget(self.label_10, 10, 0, 1, 1)
        self.lineEdit_linkman = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_linkman.setObjectName("lineEdit_linkman")
        self.gridLayout.addWidget(self.lineEdit_linkman, 4, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(Dialog)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 3, 0, 1, 1)
        self.label_8 = QtWidgets.QLabel(Dialog)
        self.label_8.setObjectName("label_8")
        self.gridLayout.addWidget(self.label_8, 8, 0, 1, 1)
        self.dateEdit_saledate = QtWidgets.QDateEdit(Dialog)
        self.dateEdit_saledate.setCalendarPopup(True)
        self.dateEdit_saledate.setObjectName("dateEdit_saledate")
        self.gridLayout.addWidget(self.dateEdit_saledate, 8, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(Dialog)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 4, 0, 1, 1)
        self.label_5 = QtWidgets.QLabel(Dialog)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 0, 0, 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.comboBox_paymethod.raise_()
        self.lineEdit_linkman.raise_()
        self.comboBox_conveyance.raise_()
        self.dateEdit_deliverydate.raise_()
        self.dateEdit_saledate.raise_()
        self.lineEdit_deliveryplace.raise_()
        self.lineEdit_telno.raise_()
        self.label_4.raise_()
        self.label_7.raise_()
        self.label_6.raise_()
        self.label_9.raise_()
        self.label.raise_()
        self.label_10.raise_()
        self.label_2.raise_()
        self.label_8.raise_()
        self.label_3.raise_()
        self.label_5.raise_()
        self.lineEdit_paperno.raise_()
        self.lineEdit_client.raise_()
        self.lineEdit_remark.raise_()

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        Dialog.setTabOrder(self.lineEdit_paperno, self.lineEdit_client)
        Dialog.setTabOrder(self.lineEdit_client, self.lineEdit_deliveryplace)
        Dialog.setTabOrder(self.lineEdit_deliveryplace, self.lineEdit_linkman)
        Dialog.setTabOrder(self.lineEdit_linkman, self.lineEdit_telno)
        Dialog.setTabOrder(self.lineEdit_telno, self.dateEdit_saledate)
        Dialog.setTabOrder(self.dateEdit_saledate, self.dateEdit_deliverydate)
        Dialog.setTabOrder(self.dateEdit_deliverydate,
                           self.comboBox_conveyance)
        Dialog.setTabOrder(self.comboBox_conveyance, self.comboBox_paymethod)
        Dialog.setTabOrder(self.comboBox_paymethod, self.lineEdit_remark)
        Dialog.setTabOrder(self.lineEdit_remark, 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_4.setText(_translate("Dialog", "备注:"))
        self.label_7.setText(_translate("Dialog", "付款方式:"))
        self.label_6.setText(_translate("Dialog", "联系电话:"))
        self.label_9.setText(_translate("Dialog", "交货日期:"))
        self.pushButton_accept.setText(_translate("Dialog", "确认"))
        self.pushButton_cancel.setText(_translate("Dialog", "取消"))
        self.label.setText(_translate("Dialog", "客户:"))
        self.label_10.setText(_translate("Dialog", "运输方式:"))
        self.label_2.setText(_translate("Dialog", "地址:"))
        self.label_8.setText(_translate("Dialog", "销售日期:"))
        self.label_3.setText(_translate("Dialog", "联系人:"))
        self.label_5.setText(_translate("Dialog", "单号:"))
示例#7
0
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(1118, 724)
        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_10 = QtWidgets.QGridLayout(self.tab)
        self.gridLayout_10.setObjectName("gridLayout_10")
        self.groupBox_2 = QtWidgets.QGroupBox(self.tab)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(5)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth())
        self.groupBox_2.setSizePolicy(sizePolicy)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout_7 = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.groupBox_pdf = QtWidgets.QGroupBox(self.groupBox_2)
        self.groupBox_pdf.setTitle("")
        self.groupBox_pdf.setObjectName("groupBox_pdf")
        self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBox_pdf)
        self.gridLayout_8.setObjectName("gridLayout_8")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label = QtWidgets.QLabel(self.groupBox_pdf)
        self.label.setObjectName("label")
        self.horizontalLayout_3.addWidget(self.label)
        self.label_zoom = QtWidgets.QLabel(self.groupBox_pdf)
        self.label_zoom.setText("")
        self.label_zoom.setObjectName("label_zoom")
        self.horizontalLayout_3.addWidget(self.label_zoom)
        self.horizontalSlider_zoom = QtWidgets.QSlider(self.groupBox_pdf)
        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_3.addWidget(self.horizontalSlider_zoom)
        self.comboBox_jumpto = QtWidgets.QComboBox(self.groupBox_pdf)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.comboBox_jumpto.sizePolicy().hasHeightForWidth())
        self.comboBox_jumpto.setSizePolicy(sizePolicy)
        self.comboBox_jumpto.setObjectName("comboBox_jumpto")
        self.horizontalLayout_3.addWidget(self.comboBox_jumpto)
        self.pushButton_prepage = QtWidgets.QPushButton(self.groupBox_pdf)
        self.pushButton_prepage.setObjectName("pushButton_prepage")
        self.horizontalLayout_3.addWidget(self.pushButton_prepage)
        self.pushButton_nextpage = QtWidgets.QPushButton(self.groupBox_pdf)
        self.pushButton_nextpage.setObjectName("pushButton_nextpage")
        self.horizontalLayout_3.addWidget(self.pushButton_nextpage)
        self.gridLayout_8.addLayout(self.horizontalLayout_3, 0, 0, 1, 1)
        self.scrollArea = QtWidgets.QScrollArea(self.groupBox_pdf)
        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, 519, 520))
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.gridLayout_9 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents)
        self.gridLayout_9.setObjectName("gridLayout_9")
        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_9.addWidget(self.label_image, 2, 0, 1, 5)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.gridLayout_8.addWidget(self.scrollArea, 1, 0, 1, 1)
        self.gridLayout_7.addWidget(self.groupBox_pdf, 0, 2, 1, 1)
        self.axWidget = QAxContainer.QAxWidget(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.axWidget.sizePolicy().hasHeightForWidth())
        self.axWidget.setProperty("sizePolicy", sizePolicy)
        self.axWidget.setProperty("orientation", 0)
        self.axWidget.setObjectName("axWidget")
        self.gridLayout_7.addWidget(self.axWidget, 0, 0, 1, 2)
        self.gridLayout_10.addWidget(self.groupBox_2, 0, 1, 2, 1)
        self.groupBox = QtWidgets.QGroupBox(self.tab)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_6 = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.dateEdit_valenddate = QtWidgets.QDateEdit(self.groupBox)
        self.dateEdit_valenddate.setCalendarPopup(True)
        self.dateEdit_valenddate.setObjectName("dateEdit_valenddate")
        self.gridLayout_6.addWidget(self.dateEdit_valenddate, 7, 1, 1, 2)
        self.dateEdit_valstartdate = QtWidgets.QDateEdit(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.dateEdit_valstartdate.sizePolicy().hasHeightForWidth())
        self.dateEdit_valstartdate.setSizePolicy(sizePolicy)
        self.dateEdit_valstartdate.setCalendarPopup(True)
        self.dateEdit_valstartdate.setObjectName("dateEdit_valstartdate")
        self.gridLayout_6.addWidget(self.dateEdit_valstartdate, 6, 1, 1, 2)
        self.label_approver = QtWidgets.QLabel(self.groupBox)
        self.label_approver.setText("")
        self.label_approver.setObjectName("label_approver")
        self.gridLayout_6.addWidget(self.label_approver, 14, 1, 1, 1)
        self.comboBox_valtype = QtWidgets.QComboBox(self.groupBox)
        self.comboBox_valtype.setObjectName("comboBox_valtype")
        self.comboBox_valtype.addItem("")
        self.comboBox_valtype.addItem("")
        self.comboBox_valtype.addItem("")
        self.comboBox_valtype.addItem("")
        self.gridLayout_6.addWidget(self.comboBox_valtype, 0, 1, 1, 2)
        self.label_2 = QtWidgets.QLabel(self.groupBox)
        self.label_2.setObjectName("label_2")
        self.gridLayout_6.addWidget(self.label_2, 1, 0, 1, 1)
        self.dateEdit_approvedate = QtWidgets.QDateEdit(self.groupBox)
        self.dateEdit_approvedate.setCalendarPopup(True)
        self.dateEdit_approvedate.setObjectName("dateEdit_approvedate")
        self.gridLayout_6.addWidget(self.dateEdit_approvedate, 15, 1, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.groupBox)
        self.label_10.setObjectName("label_10")
        self.gridLayout_6.addWidget(self.label_10, 11, 0, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.groupBox)
        self.label_3.setObjectName("label_3")
        self.gridLayout_6.addWidget(self.label_3, 6, 0, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.groupBox)
        self.label_6.setObjectName("label_6")
        self.gridLayout_6.addWidget(self.label_6, 12, 0, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.groupBox)
        self.label_4.setObjectName("label_4")
        self.gridLayout_6.addWidget(self.label_4, 10, 0, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.groupBox)
        self.label_5.setObjectName("label_5")
        self.gridLayout_6.addWidget(self.label_5, 9, 0, 1, 1)
        self.label_examiner = QtWidgets.QLabel(self.groupBox)
        self.label_examiner.setText("")
        self.label_examiner.setObjectName("label_examiner")
        self.gridLayout_6.addWidget(self.label_examiner, 12, 1, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.groupBox)
        self.label_7.setObjectName("label_7")
        self.gridLayout_6.addWidget(self.label_7, 14, 0, 1, 1)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.lineEdit_doctitle = QtWidgets.QLineEdit(self.groupBox)
        self.lineEdit_doctitle.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lineEdit_doctitle.sizePolicy().hasHeightForWidth())
        self.lineEdit_doctitle.setSizePolicy(sizePolicy)
        self.lineEdit_doctitle.setObjectName("lineEdit_doctitle")
        self.horizontalLayout.addWidget(self.lineEdit_doctitle)
        self.pushButton_upload = QtWidgets.QPushButton(self.groupBox)
        self.pushButton_upload.setObjectName("pushButton_upload")
        self.horizontalLayout.addWidget(self.pushButton_upload)
        self.gridLayout_6.addLayout(self.horizontalLayout, 9, 1, 1, 2)
        self.pushButton_examine = QtWidgets.QPushButton(self.groupBox)
        self.pushButton_examine.setObjectName("pushButton_examine")
        self.gridLayout_6.addWidget(self.pushButton_examine, 12, 2, 1, 1)
        self.dateEdit_auditdate = QtWidgets.QDateEdit(self.groupBox)
        self.dateEdit_auditdate.setCalendarPopup(True)
        self.dateEdit_auditdate.setObjectName("dateEdit_auditdate")
        self.gridLayout_6.addWidget(self.dateEdit_auditdate, 13, 1, 1, 1)
        self.comboBox_kind = QtWidgets.QComboBox(self.groupBox)
        self.comboBox_kind.setObjectName("comboBox_kind")
        self.comboBox_kind.addItem("")
        self.comboBox_kind.addItem("")
        self.comboBox_kind.addItem("")
        self.comboBox_kind.addItem("")
        self.comboBox_kind.addItem("")
        self.gridLayout_6.addWidget(self.comboBox_kind, 1, 1, 1, 2)
        self.dateEdit_createdate = QtWidgets.QDateEdit(self.groupBox)
        self.dateEdit_createdate.setCalendarPopup(True)
        self.dateEdit_createdate.setObjectName("dateEdit_createdate")
        self.gridLayout_6.addWidget(self.dateEdit_createdate, 11, 1, 1, 1)
        self.label_11 = QtWidgets.QLabel(self.groupBox)
        self.label_11.setObjectName("label_11")
        self.gridLayout_6.addWidget(self.label_11, 13, 0, 1, 1)
        self.label_12 = QtWidgets.QLabel(self.groupBox)
        self.label_12.setScaledContents(True)
        self.label_12.setObjectName("label_12")
        self.gridLayout_6.addWidget(self.label_12, 15, 0, 1, 1)
        self.label_9 = QtWidgets.QLabel(self.groupBox)
        self.label_9.setObjectName("label_9")
        self.gridLayout_6.addWidget(self.label_9, 0, 0, 1, 1)
        self.pushButton_approval = QtWidgets.QPushButton(self.groupBox)
        self.pushButton_approval.setObjectName("pushButton_approval")
        self.gridLayout_6.addWidget(self.pushButton_approval, 14, 2, 1, 1)
        self.label_13 = QtWidgets.QLabel(self.groupBox)
        self.label_13.setObjectName("label_13")
        self.gridLayout_6.addWidget(self.label_13, 7, 0, 1, 1)
        self.pushButton_finish = QtWidgets.QPushButton(self.groupBox)
        self.pushButton_finish.setObjectName("pushButton_finish")
        self.gridLayout_6.addWidget(self.pushButton_finish, 16, 0, 1, 1)
        self.label_creator = QtWidgets.QLabel(self.groupBox)
        self.label_creator.setText("")
        self.label_creator.setObjectName("label_creator")
        self.gridLayout_6.addWidget(self.label_creator, 10, 1, 1, 1)
        self.pushButton_apply = QtWidgets.QPushButton(self.groupBox)
        self.pushButton_apply.setObjectName("pushButton_apply")
        self.gridLayout_6.addWidget(self.pushButton_apply, 10, 2, 1, 1)
        self.label_prodname = QtWidgets.QLabel(self.groupBox)
        self.label_prodname.setObjectName("label_prodname")
        self.gridLayout_6.addWidget(self.label_prodname, 4, 0, 1, 1)
        self.label_other = QtWidgets.QLabel(self.groupBox)
        self.label_other.setObjectName("label_other")
        self.gridLayout_6.addWidget(self.label_other, 5, 0, 1, 1)
        self.lineEdit_product = ComboLine(self.groupBox)
        self.lineEdit_product.setObjectName("lineEdit_product")
        self.gridLayout_6.addWidget(self.lineEdit_product, 4, 1, 1, 2)
        self.lineEdit_other = QtWidgets.QLineEdit(self.groupBox)
        self.lineEdit_other.setObjectName("lineEdit_other")
        self.gridLayout_6.addWidget(self.lineEdit_other, 5, 1, 1, 2)
        self.pushButton_apply.raise_()
        self.label_creator.raise_()
        self.dateEdit_valstartdate.raise_()
        self.dateEdit_valenddate.raise_()
        self.dateEdit_createdate.raise_()
        self.label_approver.raise_()
        self.comboBox_valtype.raise_()
        self.label_2.raise_()
        self.dateEdit_approvedate.raise_()
        self.dateEdit_auditdate.raise_()
        self.comboBox_kind.raise_()
        self.label_11.raise_()
        self.label_12.raise_()
        self.label_9.raise_()
        self.pushButton_approval.raise_()
        self.pushButton_examine.raise_()
        self.label_3.raise_()
        self.label_10.raise_()
        self.label_6.raise_()
        self.label_7.raise_()
        self.label_4.raise_()
        self.label_5.raise_()
        self.label_examiner.raise_()
        self.pushButton_finish.raise_()
        self.label_13.raise_()
        self.label_prodname.raise_()
        self.label_other.raise_()
        self.lineEdit_product.raise_()
        self.lineEdit_other.raise_()
        self.gridLayout_10.addWidget(self.groupBox, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab, "")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.tab_2)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.tabWidget_2 = QtWidgets.QTabWidget(self.tab_2)
        self.tabWidget_2.setObjectName("tabWidget_2")
        self.tab_4 = QtWidgets.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.tab_4)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.treeWidget_pp_record = QtWidgets.QTreeWidget(self.tab_4)
        self.treeWidget_pp_record.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.treeWidget_pp_record.setObjectName("treeWidget_pp_record")
        self.gridLayout_3.addWidget(self.treeWidget_pp_record, 0, 0, 1, 1)
        self.tabWidget_2.addTab(self.tab_4, "")
        self.tab_5 = QtWidgets.QWidget()
        self.tab_5.setObjectName("tab_5")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.tab_5)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.treeWidget_labreport = QtWidgets.QTreeWidget(self.tab_5)
        self.treeWidget_labreport.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.treeWidget_labreport.setObjectName("treeWidget_labreport")
        self.gridLayout_4.addWidget(self.treeWidget_labreport, 0, 0, 1, 1)
        self.tabWidget_2.addTab(self.tab_5, "")
        self.gridLayout_2.addWidget(self.tabWidget_2, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab_2, "")
        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.treeWidget_report = QtWidgets.QTreeWidget(self.tab_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.treeWidget_report.sizePolicy().hasHeightForWidth())
        self.treeWidget_report.setSizePolicy(sizePolicy)
        self.treeWidget_report.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.treeWidget_report.setObjectName("treeWidget_report")
        self.gridLayout_5.addWidget(self.treeWidget_report, 0, 0, 1, 1)
        self.groupBox_3 = QtWidgets.QGroupBox(self.tab_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(5)
        sizePolicy.setVerticalStretch(9)
        sizePolicy.setHeightForWidth(self.groupBox_3.sizePolicy().hasHeightForWidth())
        self.groupBox_3.setSizePolicy(sizePolicy)
        self.groupBox_3.setObjectName("groupBox_3")
        self.gridLayout_11 = QtWidgets.QGridLayout(self.groupBox_3)
        self.gridLayout_11.setObjectName("gridLayout_11")
        self.gridLayout_5.addWidget(self.groupBox_3, 0, 1, 1, 1)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.pushButton_accept = QtWidgets.QPushButton(self.tab_3)
        self.pushButton_accept.setObjectName("pushButton_accept")
        self.horizontalLayout_2.addWidget(self.pushButton_accept)
        self.pushButton_cancel = QtWidgets.QPushButton(self.tab_3)
        self.pushButton_cancel.setObjectName("pushButton_cancel")
        self.horizontalLayout_2.addWidget(self.pushButton_cancel)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.gridLayout_5.addLayout(self.horizontalLayout_2, 1, 1, 1, 1)
        self.tabWidget.addTab(self.tab_3, "")
        self.gridLayout.addWidget(self.tabWidget, 0, 0, 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.groupBox_2.setTitle(_translate("Dialog", "文档内容"))
        self.label.setText(_translate("Dialog", "当前缩放比例:"))
        self.pushButton_prepage.setText(_translate("Dialog", "上一页"))
        self.pushButton_nextpage.setText(_translate("Dialog", "下一页"))
        self.groupBox.setTitle(_translate("Dialog", "基本信息"))
        self.comboBox_valtype.setItemText(0, _translate("Dialog", "前验证"))
        self.comboBox_valtype.setItemText(1, _translate("Dialog", "同步验证"))
        self.comboBox_valtype.setItemText(2, _translate("Dialog", "回顾性验证"))
        self.comboBox_valtype.setItemText(3, _translate("Dialog", "再验证"))
        self.label_2.setText(_translate("Dialog", "项目类型:"))
        self.label_10.setText(_translate("Dialog", "建立日期:"))
        self.label_3.setText(_translate("Dialog", "开始日期:"))
        self.label_6.setText(_translate("Dialog", "审核人:"))
        self.label_4.setText(_translate("Dialog", "建立者:"))
        self.label_5.setText(_translate("Dialog", "验证方案:"))
        self.label_7.setText(_translate("Dialog", "批准人:"))
        self.pushButton_upload.setText(_translate("Dialog", "上传"))
        self.pushButton_examine.setText(_translate("Dialog", "审核"))
        self.comboBox_kind.setItemText(0, _translate("Dialog", "工艺"))
        self.comboBox_kind.setItemText(1, _translate("Dialog", "设备及公用"))
        self.comboBox_kind.setItemText(2, _translate("Dialog", "清洁"))
        self.comboBox_kind.setItemText(3, _translate("Dialog", "检验方法"))
        self.comboBox_kind.setItemText(4, _translate("Dialog", "其他"))
        self.label_11.setText(_translate("Dialog", "审核日期:"))
        self.label_12.setText(_translate("Dialog", "批准日期:"))
        self.label_9.setText(_translate("Dialog", "验证类型:"))
        self.pushButton_approval.setText(_translate("Dialog", "批准"))
        self.label_13.setText(_translate("Dialog", "结束日期:"))
        self.pushButton_finish.setText(_translate("Dialog", "结束"))
        self.pushButton_apply.setText(_translate("Dialog", "提交"))
        self.label_prodname.setText(_translate("Dialog", "名称:"))
        self.label_other.setText(_translate("Dialog", "名称:"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("Dialog", "验证方案"))
        self.treeWidget_pp_record.headerItem().setText(0, _translate("Dialog", "id"))
        self.treeWidget_pp_record.headerItem().setText(1, _translate("Dialog", "ppid"))
        self.treeWidget_pp_record.headerItem().setText(2, _translate("Dialog", "状态"))
        self.treeWidget_pp_record.headerItem().setText(3, _translate("Dialog", "产品编号"))
        self.treeWidget_pp_record.headerItem().setText(4, _translate("Dialog", "产品名称"))
        self.treeWidget_pp_record.headerItem().setText(5, _translate("Dialog", "批号"))
        self.treeWidget_pp_record.headerItem().setText(6, _translate("Dialog", "含量规格"))
        self.treeWidget_pp_record.headerItem().setText(7, _translate("Dialog", "包装规格"))
        self.treeWidget_pp_record.headerItem().setText(8, _translate("Dialog", "生产日期"))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_4), _translate("Dialog", "批生产记录"))
        self.treeWidget_labreport.headerItem().setText(0, _translate("Dialog", "id"))
        self.treeWidget_labreport.headerItem().setText(1, _translate("Dialog", "lrid"))
        self.treeWidget_labreport.headerItem().setText(2, _translate("Dialog", "状态"))
        self.treeWidget_labreport.headerItem().setText(3, _translate("Dialog", "报告书编号"))
        self.treeWidget_labreport.headerItem().setText(4, _translate("Dialog", "检品编号"))
        self.treeWidget_labreport.headerItem().setText(5, _translate("Dialog", "检品名称"))
        self.treeWidget_labreport.headerItem().setText(6, _translate("Dialog", "批号"))
        self.treeWidget_labreport.headerItem().setText(7, _translate("Dialog", "含量规格"))
        self.treeWidget_labreport.headerItem().setText(8, _translate("Dialog", "包装规格"))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_5), _translate("Dialog", "检验报告"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("Dialog", "相关记录"))
        self.treeWidget_report.headerItem().setText(0, _translate("Dialog", "id"))
        self.treeWidget_report.headerItem().setText(1, _translate("Dialog", "文档名称"))
        self.treeWidget_report.headerItem().setText(2, _translate("Dialog", "建立人"))
        self.treeWidget_report.headerItem().setText(3, _translate("Dialog", "建立日期"))
        self.groupBox_3.setTitle(_translate("Dialog", "文档内容"))
        self.pushButton_accept.setText(_translate("Dialog", "保存修改"))
        self.pushButton_cancel.setText(_translate("Dialog", "取消修改"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("Dialog", "验证报告"))
示例#9
0
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(800, 650)
        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 = 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(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)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.gridLayout_2.addLayout(self.horizontalLayout, 13, 0, 1, 4)
        self.lineEdit_bankaccount = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_bankaccount.setObjectName("lineEdit_bankaccount")
        self.gridLayout_2.addWidget(self.lineEdit_bankaccount, 10, 3, 1, 1)
        self.label_20 = QtWidgets.QLabel(self.tab)
        self.label_20.setObjectName("label_20")
        self.gridLayout_2.addWidget(self.label_20, 3, 0, 1, 1)
        self.label_19 = QtWidgets.QLabel(self.tab)
        self.label_19.setObjectName("label_19")
        self.gridLayout_2.addWidget(self.label_19, 6, 0, 1, 1)
        self.comboBox_city = QtWidgets.QComboBox(self.tab)
        self.comboBox_city.setObjectName("comboBox_city")
        self.gridLayout_2.addWidget(self.comboBox_city, 3, 1, 1, 1)
        self.comboBox_province = QtWidgets.QComboBox(self.tab)
        self.comboBox_province.setObjectName("comboBox_province")
        self.gridLayout_2.addWidget(self.comboBox_province, 2, 3, 1, 1)
        self.label_18 = QtWidgets.QLabel(self.tab)
        self.label_18.setObjectName("label_18")
        self.gridLayout_2.addWidget(self.label_18, 2, 2, 1, 1)
        self.label_13 = QtWidgets.QLabel(self.tab)
        self.label_13.setObjectName("label_13")
        self.gridLayout_2.addWidget(self.label_13, 10, 2, 1, 1)
        self.lineEdit_taxno = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_taxno.setObjectName("lineEdit_taxno")
        self.gridLayout_2.addWidget(self.lineEdit_taxno, 11, 1, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.tab)
        self.label_6.setObjectName("label_6")
        self.gridLayout_2.addWidget(self.label_6, 8, 0, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.tab)
        self.label_5.setObjectName("label_5")
        self.gridLayout_2.addWidget(self.label_5, 9, 0, 1, 1)
        self.lineEdit_chargertitle = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_chargertitle.setObjectName("lineEdit_chargertitle")
        self.gridLayout_2.addWidget(self.lineEdit_chargertitle, 9, 1, 1, 1)
        self.label_8 = QtWidgets.QLabel(self.tab)
        self.label_8.setObjectName("label_8")
        self.gridLayout_2.addWidget(self.label_8, 0, 2, 1, 1)
        self.label_12 = QtWidgets.QLabel(self.tab)
        self.label_12.setObjectName("label_12")
        self.gridLayout_2.addWidget(self.label_12, 9, 2, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.tab)
        self.label_7.setObjectName("label_7")
        self.gridLayout_2.addWidget(self.label_7, 7, 0, 1, 1)
        self.plainTextEdit_remark = QtWidgets.QPlainTextEdit(self.tab)
        self.plainTextEdit_remark.setObjectName("plainTextEdit_remark")
        self.gridLayout_2.addWidget(self.plainTextEdit_remark, 12, 1, 1, 3)
        self.lineEdit_telno = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_telno.setObjectName("lineEdit_telno")
        self.gridLayout_2.addWidget(self.lineEdit_telno, 8, 3, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.tab)
        self.label_10.setObjectName("label_10")
        self.gridLayout_2.addWidget(self.label_10, 7, 2, 1, 1)
        self.lineEdit_clientid = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_clientid.setObjectName("lineEdit_clientid")
        self.gridLayout_2.addWidget(self.lineEdit_clientid, 0, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.tab)
        self.label_3.setObjectName("label_3")
        self.gridLayout_2.addWidget(self.label_3, 1, 0, 1, 1)
        self.lineEdit_address = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_address.setObjectName("lineEdit_address")
        self.gridLayout_2.addWidget(self.lineEdit_address, 7, 1, 1, 1)
        self.lineEdit_postzip = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_postzip.setObjectName("lineEdit_postzip")
        self.gridLayout_2.addWidget(self.lineEdit_postzip, 7, 3, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.tab)
        self.label_4.setObjectName("label_4")
        self.gridLayout_2.addWidget(self.label_4, 10, 0, 1, 1)
        self.lineEdit_bankname = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_bankname.setObjectName("lineEdit_bankname")
        self.gridLayout_2.addWidget(self.lineEdit_bankname, 10, 1, 1, 1)
        self.lineEdit_tstkind = ComboLine(self.tab)
        self.lineEdit_tstkind.setObjectName("lineEdit_tstkind")
        self.gridLayout_2.addWidget(self.lineEdit_tstkind, 1, 1, 1, 1)
        self.lineEdit_email = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_email.setObjectName("lineEdit_email")
        self.gridLayout_2.addWidget(self.lineEdit_email, 9, 3, 1, 1)
        self.label = QtWidgets.QLabel(self.tab)
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)
        self.label_11 = QtWidgets.QLabel(self.tab)
        self.label_11.setObjectName("label_11")
        self.gridLayout_2.addWidget(self.label_11, 8, 2, 1, 1)
        self.label_9 = QtWidgets.QLabel(self.tab)
        self.label_9.setObjectName("label_9")
        self.gridLayout_2.addWidget(self.label_9, 1, 2, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.tab)
        self.label_2.setObjectName("label_2")
        self.gridLayout_2.addWidget(self.label_2, 11, 0, 1, 1)
        self.lineEdit_charger = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_charger.setObjectName("lineEdit_charger")
        self.gridLayout_2.addWidget(self.lineEdit_charger, 8, 1, 1, 1)
        self.lineEdit_inputcode = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_inputcode.setObjectName("lineEdit_inputcode")
        self.gridLayout_2.addWidget(self.lineEdit_inputcode, 1, 3, 1, 1)
        self.lineEdit_clientname = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_clientname.setObjectName("lineEdit_clientname")
        self.gridLayout_2.addWidget(self.lineEdit_clientname, 0, 3, 1, 1)
        self.label_15 = QtWidgets.QLabel(self.tab)
        self.label_15.setObjectName("label_15")
        self.gridLayout_2.addWidget(self.label_15, 12, 0, 1, 1)
        self.label_17 = QtWidgets.QLabel(self.tab)
        self.label_17.setObjectName("label_17")
        self.gridLayout_2.addWidget(self.label_17, 2, 0, 1, 1)
        self.comboBox_kind = QtWidgets.QComboBox(self.tab)
        self.comboBox_kind.setObjectName("comboBox_kind")
        self.comboBox_kind.addItem("")
        self.comboBox_kind.addItem("")
        self.gridLayout_2.addWidget(self.comboBox_kind, 2, 1, 1, 1)
        self.pushButton_get_unitcode = QtWidgets.QPushButton(self.tab)
        self.pushButton_get_unitcode.setObjectName("pushButton_get_unitcode")
        self.gridLayout_2.addWidget(self.pushButton_get_unitcode, 6, 3, 1, 1)
        self.lineEdit_unitcode = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_unitcode.setObjectName("lineEdit_unitcode")
        self.gridLayout_2.addWidget(self.lineEdit_unitcode, 6, 1, 1, 2)
        self.label_21 = QtWidgets.QLabel(self.tab)
        self.label_21.setObjectName("label_21")
        self.gridLayout_2.addWidget(self.label_21, 3, 2, 1, 1)
        self.comboBox_county = QtWidgets.QComboBox(self.tab)
        self.comboBox_county.setObjectName("comboBox_county")
        self.gridLayout_2.addWidget(self.comboBox_county, 3, 3, 1, 1)
        self.label_15.raise_()
        self.label_3.raise_()
        self.label_2.raise_()
        self.label_13.raise_()
        self.label_5.raise_()
        self.label_9.raise_()
        self.lineEdit_chargertitle.raise_()
        self.lineEdit_inputcode.raise_()
        self.lineEdit_clientid.raise_()
        self.lineEdit_postzip.raise_()
        self.lineEdit_address.raise_()
        self.lineEdit_charger.raise_()
        self.lineEdit_clientname.raise_()
        self.lineEdit_taxno.raise_()
        self.label.raise_()
        self.label_4.raise_()
        self.label_6.raise_()
        self.plainTextEdit_remark.raise_()
        self.label_11.raise_()
        self.label_8.raise_()
        self.label_10.raise_()
        self.label_12.raise_()
        self.label_7.raise_()
        self.lineEdit_telno.raise_()
        self.lineEdit_bankname.raise_()
        self.lineEdit_bankaccount.raise_()
        self.lineEdit_email.raise_()
        self.label_17.raise_()
        self.comboBox_kind.raise_()
        self.label_19.raise_()
        self.lineEdit_unitcode.raise_()
        self.label_18.raise_()
        self.comboBox_province.raise_()
        self.label_20.raise_()
        self.comboBox_city.raise_()
        self.pushButton_get_unitcode.raise_()
        self.label_21.raise_()
        self.comboBox_county.raise_()
        self.lineEdit_tstkind.raise_()
        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.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label_16 = QtWidgets.QLabel(self.tab_2)
        self.label_16.setObjectName("label_16")
        self.horizontalLayout_2.addWidget(self.label_16)
        self.label_zoom = QtWidgets.QLabel(self.tab_2)
        self.label_zoom.setText("")
        self.label_zoom.setObjectName("label_zoom")
        self.horizontalLayout_2.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_2.addWidget(self.horizontalSlider_zoom)
        self.comboBox_jumpto = QtWidgets.QComboBox(self.tab_2)
        self.comboBox_jumpto.setObjectName("comboBox_jumpto")
        self.horizontalLayout_2.addWidget(self.comboBox_jumpto)
        self.pushButton_prepage = QtWidgets.QPushButton(self.tab_2)
        self.pushButton_prepage.setObjectName("pushButton_prepage")
        self.horizontalLayout_2.addWidget(self.pushButton_prepage)
        self.pushButton_nextpage = QtWidgets.QPushButton(self.tab_2)
        self.pushButton_nextpage.setObjectName("pushButton_nextpage")
        self.horizontalLayout_2.addWidget(self.pushButton_nextpage)
        self.gridLayout_3.addLayout(self.horizontalLayout_2, 1, 0, 2, 2)
        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, 731, 383))
        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, 3, 1, 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, 2)
        self.tabWidget.addTab(self.tab_2, "")
        self.gridLayout.addWidget(self.tabWidget, 0, 0, 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.pushButton_accept.setText(_translate("Dialog", "确认"))
        self.pushButton_cancel.setText(_translate("Dialog", "取消"))
        self.label_20.setText(_translate("Dialog", "地级市:"))
        self.label_19.setText(_translate("Dialog", "企业代码:"))
        self.label_18.setText(_translate("Dialog", "省份:"))
        self.label_13.setText(_translate("Dialog", "银行账号:"))
        self.label_6.setText(_translate("Dialog", "负责人:"))
        self.label_5.setText(_translate("Dialog", "职位:"))
        self.label_8.setText(_translate("Dialog", "名称:"))
        self.label_12.setText(_translate("Dialog", "邮箱:"))
        self.label_7.setText(_translate("Dialog", "地址:"))
        self.label_10.setText(_translate("Dialog", "邮政编码:"))
        self.label_3.setText(_translate("Dialog", "类别:"))
        self.label_4.setText(_translate("Dialog", "开户银行:"))
        self.label.setText(_translate("Dialog", "编号:"))
        self.label_11.setText(_translate("Dialog", "联系方式:"))
        self.label_9.setText(_translate("Dialog", "输入码:"))
        self.label_2.setText(_translate("Dialog", "统一社会信用代码:"))
        self.label_15.setText(_translate("Dialog", "备注:"))
        self.label_17.setText(_translate("Dialog", "种类:"))
        self.comboBox_kind.setItemText(0, _translate("Dialog", "经营企业"))
        self.comboBox_kind.setItemText(1, _translate("Dialog", "其他"))
        self.pushButton_get_unitcode.setText(_translate("Dialog", "获取企业代码"))
        self.label_21.setText(_translate("Dialog", "区/县:"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab),
                                  _translate("Dialog", "基础资料"))
        self.label_16.setText(_translate("Dialog", "当前缩放比例:"))
        self.pushButton_prepage.setText(_translate("Dialog", "上一页"))
        self.pushButton_nextpage.setText(_translate("Dialog", "下一页"))
        self.treeWidget_imagenamelist.headerItem().setText(
            0, _translate("Dialog", "id"))
        self.treeWidget_imagenamelist.headerItem().setText(
            1, _translate("Dialog", "imgid"))
        self.treeWidget_imagenamelist.headerItem().setText(
            2, _translate("Dialog", "标题"))
        self.treeWidget_imagenamelist.headerItem().setText(
            3, _translate("Dialog", "建立人"))
        self.treeWidget_imagenamelist.headerItem().setText(
            4, _translate("Dialog", "建立日期"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2),
                                  _translate("Dialog", "相关资料"))
示例#10
0
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(1500, 673)
        self.gridLayout = QtWidgets.QGridLayout(Dialog)
        self.gridLayout.setObjectName("gridLayout")
        self.package_label = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.package_label.sizePolicy().hasHeightForWidth())
        self.package_label.setSizePolicy(sizePolicy)
        self.package_label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.package_label.setObjectName("package_label")
        self.gridLayout.addWidget(self.package_label, 4, 0, 1, 1)
        self.batchno_label = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.batchno_label.sizePolicy().hasHeightForWidth())
        self.batchno_label.setSizePolicy(sizePolicy)
        self.batchno_label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.batchno_label.setObjectName("batchno_label")
        self.gridLayout.addWidget(self.batchno_label, 6, 0, 1, 1)
        self.productdate_label = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.productdate_label.sizePolicy().hasHeightForWidth())
        self.productdate_label.setSizePolicy(sizePolicy)
        self.productdate_label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.productdate_label.setObjectName("productdate_label")
        self.gridLayout.addWidget(self.productdate_label, 7, 0, 1, 1)
        self.remarks_label = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.remarks_label.sizePolicy().hasHeightForWidth())
        self.remarks_label.setSizePolicy(sizePolicy)
        self.remarks_label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.remarks_label.setObjectName("remarks_label")
        self.gridLayout.addWidget(self.remarks_label, 8, 0, 1, 1)
        self.planamount_label = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.planamount_label.sizePolicy().hasHeightForWidth())
        self.planamount_label.setSizePolicy(sizePolicy)
        self.planamount_label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.planamount_label.setObjectName("planamount_label")
        self.gridLayout.addWidget(self.planamount_label, 5, 0, 1, 1)
        self.spec_label = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.spec_label.sizePolicy().hasHeightForWidth())
        self.spec_label.setSizePolicy(sizePolicy)
        self.spec_label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.spec_label.setObjectName("spec_label")
        self.gridLayout.addWidget(self.spec_label, 3, 0, 1, 1)
        self.commonname_label = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.commonname_label.sizePolicy().hasHeightForWidth())
        self.commonname_label.setSizePolicy(sizePolicy)
        self.commonname_label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.commonname_label.setObjectName("commonname_label")
        self.gridLayout.addWidget(self.commonname_label, 2, 0, 1, 1)
        self.prodname_label = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.prodname_label.sizePolicy().hasHeightForWidth())
        self.prodname_label.setSizePolicy(sizePolicy)
        self.prodname_label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.prodname_label.setObjectName("prodname_label")
        self.gridLayout.addWidget(self.prodname_label, 1, 0, 1, 1)
        self.productkind_label = QtWidgets.QLabel(Dialog)
        self.productkind_label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.productkind_label.setObjectName("productkind_label")
        self.gridLayout.addWidget(self.productkind_label, 0, 0, 1, 1)
        self.productworkshop_label = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.productworkshop_label.sizePolicy().hasHeightForWidth())
        self.productworkshop_label.setSizePolicy(sizePolicy)
        self.productworkshop_label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.productworkshop_label.setObjectName("productworkshop_label")
        self.gridLayout.addWidget(self.productworkshop_label, 10, 0, 1, 1)
        self.productworkshop = QtWidgets.QLabel(Dialog)
        self.productworkshop.setText("")
        self.productworkshop.setObjectName("productworkshop")
        self.gridLayout.addWidget(self.productworkshop, 10, 1, 1, 1)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.planamount = QtWidgets.QLineEdit(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.planamount.sizePolicy().hasHeightForWidth())
        self.planamount.setSizePolicy(sizePolicy)
        self.planamount.setObjectName("planamount")
        self.horizontalLayout.addWidget(self.planamount)
        self.unit = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.unit.sizePolicy().hasHeightForWidth())
        self.unit.setSizePolicy(sizePolicy)
        self.unit.setText("")
        self.unit.setObjectName("unit")
        self.horizontalLayout.addWidget(self.unit)
        self.gridLayout.addLayout(self.horizontalLayout, 5, 1, 1, 1)
        self.productkind = QtWidgets.QComboBox(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.productkind.sizePolicy().hasHeightForWidth())
        self.productkind.setSizePolicy(sizePolicy)
        self.productkind.setFocusPolicy(QtCore.Qt.NoFocus)
        self.productkind.setObjectName("productkind")
        self.productkind.addItem("")
        self.productkind.addItem("")
        self.productkind.addItem("")
        self.productkind.addItem("")
        self.gridLayout.addWidget(self.productkind, 0, 1, 1, 1)
        self.package_2 = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.package_2.sizePolicy().hasHeightForWidth())
        self.package_2.setSizePolicy(sizePolicy)
        self.package_2.setText("")
        self.package_2.setObjectName("package_2")
        self.gridLayout.addWidget(self.package_2, 4, 1, 1, 1)
        self.spec = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.spec.sizePolicy().hasHeightForWidth())
        self.spec.setSizePolicy(sizePolicy)
        self.spec.setText("")
        self.spec.setObjectName("spec")
        self.gridLayout.addWidget(self.spec, 3, 1, 1, 1)
        self.prodname = ComboLine(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.prodname.sizePolicy().hasHeightForWidth())
        self.prodname.setSizePolicy(sizePolicy)
        self.prodname.setObjectName("prodname")
        self.gridLayout.addWidget(self.prodname, 1, 1, 1, 1)
        self.commonname = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.commonname.sizePolicy().hasHeightForWidth())
        self.commonname.setSizePolicy(sizePolicy)
        self.commonname.setText("")
        self.commonname.setObjectName("commonname")
        self.gridLayout.addWidget(self.commonname, 2, 1, 1, 1)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setSpacing(0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.makedate = QtWidgets.QDateEdit(Dialog)
        self.makedate.setCalendarPopup(True)
        self.makedate.setObjectName("makedate")
        self.horizontalLayout_2.addWidget(self.makedate)
        self.gridLayout.addLayout(self.horizontalLayout_2, 7, 1, 1, 1)
        self.batchno = QtWidgets.QLineEdit(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.batchno.sizePolicy().hasHeightForWidth())
        self.batchno.setSizePolicy(sizePolicy)
        self.batchno.setObjectName("batchno")
        self.gridLayout.addWidget(self.batchno, 6, 1, 1, 1)
        self.remarks = QtWidgets.QLineEdit(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.remarks.sizePolicy().hasHeightForWidth())
        self.remarks.setSizePolicy(sizePolicy)
        self.remarks.setObjectName("remarks")
        self.gridLayout.addWidget(self.remarks, 8, 1, 1, 1)
        self.prodline = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.prodline.sizePolicy().hasHeightForWidth())
        self.prodline.setSizePolicy(sizePolicy)
        self.prodline.setText("")
        self.prodline.setObjectName("prodline")
        self.gridLayout.addWidget(self.prodline, 9, 1, 1, 1)
        self.prodline_label = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.prodline_label.sizePolicy().hasHeightForWidth())
        self.prodline_label.setSizePolicy(sizePolicy)
        self.prodline_label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.prodline_label.setObjectName("prodline_label")
        self.gridLayout.addWidget(self.prodline_label, 9, 0, 1, 1)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.accept_button = QtWidgets.QPushButton(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.accept_button.sizePolicy().hasHeightForWidth())
        self.accept_button.setSizePolicy(sizePolicy)
        self.accept_button.setObjectName("accept_button")
        self.horizontalLayout_4.addWidget(self.accept_button)
        self.cancel_button = QtWidgets.QPushButton(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cancel_button.sizePolicy().hasHeightForWidth())
        self.cancel_button.setSizePolicy(sizePolicy)
        self.cancel_button.setObjectName("cancel_button")
        self.horizontalLayout_4.addWidget(self.cancel_button)
        self.pushButton_audit = QtWidgets.QPushButton(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pushButton_audit.sizePolicy().hasHeightForWidth())
        self.pushButton_audit.setSizePolicy(sizePolicy)
        self.pushButton_audit.setObjectName("pushButton_audit")
        self.horizontalLayout_4.addWidget(self.pushButton_audit)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem)
        self.gridLayout.addLayout(self.horizontalLayout_4, 11, 0, 1, 2)
        self.label_5 = QtWidgets.QLabel(Dialog)
        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.setText("")
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 12, 5, 1, 1)
        self.groupBox_2 = QtWidgets.QGroupBox(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth())
        self.groupBox_2.setSizePolicy(sizePolicy)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.materialuse_label = QtWidgets.QLabel(self.groupBox_2)
        self.materialuse_label.setObjectName("materialuse_label")
        self.gridLayout_2.addWidget(self.materialuse_label, 2, 0, 1, 1)
        self.treeWidget_package = QtWidgets.QTreeWidget(self.groupBox_2)
        self.treeWidget_package.setFocusPolicy(QtCore.Qt.NoFocus)
        self.treeWidget_package.setObjectName("treeWidget_package")
        self.gridLayout_2.addWidget(self.treeWidget_package, 5, 0, 1, 1)
        self.packageuse_label = QtWidgets.QLabel(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.packageuse_label.sizePolicy().hasHeightForWidth())
        self.packageuse_label.setSizePolicy(sizePolicy)
        self.packageuse_label.setObjectName("packageuse_label")
        self.gridLayout_2.addWidget(self.packageuse_label, 4, 0, 1, 1)
        self.treewidget_meterial = QtWidgets.QTreeWidget(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(3)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.treewidget_meterial.sizePolicy().hasHeightForWidth())
        self.treewidget_meterial.setSizePolicy(sizePolicy)
        self.treewidget_meterial.setFocusPolicy(QtCore.Qt.NoFocus)
        self.treewidget_meterial.setObjectName("treewidget_meterial")
        self.gridLayout_2.addWidget(self.treewidget_meterial, 3, 0, 1, 1)
        self.treewidget_meterial.raise_()
        self.materialuse_label.raise_()
        self.treeWidget_package.raise_()
        self.packageuse_label.raise_()
        self.gridLayout.addWidget(self.groupBox_2, 0, 6, 13, 1)
        self.remarks.raise_()
        self.prodline.raise_()
        self.batchno.raise_()
        self.spec.raise_()
        self.productworkshop.raise_()
        self.package_2.raise_()
        self.commonname.raise_()
        self.label_5.raise_()
        self.prodname_label.raise_()
        self.productkind_label.raise_()
        self.commonname_label.raise_()
        self.package_label.raise_()
        self.planamount_label.raise_()
        self.batchno_label.raise_()
        self.productdate_label.raise_()
        self.remarks_label.raise_()
        self.spec_label.raise_()
        self.prodline_label.raise_()
        self.productworkshop_label.raise_()
        self.productkind.raise_()
        self.groupBox_2.raise_()
        self.prodname.raise_()

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        Dialog.setTabOrder(self.prodname, self.planamount)
        Dialog.setTabOrder(self.planamount, self.batchno)
        Dialog.setTabOrder(self.batchno, self.makedate)
        Dialog.setTabOrder(self.makedate, self.remarks)
        Dialog.setTabOrder(self.remarks, self.accept_button)
        Dialog.setTabOrder(self.accept_button, self.cancel_button)
        Dialog.setTabOrder(self.cancel_button, self.pushButton_audit)
        Dialog.setTabOrder(self.pushButton_audit, self.productkind)

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "编辑生产指令"))
        self.package_label.setText(_translate("Dialog", "包装规格;"))
        self.batchno_label.setText(_translate("Dialog", "批号:"))
        self.productdate_label.setText(_translate("Dialog", "生产日期:"))
        self.remarks_label.setText(_translate("Dialog", "备注:"))
        self.planamount_label.setText(_translate("Dialog", "计划产量:"))
        self.spec_label.setText(_translate("Dialog", "含量规格:"))
        self.commonname_label.setText(_translate("Dialog", "通用名:"))
        self.prodname_label.setText(_translate("Dialog", "产品商品名:"))
        self.productkind_label.setText(_translate("Dialog", "生产类型:"))
        self.productworkshop_label.setText(_translate("Dialog", "生产车间:"))
        self.productkind.setItemText(0, _translate("Dialog", "成品"))
        self.productkind.setItemText(1, _translate("Dialog", "前处理"))
        self.productkind.setItemText(2, _translate("Dialog", "退货"))
        self.productkind.setItemText(3, _translate("Dialog", "验证"))
        self.prodline_label.setText(_translate("Dialog", "生产线:"))
        self.accept_button.setText(_translate("Dialog", "确认"))
        self.cancel_button.setText(_translate("Dialog", "取消"))
        self.pushButton_audit.setText(_translate("Dialog", "审核下达"))
        self.groupBox_2.setTitle(_translate("Dialog", "配方"))
        self.materialuse_label.setText(_translate("Dialog", "原料使用量"))
        self.treeWidget_package.headerItem().setText(0, _translate("Dialog", "包材名称"))
        self.treeWidget_package.headerItem().setText(1, _translate("Dialog", "id"))
        self.treeWidget_package.headerItem().setText(2, _translate("Dialog", "配方"))
        self.treeWidget_package.headerItem().setText(3, _translate("Dialog", "批号"))
        self.treeWidget_package.headerItem().setText(4, _translate("Dialog", "库存数量"))
        self.treeWidget_package.headerItem().setText(5, _translate("Dialog", "锁存数量"))
        self.treeWidget_package.headerItem().setText(6, _translate("Dialog", "计划量"))
        self.treeWidget_package.headerItem().setText(7, _translate("Dialog", "实际量"))
        self.treeWidget_package.headerItem().setText(8, _translate("Dialog", "领取量"))
        self.packageuse_label.setText(_translate("Dialog", "包材使用量"))
        self.treewidget_meterial.headerItem().setText(0, _translate("Dialog", "物料名称"))
        self.treewidget_meterial.headerItem().setText(1, _translate("Dialog", "id"))
        self.treewidget_meterial.headerItem().setText(2, _translate("Dialog", "配方"))
        self.treewidget_meterial.headerItem().setText(3, _translate("Dialog", "批号"))
        self.treewidget_meterial.headerItem().setText(4, _translate("Dialog", "库存数量"))
        self.treewidget_meterial.headerItem().setText(5, _translate("Dialog", "锁存数量"))
        self.treewidget_meterial.headerItem().setText(6, _translate("Dialog", "计划量"))
        self.treewidget_meterial.headerItem().setText(7, _translate("Dialog", "实际量"))
        self.treewidget_meterial.headerItem().setText(8, _translate("Dialog", "领取量"))
        self.treewidget_meterial.headerItem().setText(9, _translate("Dialog", "含量"))
        self.treewidget_meterial.headerItem().setText(10, _translate("Dialog", "水分"))
        self.treewidget_meterial.headerItem().setText(11, _translate("Dialog", "相对密度"))
        self.treewidget_meterial.headerItem().setText(12, _translate("Dialog", "杂质"))
示例#11
0
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(750, 310)
        self.gridLayout = QtWidgets.QGridLayout(Dialog)
        self.gridLayout.setObjectName("gridLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.lineEdit_amount = QtWidgets.QLineEdit(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, 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(Dialog)
        self.label_unit.setText("")
        self.label_unit.setObjectName("label_unit")
        self.horizontalLayout.addWidget(self.label_unit)
        self.gridLayout.addLayout(self.horizontalLayout, 3, 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_spec = QtWidgets.QLabel(Dialog)
        self.label_spec.setText("")
        self.label_spec.setObjectName("label_spec")
        self.gridLayout.addWidget(self.label_spec, 1, 1, 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_package = QtWidgets.QLabel(Dialog)
        self.label_package.setText("")
        self.label_package.setObjectName("label_package")
        self.gridLayout.addWidget(self.label_package, 2, 1, 1, 1)
        self.label = QtWidgets.QLabel(Dialog)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.label_4 = QtWidgets.QLabel(Dialog)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 3, 0, 1, 1)
        self.lineEdit_product = ComboLine(Dialog)
        self.lineEdit_product.setObjectName("lineEdit_product")
        self.gridLayout.addWidget(self.lineEdit_product, 0, 1, 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.pushButton_accept = QtWidgets.QPushButton(Dialog)
        self.pushButton_accept.setObjectName("pushButton_accept")
        self.horizontalLayout_2.addWidget(self.pushButton_accept)
        self.pushButton_cancel = QtWidgets.QPushButton(Dialog)
        self.pushButton_cancel.setObjectName("pushButton_cancel")
        self.horizontalLayout_2.addWidget(self.pushButton_cancel)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.gridLayout.addLayout(self.horizontalLayout_2, 4, 0, 1, 2)

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        Dialog.setTabOrder(self.lineEdit_product, self.lineEdit_amount)
        Dialog.setTabOrder(self.lineEdit_amount, 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_2.setText(_translate("Dialog", "含量规格:"))
        self.label_3.setText(_translate("Dialog", "包装规格:"))
        self.label.setText(_translate("Dialog", "产品:"))
        self.label_4.setText(_translate("Dialog", "销售数量:"))
        self.pushButton_accept.setText(_translate("Dialog", "确认"))
        self.pushButton_cancel.setText(_translate("Dialog", "取消"))
示例#12
0
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(400, 300)
        self.gridLayout = QtWidgets.QGridLayout(Dialog)
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        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, 2)
        self.Label = QtWidgets.QLabel(Dialog)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.Label.setFont(font)
        self.Label.setAlignment(QtCore.Qt.AlignCenter)
        self.Label.setObjectName("Label")
        self.gridLayout.addWidget(self.Label, 1, 0, 1, 1)
        self.username = ComboLine(Dialog)
        self.username.setObjectName("username")
        self.gridLayout.addWidget(self.username, 1, 1, 1, 3)
        self.Label_2 = QtWidgets.QLabel(Dialog)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.Label_2.setFont(font)
        self.Label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.Label_2.setObjectName("Label_2")
        self.gridLayout.addWidget(self.Label_2, 2, 0, 1, 1)
        self.password = QtWidgets.QLineEdit(Dialog)
        self.password.setEchoMode(QtWidgets.QLineEdit.Password)
        self.password.setObjectName("password")
        self.gridLayout.addWidget(self.password, 2, 1, 1, 3)
        self.tipslabel = QtWidgets.QLabel(Dialog)
        self.tipslabel.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tipslabel.sizePolicy().hasHeightForWidth())
        self.tipslabel.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.tipslabel.setFont(font)
        self.tipslabel.setStyleSheet("color: rgb(255, 0, 0);")
        self.tipslabel.setObjectName("tipslabel")
        self.gridLayout.addWidget(self.tipslabel, 3, 1, 1, 3)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.RadioButton_sign = QtWidgets.QRadioButton(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.RadioButton_sign.sizePolicy().hasHeightForWidth())
        self.RadioButton_sign.setSizePolicy(sizePolicy)
        self.RadioButton_sign.setChecked(True)
        self.RadioButton_sign.setObjectName("RadioButton_sign")
        self.horizontalLayout.addWidget(self.RadioButton_sign)
        self.RadioButton_unsign = QtWidgets.QRadioButton(Dialog)
        self.RadioButton_unsign.setObjectName("RadioButton_unsign")
        self.horizontalLayout.addWidget(self.RadioButton_unsign)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.gridLayout.addLayout(self.horizontalLayout, 4, 0, 1, 4)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.acceptButton = QtWidgets.QPushButton(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.acceptButton.sizePolicy().hasHeightForWidth())
        self.acceptButton.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.acceptButton.setFont(font)
        self.acceptButton.setObjectName("acceptButton")
        self.horizontalLayout_2.addWidget(self.acceptButton)
        self.cancelButton = QtWidgets.QPushButton(Dialog)
        self.cancelButton.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cancelButton.sizePolicy().hasHeightForWidth())
        self.cancelButton.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.cancelButton.setFont(font)
        self.cancelButton.setObjectName("cancelButton")
        self.horizontalLayout_2.addWidget(self.cancelButton)
        self.gridLayout.addLayout(self.horizontalLayout_2, 5, 0, 1, 4)
        self.tipslabel.raise_()
        self.password.raise_()
        self.label.raise_()
        self.Label.raise_()
        self.Label_2.raise_()
        self.username.raise_()

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        Dialog.setTabOrder(self.username, self.password)

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
        self.label.setText(_translate("Dialog", "请选择用户签名:"))
        self.Label.setText(_translate("Dialog", "姓名:"))
        self.Label_2.setText(_translate("Dialog", "密码:"))
        self.tipslabel.setText(_translate("Dialog", "用户名/密码错误"))
        self.RadioButton_sign.setText(_translate("Dialog", "签名"))
        self.RadioButton_unsign.setText(_translate("Dialog", "清除签名"))
        self.acceptButton.setText(_translate("Dialog", "确认"))
        self.cancelButton.setText(_translate("Dialog", "取消"))
示例#13
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.setEnabled(True)
        MainWindow.resize(526, 397)
        font = QtGui.QFont()
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        MainWindow.setFont(font)
        MainWindow.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/images/mainwindowlogo.png"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        MainWindow.setLayoutDirection(QtCore.Qt.LeftToRight)
        MainWindow.setStyleSheet("")
        MainWindow.setTabShape(QtWidgets.QTabWidget.Rounded)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.label_changepassword = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_changepassword.sizePolicy().hasHeightForWidth())
        self.label_changepassword.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(11)
        font.setUnderline(True)
        self.label_changepassword.setFont(font)
        self.label_changepassword.setAlignment(QtCore.Qt.AlignCenter)
        self.label_changepassword.setObjectName("label_changepassword")
        self.gridLayout.addWidget(self.label_changepassword, 5, 0, 1, 2)
        self.lineEdit_password = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit_password.setObjectName("lineEdit_password")
        self.gridLayout.addWidget(self.lineEdit_password, 3, 1, 1, 2)
        self.lineEdit_username = ComboLine(self.centralwidget)
        self.lineEdit_username.setObjectName("lineEdit_username")
        self.gridLayout.addWidget(self.lineEdit_username, 1, 1, 1, 2)
        self.label_tips = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_tips.sizePolicy().hasHeightForWidth())
        self.label_tips.setSizePolicy(sizePolicy)
        self.label_tips.setStyleSheet("color: rgb(255, 85, 0);")
        self.label_tips.setObjectName("label_tips")
        self.gridLayout.addWidget(self.label_tips, 4, 1, 1, 2)
        self.pushButton_accept = QtWidgets.QPushButton(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_accept.setFont(font)
        self.pushButton_accept.setObjectName("pushButton_accept")
        self.gridLayout.addWidget(self.pushButton_accept, 1, 3, 1, 1)
        self.label = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setMaximumSize(QtCore.QSize(16777214, 16777215))
        font = QtGui.QFont()
        font.setFamily("Microsoft YaHei UI")
        font.setPointSize(17)
        font.setBold(False)
        font.setWeight(50)
        self.label.setFont(font)
        self.label.setAutoFillBackground(False)
        self.label.setStyleSheet("border-image: url(:/images/switch.png);")
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 6, 0, 1, 4)
        self.Label = QtWidgets.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.Label.setFont(font)
        self.Label.setAlignment(QtCore.Qt.AlignCenter)
        self.Label.setObjectName("Label")
        self.gridLayout.addWidget(self.Label, 1, 0, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.centralwidget)
        self.label_4.setSizeIncrement(QtCore.QSize(0, 0))
        self.label_4.setBaseSize(QtCore.QSize(0, 0))
        self.label_4.setStyleSheet("border-image: url(:/images/logo.png);")
        self.label_4.setText("")
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 0, 0, 1, 4)
        self.label_forgetpassword = QtWidgets.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(11)
        font.setUnderline(True)
        self.label_forgetpassword.setFont(font)
        self.label_forgetpassword.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.label_forgetpassword.setAlignment(QtCore.Qt.AlignCenter)
        self.label_forgetpassword.setObjectName("label_forgetpassword")
        self.gridLayout.addWidget(self.label_forgetpassword, 5, 2, 1, 1)
        self.Label_2 = QtWidgets.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.Label_2.setFont(font)
        self.Label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.Label_2.setObjectName("Label_2")
        self.gridLayout.addWidget(self.Label_2, 3, 0, 1, 1)
        self.pushButton_cancel = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton_cancel.setEnabled(True)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.pushButton_cancel.setFont(font)
        self.pushButton_cancel.setObjectName("pushButton_cancel")
        self.gridLayout.addWidget(self.pushButton_cancel, 3, 3, 1, 1)
        self.label.raise_()
        self.label_changepassword.raise_()
        self.lineEdit_password.raise_()
        self.label_forgetpassword.raise_()
        self.label_tips.raise_()
        self.Label_2.raise_()
        self.Label.raise_()
        self.pushButton_cancel.raise_()
        self.pushButton_accept.raise_()
        self.label_4.raise_()
        self.lineEdit_username.raise_()
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
        MainWindow.setTabOrder(self.lineEdit_username, self.lineEdit_password)
        MainWindow.setTabOrder(self.lineEdit_password, self.pushButton_accept)
        MainWindow.setTabOrder(self.pushButton_accept, self.pushButton_cancel)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "用户登录"))
        self.label_changepassword.setText(_translate("MainWindow", "修改密码"))
        self.label_tips.setText(_translate("MainWindow", "帐号/密码错误"))
        self.pushButton_accept.setText(_translate("MainWindow", "确认"))
        self.label.setText(_translate("MainWindow", "化药普及版"))
        self.Label.setText(_translate("MainWindow", "姓名"))
        self.label_forgetpassword.setText(_translate("MainWindow", "忘记密码"))
        self.Label_2.setText(_translate("MainWindow", "密码"))
        self.pushButton_cancel.setText(_translate("MainWindow", "取消"))
示例#14
0
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(477, 362)
        Dialog.setModal(False)
        self.gridLayout = QtWidgets.QGridLayout(Dialog)
        self.gridLayout.setObjectName("gridLayout")
        self.lineEdit_deptid = QtWidgets.QLineEdit(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lineEdit_deptid.sizePolicy().hasHeightForWidth())
        self.lineEdit_deptid.setSizePolicy(sizePolicy)
        self.lineEdit_deptid.setObjectName("lineEdit_deptid")
        self.gridLayout.addWidget(self.lineEdit_deptid, 0, 2, 1, 1)
        self.lineEdit_inputcode = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_inputcode.setObjectName("lineEdit_inputcode")
        self.gridLayout.addWidget(self.lineEdit_inputcode, 3, 2, 1, 1)
        self.checkBox_16 = QtWidgets.QCheckBox(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.checkBox_16.sizePolicy().hasHeightForWidth())
        self.checkBox_16.setSizePolicy(sizePolicy)
        self.checkBox_16.setObjectName("checkBox_16")
        self.gridLayout.addWidget(self.checkBox_16, 5, 2, 1, 1)
        self.pushButton_cancel = QtWidgets.QPushButton(Dialog)
        self.pushButton_cancel.setObjectName("pushButton_cancel")
        self.gridLayout.addWidget(self.pushButton_cancel, 10, 2, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 5, 3, 1, 1)
        self.deptNameLabel = QtWidgets.QLabel(Dialog)
        self.deptNameLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.deptNameLabel.setObjectName("deptNameLabel")
        self.gridLayout.addWidget(self.deptNameLabel, 1, 1, 1, 1)
        self.checkBox_128 = QtWidgets.QCheckBox(Dialog)
        self.checkBox_128.setObjectName("checkBox_128")
        self.gridLayout.addWidget(self.checkBox_128, 8, 2, 1, 1)
        self.checkBox_1 = QtWidgets.QCheckBox(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.checkBox_1.sizePolicy().hasHeightForWidth())
        self.checkBox_1.setSizePolicy(sizePolicy)
        self.checkBox_1.setObjectName("checkBox_1")
        self.gridLayout.addWidget(self.checkBox_1, 5, 1, 1, 1)
        self.parentNameLabel = QtWidgets.QLabel(Dialog)
        self.parentNameLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.parentNameLabel.setObjectName("parentNameLabel")
        self.gridLayout.addWidget(self.parentNameLabel, 2, 1, 1, 1)
        self.checkBox_2 = QtWidgets.QCheckBox(Dialog)
        self.checkBox_2.setObjectName("checkBox_2")
        self.gridLayout.addWidget(self.checkBox_2, 6, 1, 1, 1)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem1, 5, 0, 1, 1)
        self.checkBox_64 = QtWidgets.QCheckBox(Dialog)
        self.checkBox_64.setObjectName("checkBox_64")
        self.gridLayout.addWidget(self.checkBox_64, 7, 2, 1, 1)
        self.lineEdit_deptname = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_deptname.setObjectName("lineEdit_deptname")
        self.gridLayout.addWidget(self.lineEdit_deptname, 1, 2, 1, 1)
        self.pushButton_accept = QtWidgets.QPushButton(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, 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, 10, 1, 1, 1)
        self.inputCdeLabel = QtWidgets.QLabel(Dialog)
        self.inputCdeLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.inputCdeLabel.setObjectName("inputCdeLabel")
        self.gridLayout.addWidget(self.inputCdeLabel, 3, 1, 1, 1)
        self.deptIdLabel = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.deptIdLabel.sizePolicy().hasHeightForWidth())
        self.deptIdLabel.setSizePolicy(sizePolicy)
        self.deptIdLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.deptIdLabel.setObjectName("deptIdLabel")
        self.gridLayout.addWidget(self.deptIdLabel, 0, 1, 1, 1)
        self.label_5 = QtWidgets.QLabel(Dialog)
        font = QtGui.QFont()
        font.setPointSize(16)
        self.label_5.setFont(font)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 4, 1, 1, 1)
        self.checkBox_32 = QtWidgets.QCheckBox(Dialog)
        self.checkBox_32.setObjectName("checkBox_32")
        self.gridLayout.addWidget(self.checkBox_32, 6, 2, 1, 1)
        self.checkBox_4 = QtWidgets.QCheckBox(Dialog)
        self.checkBox_4.setObjectName("checkBox_4")
        self.gridLayout.addWidget(self.checkBox_4, 7, 1, 1, 1)
        self.checkBox_8 = QtWidgets.QCheckBox(Dialog)
        self.checkBox_8.setObjectName("checkBox_8")
        self.gridLayout.addWidget(self.checkBox_8, 8, 1, 1, 1)
        self.lineEdit_parent = ComboLine(Dialog)
        self.lineEdit_parent.setObjectName("lineEdit_parent")
        self.gridLayout.addWidget(self.lineEdit_parent, 2, 2, 1, 1)
        self.checkBox_64.raise_()
        self.checkBox_128.raise_()
        self.checkBox_8.raise_()
        self.checkBox_1.raise_()
        self.checkBox_4.raise_()
        self.checkBox_16.raise_()
        self.checkBox_32.raise_()
        self.checkBox_2.raise_()
        self.lineEdit_inputcode.raise_()
        self.inputCdeLabel.raise_()
        self.lineEdit_deptid.raise_()
        self.pushButton_cancel.raise_()
        self.deptNameLabel.raise_()
        self.parentNameLabel.raise_()
        self.lineEdit_deptname.raise_()
        self.pushButton_accept.raise_()
        self.deptIdLabel.raise_()
        self.label_5.raise_()
        self.lineEdit_parent.raise_()
        self.deptNameLabel.setBuddy(self.lineEdit_deptname)
        self.inputCdeLabel.setBuddy(self.lineEdit_inputcode)
        self.deptIdLabel.setBuddy(self.lineEdit_deptid)

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        Dialog.setTabOrder(self.lineEdit_deptid, self.lineEdit_deptname)
        Dialog.setTabOrder(self.lineEdit_deptname, self.lineEdit_inputcode)
        Dialog.setTabOrder(self.lineEdit_inputcode, self.checkBox_1)
        Dialog.setTabOrder(self.checkBox_1, self.checkBox_2)
        Dialog.setTabOrder(self.checkBox_2, self.checkBox_16)
        Dialog.setTabOrder(self.checkBox_16, self.checkBox_32)
        Dialog.setTabOrder(self.checkBox_32, self.checkBox_64)
        Dialog.setTabOrder(self.checkBox_64, self.checkBox_128)
        Dialog.setTabOrder(self.checkBox_128, self.pushButton_accept)
        Dialog.setTabOrder(self.pushButton_accept, self.pushButton_cancel)

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "修改部门资料"))
        self.checkBox_16.setText(_translate("Dialog", "采购部门"))
        self.pushButton_cancel.setText(_translate("Dialog", "取消"))
        self.deptNameLabel.setText(_translate("Dialog", "部门名称"))
        self.checkBox_128.setText(_translate("Dialog", "财务"))
        self.checkBox_1.setText(_translate("Dialog", "行政部门"))
        self.parentNameLabel.setText(_translate("Dialog", "上级部门"))
        self.checkBox_2.setText(_translate("Dialog", "仓库"))
        self.checkBox_64.setText(_translate("Dialog", "质控管理"))
        self.pushButton_accept.setText(_translate("Dialog", "确认"))
        self.inputCdeLabel.setText(_translate("Dialog", "快速输入码"))
        self.deptIdLabel.setText(_translate("Dialog", "部门编号"))
        self.label_5.setText(_translate("Dialog", "部门类型"))
        self.checkBox_32.setText(_translate("Dialog", "生产车间"))
        self.checkBox_4.setText(_translate("Dialog", "销售业务"))
        self.checkBox_8.setText(_translate("Dialog", "设备管理"))
示例#15
0
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(1187, 758)
        self.gridLayout = QtWidgets.QGridLayout(Dialog)
        self.gridLayout.setObjectName("gridLayout")
        self.tabWidget_ = QtWidgets.QTabWidget(Dialog)
        self.tabWidget_.setFocusPolicy(QtCore.Qt.TabFocus)
        self.tabWidget_.setObjectName("tabWidget_")
        self.tab_1 = QtWidgets.QWidget()
        self.tab_1.setObjectName("tab_1")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.tab_1)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.groupBox_2 = QtWidgets.QGroupBox(self.tab_1)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(2)
        sizePolicy.setHeightForWidth(
            self.groupBox_2.sizePolicy().hasHeightForWidth())
        self.groupBox_2.setSizePolicy(sizePolicy)
        self.groupBox_2.setAlignment(QtCore.Qt.AlignCenter)
        self.groupBox_2.setFlat(False)
        self.groupBox_2.setCheckable(False)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout_7 = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.label_2 = QtWidgets.QLabel(self.groupBox_2)
        self.label_2.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName("label_2")
        self.gridLayout_7.addWidget(self.label_2, 0, 3, 1, 1)
        self.label_9 = QtWidgets.QLabel(self.groupBox_2)
        self.label_9.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_9.setObjectName("label_9")
        self.gridLayout_7.addWidget(self.label_9, 4, 0, 1, 1)
        self.clerkname = QtWidgets.QLineEdit(self.groupBox_2)
        self.clerkname.setObjectName("clerkname")
        self.gridLayout_7.addWidget(self.clerkname, 0, 4, 1, 1)
        self.clerkid = QtWidgets.QLineEdit(self.groupBox_2)
        self.clerkid.setObjectName("clerkid")
        self.gridLayout_7.addWidget(self.clerkid, 0, 2, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.groupBox_2)
        self.label_5.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_5.setObjectName("label_5")
        self.gridLayout_7.addWidget(self.label_5, 1, 3, 1, 1)
        self.label_14 = QtWidgets.QLabel(self.groupBox_2)
        self.label_14.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.label_14.setObjectName("label_14")
        self.gridLayout_7.addWidget(self.label_14, 5, 3, 1, 1)
        self.marrystatus = QtWidgets.QComboBox(self.groupBox_2)
        self.marrystatus.setEditable(False)
        self.marrystatus.setObjectName("marrystatus")
        self.marrystatus.addItem("")
        self.marrystatus.addItem("")
        self.gridLayout_7.addWidget(self.marrystatus, 1, 6, 1, 1)
        self.sex = QtWidgets.QComboBox(self.groupBox_2)
        self.sex.setObjectName("sex")
        self.sex.addItem("")
        self.sex.addItem("")
        self.gridLayout_7.addWidget(self.sex, 1, 2, 1, 1)
        self.label = QtWidgets.QLabel(self.groupBox_2)
        self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing
                                | QtCore.Qt.AlignVCenter)
        self.label.setObjectName("label")
        self.gridLayout_7.addWidget(self.label, 0, 0, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.groupBox_2)
        self.label_3.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_3.setObjectName("label_3")
        self.gridLayout_7.addWidget(self.label_3, 0, 5, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.groupBox_2)
        self.label_4.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_4.setObjectName("label_4")
        self.gridLayout_7.addWidget(self.label_4, 1, 0, 1, 1)
        self.label_18 = QtWidgets.QLabel(self.groupBox_2)
        self.label_18.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.label_18.setObjectName("label_18")
        self.gridLayout_7.addWidget(self.label_18, 5, 5, 1, 1)
        self.birthday = QtWidgets.QLineEdit(self.groupBox_2)
        self.birthday.setObjectName("birthday")
        self.gridLayout_7.addWidget(self.birthday, 1, 4, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.groupBox_2)
        self.label_6.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_6.setObjectName("label_6")
        self.gridLayout_7.addWidget(self.label_6, 1, 5, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.groupBox_2)
        self.label_7.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_7.setObjectName("label_7")
        self.gridLayout_7.addWidget(self.label_7, 2, 0, 1, 1)
        self.label_8 = QtWidgets.QLabel(self.groupBox_2)
        self.label_8.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_8.setObjectName("label_8")
        self.gridLayout_7.addWidget(self.label_8, 3, 0, 1, 1)
        self.schoolname = QtWidgets.QLineEdit(self.groupBox_2)
        self.schoolname.setObjectName("schoolname")
        self.gridLayout_7.addWidget(self.schoolname, 5, 2, 1, 1)
        self.label_16 = QtWidgets.QLabel(self.groupBox_2)
        self.label_16.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.label_16.setObjectName("label_16")
        self.gridLayout_7.addWidget(self.label_16, 3, 5, 1, 1)
        self.idno = QtWidgets.QLineEdit(self.groupBox_2)
        self.idno.setObjectName("idno")
        self.gridLayout_7.addWidget(self.idno, 3, 2, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.groupBox_2)
        self.label_10.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.label_10.setObjectName("label_10")
        self.gridLayout_7.addWidget(self.label_10, 5, 0, 1, 1)
        self.label_12 = QtWidgets.QLabel(self.groupBox_2)
        self.label_12.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.label_12.setObjectName("label_12")
        self.gridLayout_7.addWidget(self.label_12, 3, 3, 1, 1)
        self.label_11 = QtWidgets.QLabel(self.groupBox_2)
        self.label_11.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.label_11.setObjectName("label_11")
        self.gridLayout_7.addWidget(self.label_11, 2, 3, 1, 1)
        self.entranceday = QtWidgets.QLineEdit(self.groupBox_2)
        self.entranceday.setObjectName("entranceday")
        self.gridLayout_7.addWidget(self.entranceday, 4, 2, 1, 1)
        self.nation = QtWidgets.QComboBox(self.groupBox_2)
        self.nation.setEditable(True)
        self.nation.setObjectName("nation")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.nation.addItem("")
        self.gridLayout_7.addWidget(self.nation, 2, 2, 1, 1)
        self.label_13 = QtWidgets.QLabel(self.groupBox_2)
        self.label_13.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.label_13.setObjectName("label_13")
        self.gridLayout_7.addWidget(self.label_13, 4, 3, 1, 1)
        self.inputcode = QtWidgets.QLineEdit(self.groupBox_2)
        self.inputcode.setObjectName("inputcode")
        self.gridLayout_7.addWidget(self.inputcode, 0, 6, 1, 1)
        self.telno = QtWidgets.QLineEdit(self.groupBox_2)
        self.telno.setObjectName("telno")
        self.gridLayout_7.addWidget(self.telno, 3, 6, 1, 1)
        self.special = QtWidgets.QLineEdit(self.groupBox_2)
        self.special.setObjectName("special")
        self.gridLayout_7.addWidget(self.special, 4, 6, 1, 1)
        self.strongsuit = QtWidgets.QLineEdit(self.groupBox_2)
        self.strongsuit.setObjectName("strongsuit")
        self.gridLayout_7.addWidget(self.strongsuit, 5, 6, 1, 1)
        self.policystatus = QtWidgets.QComboBox(self.groupBox_2)
        self.policystatus.setEditable(True)
        self.policystatus.setObjectName("policystatus")
        self.policystatus.addItem("")
        self.policystatus.addItem("")
        self.gridLayout_7.addWidget(self.policystatus, 2, 6, 1, 1)
        self.label_17 = QtWidgets.QLabel(self.groupBox_2)
        self.label_17.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.label_17.setObjectName("label_17")
        self.gridLayout_7.addWidget(self.label_17, 4, 5, 1, 1)
        self.native_2 = QtWidgets.QLineEdit(self.groupBox_2)
        self.native_2.setObjectName("native_2")
        self.gridLayout_7.addWidget(self.native_2, 2, 4, 1, 1)
        self.address = QtWidgets.QLineEdit(self.groupBox_2)
        self.address.setObjectName("address")
        self.gridLayout_7.addWidget(self.address, 3, 4, 1, 1)
        self.edudegree = QtWidgets.QComboBox(self.groupBox_2)
        self.edudegree.setEditable(True)
        self.edudegree.setObjectName("edudegree")
        self.gridLayout_7.addWidget(self.edudegree, 4, 4, 1, 1)
        self.label_15 = QtWidgets.QLabel(self.groupBox_2)
        self.label_15.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.label_15.setObjectName("label_15")
        self.gridLayout_7.addWidget(self.label_15, 2, 5, 1, 1)
        self.techtitle = QtWidgets.QComboBox(self.groupBox_2)
        self.techtitle.setEditable(True)
        self.techtitle.setObjectName("techtitle")
        self.gridLayout_7.addWidget(self.techtitle, 5, 4, 1, 1)
        self.gridLayout_2.addWidget(self.groupBox_2, 0, 0, 1, 3)
        self.groupBox = QtWidgets.QGroupBox(self.tab_1)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(3)
        sizePolicy.setHeightForWidth(
            self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setAlignment(QtCore.Qt.AlignCenter)
        self.groupBox.setFlat(False)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.pushButton_editpower = QtWidgets.QPushButton(self.groupBox)
        self.pushButton_editpower.setObjectName("pushButton_editpower")
        self.gridLayout_5.addWidget(self.pushButton_editpower, 1, 0, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_5.addItem(spacerItem, 1, 1, 1, 1)
        self.treeWidget_powers = QtWidgets.QTreeWidget(self.groupBox)
        self.treeWidget_powers.setEnabled(True)
        self.treeWidget_powers.setFocusPolicy(QtCore.Qt.NoFocus)
        self.treeWidget_powers.setObjectName("treeWidget_powers")
        self.gridLayout_5.addWidget(self.treeWidget_powers, 0, 0, 1, 2)
        self.gridLayout_2.addWidget(self.groupBox, 1, 0, 2, 1)
        self.groupBox_4 = QtWidgets.QGroupBox(self.tab_1)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.groupBox_4.sizePolicy().hasHeightForWidth())
        self.groupBox_4.setSizePolicy(sizePolicy)
        self.groupBox_4.setAlignment(QtCore.Qt.AlignCenter)
        self.groupBox_4.setObjectName("groupBox_4")
        self.gridLayout_6 = QtWidgets.QGridLayout(self.groupBox_4)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.clerk_image = QtWidgets.QLabel(self.groupBox_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.clerk_image.sizePolicy().hasHeightForWidth())
        self.clerk_image.setSizePolicy(sizePolicy)
        self.clerk_image.setStyleSheet("")
        self.clerk_image.setText("")
        self.clerk_image.setObjectName("clerk_image")
        self.gridLayout_6.addWidget(self.clerk_image, 0, 0, 1, 1)
        self.setimage = QtWidgets.QPushButton(self.groupBox_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.setimage.sizePolicy().hasHeightForWidth())
        self.setimage.setSizePolicy(sizePolicy)
        self.setimage.setObjectName("setimage")
        self.gridLayout_6.addWidget(self.setimage, 1, 0, 1, 1)
        self.gridLayout_2.addWidget(self.groupBox_4, 1, 2, 2, 1)
        self.tabWidget_.addTab(self.tab_1, "")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.tab_2)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.groupBox_5 = QtWidgets.QGroupBox(self.tab_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox_5.sizePolicy().hasHeightForWidth())
        self.groupBox_5.setSizePolicy(sizePolicy)
        self.groupBox_5.setObjectName("groupBox_5")
        self.gridLayout_9 = QtWidgets.QGridLayout(self.groupBox_5)
        self.gridLayout_9.setObjectName("gridLayout_9")
        self.label_20 = QtWidgets.QLabel(self.groupBox_5)
        self.label_20.setAlignment(QtCore.Qt.AlignCenter)
        self.label_20.setObjectName("label_20")
        self.gridLayout_9.addWidget(self.label_20, 0, 0, 1, 1)
        self.lineEdit_deptment = ComboLine(self.groupBox_5)
        self.lineEdit_deptment.setReadOnly(False)
        self.lineEdit_deptment.setObjectName("lineEdit_deptment")
        self.gridLayout_9.addWidget(self.lineEdit_deptment, 0, 1, 1, 1)
        self.groupBox_6 = QtWidgets.QGroupBox(self.groupBox_5)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox_6.sizePolicy().hasHeightForWidth())
        self.groupBox_6.setSizePolicy(sizePolicy)
        self.groupBox_6.setObjectName("groupBox_6")
        self.gridLayout_10 = QtWidgets.QGridLayout(self.groupBox_6)
        self.gridLayout_10.setObjectName("gridLayout_10")
        self.treeWidget_experience = QtWidgets.QTreeWidget(self.groupBox_6)
        self.treeWidget_experience.setFocusPolicy(QtCore.Qt.ClickFocus)
        self.treeWidget_experience.setContextMenuPolicy(
            QtCore.Qt.CustomContextMenu)
        self.treeWidget_experience.setObjectName("treeWidget_experience")
        self.gridLayout_10.addWidget(self.treeWidget_experience, 0, 0, 1, 1)
        self.gridLayout_9.addWidget(self.groupBox_6, 0, 3, 3, 1)
        self.label_21 = QtWidgets.QLabel(self.groupBox_5)
        self.label_21.setAlignment(QtCore.Qt.AlignCenter)
        self.label_21.setObjectName("label_21")
        self.gridLayout_9.addWidget(self.label_21, 1, 0, 1, 1)
        self.comboBox_post = QtWidgets.QComboBox(self.groupBox_5)
        self.comboBox_post.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.comboBox_post.setEditable(True)
        self.comboBox_post.setObjectName("comboBox_post")
        self.gridLayout_9.addWidget(self.comboBox_post, 1, 1, 1, 1)
        self.pushButton_add = QtWidgets.QPushButton(self.groupBox_5)
        self.pushButton_add.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.pushButton_add.setObjectName("pushButton_add")
        self.gridLayout_9.addWidget(self.pushButton_add, 1, 2, 1, 1)
        self.treeWidget_deptlist = QtWidgets.QTreeWidget(self.groupBox_5)
        self.treeWidget_deptlist.setFocusPolicy(QtCore.Qt.ClickFocus)
        self.treeWidget_deptlist.setContextMenuPolicy(
            QtCore.Qt.CustomContextMenu)
        self.treeWidget_deptlist.setObjectName("treeWidget_deptlist")
        self.gridLayout_9.addWidget(self.treeWidget_deptlist, 2, 0, 1, 3)
        self.pushButton_add.raise_()
        self.comboBox_post.raise_()
        self.treeWidget_deptlist.raise_()
        self.lineEdit_deptment.raise_()
        self.label_20.raise_()
        self.label_21.raise_()
        self.groupBox_6.raise_()
        self.horizontalLayout.addWidget(self.groupBox_5)
        self.tabWidget_.addTab(self.tab_2, "")
        self.tab_3 = QtWidgets.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.gridLayout_12 = QtWidgets.QGridLayout(self.tab_3)
        self.gridLayout_12.setObjectName("gridLayout_12")
        self.tabWidget_2 = QtWidgets.QTabWidget(self.tab_3)
        self.tabWidget_2.setObjectName("tabWidget_2")
        self.tab_11 = QtWidgets.QWidget()
        self.tab_11.setObjectName("tab_11")
        self.gridLayout_11 = QtWidgets.QGridLayout(self.tab_11)
        self.gridLayout_11.setObjectName("gridLayout_11")
        self.treeWidget_train = QtWidgets.QTreeWidget(self.tab_11)
        self.treeWidget_train.setFocusPolicy(QtCore.Qt.ClickFocus)
        self.treeWidget_train.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.treeWidget_train.setObjectName("treeWidget_train")
        self.gridLayout_11.addWidget(self.treeWidget_train, 0, 0, 1, 1)
        self.tabWidget_2.addTab(self.tab_11, "")
        self.tab_21 = QtWidgets.QWidget()
        self.tab_21.setObjectName("tab_21")
        self.tabWidget_2.addTab(self.tab_21, "")
        self.gridLayout_12.addWidget(self.tabWidget_2, 0, 0, 1, 1)
        self.tabWidget_.addTab(self.tab_3, "")
        self.tab_4 = QtWidgets.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.gridLayout_8 = QtWidgets.QGridLayout(self.tab_4)
        self.gridLayout_8.setObjectName("gridLayout_8")
        self.tabWidget_3 = QtWidgets.QTabWidget(self.tab_4)
        self.tabWidget_3.setObjectName("tabWidget_3")
        self.tab_7 = QtWidgets.QWidget()
        self.tab_7.setObjectName("tab_7")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.tab_7)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.treeWidget_health = QtWidgets.QTreeWidget(self.tab_7)
        self.treeWidget_health.setFocusPolicy(QtCore.Qt.ClickFocus)
        self.treeWidget_health.setContextMenuPolicy(
            QtCore.Qt.CustomContextMenu)
        self.treeWidget_health.setObjectName("treeWidget_health")
        self.gridLayout_3.addWidget(self.treeWidget_health, 0, 0, 1, 1)
        self.tabWidget_3.addTab(self.tab_7, "")
        self.tab_8 = QtWidgets.QWidget()
        self.tab_8.setObjectName("tab_8")
        self.tabWidget_3.addTab(self.tab_8, "")
        self.gridLayout_8.addWidget(self.tabWidget_3, 0, 0, 1, 1)
        self.tabWidget_.addTab(self.tab_4, "")
        self.gridLayout.addWidget(self.tabWidget_, 0, 0, 1, 1)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem1)
        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.horizontalLayout_4.addWidget(self.pushButton_accept)
        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.horizontalLayout_4.addWidget(self.pushButton_cancel)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem2)
        self.gridLayout.addLayout(self.horizontalLayout_4, 1, 0, 1, 1)

        self.retranslateUi(Dialog)
        self.tabWidget_.setCurrentIndex(0)
        self.tabWidget_2.setCurrentIndex(0)
        self.tabWidget_3.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        Dialog.setTabOrder(self.clerkid, self.clerkname)
        Dialog.setTabOrder(self.clerkname, self.inputcode)
        Dialog.setTabOrder(self.inputcode, self.sex)
        Dialog.setTabOrder(self.sex, self.birthday)
        Dialog.setTabOrder(self.birthday, self.marrystatus)
        Dialog.setTabOrder(self.marrystatus, self.nation)
        Dialog.setTabOrder(self.nation, self.native_2)
        Dialog.setTabOrder(self.native_2, self.policystatus)
        Dialog.setTabOrder(self.policystatus, self.idno)
        Dialog.setTabOrder(self.idno, self.address)
        Dialog.setTabOrder(self.address, self.telno)
        Dialog.setTabOrder(self.telno, self.entranceday)
        Dialog.setTabOrder(self.entranceday, self.edudegree)
        Dialog.setTabOrder(self.edudegree, self.special)
        Dialog.setTabOrder(self.special, self.schoolname)
        Dialog.setTabOrder(self.schoolname, self.techtitle)
        Dialog.setTabOrder(self.techtitle, self.strongsuit)
        Dialog.setTabOrder(self.strongsuit, self.pushButton_editpower)
        Dialog.setTabOrder(self.pushButton_editpower, self.setimage)
        Dialog.setTabOrder(self.setimage, self.pushButton_accept)
        Dialog.setTabOrder(self.pushButton_accept, self.pushButton_cancel)
        Dialog.setTabOrder(self.pushButton_cancel, self.lineEdit_deptment)
        Dialog.setTabOrder(self.lineEdit_deptment, self.treeWidget_experience)
        Dialog.setTabOrder(self.treeWidget_experience, self.comboBox_post)
        Dialog.setTabOrder(self.comboBox_post, self.pushButton_add)
        Dialog.setTabOrder(self.pushButton_add, self.treeWidget_deptlist)
        Dialog.setTabOrder(self.treeWidget_deptlist, self.tabWidget_2)
        Dialog.setTabOrder(self.tabWidget_2, self.treeWidget_train)
        Dialog.setTabOrder(self.treeWidget_train, self.tabWidget_3)
        Dialog.setTabOrder(self.tabWidget_3, self.treeWidget_health)
        Dialog.setTabOrder(self.treeWidget_health, self.treeWidget_powers)
        Dialog.setTabOrder(self.treeWidget_powers, self.tabWidget_)

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
        self.groupBox_2.setTitle(_translate("Dialog", "基本情况"))
        self.label_2.setText(_translate("Dialog", "姓名:"))
        self.label_9.setText(_translate("Dialog", "雇佣日期:"))
        self.label_5.setText(_translate("Dialog", "出生日期:"))
        self.label_14.setText(_translate("Dialog", "职称:"))
        self.marrystatus.setItemText(0, _translate("Dialog", "未婚"))
        self.marrystatus.setItemText(1, _translate("Dialog", "已婚"))
        self.sex.setItemText(0, _translate("Dialog", "男"))
        self.sex.setItemText(1, _translate("Dialog", "女"))
        self.label.setText(_translate("Dialog", "编号:"))
        self.label_3.setText(_translate("Dialog", "输入码:"))
        self.label_4.setText(_translate("Dialog", "性别:"))
        self.label_18.setText(_translate("Dialog", "入职前工作年限:"))
        self.label_6.setText(_translate("Dialog", "婚姻状况:"))
        self.label_7.setText(_translate("Dialog", "民族:"))
        self.label_8.setText(_translate("Dialog", "身份证证号码:"))
        self.label_16.setText(_translate("Dialog", "联系电话:"))
        self.label_10.setText(_translate("Dialog", "毕业学校:"))
        self.label_12.setText(_translate("Dialog", "家庭地址:"))
        self.label_11.setText(_translate("Dialog", "籍贯:"))
        self.nation.setItemText(0, _translate("Dialog", "汉族"))
        self.nation.setItemText(1, _translate("Dialog", "傣族"))
        self.nation.setItemText(2, _translate("Dialog", "壮族"))
        self.nation.setItemText(3, _translate("Dialog", "回族"))
        self.nation.setItemText(4, _translate("Dialog", "满族"))
        self.nation.setItemText(5, _translate("Dialog", "苗族"))
        self.nation.setItemText(6, _translate("Dialog", "彝族"))
        self.nation.setItemText(7, _translate("Dialog", "藏族"))
        self.nation.setItemText(8, _translate("Dialog", "侗族"))
        self.nation.setItemText(9, _translate("Dialog", "瑶族"))
        self.nation.setItemText(10, _translate("Dialog", "白族"))
        self.nation.setItemText(11, _translate("Dialog", "黎族"))
        self.nation.setItemText(12, _translate("Dialog", "畲族"))
        self.nation.setItemText(13, _translate("Dialog", "佤族"))
        self.nation.setItemText(14, _translate("Dialog", "水族"))
        self.nation.setItemText(15, _translate("Dialog", "羌族"))
        self.nation.setItemText(16, _translate("Dialog", "土族"))
        self.nation.setItemText(17, _translate("Dialog", "怒族"))
        self.nation.setItemText(18, _translate("Dialog", "京族"))
        self.nation.setItemText(19, _translate("Dialog", "土家族"))
        self.nation.setItemText(20, _translate("Dialog", "蒙古族"))
        self.nation.setItemText(21, _translate("Dialog", "布依族"))
        self.nation.setItemText(22, _translate("Dialog", "朝鲜族"))
        self.nation.setItemText(23, _translate("Dialog", "哈尼族"))
        self.nation.setItemText(24, _translate("Dialog", "傈僳族"))
        self.nation.setItemText(25, _translate("Dialog", "东乡族"))
        self.nation.setItemText(26, _translate("Dialog", "仡佬族"))
        self.nation.setItemText(27, _translate("Dialog", "拉祜族"))
        self.nation.setItemText(28, _translate("Dialog", "纳西族"))
        self.nation.setItemText(29, _translate("Dialog", "仫佬族"))
        self.nation.setItemText(30, _translate("Dialog", "锡伯族"))
        self.nation.setItemText(31, _translate("Dialog", "景颇族"))
        self.nation.setItemText(32, _translate("Dialog", "撒拉族"))
        self.nation.setItemText(33, _translate("Dialog", "布朗族"))
        self.nation.setItemText(34, _translate("Dialog", "毛南族"))
        self.nation.setItemText(35, _translate("Dialog", "普米族"))
        self.nation.setItemText(36, _translate("Dialog", "阿昌族"))
        self.nation.setItemText(37, _translate("Dialog", "基诺族"))
        self.nation.setItemText(38, _translate("Dialog", "德昂族"))
        self.nation.setItemText(39, _translate("Dialog", "保安族"))
        self.nation.setItemText(40, _translate("Dialog", "裕固族"))
        self.nation.setItemText(41, _translate("Dialog", "门巴族"))
        self.nation.setItemText(42, _translate("Dialog", "独龙族"))
        self.nation.setItemText(43, _translate("Dialog", "赫哲族"))
        self.nation.setItemText(44, _translate("Dialog", "高山族"))
        self.nation.setItemText(45, _translate("Dialog", "珞巴族"))
        self.nation.setItemText(46, _translate("Dialog", "塔吉克族"))
        self.nation.setItemText(47, _translate("Dialog", "哈萨克族"))
        self.nation.setItemText(48, _translate("Dialog", "鄂温克族"))
        self.nation.setItemText(49, _translate("Dialog", "达斡尔族"))
        self.nation.setItemText(50, _translate("Dialog", "俄罗斯族"))
        self.nation.setItemText(51, _translate("Dialog", "鄂伦春族"))
        self.nation.setItemText(52, _translate("Dialog", "塔塔尔族 "))
        self.nation.setItemText(53, _translate("Dialog", "维吾尔族"))
        self.nation.setItemText(54, _translate("Dialog", "乌孜别克族"))
        self.nation.setItemText(55, _translate("Dialog", "柯尔克孜族"))
        self.label_13.setText(_translate("Dialog", "文化程度:"))
        self.policystatus.setItemText(0, _translate("Dialog", "群众"))
        self.policystatus.setItemText(1, _translate("Dialog", "党员"))
        self.label_17.setText(_translate("Dialog", "专业:"))
        self.label_15.setText(_translate("Dialog", "政治面貌:"))
        self.groupBox.setTitle(_translate("Dialog", "人员权限"))
        self.pushButton_editpower.setText(_translate("Dialog", "编辑权限"))
        self.treeWidget_powers.headerItem().setText(0,
                                                    _translate("Dialog", "模块"))
        self.treeWidget_powers.headerItem().setText(1,
                                                    _translate("Dialog", "查看"))
        self.treeWidget_powers.headerItem().setText(2,
                                                    _translate("Dialog", "编辑"))
        self.treeWidget_powers.headerItem().setText(3,
                                                    _translate("Dialog", "打印"))
        self.groupBox_4.setTitle(_translate("Dialog", "相片"))
        self.setimage.setText(_translate("Dialog", "上传照片"))
        self.tabWidget_.setTabText(self.tabWidget_.indexOf(self.tab_1),
                                   _translate("Dialog", "基本资料"))
        self.groupBox_5.setTitle(_translate("Dialog", "所在部门"))
        self.label_20.setText(_translate("Dialog", "部门:"))
        self.groupBox_6.setTitle(_translate("Dialog", "人员经历"))
        self.treeWidget_experience.headerItem().setText(
            0, _translate("Dialog", "id"))
        self.treeWidget_experience.headerItem().setText(
            1, _translate("Dialog", "类别"))
        self.treeWidget_experience.headerItem().setText(
            2, _translate("Dialog", "起始日期"))
        self.treeWidget_experience.headerItem().setText(
            3, _translate("Dialog", "终止日期"))
        self.treeWidget_experience.headerItem().setText(
            4, _translate("Dialog", "单位"))
        self.treeWidget_experience.headerItem().setText(
            5, _translate("Dialog", "经历"))
        self.treeWidget_experience.headerItem().setText(
            6, _translate("Dialog", "职务"))
        self.treeWidget_experience.headerItem().setText(
            7, _translate("Dialog", "备注"))
        self.label_21.setText(_translate("Dialog", "职务:"))
        self.pushButton_add.setText(_translate("Dialog", "增加"))
        self.treeWidget_deptlist.headerItem().setText(
            0, _translate("Dialog", "id"))
        self.treeWidget_deptlist.headerItem().setText(
            1, _translate("Dialog", "编号"))
        self.treeWidget_deptlist.headerItem().setText(
            2, _translate("Dialog", "部门名称"))
        self.treeWidget_deptlist.headerItem().setText(
            3, _translate("Dialog", "职务"))
        self.tabWidget_.setTabText(self.tabWidget_.indexOf(self.tab_2),
                                   _translate("Dialog", "所在部门及经历"))
        self.treeWidget_train.headerItem().setText(0,
                                                   _translate("Dialog", "id"))
        self.treeWidget_train.headerItem().setText(
            1, _translate("Dialog", "起始日期"))
        self.treeWidget_train.headerItem().setText(
            2, _translate("Dialog", "终止日期"))
        self.treeWidget_train.headerItem().setText(
            3, _translate("Dialog", "授课地点"))
        self.treeWidget_train.headerItem().setText(
            4, _translate("Dialog", "培训内容"))
        self.treeWidget_train.headerItem().setText(
            5, _translate("Dialog", "授课时间"))
        self.treeWidget_train.headerItem().setText(6,
                                                   _translate("Dialog", "授课人"))
        self.treeWidget_train.headerItem().setText(7,
                                                   _translate("Dialog", "成绩"))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_11),
                                    _translate("Dialog", "编辑"))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_21),
                                    _translate("Dialog", "提交"))
        self.tabWidget_.setTabText(self.tabWidget_.indexOf(self.tab_3),
                                   _translate("Dialog", "培训记录"))
        self.treeWidget_health.headerItem().setText(0,
                                                    _translate("Dialog", "id"))
        self.treeWidget_health.headerItem().setText(1,
                                                    _translate("Dialog", "日期"))
        self.treeWidget_health.headerItem().setText(
            2, _translate("Dialog", "体检单位"))
        self.treeWidget_health.headerItem().setText(
            3, _translate("Dialog", "检查项目"))
        self.treeWidget_health.headerItem().setText(
            4, _translate("Dialog", "健康状况"))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_7),
                                    _translate("Dialog", "编辑"))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_8),
                                    _translate("Dialog", "提交"))
        self.tabWidget_.setTabText(self.tabWidget_.indexOf(self.tab_4),
                                   _translate("Dialog", "体检记录"))
        self.pushButton_accept.setText(_translate("Dialog", "确认"))
        self.pushButton_cancel.setText(_translate("Dialog", "取消"))
示例#16
0
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(950, 549)
        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 = QtWidgets.QLabel(self.tab)
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)
        self.lineEdit_id = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_id.setObjectName("lineEdit_id")
        self.gridLayout_2.addWidget(self.lineEdit_id, 0, 1, 1, 1)
        self.label_17 = QtWidgets.QLabel(self.tab)
        self.label_17.setObjectName("label_17")
        self.gridLayout_2.addWidget(self.label_17, 0, 2, 1, 1)
        self.comboBox_type = QtWidgets.QComboBox(self.tab)
        self.comboBox_type.setObjectName("comboBox_type")
        self.comboBox_type.addItem("")
        self.comboBox_type.addItem("")
        self.comboBox_type.addItem("")
        self.comboBox_type.addItem("")
        self.comboBox_type.addItem("")
        self.comboBox_type.addItem("")
        self.comboBox_type.addItem("")
        self.comboBox_type.addItem("")
        self.gridLayout_2.addWidget(self.comboBox_type, 0, 3, 1, 1)
        self.label_8 = QtWidgets.QLabel(self.tab)
        self.label_8.setObjectName("label_8")
        self.gridLayout_2.addWidget(self.label_8, 1, 0, 1, 1)
        self.lineEdit_name = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_name.setObjectName("lineEdit_name")
        self.gridLayout_2.addWidget(self.lineEdit_name, 1, 1, 1, 1)
        self.label_9 = QtWidgets.QLabel(self.tab)
        self.label_9.setObjectName("label_9")
        self.gridLayout_2.addWidget(self.label_9, 1, 2, 1, 1)
        self.lineEdit_location = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_location.setObjectName("lineEdit_location")
        self.gridLayout_2.addWidget(self.lineEdit_location, 1, 3, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.tab)
        self.label_7.setObjectName("label_7")
        self.gridLayout_2.addWidget(self.label_7, 2, 0, 1, 1)
        self.lineEdit_NO = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_NO.setObjectName("lineEdit_NO")
        self.gridLayout_2.addWidget(self.lineEdit_NO, 2, 1, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.tab)
        self.label_10.setObjectName("label_10")
        self.gridLayout_2.addWidget(self.label_10, 2, 2, 1, 1)
        self.lineEdit_parameter = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_parameter.setObjectName("lineEdit_parameter")
        self.gridLayout_2.addWidget(self.lineEdit_parameter, 2, 3, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.tab)
        self.label_6.setObjectName("label_6")
        self.gridLayout_2.addWidget(self.label_6, 3, 0, 1, 1)
        self.lineEdit_spec = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_spec.setObjectName("lineEdit_spec")
        self.gridLayout_2.addWidget(self.lineEdit_spec, 3, 1, 1, 1)
        self.label_11 = QtWidgets.QLabel(self.tab)
        self.label_11.setObjectName("label_11")
        self.gridLayout_2.addWidget(self.label_11, 3, 2, 1, 1)
        self.lineEdit_performance = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_performance.setObjectName("lineEdit_performance")
        self.gridLayout_2.addWidget(self.lineEdit_performance, 3, 3, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.tab)
        self.label_5.setObjectName("label_5")
        self.gridLayout_2.addWidget(self.label_5, 4, 0, 1, 1)
        self.lineEdit_price = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_price.setObjectName("lineEdit_price")
        self.gridLayout_2.addWidget(self.lineEdit_price, 4, 1, 1, 1)
        self.label_12 = QtWidgets.QLabel(self.tab)
        self.label_12.setObjectName("label_12")
        self.gridLayout_2.addWidget(self.label_12, 4, 2, 1, 1)
        self.lineEdit_dept = ComboLine(self.tab)
        self.lineEdit_dept.setObjectName("lineEdit_dept")
        self.gridLayout_2.addWidget(self.lineEdit_dept, 4, 3, 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.lineEdit_producer = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_producer.setObjectName("lineEdit_producer")
        self.gridLayout_2.addWidget(self.lineEdit_producer, 5, 1, 1, 1)
        self.label_13 = QtWidgets.QLabel(self.tab)
        self.label_13.setObjectName("label_13")
        self.gridLayout_2.addWidget(self.label_13, 5, 2, 1, 1)
        self.lineEdit_maintainer = ComboLine(self.tab)
        self.lineEdit_maintainer.setObjectName("lineEdit_maintainer")
        self.gridLayout_2.addWidget(self.lineEdit_maintainer, 5, 3, 1, 1)
        self.label_18 = QtWidgets.QLabel(self.tab)
        self.label_18.setObjectName("label_18")
        self.gridLayout_2.addWidget(self.label_18, 6, 0, 1, 1)
        self.lineEdit_makedate = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_makedate.setObjectName("lineEdit_makedate")
        self.gridLayout_2.addWidget(self.lineEdit_makedate, 6, 1, 1, 1)
        self.label_14 = QtWidgets.QLabel(self.tab)
        self.label_14.setObjectName("label_14")
        self.gridLayout_2.addWidget(self.label_14, 6, 2, 1, 1)
        self.lineEdit_remark = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_remark.setObjectName("lineEdit_remark")
        self.gridLayout_2.addWidget(self.lineEdit_remark, 6, 3, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.tab)
        self.label_3.setObjectName("label_3")
        self.gridLayout_2.addWidget(self.label_3, 7, 0, 1, 1)
        self.lineEdit_indate = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_indate.setObjectName("lineEdit_indate")
        self.gridLayout_2.addWidget(self.lineEdit_indate, 7, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.tab)
        self.label_4.setObjectName("label_4")
        self.gridLayout_2.addWidget(self.label_4, 7, 2, 1, 1)
        self.comboBox_status = QtWidgets.QComboBox(self.tab)
        self.comboBox_status.setObjectName("comboBox_status")
        self.comboBox_status.addItem("")
        self.comboBox_status.addItem("")
        self.comboBox_status.addItem("")
        self.comboBox_status.addItem("")
        self.gridLayout_2.addWidget(self.comboBox_status, 7, 3, 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(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)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.gridLayout_2.addLayout(self.horizontalLayout, 8, 0, 1, 4)
        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.treeWidget_checklist = QtWidgets.QTreeWidget(self.tab_2)
        self.treeWidget_checklist.setContextMenuPolicy(
            QtCore.Qt.CustomContextMenu)
        self.treeWidget_checklist.setObjectName("treeWidget_checklist")
        self.gridLayout_3.addWidget(self.treeWidget_checklist, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab_2, "")
        self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1)

        self.retranslateUi(Dialog)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        Dialog.setTabOrder(self.pushButton_accept, self.pushButton_cancel)

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "编辑设备信息"))
        self.label.setText(_translate("Dialog", "设备编号:"))
        self.label_17.setText(_translate("Dialog", "类型:"))
        self.comboBox_type.setItemText(0, _translate("Dialog", "一般设备"))
        self.comboBox_type.setItemText(1, _translate("Dialog", "计量器"))
        self.comboBox_type.setItemText(2, _translate("Dialog", "空调系统"))
        self.comboBox_type.setItemText(3, _translate("Dialog", "纯化水系统"))
        self.comboBox_type.setItemText(4, _translate("Dialog", "注射用水系统"))
        self.comboBox_type.setItemText(5, _translate("Dialog", "检验分析仪器"))
        self.comboBox_type.setItemText(6, _translate("Dialog", "办公设备"))
        self.comboBox_type.setItemText(7, _translate("Dialog", "公用设备"))
        self.label_8.setText(_translate("Dialog", "设备名称:"))
        self.label_9.setText(_translate("Dialog", "安装位置:"))
        self.label_7.setText(_translate("Dialog", "序列号:"))
        self.label_10.setText(_translate("Dialog", "参数:"))
        self.label_6.setText(_translate("Dialog", "规格型号:"))
        self.label_11.setText(_translate("Dialog", "性能:"))
        self.label_5.setText(_translate("Dialog", "单价:"))
        self.label_12.setText(_translate("Dialog", "使用科室:"))
        self.label_2.setText(_translate("Dialog", "制造商:"))
        self.label_13.setText(_translate("Dialog", "维护人:"))
        self.label_18.setText(_translate("Dialog", "制造日期:"))
        self.label_14.setText(_translate("Dialog", "备注:"))
        self.label_3.setText(_translate("Dialog", "进厂日期:"))
        self.label_4.setText(_translate("Dialog", "设备状态:"))
        self.comboBox_status.setItemText(0, _translate("Dialog", "正常"))
        self.comboBox_status.setItemText(1, _translate("Dialog", "检修"))
        self.comboBox_status.setItemText(2, _translate("Dialog", "清洁"))
        self.comboBox_status.setItemText(3, _translate("Dialog", "报废"))
        self.pushButton_accept.setText(_translate("Dialog", "确认"))
        self.pushButton_cancel.setText(_translate("Dialog", "取消"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab),
                                  _translate("Dialog", "基础资料"))
        self.treeWidget_checklist.headerItem().setText(
            0, _translate("Dialog", "id"))
        self.treeWidget_checklist.headerItem().setText(
            1, _translate("Dialog", "状态"))
        self.treeWidget_checklist.headerItem().setText(
            2, _translate("Dialog", "日期"))
        self.treeWidget_checklist.headerItem().setText(
            3, _translate("Dialog", "校验单位"))
        self.treeWidget_checklist.headerItem().setText(
            4, _translate("Dialog", "校验结果"))
        self.treeWidget_checklist.headerItem().setText(
            5, _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(750, 370)
        self.gridLayout = QtWidgets.QGridLayout(Dialog)
        self.gridLayout.setObjectName("gridLayout")
        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, 6, 0, 1, 2)
        self.lineEdit_linename = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_linename.setObjectName("lineEdit_linename")
        self.gridLayout.addWidget(self.lineEdit_linename, 0, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(Dialog)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 4, 0, 1, 1)
        self.label_4 = QtWidgets.QLabel(Dialog)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 5, 0, 1, 1)
        self.label = QtWidgets.QLabel(Dialog)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 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.comboBox_pltype = QtWidgets.QComboBox(Dialog)
        self.comboBox_pltype.setObjectName("comboBox_pltype")
        self.comboBox_pltype.addItem("")
        self.comboBox_pltype.addItem("")
        self.comboBox_pltype.addItem("")
        self.comboBox_pltype.addItem("")
        self.gridLayout.addWidget(self.comboBox_pltype, 5, 1, 1, 1)
        self.lineEdit_stuffworkshop = ComboLine(Dialog)
        self.lineEdit_stuffworkshop.setObjectName("lineEdit_stuffworkshop")
        self.gridLayout.addWidget(self.lineEdit_stuffworkshop, 2, 1, 1, 1)
        self.label_5 = QtWidgets.QLabel(Dialog)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 2, 0, 1, 1)
        self.lineEdit_dept = ComboLine(Dialog)
        self.lineEdit_dept.setObjectName("lineEdit_dept")
        self.gridLayout.addWidget(self.lineEdit_dept, 1, 1, 1, 1)
        self.lineEdit_productworkshop = ComboLine(Dialog)
        self.lineEdit_productworkshop.setObjectName("lineEdit_productworkshop")
        self.gridLayout.addWidget(self.lineEdit_productworkshop, 3, 1, 1, 1)
        self.label_6 = QtWidgets.QLabel(Dialog)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 3, 0, 1, 1)
        self.comboBox_kind = QtWidgets.QComboBox(Dialog)
        self.comboBox_kind.setEditable(True)
        self.comboBox_kind.setObjectName("comboBox_kind")
        self.gridLayout.addWidget(self.comboBox_kind, 4, 1, 1, 1)
        self.comboBox_kind.raise_()
        self.comboBox_pltype.raise_()
        self.lineEdit_dept.raise_()
        self.lineEdit_stuffworkshop.raise_()
        self.lineEdit_linename.raise_()
        self.lineEdit_productworkshop.raise_()
        self.label_3.raise_()
        self.label_4.raise_()
        self.label.raise_()
        self.label_2.raise_()
        self.label_5.raise_()
        self.label_6.raise_()

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "编辑生产线"))
        self.pushButton_accept.setText(_translate("Dialog", "确认"))
        self.pushButton_cancel.setText(_translate("Dialog", "取消"))
        self.label_3.setText(_translate("Dialog", "类别:"))
        self.label_4.setText(_translate("Dialog", "生产线种类:"))
        self.label.setText(_translate("Dialog", "生产线名称:"))
        self.label_2.setText(_translate("Dialog", "生产车间:"))
        self.comboBox_pltype.setItemText(0, _translate("Dialog", "产品生产线"))
        self.comboBox_pltype.setItemText(1, _translate("Dialog", "半成品/前处理生产线"))
        self.comboBox_pltype.setItemText(2, _translate("Dialog", "退货生产线"))
        self.comboBox_pltype.setItemText(3, _translate("Dialog", "验证生产线"))
        self.label_5.setText(_translate("Dialog", "原料仓库:"))
        self.label_6.setText(_translate("Dialog", "成品仓:"))
示例#18
0
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(933, 377)
        self.gridLayout = QtWidgets.QGridLayout(Dialog)
        self.gridLayout.setObjectName("gridLayout")
        self.lineEdit_precision = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_precision.setObjectName("lineEdit_precision")
        self.gridLayout.addWidget(self.lineEdit_precision, 5, 1, 1, 1)
        self.label_7 = QtWidgets.QLabel(Dialog)
        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.setObjectName("label_7")
        self.gridLayout.addWidget(self.label_7, 5, 2, 1, 1)
        self.label_10 = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_10.sizePolicy().hasHeightForWidth())
        self.label_10.setSizePolicy(sizePolicy)
        self.label_10.setObjectName("label_10")
        self.gridLayout.addWidget(self.label_10, 2, 2, 1, 1)
        self.label_9 = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_9.sizePolicy().hasHeightForWidth())
        self.label_9.setSizePolicy(sizePolicy)
        self.label_9.setObjectName("label_9")
        self.gridLayout.addWidget(self.label_9, 3, 2, 1, 1)
        self.label_8 = QtWidgets.QLabel(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           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, 4, 2, 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.lineEdit_presexpression = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_presexpression.setObjectName("lineEdit_presexpression")
        self.gridLayout.addWidget(self.lineEdit_presexpression, 2, 1, 1, 1)
        self.label = QtWidgets.QLabel(Dialog)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 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.label_3 = QtWidgets.QLabel(Dialog)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
        self.lineEdit_drawexpression = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_drawexpression.setObjectName("lineEdit_drawexpression")
        self.gridLayout.addWidget(self.lineEdit_drawexpression, 4, 1, 1, 1)
        self.label_5 = QtWidgets.QLabel(Dialog)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 4, 0, 1, 1)
        self.lineEdit_pracexpression = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_pracexpression.setObjectName("lineEdit_pracexpression")
        self.gridLayout.addWidget(self.lineEdit_pracexpression, 3, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(Dialog)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 3, 0, 1, 1)
        self.lineEdit_presunit = QtWidgets.QLineEdit(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEdit_presunit.sizePolicy().hasHeightForWidth())
        self.lineEdit_presunit.setSizePolicy(sizePolicy)
        self.lineEdit_presunit.setObjectName("lineEdit_presunit")
        self.gridLayout.addWidget(self.lineEdit_presunit, 2, 3, 1, 1)
        self.lineEdit_pracunit = QtWidgets.QLineEdit(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEdit_pracunit.sizePolicy().hasHeightForWidth())
        self.lineEdit_pracunit.setSizePolicy(sizePolicy)
        self.lineEdit_pracunit.setObjectName("lineEdit_pracunit")
        self.gridLayout.addWidget(self.lineEdit_pracunit, 3, 3, 1, 1)
        self.lineEdit_drawunit = QtWidgets.QLineEdit(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEdit_drawunit.sizePolicy().hasHeightForWidth())
        self.lineEdit_drawunit.setSizePolicy(sizePolicy)
        self.lineEdit_drawunit.setObjectName("lineEdit_drawunit")
        self.gridLayout.addWidget(self.lineEdit_drawunit, 4, 3, 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, 6, 0, 1, 4)
        self.lineEdit_formula = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_formula.setObjectName("lineEdit_formula")
        self.gridLayout.addWidget(self.lineEdit_formula, 1, 1, 1, 3)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.lineEdit_loss = QtWidgets.QLineEdit(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEdit_loss.sizePolicy().hasHeightForWidth())
        self.lineEdit_loss.setSizePolicy(sizePolicy)
        self.lineEdit_loss.setObjectName("lineEdit_loss")
        self.horizontalLayout_2.addWidget(self.lineEdit_loss)
        self.label_11 = QtWidgets.QLabel(Dialog)
        self.label_11.setObjectName("label_11")
        self.horizontalLayout_2.addWidget(self.label_11)
        self.gridLayout.addLayout(self.horizontalLayout_2, 5, 3, 1, 1)
        self.lineEdit_stuffkind = ComboLine(Dialog)
        self.lineEdit_stuffkind.setObjectName("lineEdit_stuffkind")
        self.gridLayout.addWidget(self.lineEdit_stuffkind, 0, 1, 1, 1)
        self.label_12 = QtWidgets.QLabel(Dialog)
        self.label_12.setObjectName("label_12")
        self.gridLayout.addWidget(self.label_12, 0, 2, 1, 1)
        self.comboBox_stufftype = QtWidgets.QComboBox(Dialog)
        self.comboBox_stufftype.setObjectName("comboBox_stufftype")
        self.comboBox_stufftype.addItem("")
        self.comboBox_stufftype.addItem("")
        self.comboBox_stufftype.addItem("")
        self.comboBox_stufftype.addItem("")
        self.comboBox_stufftype.addItem("")
        self.gridLayout.addWidget(self.comboBox_stufftype, 0, 3, 1, 1)

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        Dialog.setTabOrder(self.lineEdit_stuffkind, self.lineEdit_formula)
        Dialog.setTabOrder(self.lineEdit_formula, self.lineEdit_presexpression)
        Dialog.setTabOrder(self.lineEdit_presexpression,
                           self.lineEdit_presunit)
        Dialog.setTabOrder(self.lineEdit_presunit,
                           self.lineEdit_pracexpression)
        Dialog.setTabOrder(self.lineEdit_pracexpression,
                           self.lineEdit_pracunit)
        Dialog.setTabOrder(self.lineEdit_pracunit,
                           self.lineEdit_drawexpression)
        Dialog.setTabOrder(self.lineEdit_drawexpression,
                           self.lineEdit_drawunit)
        Dialog.setTabOrder(self.lineEdit_drawunit, self.lineEdit_precision)
        Dialog.setTabOrder(self.lineEdit_precision, self.lineEdit_loss)
        Dialog.setTabOrder(self.lineEdit_loss, 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_7.setText(_translate("Dialog", "损耗限度:"))
        self.label_10.setText(_translate("Dialog", "计划量单位:"))
        self.label_9.setText(_translate("Dialog", "实际量单位:"))
        self.label_8.setText(_translate("Dialog", "领取量单位:"))
        self.label_6.setText(_translate("Dialog", "精度:"))
        self.label.setText(_translate("Dialog", "物料种类:"))
        self.label_2.setText(_translate("Dialog", "配方:"))
        self.label_3.setText(_translate("Dialog", "计划量公式:"))
        self.label_5.setText(_translate("Dialog", "领取量公式:"))
        self.label_4.setText(_translate("Dialog", "实际量公式:"))
        self.pushButton_accept.setText(_translate("Dialog", "确认"))
        self.pushButton_cancel.setText(_translate("Dialog", "取消"))
        self.label_11.setText(_translate("Dialog", "%"))
        self.label_12.setText(_translate("Dialog", "物料类型:"))
        self.comboBox_stufftype.setItemText(0, _translate("Dialog", "主材料"))
        self.comboBox_stufftype.setItemText(1, _translate("Dialog", "前处理"))
        self.comboBox_stufftype.setItemText(2, _translate("Dialog", "辅材料"))
        self.comboBox_stufftype.setItemText(3, _translate("Dialog", "内包材"))
        self.comboBox_stufftype.setItemText(4, _translate("Dialog", "外包材"))
示例#19
0
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(800, 600)
        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_15 = QtWidgets.QLabel(self.tab)
        self.label_15.setObjectName("label_15")
        self.gridLayout_2.addWidget(self.label_15, 8, 0, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.tab)
        self.label_3.setObjectName("label_3")
        self.gridLayout_2.addWidget(self.label_3, 1, 0, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.tab)
        self.label_2.setObjectName("label_2")
        self.gridLayout_2.addWidget(self.label_2, 6, 0, 1, 1)
        self.label_13 = QtWidgets.QLabel(self.tab)
        self.label_13.setObjectName("label_13")
        self.gridLayout_2.addWidget(self.label_13, 5, 2, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.tab)
        self.label_5.setObjectName("label_5")
        self.gridLayout_2.addWidget(self.label_5, 4, 0, 1, 1)
        self.label_9 = QtWidgets.QLabel(self.tab)
        self.label_9.setObjectName("label_9")
        self.gridLayout_2.addWidget(self.label_9, 1, 2, 1, 1)
        self.lineEdit_chargertitle = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_chargertitle.setObjectName("lineEdit_chargertitle")
        self.gridLayout_2.addWidget(self.lineEdit_chargertitle, 4, 1, 1, 1)
        self.lineEdit_inputcode = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_inputcode.setObjectName("lineEdit_inputcode")
        self.gridLayout_2.addWidget(self.lineEdit_inputcode, 1, 3, 1, 1)
        self.lineEdit_supid = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_supid.setObjectName("lineEdit_supid")
        self.gridLayout_2.addWidget(self.lineEdit_supid, 0, 1, 1, 1)
        self.lineEdit_postzip = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_postzip.setObjectName("lineEdit_postzip")
        self.gridLayout_2.addWidget(self.lineEdit_postzip, 2, 3, 1, 1)
        self.lineEdit_address = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_address.setObjectName("lineEdit_address")
        self.gridLayout_2.addWidget(self.lineEdit_address, 2, 1, 1, 1)
        self.lineEdit_charger = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_charger.setObjectName("lineEdit_charger")
        self.gridLayout_2.addWidget(self.lineEdit_charger, 3, 1, 1, 1)
        self.lineEdit_supname = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_supname.setObjectName("lineEdit_supname")
        self.gridLayout_2.addWidget(self.lineEdit_supname, 0, 3, 1, 1)
        self.label_14 = QtWidgets.QLabel(self.tab)
        self.label_14.setObjectName("label_14")
        self.gridLayout_2.addWidget(self.label_14, 7, 0, 1, 1)
        self.lineEdit_taxno = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_taxno.setObjectName("lineEdit_taxno")
        self.gridLayout_2.addWidget(self.lineEdit_taxno, 6, 1, 1, 1)
        self.label = QtWidgets.QLabel(self.tab)
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.tab)
        self.label_4.setObjectName("label_4")
        self.gridLayout_2.addWidget(self.label_4, 5, 0, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.tab)
        self.label_6.setObjectName("label_6")
        self.gridLayout_2.addWidget(self.label_6, 3, 0, 1, 1)
        self.plainTextEdit_remark = QtWidgets.QPlainTextEdit(self.tab)
        self.plainTextEdit_remark.setObjectName("plainTextEdit_remark")
        self.gridLayout_2.addWidget(self.plainTextEdit_remark, 8, 1, 1, 3)
        self.label_11 = QtWidgets.QLabel(self.tab)
        self.label_11.setObjectName("label_11")
        self.gridLayout_2.addWidget(self.label_11, 3, 2, 1, 1)
        self.label_8 = QtWidgets.QLabel(self.tab)
        self.label_8.setObjectName("label_8")
        self.gridLayout_2.addWidget(self.label_8, 0, 2, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.tab)
        self.label_10.setObjectName("label_10")
        self.gridLayout_2.addWidget(self.label_10, 2, 2, 1, 1)
        self.label_12 = QtWidgets.QLabel(self.tab)
        self.label_12.setObjectName("label_12")
        self.gridLayout_2.addWidget(self.label_12, 4, 2, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.tab)
        self.label_7.setObjectName("label_7")
        self.gridLayout_2.addWidget(self.label_7, 2, 0, 1, 1)
        self.lineEdit_telno = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_telno.setObjectName("lineEdit_telno")
        self.gridLayout_2.addWidget(self.lineEdit_telno, 3, 3, 1, 1)
        self.lineEdit_bankname = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_bankname.setObjectName("lineEdit_bankname")
        self.gridLayout_2.addWidget(self.lineEdit_bankname, 5, 1, 1, 1)
        self.lineEdit_kind = ComboLine(self.tab)
        self.lineEdit_kind.setObjectName("lineEdit_kind")
        self.gridLayout_2.addWidget(self.lineEdit_kind, 1, 1, 1, 1)
        self.lineEdit_bankaccount = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_bankaccount.setObjectName("lineEdit_bankaccount")
        self.gridLayout_2.addWidget(self.lineEdit_bankaccount, 5, 3, 1, 1)
        self.lineEdit_email = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_email.setObjectName("lineEdit_email")
        self.gridLayout_2.addWidget(self.lineEdit_email, 4, 3, 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(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)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.gridLayout_2.addLayout(self.horizontalLayout, 9, 0, 1, 4)
        self.dateEdit_validdate = QtWidgets.QDateEdit(self.tab)
        self.dateEdit_validdate.setCalendarPopup(True)
        self.dateEdit_validdate.setObjectName("dateEdit_validdate")
        self.gridLayout_2.addWidget(self.dateEdit_validdate, 7, 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.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label_16 = QtWidgets.QLabel(self.tab_2)
        self.label_16.setObjectName("label_16")
        self.horizontalLayout_2.addWidget(self.label_16)
        self.label_zoom = QtWidgets.QLabel(self.tab_2)
        self.label_zoom.setText("")
        self.label_zoom.setObjectName("label_zoom")
        self.horizontalLayout_2.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_2.addWidget(self.horizontalSlider_zoom)
        self.comboBox_jumpto = QtWidgets.QComboBox(self.tab_2)
        self.comboBox_jumpto.setObjectName("comboBox_jumpto")
        self.horizontalLayout_2.addWidget(self.comboBox_jumpto)
        self.pushButton_prepage = QtWidgets.QPushButton(self.tab_2)
        self.pushButton_prepage.setObjectName("pushButton_prepage")
        self.horizontalLayout_2.addWidget(self.pushButton_prepage)
        self.pushButton_nextpage = QtWidgets.QPushButton(self.tab_2)
        self.pushButton_nextpage.setObjectName("pushButton_nextpage")
        self.horizontalLayout_2.addWidget(self.pushButton_nextpage)
        self.gridLayout_3.addLayout(self.horizontalLayout_2, 1, 0, 2, 2)
        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, 731, 345))
        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, 3, 1, 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, 2)
        self.tabWidget.addTab(self.tab_2, "")
        self.tab_3 = QtWidgets.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.gridLayout_6 = QtWidgets.QGridLayout(self.tab_3)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.treeWidget_revalution = QtWidgets.QTreeWidget(self.tab_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(2)
        sizePolicy.setHeightForWidth(
            self.treeWidget_revalution.sizePolicy().hasHeightForWidth())
        self.treeWidget_revalution.setSizePolicy(sizePolicy)
        self.treeWidget_revalution.setContextMenuPolicy(
            QtCore.Qt.CustomContextMenu)
        self.treeWidget_revalution.setObjectName("treeWidget_revalution")
        self.gridLayout_6.addWidget(self.treeWidget_revalution, 0, 0, 1, 1)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.pushButton_save = QtWidgets.QPushButton(self.tab_3)
        self.pushButton_save.setObjectName("pushButton_save")
        self.horizontalLayout_3.addWidget(self.pushButton_save)
        self.pushButton_undo = QtWidgets.QPushButton(self.tab_3)
        self.pushButton_undo.setObjectName("pushButton_undo")
        self.horizontalLayout_3.addWidget(self.pushButton_undo)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem2)
        self.gridLayout_6.addLayout(self.horizontalLayout_3, 1, 0, 1, 1)
        self.groupBox = QtWidgets.QGroupBox(self.tab_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(5)
        sizePolicy.setHeightForWidth(
            self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setTitle("")
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_7 = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.gridLayout_6.addWidget(self.groupBox, 2, 0, 1, 1)
        self.tabWidget.addTab(self.tab_3, "")
        self.tab_4 = QtWidgets.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.tab_4)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.treeWidget_stuff = QtWidgets.QTreeWidget(self.tab_4)
        self.treeWidget_stuff.setObjectName("treeWidget_stuff")
        self.gridLayout_5.addWidget(self.treeWidget_stuff, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab_4, "")
        self.gridLayout.addWidget(self.tabWidget, 0, 0, 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_15.setText(_translate("Dialog", "备注:"))
        self.label_3.setText(_translate("Dialog", "类别:"))
        self.label_2.setText(_translate("Dialog", "统一社会信用代码:"))
        self.label_13.setText(_translate("Dialog", "银行账号:"))
        self.label_5.setText(_translate("Dialog", "职位:"))
        self.label_9.setText(_translate("Dialog", "输入码:"))
        self.label_14.setText(_translate("Dialog", "资质证件有效期:"))
        self.label.setText(_translate("Dialog", "编号:"))
        self.label_4.setText(_translate("Dialog", "开户银行:"))
        self.label_6.setText(_translate("Dialog", "负责人:"))
        self.label_11.setText(_translate("Dialog", "联系方式:"))
        self.label_8.setText(_translate("Dialog", "名称:"))
        self.label_10.setText(_translate("Dialog", "邮政编码:"))
        self.label_12.setText(_translate("Dialog", "邮箱:"))
        self.label_7.setText(_translate("Dialog", "地址:"))
        self.pushButton_accept.setText(_translate("Dialog", "确认"))
        self.pushButton_cancel.setText(_translate("Dialog", "取消"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab),
                                  _translate("Dialog", "基础资料"))
        self.label_16.setText(_translate("Dialog", "当前缩放比例:"))
        self.pushButton_prepage.setText(_translate("Dialog", "上一页"))
        self.pushButton_nextpage.setText(_translate("Dialog", "下一页"))
        self.treeWidget_imagenamelist.headerItem().setText(
            0, _translate("Dialog", "id"))
        self.treeWidget_imagenamelist.headerItem().setText(
            1, _translate("Dialog", "imgid"))
        self.treeWidget_imagenamelist.headerItem().setText(
            2, _translate("Dialog", "标题"))
        self.treeWidget_imagenamelist.headerItem().setText(
            3, _translate("Dialog", "建立人"))
        self.treeWidget_imagenamelist.headerItem().setText(
            4, _translate("Dialog", "建立日期"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2),
                                  _translate("Dialog", "相关资料"))
        self.treeWidget_revalution.headerItem().setText(
            0, _translate("Dialog", "id"))
        self.treeWidget_revalution.headerItem().setText(
            1, _translate("Dialog", "标题"))
        self.treeWidget_revalution.headerItem().setText(
            2, _translate("Dialog", "建立日期"))
        self.treeWidget_revalution.headerItem().setText(
            3, _translate("Dialog", "建立者"))
        self.pushButton_save.setText(_translate("Dialog", "保存"))
        self.pushButton_undo.setText(_translate("Dialog", "取消保存"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3),
                                  _translate("Dialog", "评估记录"))
        self.treeWidget_stuff.headerItem().setText(0,
                                                   _translate("Dialog", "类别"))
        self.treeWidget_stuff.headerItem().setText(
            1, _translate("Dialog", "物料编号"))
        self.treeWidget_stuff.headerItem().setText(
            2, _translate("Dialog", "物料名称"))
        self.treeWidget_stuff.headerItem().setText(3,
                                                   _translate("Dialog", "规格"))
        self.treeWidget_stuff.headerItem().setText(
            4, _translate("Dialog", "包装规格"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4),
                                  _translate("Dialog", "供应物料"))