def resetIncomeReferenceValues(self): incomesource = self.getActiveIcomeSourceCategory() activeprojectid =self.getProjectID() referencevalue = self.txtIncomeDefaultValues.text() if referencevalue == "" or activeprojectid =="": completionmessage = '''Please make sure that you have selected a project and specified a value to which model values should be set''' QMessageBox.information(None, 'Set Reference Values', completionmessage) else: myconnector = EditIncomesourcesReferenceData() myconnector.setIncomeData(incomesource,referencevalue, referencevalue,activeprojectid) self.determineIncomeToGet()
def resetSTLReferenceValues(self): activeprojectid =self.getProjectID() myconnector = EditIncomesourcesReferenceData() myconnector.resetStandardOfLivingModelData(activeprojectid) self.getProjectStandardOfLiving()
def resetDietReferenceValues(self): activeprojectid =self.getProjectID() myconnector = EditIncomesourcesReferenceData() myconnector.restDietModelData(activeprojectid) self.getProjectDiet()