예제 #1
0
class Ui_companyItem(object):
    def setupUi(self, companyItem):
        companyItem.setObjectName("companyItem")
        companyItem.resize(1694, 689)
        self.gridLayout_3 = QtGui.QGridLayout(companyItem)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.widget = Header(companyItem)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget.sizePolicy().hasHeightForWidth())
        self.widget.setSizePolicy(sizePolicy)
        self.widget.setMinimumSize(QtCore.QSize(0, 100))
        self.widget.setObjectName("widget")
        self.gridLayout_3.addWidget(self.widget, 0, 0, 1, 2)
        self.inputGroupBox = QtGui.QGroupBox(companyItem)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.inputGroupBox.sizePolicy().hasHeightForWidth())
        self.inputGroupBox.setSizePolicy(sizePolicy)
        self.inputGroupBox.setCheckable(False)
        self.inputGroupBox.setObjectName("inputGroupBox")
        self.gridLayout = QtGui.QGridLayout(self.inputGroupBox)
        self.gridLayout.setObjectName("gridLayout")
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.itemCodeLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.itemCodeLabel.sizePolicy().hasHeightForWidth())
        self.itemCodeLabel.setSizePolicy(sizePolicy)
        self.itemCodeLabel.setMinimumSize(QtCore.QSize(200, 35))
        self.itemCodeLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.itemCodeLabel.setObjectName("itemCodeLabel")
        self.horizontalLayout_3.addWidget(self.itemCodeLabel)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.itemCodeValue = QtGui.QLineEdit(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.itemCodeValue.sizePolicy().hasHeightForWidth())
        self.itemCodeValue.setSizePolicy(sizePolicy)
        self.itemCodeValue.setMinimumSize(QtCore.QSize(200, 35))
        self.itemCodeValue.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.itemCodeValue.setAlignment(QtCore.Qt.AlignBottom
                                        | QtCore.Qt.AlignLeading
                                        | QtCore.Qt.AlignLeft)
        self.itemCodeValue.setObjectName("itemCodeValue")
        self.verticalLayout_2.addWidget(self.itemCodeValue)
        self.codeMandLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.codeMandLabel.sizePolicy().hasHeightForWidth())
        self.codeMandLabel.setSizePolicy(sizePolicy)
        self.codeMandLabel.setMinimumSize(QtCore.QSize(200, 30))
        self.codeMandLabel.setStyleSheet("QLabel { color : red; }")
        self.codeMandLabel.setObjectName("codeMandLabel")
        self.verticalLayout_2.addWidget(self.codeMandLabel)
        self.horizontalLayout_3.addLayout(self.verticalLayout_2)
        self.gridLayout.addLayout(self.horizontalLayout_3, 0, 0, 1, 2)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.itemNameLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.itemNameLabel.sizePolicy().hasHeightForWidth())
        self.itemNameLabel.setSizePolicy(sizePolicy)
        self.itemNameLabel.setMinimumSize(QtCore.QSize(200, 35))
        self.itemNameLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.itemNameLabel.setObjectName("itemNameLabel")
        self.horizontalLayout_4.addWidget(self.itemNameLabel)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.itemNameValue = QtGui.QLineEdit(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.itemNameValue.sizePolicy().hasHeightForWidth())
        self.itemNameValue.setSizePolicy(sizePolicy)
        self.itemNameValue.setMinimumSize(QtCore.QSize(200, 35))
        self.itemNameValue.setAlignment(QtCore.Qt.AlignBottom
                                        | QtCore.Qt.AlignLeading
                                        | QtCore.Qt.AlignLeft)
        self.itemNameValue.setObjectName("itemNameValue")
        self.verticalLayout_3.addWidget(self.itemNameValue)
        self.nameMandLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.nameMandLabel.sizePolicy().hasHeightForWidth())
        self.nameMandLabel.setSizePolicy(sizePolicy)
        self.nameMandLabel.setMinimumSize(QtCore.QSize(200, 30))
        self.nameMandLabel.setStyleSheet("QLabel { color : red; }")
        self.nameMandLabel.setObjectName("nameMandLabel")
        self.verticalLayout_3.addWidget(self.nameMandLabel)
        self.horizontalLayout_4.addLayout(self.verticalLayout_3)
        self.gridLayout.addLayout(self.horizontalLayout_4, 1, 0, 1, 2)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.hsnCodeLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.hsnCodeLabel.sizePolicy().hasHeightForWidth())
        self.hsnCodeLabel.setSizePolicy(sizePolicy)
        self.hsnCodeLabel.setMinimumSize(QtCore.QSize(200, 35))
        self.hsnCodeLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.hsnCodeLabel.setObjectName("hsnCodeLabel")
        self.horizontalLayout_5.addWidget(self.hsnCodeLabel)
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.hsnCodeValue = QtGui.QLineEdit(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.hsnCodeValue.sizePolicy().hasHeightForWidth())
        self.hsnCodeValue.setSizePolicy(sizePolicy)
        self.hsnCodeValue.setMinimumSize(QtCore.QSize(200, 35))
        self.hsnCodeValue.setAlignment(QtCore.Qt.AlignBottom
                                       | QtCore.Qt.AlignLeading
                                       | QtCore.Qt.AlignLeft)
        self.hsnCodeValue.setObjectName("hsnCodeValue")
        self.verticalLayout_4.addWidget(self.hsnCodeValue)
        self.hsnMandLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.hsnMandLabel.sizePolicy().hasHeightForWidth())
        self.hsnMandLabel.setSizePolicy(sizePolicy)
        self.hsnMandLabel.setMinimumSize(QtCore.QSize(200, 30))
        self.hsnMandLabel.setStyleSheet("QLabel { color : red; }")
        self.hsnMandLabel.setObjectName("hsnMandLabel")
        self.verticalLayout_4.addWidget(self.hsnMandLabel)
        self.horizontalLayout_5.addLayout(self.verticalLayout_4)
        self.gridLayout.addLayout(self.horizontalLayout_5, 2, 0, 1, 2)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.quantityLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.quantityLabel.sizePolicy().hasHeightForWidth())
        self.quantityLabel.setSizePolicy(sizePolicy)
        self.quantityLabel.setMinimumSize(QtCore.QSize(200, 35))
        self.quantityLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.quantityLabel.setObjectName("quantityLabel")
        self.horizontalLayout_6.addWidget(self.quantityLabel)
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.quantityValue = QtGui.QLineEdit(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.quantityValue.sizePolicy().hasHeightForWidth())
        self.quantityValue.setSizePolicy(sizePolicy)
        self.quantityValue.setMinimumSize(QtCore.QSize(200, 35))
        self.quantityValue.setAlignment(QtCore.Qt.AlignBottom
                                        | QtCore.Qt.AlignLeading
                                        | QtCore.Qt.AlignLeft)
        self.quantityValue.setObjectName("quantityValue")
        self.verticalLayout_5.addWidget(self.quantityValue)
        self.quantityMandLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.quantityMandLabel.sizePolicy().hasHeightForWidth())
        self.quantityMandLabel.setSizePolicy(sizePolicy)
        self.quantityMandLabel.setMinimumSize(QtCore.QSize(200, 30))
        self.quantityMandLabel.setStyleSheet("QLabel { color : red; }")
        self.quantityMandLabel.setObjectName("quantityMandLabel")
        self.verticalLayout_5.addWidget(self.quantityMandLabel)
        self.horizontalLayout_6.addLayout(self.verticalLayout_5)
        self.gridLayout.addLayout(self.horizontalLayout_6, 3, 0, 1, 2)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.itemPriceLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.itemPriceLabel.sizePolicy().hasHeightForWidth())
        self.itemPriceLabel.setSizePolicy(sizePolicy)
        self.itemPriceLabel.setMinimumSize(QtCore.QSize(200, 35))
        self.itemPriceLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.itemPriceLabel.setObjectName("itemPriceLabel")
        self.horizontalLayout_7.addWidget(self.itemPriceLabel)
        self.verticalLayout_6 = QtGui.QVBoxLayout()
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.itemPriceValue = QtGui.QLineEdit(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.itemPriceValue.sizePolicy().hasHeightForWidth())
        self.itemPriceValue.setSizePolicy(sizePolicy)
        self.itemPriceValue.setMinimumSize(QtCore.QSize(200, 35))
        self.itemPriceValue.setAlignment(QtCore.Qt.AlignBottom
                                         | QtCore.Qt.AlignLeading
                                         | QtCore.Qt.AlignLeft)
        self.itemPriceValue.setObjectName("itemPriceValue")
        self.verticalLayout_6.addWidget(self.itemPriceValue)
        self.priceMandLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.priceMandLabel.sizePolicy().hasHeightForWidth())
        self.priceMandLabel.setSizePolicy(sizePolicy)
        self.priceMandLabel.setMinimumSize(QtCore.QSize(200, 30))
        self.priceMandLabel.setStyleSheet("QLabel { color : red; }")
        self.priceMandLabel.setObjectName("priceMandLabel")
        self.verticalLayout_6.addWidget(self.priceMandLabel)
        self.horizontalLayout_7.addLayout(self.verticalLayout_6)
        self.gridLayout.addLayout(self.horizontalLayout_7, 4, 0, 1, 2)
        self.saveButton = QtGui.QPushButton(self.inputGroupBox)
        self.saveButton.setMinimumSize(QtCore.QSize(200, 35))
        self.saveButton.setObjectName("saveButton")
        self.gridLayout.addWidget(self.saveButton, 5, 0, 1, 1)
        self.discardButton = QtGui.QPushButton(self.inputGroupBox)
        self.discardButton.setMinimumSize(QtCore.QSize(200, 35))
        self.discardButton.setObjectName("discardButton")
        self.gridLayout.addWidget(self.discardButton, 5, 1, 1, 1)
        self.gridLayout_3.addWidget(self.inputGroupBox, 1, 0, 2, 1)
        self.groupBox = QtGui.QGroupBox(companyItem)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setMinimumSize(QtCore.QSize(0, 100))
        self.groupBox.setCheckable(False)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_4 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.voucherNoLabel_2 = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.voucherNoLabel_2.sizePolicy().hasHeightForWidth())
        self.voucherNoLabel_2.setSizePolicy(sizePolicy)
        self.voucherNoLabel_2.setAlignment(QtCore.Qt.AlignCenter)
        self.voucherNoLabel_2.setObjectName("voucherNoLabel_2")
        self.horizontalLayout.addWidget(self.voucherNoLabel_2)
        self.searchItemCodeValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.searchItemCodeValue.sizePolicy().hasHeightForWidth())
        self.searchItemCodeValue.setSizePolicy(sizePolicy)
        self.searchItemCodeValue.setMinimumSize(QtCore.QSize(450, 35))
        self.searchItemCodeValue.setMaximumSize(QtCore.QSize(400, 16777215))
        self.searchItemCodeValue.setObjectName("searchItemCodeValue")
        self.horizontalLayout.addWidget(self.searchItemCodeValue)
        self.voucherNoLabel_3 = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.voucherNoLabel_3.sizePolicy().hasHeightForWidth())
        self.voucherNoLabel_3.setSizePolicy(sizePolicy)
        self.voucherNoLabel_3.setAlignment(QtCore.Qt.AlignCenter)
        self.voucherNoLabel_3.setObjectName("voucherNoLabel_3")
        self.horizontalLayout.addWidget(self.voucherNoLabel_3)
        self.searchNameValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.searchNameValue.sizePolicy().hasHeightForWidth())
        self.searchNameValue.setSizePolicy(sizePolicy)
        self.searchNameValue.setMinimumSize(QtCore.QSize(450, 35))
        self.searchNameValue.setMaximumSize(QtCore.QSize(400, 16777215))
        self.searchNameValue.setObjectName("searchNameValue")
        self.horizontalLayout.addWidget(self.searchNameValue)
        self.gridLayout_4.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.searchButton = QtGui.QPushButton(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.searchButton.sizePolicy().hasHeightForWidth())
        self.searchButton.setSizePolicy(sizePolicy)
        self.searchButton.setMinimumSize(QtCore.QSize(400, 35))
        self.searchButton.setObjectName("searchButton")
        self.horizontalLayout_2.addWidget(self.searchButton)
        self.gridLayout_4.addLayout(self.horizontalLayout_2, 1, 0, 1, 1)
        self.gridLayout_3.addWidget(self.groupBox, 1, 1, 1, 1)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout_2.addLayout(self.verticalLayout, 0, 0, 1, 3)
        self.removeButton = QtGui.QPushButton(companyItem)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.removeButton.sizePolicy().hasHeightForWidth())
        self.removeButton.setSizePolicy(sizePolicy)
        self.removeButton.setMinimumSize(QtCore.QSize(0, 35))
        self.removeButton.setObjectName("removeButton")
        self.gridLayout_2.addWidget(self.removeButton, 1, 0, 1, 1)
        self.clearButton = QtGui.QPushButton(companyItem)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.clearButton.sizePolicy().hasHeightForWidth())
        self.clearButton.setSizePolicy(sizePolicy)
        self.clearButton.setMinimumSize(QtCore.QSize(0, 35))
        self.clearButton.setObjectName("clearButton")
        self.gridLayout_2.addWidget(self.clearButton, 1, 1, 1, 1)
        self.importButton = QtGui.QPushButton(companyItem)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.importButton.sizePolicy().hasHeightForWidth())
        self.importButton.setSizePolicy(sizePolicy)
        self.importButton.setMinimumSize(QtCore.QSize(0, 35))
        self.importButton.setObjectName("importButton")
        self.gridLayout_2.addWidget(self.importButton, 1, 2, 1, 1)
        self.companyItemsTable = CompanyItemTable(companyItem)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.companyItemsTable.sizePolicy().hasHeightForWidth())
        self.companyItemsTable.setSizePolicy(sizePolicy)
        self.companyItemsTable.setObjectName("companyItemsTable")
        self.gridLayout_2.addWidget(self.companyItemsTable, 2, 0, 1, 3)
        spacerItem = QtGui.QSpacerItem(758, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.gridLayout_2.addItem(spacerItem, 3, 0, 1, 2)
        self.saveTableData = QtGui.QPushButton(companyItem)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.saveTableData.sizePolicy().hasHeightForWidth())
        self.saveTableData.setSizePolicy(sizePolicy)
        self.saveTableData.setMinimumSize(QtCore.QSize(300, 35))
        self.saveTableData.setObjectName("saveTableData")
        self.gridLayout_2.addWidget(self.saveTableData, 3, 2, 1, 1)
        self.gridLayout_3.addLayout(self.gridLayout_2, 2, 1, 1, 1)

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

    def retranslateUi(self, companyItem):
        companyItem.setWindowTitle(
            QtGui.QApplication.translate("companyItem", "Form", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.inputGroupBox.setTitle(
            QtGui.QApplication.translate("companyItem", "Sales Items", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.itemCodeLabel.setText(
            QtGui.QApplication.translate("companyItem", "Item Code", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.itemCodeValue.setPlaceholderText(
            QtGui.QApplication.translate("companyItem", "Enter Item Code",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.codeMandLabel.setText(
            QtGui.QApplication.translate("companyItem",
                                         "* Item Code is Mandatory", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.itemNameLabel.setText(
            QtGui.QApplication.translate("companyItem", "Item Name", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.itemNameValue.setPlaceholderText(
            QtGui.QApplication.translate("companyItem", "Enter Item name",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.nameMandLabel.setText(
            QtGui.QApplication.translate("companyItem",
                                         "* Item Name is Mandatory", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.hsnCodeLabel.setText(
            QtGui.QApplication.translate("companyItem", "HSN Code", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.hsnCodeValue.setPlaceholderText(
            QtGui.QApplication.translate("companyItem", "Enter HSN Code", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.hsnMandLabel.setText(
            QtGui.QApplication.translate("companyItem",
                                         "* HSN Code is Mandatory", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.quantityLabel.setText(
            QtGui.QApplication.translate("companyItem", "Quantity", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.quantityValue.setPlaceholderText(
            QtGui.QApplication.translate("companyItem", "Enter quantity", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.quantityMandLabel.setText(
            QtGui.QApplication.translate("companyItem",
                                         "* Quantity is Mandatory", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.itemPriceLabel.setText(
            QtGui.QApplication.translate("companyItem", "Item Price", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.itemPriceValue.setPlaceholderText(
            QtGui.QApplication.translate("companyItem", "Enter item price",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.priceMandLabel.setText(
            QtGui.QApplication.translate("companyItem",
                                         "* Item Price is Mandatory", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.saveButton.setText(
            QtGui.QApplication.translate("companyItem", "Save Changes", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.discardButton.setText(
            QtGui.QApplication.translate("companyItem", "Discard", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(
            QtGui.QApplication.translate("companyItem", "Search ", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.voucherNoLabel_2.setText(
            QtGui.QApplication.translate("companyItem", "Enter ItemCode", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.searchItemCodeValue.setPlaceholderText(
            QtGui.QApplication.translate("companyItem", "Enter ItemCode", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.voucherNoLabel_3.setText(
            QtGui.QApplication.translate("companyItem", "Enter Item Name",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.searchNameValue.setPlaceholderText(
            QtGui.QApplication.translate("companyItem", "Enter Name", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.searchButton.setText(
            QtGui.QApplication.translate("companyItem", "Search", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.removeButton.setText(
            QtGui.QApplication.translate("companyItem", "Remove Selected",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.clearButton.setText(
            QtGui.QApplication.translate("companyItem", "Clear", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.importButton.setText(
            QtGui.QApplication.translate("companyItem", "Import", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.saveTableData.setText(
            QtGui.QApplication.translate("companyItem", "Save Table", None,
                                         QtGui.QApplication.UnicodeUTF8))
예제 #2
0
class Ui_chart(object):
    def setupUi(self, chart):
        chart.setObjectName("chart")
        chart.resize(1716, 734)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(chart.sizePolicy().hasHeightForWidth())
        chart.setSizePolicy(sizePolicy)
        self.gridLayout_3 = QtGui.QGridLayout(chart)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.widget = Header(chart)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget.sizePolicy().hasHeightForWidth())
        self.widget.setSizePolicy(sizePolicy)
        self.widget.setObjectName("widget")
        self.gridLayout_3.addWidget(self.widget, 0, 0, 1, 1)
        self.groupBox = QtGui.QGroupBox(chart)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setTitle("")
        self.groupBox.setCheckable(False)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.fromDateLabel = QtGui.QLabel(self.groupBox)
        self.fromDateLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.fromDateLabel.setObjectName("fromDateLabel")
        self.gridLayout_2.addWidget(self.fromDateLabel, 0, 0, 1, 1)
        self.toDateLabel = QtGui.QLabel(self.groupBox)
        self.toDateLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.toDateLabel.setObjectName("toDateLabel")
        self.gridLayout_2.addWidget(self.toDateLabel, 0, 2, 1, 1)
        spacerItem = QtGui.QSpacerItem(400, 20, QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Minimum)
        self.gridLayout_2.addItem(spacerItem, 0, 4, 1, 1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.barRadioButton = QtGui.QRadioButton(self.groupBox)
        self.barRadioButton.setObjectName("barRadioButton")
        self.horizontalLayout_2.addWidget(self.barRadioButton)
        self.lineRadioButton = QtGui.QRadioButton(self.groupBox)
        self.lineRadioButton.setObjectName("lineRadioButton")
        self.horizontalLayout_2.addWidget(self.lineRadioButton)
        self.scatterRadioButton = QtGui.QRadioButton(self.groupBox)
        self.scatterRadioButton.setObjectName("scatterRadioButton")
        self.horizontalLayout_2.addWidget(self.scatterRadioButton)
        spacerItem1 = QtGui.QSpacerItem(500, 20, QtGui.QSizePolicy.Fixed,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.gridLayout_2.addLayout(self.horizontalLayout_2, 1, 0, 1, 5)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.searchButton = QtGui.QPushButton(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.searchButton.sizePolicy().hasHeightForWidth())
        self.searchButton.setSizePolicy(sizePolicy)
        self.searchButton.setMinimumSize(QtCore.QSize(300, 35))
        self.searchButton.setMaximumSize(QtCore.QSize(200, 16777215))
        self.searchButton.setObjectName("searchButton")
        self.horizontalLayout_3.addWidget(self.searchButton)
        self.resetButton = QtGui.QPushButton(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.resetButton.sizePolicy().hasHeightForWidth())
        self.resetButton.setSizePolicy(sizePolicy)
        self.resetButton.setMinimumSize(QtCore.QSize(300, 35))
        self.resetButton.setMaximumSize(QtCore.QSize(200, 16777215))
        self.resetButton.setObjectName("resetButton")
        self.horizontalLayout_3.addWidget(self.resetButton)
        self.gridLayout_2.addLayout(self.horizontalLayout_3, 2, 0, 1, 5)
        self.fromDateValue = QtGui.QDateTimeEdit(self.groupBox)
        self.fromDateValue.setCalendarPopup(True)
        self.fromDateValue.setObjectName("fromDateValue")
        self.gridLayout_2.addWidget(self.fromDateValue, 0, 1, 1, 1)
        self.toDateValue = QtGui.QDateTimeEdit(self.groupBox)
        self.toDateValue.setCalendarPopup(True)
        self.toDateValue.setObjectName("toDateValue")
        self.gridLayout_2.addWidget(self.toDateValue, 0, 3, 1, 1)
        self.gridLayout_3.addWidget(self.groupBox, 1, 0, 1, 1)
        self.matplotLibWidget = QtGui.QWidget(chart)
        self.matplotLibWidget.setObjectName("matplotLibWidget")
        self.gridLayout_3.addWidget(self.matplotLibWidget, 2, 0, 1, 1)

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

    def retranslateUi(self, chart):
        chart.setWindowTitle(
            QtGui.QApplication.translate("chart", "Form", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.fromDateLabel.setText(
            QtGui.QApplication.translate("chart", "From Date", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.toDateLabel.setText(
            QtGui.QApplication.translate("chart", "To Date", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.barRadioButton.setText(
            QtGui.QApplication.translate("chart", "Bar Chart", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.lineRadioButton.setText(
            QtGui.QApplication.translate("chart", "Line Chart", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.scatterRadioButton.setText(
            QtGui.QApplication.translate("chart", "Scatter Chart", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.searchButton.setText(
            QtGui.QApplication.translate("chart", "Search", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.resetButton.setText(
            QtGui.QApplication.translate("chart", "Reset", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.fromDateValue.setDisplayFormat(
            QtGui.QApplication.translate("chart", "dd-MMM-yyyy", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.toDateValue.setDisplayFormat(
            QtGui.QApplication.translate("chart", "dd-MMM-yyyy", None,
                                         QtGui.QApplication.UnicodeUTF8))
예제 #3
0
class Ui_purchaseOrderReport(object):
    def setupUi(self, purchaseOrderReport):
        purchaseOrderReport.setObjectName("purchaseOrderReport")
        purchaseOrderReport.resize(1716, 734)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(purchaseOrderReport.sizePolicy().hasHeightForWidth())
        purchaseOrderReport.setSizePolicy(sizePolicy)
        self.gridLayout = QtGui.QGridLayout(purchaseOrderReport)
        self.gridLayout.setObjectName("gridLayout")
        self.widget = Header(purchaseOrderReport)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.widget.sizePolicy().hasHeightForWidth())
        self.widget.setSizePolicy(sizePolicy)
        self.widget.setObjectName("widget")
        self.gridLayout.addWidget(self.widget, 0, 0, 1, 2)
        self.groupBox = QtGui.QGroupBox(purchaseOrderReport)
        self.groupBox.setTitle("")
        self.groupBox.setCheckable(False)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.customerSearchValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.customerSearchValue.sizePolicy().hasHeightForWidth())
        self.customerSearchValue.setSizePolicy(sizePolicy)
        self.customerSearchValue.setMinimumSize(QtCore.QSize(350, 35))
        self.customerSearchValue.setMaximumSize(QtCore.QSize(400, 16777215))
        self.customerSearchValue.setObjectName("customerSearchValue")
        self.horizontalLayout.addWidget(self.customerSearchValue)
        self.billSearchValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.billSearchValue.sizePolicy().hasHeightForWidth())
        self.billSearchValue.setSizePolicy(sizePolicy)
        self.billSearchValue.setMinimumSize(QtCore.QSize(0, 35))
        self.billSearchValue.setMaximumSize(QtCore.QSize(300, 16777215))
        self.billSearchValue.setObjectName("billSearchValue")
        self.horizontalLayout.addWidget(self.billSearchValue)
        self.fromDateLabel = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.fromDateLabel.sizePolicy().hasHeightForWidth())
        self.fromDateLabel.setSizePolicy(sizePolicy)
        self.fromDateLabel.setMinimumSize(QtCore.QSize(0, 0))
        self.fromDateLabel.setMaximumSize(QtCore.QSize(200, 16777215))
        self.fromDateLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.fromDateLabel.setObjectName("fromDateLabel")
        self.horizontalLayout.addWidget(self.fromDateLabel)
        self.fromDateValue = QtGui.QDateEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.fromDateValue.sizePolicy().hasHeightForWidth())
        self.fromDateValue.setSizePolicy(sizePolicy)
        self.fromDateValue.setMinimumSize(QtCore.QSize(0, 35))
        self.fromDateValue.setMaximumSize(QtCore.QSize(250, 16777215))
        self.fromDateValue.setCalendarPopup(True)
        self.fromDateValue.setObjectName("fromDateValue")
        self.horizontalLayout.addWidget(self.fromDateValue)
        self.toDateLabel = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.toDateLabel.sizePolicy().hasHeightForWidth())
        self.toDateLabel.setSizePolicy(sizePolicy)
        self.toDateLabel.setMinimumSize(QtCore.QSize(0, 0))
        self.toDateLabel.setMaximumSize(QtCore.QSize(200, 16777215))
        self.toDateLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.toDateLabel.setObjectName("toDateLabel")
        self.horizontalLayout.addWidget(self.toDateLabel)
        self.toDateValue = QtGui.QDateEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.toDateValue.sizePolicy().hasHeightForWidth())
        self.toDateValue.setSizePolicy(sizePolicy)
        self.toDateValue.setMinimumSize(QtCore.QSize(0, 35))
        self.toDateValue.setMaximumSize(QtCore.QSize(250, 16777215))
        self.toDateValue.setCalendarPopup(True)
        self.toDateValue.setObjectName("toDateValue")
        self.horizontalLayout.addWidget(self.toDateValue)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.searchButton = QtGui.QPushButton(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.searchButton.sizePolicy().hasHeightForWidth())
        self.searchButton.setSizePolicy(sizePolicy)
        self.searchButton.setMinimumSize(QtCore.QSize(0, 35))
        self.searchButton.setMaximumSize(QtCore.QSize(200, 16777215))
        self.searchButton.setObjectName("searchButton")
        self.horizontalLayout_2.addWidget(self.searchButton)
        self.resetButton = QtGui.QPushButton(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.resetButton.sizePolicy().hasHeightForWidth())
        self.resetButton.setSizePolicy(sizePolicy)
        self.resetButton.setMinimumSize(QtCore.QSize(0, 35))
        self.resetButton.setMaximumSize(QtCore.QSize(200, 16777215))
        self.resetButton.setObjectName("resetButton")
        self.horizontalLayout_2.addWidget(self.resetButton)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.gridLayout.addWidget(self.groupBox, 1, 0, 1, 2)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.removeButton = QtGui.QPushButton(purchaseOrderReport)
        self.removeButton.setMinimumSize(QtCore.QSize(200, 0))
        self.removeButton.setObjectName("removeButton")
        self.horizontalLayout_3.addWidget(self.removeButton)
        self.clearButton = QtGui.QPushButton(purchaseOrderReport)
        self.clearButton.setMinimumSize(QtCore.QSize(200, 0))
        self.clearButton.setObjectName("clearButton")
        self.horizontalLayout_3.addWidget(self.clearButton)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.gridLayout.addLayout(self.horizontalLayout_3, 2, 0, 1, 2)
        self.purchaseOrderTable = PurchaseOrderReportTable(purchaseOrderReport)
        self.purchaseOrderTable.setObjectName("purchaseOrderTable")
        self.gridLayout.addWidget(self.purchaseOrderTable, 3, 0, 1, 2)
        spacerItem1 = QtGui.QSpacerItem(1278, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem1, 4, 0, 1, 1)
        self.saveButton = QtGui.QPushButton(purchaseOrderReport)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.saveButton.sizePolicy().hasHeightForWidth())
        self.saveButton.setSizePolicy(sizePolicy)
        self.saveButton.setMinimumSize(QtCore.QSize(400, 35))
        self.saveButton.setObjectName("saveButton")
        self.gridLayout.addWidget(self.saveButton, 4, 1, 1, 1)

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

    def retranslateUi(self, purchaseOrderReport):
        purchaseOrderReport.setWindowTitle(QtGui.QApplication.translate("purchaseOrderReport", "Form", None, QtGui.QApplication.UnicodeUTF8))
        self.customerSearchValue.setPlaceholderText(QtGui.QApplication.translate("purchaseOrderReport", "Enter Customer Name", None, QtGui.QApplication.UnicodeUTF8))
        self.billSearchValue.setPlaceholderText(QtGui.QApplication.translate("purchaseOrderReport", "Enter PO No", None, QtGui.QApplication.UnicodeUTF8))
        self.fromDateLabel.setText(QtGui.QApplication.translate("purchaseOrderReport", "From Date", None, QtGui.QApplication.UnicodeUTF8))
        self.fromDateValue.setDisplayFormat(QtGui.QApplication.translate("purchaseOrderReport", "dd-MMM-yyyy", None, QtGui.QApplication.UnicodeUTF8))
        self.toDateLabel.setText(QtGui.QApplication.translate("purchaseOrderReport", "To Date", None, QtGui.QApplication.UnicodeUTF8))
        self.toDateValue.setDisplayFormat(QtGui.QApplication.translate("purchaseOrderReport", "dd-MMM-yyyy", None, QtGui.QApplication.UnicodeUTF8))
        self.searchButton.setText(QtGui.QApplication.translate("purchaseOrderReport", "Search", None, QtGui.QApplication.UnicodeUTF8))
        self.resetButton.setText(QtGui.QApplication.translate("purchaseOrderReport", "Reset", None, QtGui.QApplication.UnicodeUTF8))
        self.removeButton.setText(QtGui.QApplication.translate("purchaseOrderReport", "Remove Selected", None, QtGui.QApplication.UnicodeUTF8))
        self.clearButton.setText(QtGui.QApplication.translate("purchaseOrderReport", "Clear Table", None, QtGui.QApplication.UnicodeUTF8))
        self.saveButton.setText(QtGui.QApplication.translate("purchaseOrderReport", "Save", None, QtGui.QApplication.UnicodeUTF8))
예제 #4
0
class Ui_addCustomer(object):
    def setupUi(self, addCustomer):
        addCustomer.setObjectName("addCustomer")
        addCustomer.resize(1602, 689)
        self.gridLayout_3 = QtGui.QGridLayout(addCustomer)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.widget = Header(addCustomer)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.widget.sizePolicy().hasHeightForWidth())
        self.widget.setSizePolicy(sizePolicy)
        self.widget.setMinimumSize(QtCore.QSize(0, 100))
        self.widget.setObjectName("widget")
        self.gridLayout_3.addWidget(self.widget, 0, 0, 1, 2)
        self.inputGroupBox = QtGui.QGroupBox(addCustomer)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.inputGroupBox.sizePolicy().hasHeightForWidth())
        self.inputGroupBox.setSizePolicy(sizePolicy)
        self.inputGroupBox.setCheckable(False)
        self.inputGroupBox.setObjectName("inputGroupBox")
        self.gridLayout = QtGui.QGridLayout(self.inputGroupBox)
        self.gridLayout.setObjectName("gridLayout")
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.customerCodeLabel = QtGui.QLabel(self.inputGroupBox)
        self.customerCodeLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.customerCodeLabel.setObjectName("customerCodeLabel")
        self.horizontalLayout.addWidget(self.customerCodeLabel)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.customerCodeValue = QtGui.QLineEdit(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.customerCodeValue.sizePolicy().hasHeightForWidth())
        self.customerCodeValue.setSizePolicy(sizePolicy)
        self.customerCodeValue.setMinimumSize(QtCore.QSize(200, 35))
        self.customerCodeValue.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.customerCodeValue.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
        self.customerCodeValue.setObjectName("customerCodeValue")
        self.verticalLayout.addWidget(self.customerCodeValue)
        self.codeMandLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.codeMandLabel.sizePolicy().hasHeightForWidth())
        self.codeMandLabel.setSizePolicy(sizePolicy)
        self.codeMandLabel.setStyleSheet("QLabel { color : red; }")
        self.codeMandLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.codeMandLabel.setObjectName("codeMandLabel")
        self.verticalLayout.addWidget(self.codeMandLabel)
        self.horizontalLayout.addLayout(self.verticalLayout)
        self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 2)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.customerNameLabel = QtGui.QLabel(self.inputGroupBox)
        self.customerNameLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.customerNameLabel.setObjectName("customerNameLabel")
        self.horizontalLayout_2.addWidget(self.customerNameLabel)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.customerNameValue = QtGui.QLineEdit(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.customerNameValue.sizePolicy().hasHeightForWidth())
        self.customerNameValue.setSizePolicy(sizePolicy)
        self.customerNameValue.setMinimumSize(QtCore.QSize(200, 35))
        self.customerNameValue.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.customerNameValue.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
        self.customerNameValue.setObjectName("customerNameValue")
        self.verticalLayout_2.addWidget(self.customerNameValue)
        self.nameMandLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.nameMandLabel.sizePolicy().hasHeightForWidth())
        self.nameMandLabel.setSizePolicy(sizePolicy)
        self.nameMandLabel.setStyleSheet("QLabel { color : red; }")
        self.nameMandLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.nameMandLabel.setObjectName("nameMandLabel")
        self.verticalLayout_2.addWidget(self.nameMandLabel)
        self.horizontalLayout_2.addLayout(self.verticalLayout_2)
        self.gridLayout.addLayout(self.horizontalLayout_2, 1, 0, 1, 2)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.customerAddressLabel = QtGui.QLabel(self.inputGroupBox)
        self.customerAddressLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.customerAddressLabel.setObjectName("customerAddressLabel")
        self.horizontalLayout_3.addWidget(self.customerAddressLabel)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.customerAddressValue = QtGui.QLineEdit(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.customerAddressValue.sizePolicy().hasHeightForWidth())
        self.customerAddressValue.setSizePolicy(sizePolicy)
        self.customerAddressValue.setMinimumSize(QtCore.QSize(200, 35))
        self.customerAddressValue.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
        self.customerAddressValue.setObjectName("customerAddressValue")
        self.verticalLayout_3.addWidget(self.customerAddressValue)
        self.addressMandLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.addressMandLabel.sizePolicy().hasHeightForWidth())
        self.addressMandLabel.setSizePolicy(sizePolicy)
        self.addressMandLabel.setStyleSheet("QLabel { color : red; }")
        self.addressMandLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.addressMandLabel.setObjectName("addressMandLabel")
        self.verticalLayout_3.addWidget(self.addressMandLabel)
        self.horizontalLayout_3.addLayout(self.verticalLayout_3)
        self.gridLayout.addLayout(self.horizontalLayout_3, 2, 0, 1, 2)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.gstinLabel = QtGui.QLabel(self.inputGroupBox)
        self.gstinLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.gstinLabel.setObjectName("gstinLabel")
        self.horizontalLayout_4.addWidget(self.gstinLabel)
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.customerGstinValue = QtGui.QLineEdit(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.customerGstinValue.sizePolicy().hasHeightForWidth())
        self.customerGstinValue.setSizePolicy(sizePolicy)
        self.customerGstinValue.setMinimumSize(QtCore.QSize(200, 35))
        self.customerGstinValue.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
        self.customerGstinValue.setObjectName("customerGstinValue")
        self.verticalLayout_4.addWidget(self.customerGstinValue)
        self.gstinMandLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.gstinMandLabel.sizePolicy().hasHeightForWidth())
        self.gstinMandLabel.setSizePolicy(sizePolicy)
        self.gstinMandLabel.setStyleSheet("QLabel { color : red; }")
        self.gstinMandLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.gstinMandLabel.setObjectName("gstinMandLabel")
        self.verticalLayout_4.addWidget(self.gstinMandLabel)
        self.horizontalLayout_4.addLayout(self.verticalLayout_4)
        self.gridLayout.addLayout(self.horizontalLayout_4, 3, 0, 1, 2)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.stateCodeLabel = QtGui.QLabel(self.inputGroupBox)
        self.stateCodeLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.stateCodeLabel.setObjectName("stateCodeLabel")
        self.horizontalLayout_5.addWidget(self.stateCodeLabel)
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.stateCodeValue = QtGui.QLineEdit(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.stateCodeValue.sizePolicy().hasHeightForWidth())
        self.stateCodeValue.setSizePolicy(sizePolicy)
        self.stateCodeValue.setMinimumSize(QtCore.QSize(200, 35))
        self.stateCodeValue.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
        self.stateCodeValue.setObjectName("stateCodeValue")
        self.verticalLayout_5.addWidget(self.stateCodeValue)
        self.stateMandLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.stateMandLabel.sizePolicy().hasHeightForWidth())
        self.stateMandLabel.setSizePolicy(sizePolicy)
        self.stateMandLabel.setStyleSheet("QLabel { color : red; }")
        self.stateMandLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.stateMandLabel.setObjectName("stateMandLabel")
        self.verticalLayout_5.addWidget(self.stateMandLabel)
        self.horizontalLayout_5.addLayout(self.verticalLayout_5)
        self.gridLayout.addLayout(self.horizontalLayout_5, 4, 0, 1, 2)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.contactNoLabel = QtGui.QLabel(self.inputGroupBox)
        self.contactNoLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.contactNoLabel.setObjectName("contactNoLabel")
        self.horizontalLayout_6.addWidget(self.contactNoLabel)
        self.verticalLayout_6 = QtGui.QVBoxLayout()
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.contactNoValue = QtGui.QLineEdit(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.contactNoValue.sizePolicy().hasHeightForWidth())
        self.contactNoValue.setSizePolicy(sizePolicy)
        self.contactNoValue.setMinimumSize(QtCore.QSize(200, 35))
        self.contactNoValue.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
        self.contactNoValue.setObjectName("contactNoValue")
        self.verticalLayout_6.addWidget(self.contactNoValue)
        self.contactMandLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.contactMandLabel.sizePolicy().hasHeightForWidth())
        self.contactMandLabel.setSizePolicy(sizePolicy)
        self.contactMandLabel.setStyleSheet("QLabel { color : red; }")
        self.contactMandLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.contactMandLabel.setObjectName("contactMandLabel")
        self.verticalLayout_6.addWidget(self.contactMandLabel)
        self.horizontalLayout_6.addLayout(self.verticalLayout_6)
        self.gridLayout.addLayout(self.horizontalLayout_6, 5, 0, 1, 2)
        self.saveButton = QtGui.QPushButton(self.inputGroupBox)
        self.saveButton.setMinimumSize(QtCore.QSize(200, 35))
        self.saveButton.setObjectName("saveButton")
        self.gridLayout.addWidget(self.saveButton, 6, 0, 1, 1)
        self.discardButton = QtGui.QPushButton(self.inputGroupBox)
        self.discardButton.setMinimumSize(QtCore.QSize(200, 35))
        self.discardButton.setObjectName("discardButton")
        self.gridLayout.addWidget(self.discardButton, 6, 1, 1, 1)
        self.gridLayout_3.addWidget(self.inputGroupBox, 1, 0, 1, 1)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.groupBox = QtGui.QGroupBox(addCustomer)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setMinimumSize(QtCore.QSize(0, 100))
        self.groupBox.setCheckable(False)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_4 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.voucherNoLabel_2 = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.voucherNoLabel_2.sizePolicy().hasHeightForWidth())
        self.voucherNoLabel_2.setSizePolicy(sizePolicy)
        self.voucherNoLabel_2.setAlignment(QtCore.Qt.AlignCenter)
        self.voucherNoLabel_2.setObjectName("voucherNoLabel_2")
        self.gridLayout_4.addWidget(self.voucherNoLabel_2, 0, 0, 1, 1)
        self.searchNameValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.searchNameValue.sizePolicy().hasHeightForWidth())
        self.searchNameValue.setSizePolicy(sizePolicy)
        self.searchNameValue.setMinimumSize(QtCore.QSize(350, 35))
        self.searchNameValue.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.searchNameValue.setObjectName("searchNameValue")
        self.gridLayout_4.addWidget(self.searchNameValue, 0, 1, 1, 1)
        self.gstinLabel_2 = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.gstinLabel_2.sizePolicy().hasHeightForWidth())
        self.gstinLabel_2.setSizePolicy(sizePolicy)
        self.gstinLabel_2.setAlignment(QtCore.Qt.AlignCenter)
        self.gstinLabel_2.setObjectName("gstinLabel_2")
        self.gridLayout_4.addWidget(self.gstinLabel_2, 0, 2, 1, 1)
        self.searchGstinValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.searchGstinValue.sizePolicy().hasHeightForWidth())
        self.searchGstinValue.setSizePolicy(sizePolicy)
        self.searchGstinValue.setMinimumSize(QtCore.QSize(350, 35))
        self.searchGstinValue.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.searchGstinValue.setObjectName("searchGstinValue")
        self.gridLayout_4.addWidget(self.searchGstinValue, 0, 3, 1, 1)
        self.searchButton = QtGui.QPushButton(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.searchButton.sizePolicy().hasHeightForWidth())
        self.searchButton.setSizePolicy(sizePolicy)
        self.searchButton.setMinimumSize(QtCore.QSize(200, 35))
        self.searchButton.setObjectName("searchButton")
        self.gridLayout_4.addWidget(self.searchButton, 0, 4, 1, 1)
        self.gridLayout_2.addWidget(self.groupBox, 0, 0, 1, 2)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.removeButton = QtGui.QPushButton(addCustomer)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.removeButton.sizePolicy().hasHeightForWidth())
        self.removeButton.setSizePolicy(sizePolicy)
        self.removeButton.setMinimumSize(QtCore.QSize(0, 35))
        self.removeButton.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.removeButton.setObjectName("removeButton")
        self.horizontalLayout_7.addWidget(self.removeButton)
        self.clearButton = QtGui.QPushButton(addCustomer)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.clearButton.sizePolicy().hasHeightForWidth())
        self.clearButton.setSizePolicy(sizePolicy)
        self.clearButton.setMinimumSize(QtCore.QSize(0, 35))
        self.clearButton.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.clearButton.setObjectName("clearButton")
        self.horizontalLayout_7.addWidget(self.clearButton)
        self.importButton = QtGui.QPushButton(addCustomer)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.importButton.sizePolicy().hasHeightForWidth())
        self.importButton.setSizePolicy(sizePolicy)
        self.importButton.setMinimumSize(QtCore.QSize(0, 35))
        self.importButton.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.importButton.setObjectName("importButton")
        self.horizontalLayout_7.addWidget(self.importButton)
        self.gridLayout_2.addLayout(self.horizontalLayout_7, 1, 0, 1, 2)
        self.customerTable = CustomerTable(addCustomer)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.customerTable.sizePolicy().hasHeightForWidth())
        self.customerTable.setSizePolicy(sizePolicy)
        self.customerTable.setObjectName("customerTable")
        self.gridLayout_2.addWidget(self.customerTable, 2, 0, 1, 2)
        spacerItem = QtGui.QSpacerItem(878, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout_2.addItem(spacerItem, 3, 0, 1, 1)
        self.tableSaveButton = QtGui.QPushButton(addCustomer)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tableSaveButton.sizePolicy().hasHeightForWidth())
        self.tableSaveButton.setSizePolicy(sizePolicy)
        self.tableSaveButton.setMinimumSize(QtCore.QSize(200, 35))
        self.tableSaveButton.setObjectName("tableSaveButton")
        self.gridLayout_2.addWidget(self.tableSaveButton, 3, 1, 1, 1)
        self.gridLayout_3.addLayout(self.gridLayout_2, 1, 1, 1, 1)

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

    def retranslateUi(self, addCustomer):
        addCustomer.setWindowTitle(QtGui.QApplication.translate("addCustomer", "Form", None, QtGui.QApplication.UnicodeUTF8))
        self.inputGroupBox.setTitle(QtGui.QApplication.translate("addCustomer", "Customer Details", None, QtGui.QApplication.UnicodeUTF8))
        self.customerCodeLabel.setText(QtGui.QApplication.translate("addCustomer", "Customer Code", None, QtGui.QApplication.UnicodeUTF8))
        self.customerCodeValue.setPlaceholderText(QtGui.QApplication.translate("addCustomer", "Enter Customer Code", None, QtGui.QApplication.UnicodeUTF8))
        self.codeMandLabel.setText(QtGui.QApplication.translate("addCustomer", "* Code is Mandatory", None, QtGui.QApplication.UnicodeUTF8))
        self.customerNameLabel.setText(QtGui.QApplication.translate("addCustomer", "Customer Name", None, QtGui.QApplication.UnicodeUTF8))
        self.customerNameValue.setPlaceholderText(QtGui.QApplication.translate("addCustomer", "Enter Customer Name", None, QtGui.QApplication.UnicodeUTF8))
        self.nameMandLabel.setText(QtGui.QApplication.translate("addCustomer", "* Nameis Mandatory", None, QtGui.QApplication.UnicodeUTF8))
        self.customerAddressLabel.setText(QtGui.QApplication.translate("addCustomer", "Customer Address", None, QtGui.QApplication.UnicodeUTF8))
        self.customerAddressValue.setPlaceholderText(QtGui.QApplication.translate("addCustomer", "Enter Customer Address", None, QtGui.QApplication.UnicodeUTF8))
        self.addressMandLabel.setText(QtGui.QApplication.translate("addCustomer", "*Address  is Mandatory", None, QtGui.QApplication.UnicodeUTF8))
        self.gstinLabel.setText(QtGui.QApplication.translate("addCustomer", "Customer GSTIN", None, QtGui.QApplication.UnicodeUTF8))
        self.customerGstinValue.setPlaceholderText(QtGui.QApplication.translate("addCustomer", "Enter Customer GSTIN", None, QtGui.QApplication.UnicodeUTF8))
        self.gstinMandLabel.setText(QtGui.QApplication.translate("addCustomer", "* GSTIN is Mandatory", None, QtGui.QApplication.UnicodeUTF8))
        self.stateCodeLabel.setText(QtGui.QApplication.translate("addCustomer", "State Code", None, QtGui.QApplication.UnicodeUTF8))
        self.stateCodeValue.setPlaceholderText(QtGui.QApplication.translate("addCustomer", "Enter state code", None, QtGui.QApplication.UnicodeUTF8))
        self.stateMandLabel.setText(QtGui.QApplication.translate("addCustomer", "* State Code is Mandatory", None, QtGui.QApplication.UnicodeUTF8))
        self.contactNoLabel.setText(QtGui.QApplication.translate("addCustomer", "Contact No", None, QtGui.QApplication.UnicodeUTF8))
        self.contactNoValue.setPlaceholderText(QtGui.QApplication.translate("addCustomer", "Enter contact no", None, QtGui.QApplication.UnicodeUTF8))
        self.contactMandLabel.setText(QtGui.QApplication.translate("addCustomer", "* Contact No is Mandatory", None, QtGui.QApplication.UnicodeUTF8))
        self.saveButton.setText(QtGui.QApplication.translate("addCustomer", "Save Changes", None, QtGui.QApplication.UnicodeUTF8))
        self.discardButton.setText(QtGui.QApplication.translate("addCustomer", "Discard", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(QtGui.QApplication.translate("addCustomer", "Search ", None, QtGui.QApplication.UnicodeUTF8))
        self.voucherNoLabel_2.setText(QtGui.QApplication.translate("addCustomer", "Customer name", None, QtGui.QApplication.UnicodeUTF8))
        self.searchNameValue.setPlaceholderText(QtGui.QApplication.translate("addCustomer", "Enter Name", None, QtGui.QApplication.UnicodeUTF8))
        self.gstinLabel_2.setText(QtGui.QApplication.translate("addCustomer", "GSTIN", None, QtGui.QApplication.UnicodeUTF8))
        self.searchGstinValue.setPlaceholderText(QtGui.QApplication.translate("addCustomer", "Enter Gstin", None, QtGui.QApplication.UnicodeUTF8))
        self.searchButton.setText(QtGui.QApplication.translate("addCustomer", "Search", None, QtGui.QApplication.UnicodeUTF8))
        self.removeButton.setText(QtGui.QApplication.translate("addCustomer", "Remove Selected", None, QtGui.QApplication.UnicodeUTF8))
        self.clearButton.setText(QtGui.QApplication.translate("addCustomer", "Clear", None, QtGui.QApplication.UnicodeUTF8))
        self.importButton.setText(QtGui.QApplication.translate("addCustomer", "Import", None, QtGui.QApplication.UnicodeUTF8))
        self.tableSaveButton.setText(QtGui.QApplication.translate("addCustomer", "Save Changes", None, QtGui.QApplication.UnicodeUTF8))