def confirmMainte(self):
        datetimestr = datetime.now()
        timestampstr = datetimestr.strftime('%Y-%m-%d %H:%M:%S')
        indexes = self.tableView.selectionModel().selectedRows(0)
        for ind in sorted(indexes):
            maint = select_maintenance_by_code(ind.data())
        bom = select_bill_of_material_for_maintenance(maint.id)
        bomitem = select_bill_of_material_item_for_BOM(bom.id)
        for item in bomitem:
            if item.rawMaterial != None:
                decreaseRawMaterialInvQty(item.rawMaterial,
                                          item.qty_of_material)
            if item.spareParts != None:
                decreaseSparePartsInvQty(item.spareParts, item.qty_of_material)
        update_maintenance_confirm(maint.id, timestampstr)
        CreateAcConfReport(maint).create_pdf()
        CreateProConfReport(maint).create_pdf()

        self.tableData = MaintenanceTableModel()
        self.tableView.setModel(self.tableData)
        for idx, val in enumerate(getMaintenanceHolded()):
            self.tableData.addCustomer(
                Customers(getMaintenanceHolded()[idx].customers.name,
                          getMaintenanceHolded()[idx].customers.mobile_number,
                          None, None, None, None,
                          getMaintenanceHolded()[idx].m_code, None, None))
Beispiel #2
0
 def do_finish(self):
     datetimestr = datetime.now()
     timestampstr = datetimestr.strftime('%Y-%m-%d %H:%M:%S')
     indexes = self.tableView.selectionModel().selectedRows(0)
     for ind in sorted(indexes):
         maint = select_maintenance_by_code(ind.data())
         update_maintenance_finish(maint.id, timestampstr)
     self.tableData = MaintenanceTableModel()
     self.tableView.setModel(self.tableData)
     for idx, val in enumerate(getMaintenanceUnderProccessing()):
         self.tableData.addCustomer(
             Customers(
                 getMaintenanceUnderProccessing()[idx].customers.name,
                 getMaintenanceUnderProccessing()
                 [idx].customers.mobile_number, None, None, None, None,
                 getMaintenanceUnderProccessing()[idx].m_code, None, None))
Beispiel #3
0
 def do_delete(self):
     indexes = self.tableView.selectionModel().selectedRows(0)
     for ind in sorted(indexes):
         maint = select_maintenance_by_code(ind.data())
     reply = QMessageBox.question(
         QMessageBox(), "OOP'S",
         'Are you sure to delete ?\n Maintenance \n Code : {}'.format(
             maint.m_code) +
         '\n Customer Name : {}'.format(maint.customers.name) +
         '\n This Action Cant Undo', QMessageBox.Yes | QMessageBox.No)
     if reply == QMessageBox.Yes:
         delete_maintenance(maint.id)
     self.tableData = MaintenanceTableModel()
     self.tableView.setModel(self.tableData)
     for idx, val in enumerate(getMaintenanceUnderProccessing()):
         self.tableData.addCustomer(
             Customers(
                 getMaintenanceUnderProccessing()[idx].customers.name,
                 getMaintenanceUnderProccessing()
                 [idx].customers.mobile_number, None, None, None, None,
                 getMaintenanceUnderProccessing()[idx].m_code, None, None))
 def do_addLaborCost(self):
     indexes = self.tableView.selectionModel().selectedRows(0)
     for ind in sorted(indexes):
         maint = select_maintenance_by_code(ind.data())
         laborCost = self.laborled.text()
         update_maintenance(maint.id, maint.cost_of_bill_of_material,
                            laborCost, None, None, maint.created_at,
                            maint.close_at, maint.product_of_maintenance,
                            maint.maintenance_description, maint.start_date,
                            maint.done_date)
         self.totalCostlbl.setText(
             str(maint.cost_of_bill_of_material + maint.cost_of_labor))
         self.tableData = MaintenanceTableModel()
         self.tableView.setModel(self.tableData)
         for idx, val in enumerate(getMaintenanceWaitLaborCost()):
             self.tableData.addCustomer(
                 Customers(
                     getMaintenanceWaitLaborCost()[idx].customers.name,
                     getMaintenanceWaitLaborCost()
                     [idx].customers.mobile_number, None, None, None, None,
                     getMaintenanceWaitLaborCost()[idx].m_code, None, None))
