def on_menuInvestment_action_triggered(): from xulpymoney.ui.frmInvestmentReport import frmInvestmentReport action=QObject.sender(self)#Busca el objeto que ha hecho la signal en el slot en el que está conectado investment=self.mem.data.investments.find_by_fullName(action.text()) w=frmInvestmentReport(self.mem, investment, self) w.exec_() self.load_data()
def on_actionShowInvestment_triggered(self): if self.tab.currentIndex() == 0: #Operation list investment = self.mqtw.selected.investment else: #Current operation list investment = self.mqtwCurrent.selected.investment w = frmInvestmentReport(self.mem, investment, self) w.exec_() self.load()
def on_actionExecute_triggered(self): if self.mqtwOrders.selected.investment.questionbox_inactive( ) == QMessageBox.No: #It's not active, after all. return if self.mqtwOrders.selected.executed == None: #Only adds operation if it's not executed debug(self.mqtwOrders.selected.investment) w = frmInvestmentReport(self.mem, self.mqtwOrders.selected.investment, self) w.frmInvestmentOperationsAdd_initiated.connect(self.load_OrderData) w.on_actionOperationAdd_triggered() w.exec_() if self.mqtwOrders.selected.executed == None: self.mqtwOrders.selected.executed = self.mem.localzone.now( ) #Set execution else: self.mqtwOrders.selected.executed = None #Remove execution self.mqtwOrders.selected.save() self.mem.con.commit() self.on_cmbMode_currentIndexChanged(self.cmbMode.currentIndex())
def on_actionInvestmentReport_triggered(self): w = frmInvestmentReport(self.mem, self.investments.selected) w.exec_() self.investments.mqtw_active(self.mqtwInvestments)
def on_actionInvestmentReport_triggered(self): w = frmInvestmentReport(self.mem, self.mqtwInvestments.selected, self) w.exec_() self.on_chkInactivas_stateChanged(self.chkInactivas.checkState())
def on_actionInvestmentAdd_triggered(self): w = frmInvestmentReport(self.mem, None, self) w.exec_() self.on_chkInactivas_stateChanged(self.chkInactivas.checkState())
def on_actionSameProductFIFO_triggered(self): inv = self.mem.data.investments.Investment_merging_operations_with_same_product( self.mqtwInvestments.selected.product) w = frmInvestmentReport(self.mem, inv, self) w.exec_() self.on_chkInactivas_stateChanged(self.chkInactivas.checkState())
def on_actionInvestmentReport_triggered(self): w = frmInvestmentReport(self.mem, self.mqtwInvestments.selected, self) w.exec_() self.mqtwInvestments_reload()
def on_actionSameProductFIFO_triggered(self): inv = self.mem.data.investments.Investment_merging_operations_with_same_product( self.mqtwOperations.selected.product) w = frmInvestmentReport(self.mem, inv, self) w.exec_()
def on_actionInvestmentMergingCurrent_triggered(self): from xulpymoney.ui.frmInvestmentReport import frmInvestmentReport w=frmInvestmentReport(self.mem, self.investment_merged, self) w.exec_() self.load_data()