Exemplo n.º 1
0
 def confirmSettle(self):
     rowIndex = self.currentIndex().row()
     tradeID = self.model().index(rowIndex, 14).data().toString()
     trd = Trade.fromDB(tradeID)
     if trd:
         trd.settle(self.user.id)
     else:
         QtGui.QMessageBox.warning(self, u'错误', u'无法从数据库读取该笔交易')
Exemplo n.º 2
0
 def confirmSettle(self):
     rowIndex = self.currentIndex().row()
     tradeID = self.model().index(rowIndex, 14).data().toString()
     trd = Trade.fromDB(tradeID)
     if trd:
         trd.settle(self.user.id)
     else:
         QtGui.QMessageBox.warning(self, u'错误', u'无法从数据库读取该笔交易')
Exemplo n.º 3
0
 def confirmExpSettle(self):
     rowIndex = self.currentIndex().row()
     tradeID = self.model().index(rowIndex, 14).data().toString()
     trd = Trade.fromDB(tradeID)
     if trd:
         if self.asOfDate != trd.maturityDate:
             QtGui.QMessageBox.warning(self, u'注意', u'当前日期与预期到期交割日不同,将按预期到期日交割')
         trd.expsettle(self.user.id)
     else:
         QtGui.QMessageBox.warning(self, u'错误', u'无法从数据库读取该笔交易')
Exemplo n.º 4
0
 def confirmExpSettle(self):
     rowIndex = self.currentIndex().row()
     tradeID = self.model().index(rowIndex, 14).data().toString()
     trd = Trade.fromDB(tradeID)
     if trd:
         if self.asOfDate != trd.maturityDate:
             QtGui.QMessageBox.warning(self, u'注意',
                                       u'当前日期与预期到期交割日不同,将按预期到期日交割')
         trd.expsettle(self.user.id)
     else:
         QtGui.QMessageBox.warning(self, u'错误', u'无法从数据库读取该笔交易')