Beispiel #5
0
    def setupUi(self, finishMaintenanceDialog):
        self.setWindowFlags(self.windowFlags()
                            & ~QtCore.Qt.WindowCloseButtonHint)

        finishMaintenanceDialog.setObjectName("finishMaintenanceDialog")
        finishMaintenanceDialog.resize(832, 508)
        self.label = QtWidgets.QLabel(finishMaintenanceDialog)
        self.label.setGeometry(QtCore.QRect(14, 3, 47, 20))
        self.label.setObjectName("label")
        self.loggeduser = QtWidgets.QLabel(finishMaintenanceDialog)
        self.loggeduser.setGeometry(QtCore.QRect(65, 3, 180, 20))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.loggeduser.setFont(font)
        self.loggeduser.setText("")
        self.loggeduser.setObjectName("loggeduser")
        self.loggeduser.setText(getLoginDataPKL()['name'])
        self.line = QtWidgets.QFrame(finishMaintenanceDialog)
        self.line.setGeometry(QtCore.QRect(3, 28, 820, 3))
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.label_3 = QtWidgets.QLabel(finishMaintenanceDialog)
        self.label_3.setGeometry(QtCore.QRect(14, 31, 150, 20))
        self.label_3.setObjectName("label_3")
        self.tableView = QtWidgets.QTableView(finishMaintenanceDialog)
        self.tableView.setGeometry(QtCore.QRect(10, 50, 390, 411))
        self.tableView.setObjectName("tableView")
        self.tableView.setEditTriggers(
            QtWidgets.QAbstractItemView.NoEditTriggers)
        self.tableView.setTabKeyNavigation(False)
        self.tableView.setProperty("showDropIndicator", False)
        self.tableView.setDragDropOverwriteMode(False)
        self.tableView.setSelectionMode(
            QtWidgets.QAbstractItemView.SingleSelection)
        self.tableView.setSelectionBehavior(
            QtWidgets.QAbstractItemView.SelectRows)
        self.tableView.horizontalHeader().setCascadingSectionResizes(True)
        self.tableData = MaintenanceTableModel()
        self.tableView.setModel(self.tableData)
        self.tableView.setColumnWidth(0, 100)
        self.tableView.setColumnWidth(1, 191)
        self.tableView.setColumnWidth(2, 82)
        for idx, val in enumerate(getMaintenanceUnderProccessing()):
            self.tableData.addCustomer(
                Customers(
                    getMaintenanceUnderProccessing()[idx].customers.name,
                    getMaintenanceUnderProccessing()
                    [idx].customers.mobile_number, None, None, None, None,
                    getMaintenanceUnderProccessing()[idx].m_code, None, None))
        self.tableView.clicked.connect(self.Clicked)
        self.line_2 = QtWidgets.QFrame(finishMaintenanceDialog)
        self.line_2.setGeometry(QtCore.QRect(410, 35, 3, 470))
        self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.label_4 = QtWidgets.QLabel(finishMaintenanceDialog)
        self.label_4.setGeometry(QtCore.QRect(420, 83, 100, 13))
        self.label_4.setObjectName("label_4")
        self.label_5 = QtWidgets.QLabel(finishMaintenanceDialog)
        self.label_5.setGeometry(QtCore.QRect(420, 103, 110, 20))
        self.label_5.setObjectName("label_5")
        self.label_6 = QtWidgets.QLabel(finishMaintenanceDialog)
        self.label_6.setGeometry(QtCore.QRect(420, 124, 130, 20))
        self.label_6.setObjectName("label_6")
        self.label_7 = QtWidgets.QLabel(finishMaintenanceDialog)
        self.label_7.setGeometry(QtCore.QRect(421, 34, 90, 20))
        self.label_7.setObjectName("label_7")
        self.label_8 = QtWidgets.QLabel(finishMaintenanceDialog)
        self.label_8.setGeometry(QtCore.QRect(420, 56, 120, 20))
        self.label_8.setObjectName("label_8")
        self.maintCodelbl = QtWidgets.QLineEdit(finishMaintenanceDialog)
        self.maintCodelbl.setEnabled(False)
        self.maintCodelbl.setGeometry(QtCore.QRect(519, 81, 120, 20))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.maintCodelbl.setFont(font)
        self.maintCodelbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.maintCodelbl.setObjectName("maintCodelbl")
        self.maintProductlbl = QtWidgets.QLineEdit(finishMaintenanceDialog)
        self.maintProductlbl.setEnabled(False)
        self.maintProductlbl.setGeometry(QtCore.QRect(532, 104, 280, 20))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.maintProductlbl.setFont(font)
        self.maintProductlbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.maintProductlbl.setObjectName("maintProductlbl")
        self.maintDesclbl = QtWidgets.QTextBrowser(finishMaintenanceDialog)
        self.maintDesclbl.setEnabled(False)
        self.maintDesclbl.setGeometry(QtCore.QRect(549, 128, 270, 80))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.maintDesclbl.setFont(font)
        self.maintDesclbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.maintDesclbl.setLineWidth(1)
        self.maintDesclbl.setObjectName("maintDesclbl")
        self.custNamelbl = QtWidgets.QLineEdit(finishMaintenanceDialog)
        self.custNamelbl.setEnabled(False)
        self.custNamelbl.setGeometry(QtCore.QRect(508, 35, 280, 20))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.custNamelbl.setFont(font)
        self.custNamelbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.custNamelbl.setObjectName("custNamelbl")
        self.custMobilePhonelbl = QtWidgets.QLineEdit(finishMaintenanceDialog)
        self.custMobilePhonelbl.setEnabled(False)
        self.custMobilePhonelbl.setGeometry(QtCore.QRect(543, 58, 240, 20))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.custMobilePhonelbl.setFont(font)
        self.custMobilePhonelbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.custMobilePhonelbl.setObjectName("custMobilePhonelbl")
        self.line_3 = QtWidgets.QFrame(finishMaintenanceDialog)
        self.line_3.setGeometry(QtCore.QRect(416, 211, 410, 3))
        self.line_3.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_3.setObjectName("line_3")
        self.deletebtn = QtWidgets.QPushButton(finishMaintenanceDialog)
        self.deletebtn.setGeometry(QtCore.QRect(473, 462, 90, 40))
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        self.deletebtn.setFont(font)
        self.deletebtn.setStyleSheet("background-color: rgb(255, 0, 0);\n"
                                     "color: rgb(255, 255, 255);")
        self.deletebtn.setObjectName("deletebtn")
        self.closebtn = QtWidgets.QPushButton(finishMaintenanceDialog)
        self.closebtn.setGeometry(QtCore.QRect(687, 462, 90, 40))
        self.closebtn.setObjectName("closebtn")
        self.closebtn.clicked.connect(self.close)
        self.detailsbtn = QtWidgets.QPushButton(finishMaintenanceDialog)
        self.detailsbtn.setGeometry(QtCore.QRect(430, 413, 90, 40))
        self.detailsbtn.setObjectName("detailsbtn")
        self.detailsbtn.setEnabled(False)
        self.line_4 = QtWidgets.QFrame(finishMaintenanceDialog)
        self.line_4.setGeometry(QtCore.QRect(416, 448, 410, 20))
        self.line_4.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_4.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_4.setObjectName("line_4")
        self.label_2 = QtWidgets.QLabel(finishMaintenanceDialog)
        self.label_2.setGeometry(QtCore.QRect(421, 301, 100, 13))
        self.label_2.setObjectName("label_2")
        self.label_9 = QtWidgets.QLabel(finishMaintenanceDialog)
        self.label_9.setGeometry(QtCore.QRect(421, 338, 90, 13))
        self.label_9.setObjectName("label_9")
        self.label_10 = QtWidgets.QLabel(finishMaintenanceDialog)
        self.label_10.setGeometry(QtCore.QRect(421, 380, 100, 13))
        self.label_10.setObjectName("label_10")
        self.label_11 = QtWidgets.QLabel(finishMaintenanceDialog)
        self.label_11.setGeometry(QtCore.QRect(638, 297, 60, 20))
        self.label_11.setAlignment(QtCore.Qt.AlignCenter)
        self.label_11.setObjectName("label_11")
        self.rowCostlbl = QtWidgets.QLineEdit(finishMaintenanceDialog)
        self.rowCostlbl.setEnabled(False)
        self.rowCostlbl.setGeometry(QtCore.QRect(520, 292, 100, 30))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setItalic(True)
        font.setWeight(75)
        self.rowCostlbl.setFont(font)
        self.rowCostlbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.rowCostlbl.setObjectName("rowCostlbl")
        self.spCostlbl = QtWidgets.QLineEdit(finishMaintenanceDialog)
        self.spCostlbl.setEnabled(False)
        self.spCostlbl.setGeometry(QtCore.QRect(520, 330, 100, 30))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setItalic(True)
        font.setWeight(75)
        self.spCostlbl.setFont(font)
        self.spCostlbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.spCostlbl.setObjectName("spCostlbl")
        self.matTotalCostlbl = QtWidgets.QLineEdit(finishMaintenanceDialog)
        self.matTotalCostlbl.setEnabled(False)
        self.matTotalCostlbl.setGeometry(QtCore.QRect(520, 372, 100, 30))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setItalic(True)
        font.setWeight(75)
        self.matTotalCostlbl.setFont(font)
        self.matTotalCostlbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.matTotalCostlbl.setObjectName("matTotalCostlbl")
        self.line_5 = QtWidgets.QFrame(finishMaintenanceDialog)
        self.line_5.setGeometry(QtCore.QRect(629, 293, 3, 110))
        self.line_5.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_5.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_5.setObjectName("line_5")
        self.label_12 = QtWidgets.QLabel(finishMaintenanceDialog)
        self.label_12.setGeometry(QtCore.QRect(635, 377, 60, 20))
        self.label_12.setAlignment(QtCore.Qt.AlignCenter)
        self.label_12.setObjectName("label_12")
        self.laborled = QtWidgets.QLineEdit(finishMaintenanceDialog)
        self.laborled.setEnabled(False)
        self.laborled.setGeometry(QtCore.QRect(700, 294, 100, 30))
        self.laborled.setObjectName("laborled")
        self.line_6 = QtWidgets.QFrame(finishMaintenanceDialog)
        self.line_6.setGeometry(QtCore.QRect(418, 408, 410, 3))
        self.line_6.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_6.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_6.setObjectName("line_6")
        self.line_7 = QtWidgets.QFrame(finishMaintenanceDialog)
        self.line_7.setGeometry(QtCore.QRect(420, 365, 200, 3))
        self.line_7.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_7.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_7.setObjectName("line_7")
        self.totalCostlbl = QtWidgets.QLineEdit(finishMaintenanceDialog)
        self.totalCostlbl.setEnabled(False)
        self.totalCostlbl.setGeometry(QtCore.QRect(702, 372, 100, 30))
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(True)
        font.setItalic(True)
        font.setWeight(75)
        self.totalCostlbl.setFont(font)
        self.totalCostlbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.totalCostlbl.setObjectName("totalCostlbl")
        self.line_8 = QtWidgets.QFrame(finishMaintenanceDialog)
        self.line_8.setGeometry(QtCore.QRect(630, 462, 3, 40))
        self.line_8.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_8.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_8.setObjectName("line_8")
        self.line_9 = QtWidgets.QFrame(finishMaintenanceDialog)
        self.line_9.setGeometry(QtCore.QRect(635, 365, 190, 3))
        self.line_9.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_9.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_9.setObjectName("line_9")
        self.finishbtn = QtWidgets.QPushButton(finishMaintenanceDialog)
        self.finishbtn.setGeometry(QtCore.QRect(670, 413, 130, 40))
        font = QtGui.QFont()
        font.setPointSize(11)
        font.setBold(True)
        font.setWeight(75)
        self.finishbtn.setFont(font)
        self.finishbtn.setStyleSheet("color: rgb(255, 255, 255);\n"
                                     "background-color: rgb(0, 203, 0);")
        self.finishbtn.setObjectName("finishbtn")
        self.line_10 = QtWidgets.QFrame(finishMaintenanceDialog)
        self.line_10.setGeometry(QtCore.QRect(415, 287, 410, 3))
        self.line_10.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_10.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_10.setObjectName("line_10")
        self.label_13 = QtWidgets.QLabel(finishMaintenanceDialog)
        self.label_13.setGeometry(QtCore.QRect(422, 219, 80, 13))
        self.label_13.setObjectName("label_13")
        self.label_14 = QtWidgets.QLabel(finishMaintenanceDialog)
        self.label_14.setGeometry(QtCore.QRect(423, 243, 80, 13))
        self.label_14.setObjectName("label_14")
        self.label_15 = QtWidgets.QLabel(finishMaintenanceDialog)
        self.label_15.setGeometry(QtCore.QRect(423, 265, 80, 13))
        self.label_15.setObjectName("label_15")
        self.createdlbl = QtWidgets.QLineEdit(finishMaintenanceDialog)
        self.createdlbl.setEnabled(False)
        self.createdlbl.setGeometry(QtCore.QRect(498, 216, 180, 20))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.createdlbl.setFont(font)
        self.createdlbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.createdlbl.setObjectName("createdlbl")
        self.startlbl = QtWidgets.QLineEdit(finishMaintenanceDialog)
        self.startlbl.setEnabled(False)
        self.startlbl.setGeometry(QtCore.QRect(483, 240, 191, 20))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.startlbl.setFont(font)
        self.startlbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.startlbl.setObjectName("startlbl")
        self.finishlbl = QtWidgets.QLineEdit(finishMaintenanceDialog)
        self.finishlbl.setEnabled(False)
        self.finishlbl.setGeometry(QtCore.QRect(486, 263, 190, 20))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.finishlbl.setFont(font)
        self.finishlbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.finishlbl.setObjectName("finishlbl")
        self.finishlbl.setVisible(False)
        self.label_15.setVisible(False)
        self.finishbtn.setEnabled(False)
        self.finishbtn.clicked.connect(self.do_finish)
        self.deletebtn.clicked.connect(self.do_delete)
        self.detailsbtn.clicked.connect(self.detailsDia)
        self.retranslateUi(finishMaintenanceDialog)
        QtCore.QMetaObject.connectSlotsByName(finishMaintenanceDialog)
        role = getLoginDataPKL()['role']
        if int(role) == 2 or int(role) == 3:
            self.label_11.setVisible(False)
            self.label_12.setVisible(False)
            self.laborled.setVisible(False)
            self.totalCostlbl.setVisible(False)
            self.deletebtn.setEnabled(False)
    def setupUi(self, costHoldedMaintenanceDialog):
        self.setWindowFlags(self.windowFlags()
                            & ~QtCore.Qt.WindowCloseButtonHint)

        costHoldedMaintenanceDialog.setObjectName(
            "costHoldedMaintenanceDialog")
        costHoldedMaintenanceDialog.resize(832, 470)
        self.label = QtWidgets.QLabel(costHoldedMaintenanceDialog)
        self.label.setGeometry(QtCore.QRect(14, 3, 47, 20))
        self.label.setObjectName("label")
        self.loggeduser = QtWidgets.QLabel(costHoldedMaintenanceDialog)
        self.loggeduser.setGeometry(QtCore.QRect(65, 3, 180, 20))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.loggeduser.setFont(font)
        self.loggeduser.setText("")
        self.loggeduser.setObjectName("loggeduser")
        self.loggeduser.setText(getLoginDataPKL()['name'])
        self.line = QtWidgets.QFrame(costHoldedMaintenanceDialog)
        self.line.setGeometry(QtCore.QRect(3, 28, 820, 3))
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.label_3 = QtWidgets.QLabel(costHoldedMaintenanceDialog)
        self.label_3.setGeometry(QtCore.QRect(14, 31, 150, 20))
        self.label_3.setObjectName("label_3")
        self.tableView = QtWidgets.QTableView(costHoldedMaintenanceDialog)
        self.tableView.setGeometry(QtCore.QRect(10, 50, 390, 411))
        self.tableView.setObjectName("tableView")
        self.tableView.setEditTriggers(
            QtWidgets.QAbstractItemView.NoEditTriggers)
        self.tableView.setTabKeyNavigation(False)
        self.tableView.setProperty("showDropIndicator", False)
        self.tableView.setDragDropOverwriteMode(False)
        self.tableView.setSelectionMode(
            QtWidgets.QAbstractItemView.SingleSelection)
        self.tableView.setSelectionBehavior(
            QtWidgets.QAbstractItemView.SelectRows)
        self.tableView.horizontalHeader().setCascadingSectionResizes(True)
        self.tableData = MaintenanceTableModel()
        self.tableView.setModel(self.tableData)
        self.tableView.setColumnWidth(0, 100)
        self.tableView.setColumnWidth(1, 191)
        self.tableView.setColumnWidth(2, 82)
        for idx, val in enumerate(getMaintenanceWaitLaborCost()):
            self.tableData.addCustomer(
                Customers(
                    getMaintenanceWaitLaborCost()[idx].customers.name,
                    getMaintenanceWaitLaborCost()[idx].customers.mobile_number,
                    None, None, None, None,
                    getMaintenanceWaitLaborCost()[idx].m_code, None, None))
        self.tableView.clicked.connect(self.Clicked)
        self.line_2 = QtWidgets.QFrame(costHoldedMaintenanceDialog)
        self.line_2.setGeometry(QtCore.QRect(410, 35, 3, 430))
        self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.label_4 = QtWidgets.QLabel(costHoldedMaintenanceDialog)
        self.label_4.setGeometry(QtCore.QRect(420, 87, 100, 13))
        self.label_4.setObjectName("label_4")
        self.label_5 = QtWidgets.QLabel(costHoldedMaintenanceDialog)
        self.label_5.setGeometry(QtCore.QRect(420, 109, 110, 20))
        self.label_5.setObjectName("label_5")
        self.label_6 = QtWidgets.QLabel(costHoldedMaintenanceDialog)
        self.label_6.setGeometry(QtCore.QRect(420, 129, 130, 20))
        self.label_6.setObjectName("label_6")
        self.label_7 = QtWidgets.QLabel(costHoldedMaintenanceDialog)
        self.label_7.setGeometry(QtCore.QRect(421, 34, 90, 20))
        self.label_7.setObjectName("label_7")
        self.label_8 = QtWidgets.QLabel(costHoldedMaintenanceDialog)
        self.label_8.setGeometry(QtCore.QRect(420, 58, 120, 20))
        self.label_8.setObjectName("label_8")
        self.maintCodelbl = QtWidgets.QLineEdit(costHoldedMaintenanceDialog)
        self.maintCodelbl.setEnabled(False)
        self.maintCodelbl.setGeometry(QtCore.QRect(519, 85, 120, 20))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.maintCodelbl.setFont(font)
        self.maintCodelbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.maintCodelbl.setObjectName("maintCodelbl")
        self.maintProductlbl = QtWidgets.QLineEdit(costHoldedMaintenanceDialog)
        self.maintProductlbl.setEnabled(False)
        self.maintProductlbl.setGeometry(QtCore.QRect(532, 110, 280, 20))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.maintProductlbl.setFont(font)
        self.maintProductlbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.maintProductlbl.setObjectName("maintProductlbl")
        self.maintDesclbl = QtWidgets.QTextBrowser(costHoldedMaintenanceDialog)
        self.maintDesclbl.setEnabled(False)
        self.maintDesclbl.setGeometry(QtCore.QRect(549, 136, 270, 80))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.maintDesclbl.setFont(font)
        self.maintDesclbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.maintDesclbl.setLineWidth(1)
        self.maintDesclbl.setObjectName("maintDesclbl")
        self.custNamelbl = QtWidgets.QLineEdit(costHoldedMaintenanceDialog)
        self.custNamelbl.setEnabled(False)
        self.custNamelbl.setGeometry(QtCore.QRect(508, 35, 280, 20))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.custNamelbl.setFont(font)
        self.custNamelbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.custNamelbl.setObjectName("custNamelbl")
        self.custMobilePhonelbl = QtWidgets.QLineEdit(
            costHoldedMaintenanceDialog)
        self.custMobilePhonelbl.setEnabled(False)
        self.custMobilePhonelbl.setGeometry(QtCore.QRect(543, 60, 240, 20))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.custMobilePhonelbl.setFont(font)
        self.custMobilePhonelbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.custMobilePhonelbl.setObjectName("custMobilePhonelbl")
        self.line_3 = QtWidgets.QFrame(costHoldedMaintenanceDialog)
        self.line_3.setGeometry(QtCore.QRect(416, 220, 410, 3))
        self.line_3.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_3.setObjectName("line_3")
        self.calcbtn = QtWidgets.QPushButton(costHoldedMaintenanceDialog)
        self.calcbtn.setGeometry(QtCore.QRect(694, 292, 80, 40))
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(True)
        font.setWeight(75)
        self.calcbtn.setFont(font)
        self.calcbtn.setObjectName("calcbtn")
        self.deletebtn = QtWidgets.QPushButton(costHoldedMaintenanceDialog)
        self.deletebtn.setGeometry(QtCore.QRect(573, 415, 90, 40))
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        self.deletebtn.setFont(font)
        self.deletebtn.setStyleSheet("background-color: rgb(255, 0, 0);\n"
                                     "color: rgb(255, 255, 255);")
        self.deletebtn.setObjectName("deletebtn")
        self.closebtn = QtWidgets.QPushButton(costHoldedMaintenanceDialog)
        self.closebtn.setGeometry(QtCore.QRect(730, 414, 90, 40))
        self.closebtn.setObjectName("closebtn")
        self.closebtn.clicked.connect(self.close)
        self.detailsbtn = QtWidgets.QPushButton(costHoldedMaintenanceDialog)
        self.detailsbtn.setGeometry(QtCore.QRect(420, 414, 90, 40))
        self.detailsbtn.setObjectName("detailsbtn")
        self.line_4 = QtWidgets.QFrame(costHoldedMaintenanceDialog)
        self.line_4.setGeometry(QtCore.QRect(416, 391, 410, 20))
        self.line_4.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_4.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_4.setObjectName("line_4")
        self.label_2 = QtWidgets.QLabel(costHoldedMaintenanceDialog)
        self.label_2.setGeometry(QtCore.QRect(421, 236, 100, 13))
        self.label_2.setObjectName("label_2")
        self.label_9 = QtWidgets.QLabel(costHoldedMaintenanceDialog)
        self.label_9.setGeometry(QtCore.QRect(421, 273, 90, 13))
        self.label_9.setObjectName("label_9")
        self.label_10 = QtWidgets.QLabel(costHoldedMaintenanceDialog)
        self.label_10.setGeometry(QtCore.QRect(421, 315, 100, 13))
        self.label_10.setObjectName("label_10")
        self.label_11 = QtWidgets.QLabel(costHoldedMaintenanceDialog)
        self.label_11.setGeometry(QtCore.QRect(639, 222, 181, 20))
        self.label_11.setAlignment(QtCore.Qt.AlignCenter)
        self.label_11.setObjectName("label_11")
        self.rowCostlbl = QtWidgets.QLineEdit(costHoldedMaintenanceDialog)
        self.rowCostlbl.setEnabled(False)
        self.rowCostlbl.setGeometry(QtCore.QRect(520, 227, 100, 30))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setItalic(True)
        font.setWeight(75)
        self.rowCostlbl.setFont(font)
        self.rowCostlbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.rowCostlbl.setObjectName("rowCostlbl")
        self.spCostlbl = QtWidgets.QLineEdit(costHoldedMaintenanceDialog)
        self.spCostlbl.setEnabled(False)
        self.spCostlbl.setGeometry(QtCore.QRect(520, 265, 100, 30))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setItalic(True)
        font.setWeight(75)
        self.spCostlbl.setFont(font)
        self.spCostlbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.spCostlbl.setObjectName("spCostlbl")
        self.matTotalCostlbl = QtWidgets.QLineEdit(costHoldedMaintenanceDialog)
        self.matTotalCostlbl.setEnabled(False)
        self.matTotalCostlbl.setGeometry(QtCore.QRect(520, 307, 100, 30))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setItalic(True)
        font.setWeight(75)
        self.matTotalCostlbl.setFont(font)
        self.matTotalCostlbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.matTotalCostlbl.setObjectName("matTotalCostlbl")
        self.line_5 = QtWidgets.QFrame(costHoldedMaintenanceDialog)
        self.line_5.setGeometry(QtCore.QRect(629, 228, 3, 110))
        self.line_5.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_5.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_5.setObjectName("line_5")
        self.label_12 = QtWidgets.QLabel(costHoldedMaintenanceDialog)
        self.label_12.setGeometry(QtCore.QRect(536, 344, 190, 20))
        self.label_12.setAlignment(QtCore.Qt.AlignCenter)
        self.label_12.setObjectName("label_12")
        self.laborled = QtWidgets.QLineEdit(costHoldedMaintenanceDialog)
        self.laborled.setGeometry(QtCore.QRect(682, 242, 100, 30))
        self.laborled.setObjectName("laborled")
        self.laborled.setValidator(QDoubleValidator())
        self.line_6 = QtWidgets.QFrame(costHoldedMaintenanceDialog)
        self.line_6.setGeometry(QtCore.QRect(418, 343, 410, 3))
        self.line_6.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_6.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_6.setObjectName("line_6")
        self.line_7 = QtWidgets.QFrame(costHoldedMaintenanceDialog)
        self.line_7.setGeometry(QtCore.QRect(420, 300, 200, 3))
        self.line_7.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_7.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_7.setObjectName("line_7")
        self.totalCostlbl = QtWidgets.QLineEdit(costHoldedMaintenanceDialog)
        self.totalCostlbl.setEnabled(False)
        self.totalCostlbl.setGeometry(QtCore.QRect(582, 365, 100, 30))
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(True)
        font.setItalic(True)
        font.setWeight(75)
        self.totalCostlbl.setFont(font)
        self.totalCostlbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.totalCostlbl.setObjectName("totalCostlbl")
        self.line_8 = QtWidgets.QFrame(costHoldedMaintenanceDialog)
        self.line_8.setGeometry(QtCore.QRect(720, 406, 3, 60))
        self.line_8.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_8.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_8.setObjectName("line_8")
        self.calcbtn.setEnabled(False)
        self.calcbtn.clicked.connect(self.do_addLaborCost)
        self.deletebtn.clicked.connect(self.do_delete)
        self.retranslateUi(costHoldedMaintenanceDialog)
        self.deletebtn.setEnabled(False)
        QtCore.QMetaObject.connectSlotsByName(costHoldedMaintenanceDialog)
        self.detailsbtn.clicked.connect(self.detailsDia)
        self.detailsbtn.setEnabled(False)
    def setupUi(self, pusedMaintenanceDialog):
        self.setWindowFlags(self.windowFlags()
                            & ~QtCore.Qt.WindowCloseButtonHint)

        pusedMaintenanceDialog.setObjectName("pusedMaintenanceDialog")
        pusedMaintenanceDialog.resize(832, 470)
        self.label = QtWidgets.QLabel(pusedMaintenanceDialog)
        self.label.setGeometry(QtCore.QRect(14, 3, 47, 20))
        self.label.setObjectName("label")
        self.loggeduser = QtWidgets.QLabel(pusedMaintenanceDialog)
        self.loggeduser.setGeometry(QtCore.QRect(65, 3, 180, 20))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.loggeduser.setFont(font)
        self.loggeduser.setText("")
        self.loggeduser.setObjectName("loggeduser")
        self.line = QtWidgets.QFrame(pusedMaintenanceDialog)
        self.line.setGeometry(QtCore.QRect(3, 28, 820, 3))
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.label_3 = QtWidgets.QLabel(pusedMaintenanceDialog)
        self.label_3.setGeometry(QtCore.QRect(14, 31, 150, 20))
        self.label_3.setObjectName("label_3")
        self.tableView = QtWidgets.QTableView(pusedMaintenanceDialog)
        self.tableView.setGeometry(QtCore.QRect(10, 50, 390, 411))
        self.tableView.setObjectName("tableView")
        self.tableView.setEditTriggers(
            QtWidgets.QAbstractItemView.NoEditTriggers)
        self.tableView.setTabKeyNavigation(False)
        self.tableView.setProperty("showDropIndicator", False)
        self.tableView.setDragDropOverwriteMode(False)
        self.tableView.setSelectionMode(
            QtWidgets.QAbstractItemView.SingleSelection)
        self.tableView.setSelectionBehavior(
            QtWidgets.QAbstractItemView.SelectRows)
        self.tableView.horizontalHeader().setCascadingSectionResizes(True)
        self.tableData = CustomerTableModel()
        self.tableView.setModel(self.tableData)
        for idx, val in enumerate(getMaintenancePused()):
            self.tableData.addCustomer(
                Customers(getMaintenancePused()[idx].customers.name,
                          getMaintenancePused()[idx].customers.mobile_number,
                          None, None, None, None,
                          getMaintenancePused()[idx].m_code, None, None))
        self.tableView.clicked.connect(self.Clicked)
        self.tableView.setColumnWidth(0, 261)
        self.tableView.setColumnWidth(1, 88)
        self.line_2 = QtWidgets.QFrame(pusedMaintenanceDialog)
        self.line_2.setGeometry(QtCore.QRect(410, 35, 3, 430))
        self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.label_4 = QtWidgets.QLabel(pusedMaintenanceDialog)
        self.label_4.setGeometry(QtCore.QRect(420, 97, 100, 13))
        self.label_4.setObjectName("label_4")
        self.label_5 = QtWidgets.QLabel(pusedMaintenanceDialog)
        self.label_5.setGeometry(QtCore.QRect(420, 126, 110, 20))
        self.label_5.setObjectName("label_5")
        self.label_6 = QtWidgets.QLabel(pusedMaintenanceDialog)
        self.label_6.setGeometry(QtCore.QRect(420, 150, 130, 20))
        self.label_6.setObjectName("label_6")
        self.label_7 = QtWidgets.QLabel(pusedMaintenanceDialog)
        self.label_7.setGeometry(QtCore.QRect(423, 34, 90, 20))
        self.label_7.setObjectName("label_7")
        self.label_8 = QtWidgets.QLabel(pusedMaintenanceDialog)
        self.label_8.setGeometry(QtCore.QRect(422, 64, 120, 20))
        self.label_8.setObjectName("label_8")
        self.maintCodelbl = QtWidgets.QLineEdit(pusedMaintenanceDialog)
        self.maintCodelbl.setEnabled(False)
        self.maintCodelbl.setGeometry(QtCore.QRect(519, 95, 120, 20))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.maintCodelbl.setFont(font)
        self.maintCodelbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.maintCodelbl.setObjectName("maintCodelbl")
        self.maintProductlbl = QtWidgets.QLineEdit(pusedMaintenanceDialog)
        self.maintProductlbl.setEnabled(False)
        self.maintProductlbl.setGeometry(QtCore.QRect(532, 127, 280, 20))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.maintProductlbl.setFont(font)
        self.maintProductlbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.maintProductlbl.setObjectName("maintProductlbl")
        self.maintDesclbl = QtWidgets.QTextBrowser(pusedMaintenanceDialog)
        self.maintDesclbl.setEnabled(False)
        self.maintDesclbl.setGeometry(QtCore.QRect(549, 157, 270, 80))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.maintDesclbl.setFont(font)
        self.maintDesclbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.maintDesclbl.setLineWidth(1)
        self.maintDesclbl.setObjectName("maintDesclbl")
        self.custNamelbl = QtWidgets.QLineEdit(pusedMaintenanceDialog)
        self.custNamelbl.setEnabled(False)
        self.custNamelbl.setGeometry(QtCore.QRect(510, 35, 280, 20))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.custNamelbl.setFont(font)
        self.custNamelbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.custNamelbl.setObjectName("custNamelbl")
        self.custMobilePhonelbl = QtWidgets.QLineEdit(pusedMaintenanceDialog)
        self.custMobilePhonelbl.setEnabled(False)
        self.custMobilePhonelbl.setGeometry(QtCore.QRect(545, 66, 240, 20))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.custMobilePhonelbl.setFont(font)
        self.custMobilePhonelbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.custMobilePhonelbl.setObjectName("custMobilePhonelbl")
        self.line_3 = QtWidgets.QFrame(pusedMaintenanceDialog)
        self.line_3.setGeometry(QtCore.QRect(416, 249, 410, 3))
        self.line_3.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_3.setObjectName("line_3")
        self.createBOMbtn = QtWidgets.QPushButton(pusedMaintenanceDialog)
        self.createBOMbtn.setGeometry(QtCore.QRect(520, 259, 80, 40))
        self.createBOMbtn.setEnabled(False)
        self.createBOMbtn.setObjectName("createBOMbtn")
        self.deletebtn = QtWidgets.QPushButton(pusedMaintenanceDialog)
        self.deletebtn.setGeometry(QtCore.QRect(630, 259, 80, 40))
        self.deletebtn.setObjectName("deletebtn")
        self.deletebtn.setEnabled(False)
        self.closebtn = QtWidgets.QPushButton(pusedMaintenanceDialog)
        self.closebtn.setGeometry(QtCore.QRect(740, 258, 80, 40))
        self.closebtn.setObjectName("closebtn")
        # maintenance data
        self.loggeduser.setText(getLoginDataPKL()['name'])
        # Buttons Action
        self.closebtn.clicked.connect(self.close)
        self.createBOMbtn.clicked.connect(self.openCreateBom)
        self.deletebtn.clicked.connect(self.do_delete)
        self.retranslateUi(pusedMaintenanceDialog)
        QtCore.QMetaObject.connectSlotsByName(pusedMaintenanceDialog)
    def setupUi(self, createNewMaintenanceForExistsCustDialog):
        self.setWindowFlags(self.windowFlags()
                            & ~QtCore.Qt.WindowCloseButtonHint)

        createNewMaintenanceForExistsCustDialog.setObjectName(
            "createNewMaintenanceForExistsCustDialog")
        createNewMaintenanceForExistsCustDialog.resize(726, 455)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(createNewMaintenanceForExistsCustDialog.
                                     sizePolicy().hasHeightForWidth())
        createNewMaintenanceForExistsCustDialog.setSizePolicy(sizePolicy)
        self.tableView = QtWidgets.QTableView(
            createNewMaintenanceForExistsCustDialog)
        self.tableView.setGeometry(QtCore.QRect(10, 50, 360, 400))
        self.tableView.setObjectName("tableView")
        self.tableView.setEditTriggers(
            QtWidgets.QAbstractItemView.NoEditTriggers)
        self.tableView.setTabKeyNavigation(False)
        self.tableView.setProperty("showDropIndicator", False)
        self.tableView.setDragDropOverwriteMode(False)
        self.tableView.setSelectionMode(
            QtWidgets.QAbstractItemView.SingleSelection)
        self.tableView.setSelectionBehavior(
            QtWidgets.QAbstractItemView.SelectRows)
        self.tableView.horizontalHeader().setCascadingSectionResizes(True)
        self.tableData = NewCustomerTableModel()
        self.tableView.setModel(self.tableData)
        self.tableView.setColumnWidth(0, 229)
        self.tableView.setColumnWidth(1, 90)
        for idx, val in enumerate(getAllcustomers()):
            self.tableData.addCustomer(
                Customers(getAllcustomers()[idx].name,
                          getAllcustomers()[idx].mobile_number, None, None,
                          None, None, None, None, None))
        self.tableView.clicked.connect(self.Clicked)
        self.line = QtWidgets.QFrame(createNewMaintenanceForExistsCustDialog)
        self.line.setGeometry(QtCore.QRect(8, 25, 710, 3))
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.label = QtWidgets.QLabel(createNewMaintenanceForExistsCustDialog)
        self.label.setGeometry(QtCore.QRect(13, 4, 50, 13))
        self.label.setObjectName("label")
        self.loggeduser = QtWidgets.QLabel(
            createNewMaintenanceForExistsCustDialog)
        self.loggeduser.setGeometry(QtCore.QRect(63, 4, 120, 13))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.loggeduser.setFont(font)
        self.loggeduser.setText("")
        self.loggeduser.setObjectName("loggeduser")
        self.loggeduser.setText(getLoginDataPKL()['name'])
        self.label_2 = QtWidgets.QLabel(
            createNewMaintenanceForExistsCustDialog)
        self.label_2.setGeometry(QtCore.QRect(10, 29, 150, 13))
        self.label_2.setObjectName("label_2")
        self.line_2 = QtWidgets.QFrame(createNewMaintenanceForExistsCustDialog)
        self.line_2.setGeometry(QtCore.QRect(374, 30, 3, 420))
        self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.label_3 = QtWidgets.QLabel(
            createNewMaintenanceForExistsCustDialog)
        self.label_3.setGeometry(QtCore.QRect(378, 26, 170, 20))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setUnderline(True)
        font.setWeight(75)
        self.label_3.setFont(font)
        self.label_3.setObjectName("label_3")
        self.label_4 = QtWidgets.QLabel(
            createNewMaintenanceForExistsCustDialog)
        self.label_4.setGeometry(QtCore.QRect(381, 96, 130, 13))
        self.label_4.setObjectName("label_4")
        self.label_12 = QtWidgets.QLabel(
            createNewMaintenanceForExistsCustDialog)
        self.label_12.setGeometry(QtCore.QRect(381, 63, 90, 13))
        self.label_12.setObjectName("label_12")
        self.customerNamelbl = QtWidgets.QLineEdit(
            createNewMaintenanceForExistsCustDialog)
        self.customerNamelbl.setEnabled(False)
        self.customerNamelbl.setGeometry(QtCore.QRect(467, 60, 250, 20))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.customerNamelbl.setFont(font)
        self.customerNamelbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.customerNamelbl.setObjectName("customerNamelbl")
        self.customerMobilelbl = QtWidgets.QLineEdit(
            createNewMaintenanceForExistsCustDialog)
        self.customerMobilelbl.setEnabled(False)
        self.customerMobilelbl.setGeometry(QtCore.QRect(503, 93, 210, 20))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.customerMobilelbl.setFont(font)
        self.customerMobilelbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.customerMobilelbl.setObjectName("customerMobilelbl")
        self.line_3 = QtWidgets.QFrame(createNewMaintenanceForExistsCustDialog)
        self.line_3.setGeometry(QtCore.QRect(379, 50, 340, 3))
        self.line_3.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_3.setObjectName("line_3")
        self.customerAgelbl = QtWidgets.QLineEdit(
            createNewMaintenanceForExistsCustDialog)
        self.customerAgelbl.setEnabled(False)
        self.customerAgelbl.setGeometry(QtCore.QRect(460, 126, 80, 20))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.customerAgelbl.setFont(font)
        self.customerAgelbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.customerAgelbl.setObjectName("customerAgelbl")
        self.label_5 = QtWidgets.QLabel(
            createNewMaintenanceForExistsCustDialog)
        self.label_5.setGeometry(QtCore.QRect(381, 129, 130, 13))
        self.label_5.setObjectName("label_5")
        self.customerCitylbl = QtWidgets.QLineEdit(
            createNewMaintenanceForExistsCustDialog)
        self.customerCitylbl.setEnabled(False)
        self.customerCitylbl.setGeometry(QtCore.QRect(628, 126, 90, 20))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.customerCitylbl.setFont(font)
        self.customerCitylbl.setStyleSheet("color: rgb(255, 0, 0);")
        self.customerCitylbl.setObjectName("customerCitylbl")
        self.label_6 = QtWidgets.QLabel(
            createNewMaintenanceForExistsCustDialog)
        self.label_6.setGeometry(QtCore.QRect(550, 129, 130, 13))
        self.label_6.setObjectName("label_6")
        self.line_4 = QtWidgets.QFrame(createNewMaintenanceForExistsCustDialog)
        self.line_4.setGeometry(QtCore.QRect(379, 157, 340, 3))
        self.line_4.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_4.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_4.setObjectName("line_4")
        self.createbtn = QtWidgets.QPushButton(
            createNewMaintenanceForExistsCustDialog)
        self.createbtn.setGeometry(QtCore.QRect(400, 170, 140, 40))
        self.createbtn.setObjectName("createbtn")
        self.closebtn = QtWidgets.QPushButton(
            createNewMaintenanceForExistsCustDialog)
        self.closebtn.setGeometry(QtCore.QRect(631, 411, 90, 40))
        self.closebtn.setObjectName("closebtn")
        self.closebtn.clicked.connect(self.close)
        self.line_5 = QtWidgets.QFrame(createNewMaintenanceForExistsCustDialog)
        self.line_5.setGeometry(QtCore.QRect(381, 397, 340, 20))
        self.line_5.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_5.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_5.setObjectName("line_5")
        self.createbtn.setEnabled(False)
        self.createbtn.clicked.connect(self.do_maint)
        self.retranslateUi(createNewMaintenanceForExistsCustDialog)
        QtCore.QMetaObject.connectSlotsByName(
            createNewMaintenanceForExistsCustDialog)