Beispiel #1
0
    def __init__(self, parent=0, *args, **kwargs):

        super(AllreportsViewWidget, self).__init__(parent=parent, *args, \
                                                                **kwargs)
        F_PeriodHolder.__init__(self, *args, **kwargs)

        self.title = F_PageTitle(_(u"All reports"))
        self.table = RapportTableWidget(parent=self, main_date=self.main_date)
        #Combobox widget
        vbox = QtGui.QVBoxLayout()

        vbox.addWidget(self.title)
        vbox.addWidget(self.periods_bar)
        vbox.addWidget(self.table)
        self.setLayout(vbox)
Beispiel #2
0
    def __init__(self, magasin, parent=0, *args, **kwargs):

        super(By_magasinViewWidget, self).__init__(parent=parent, *args, \
                                                                **kwargs)
        F_PeriodHolder.__init__(self, *args, **kwargs)

        self.setWindowTitle(_(u"By store"))

        self.title = F_PageTitle(_(u"The reports of the store: %s") %
                                                            magasin.name)
        self.table = By_magasinTableWidget(magasin, parent=self,
                                                main_date=self.main_date)

        vbox = QtGui.QVBoxLayout()
        vbox.addWidget(self.title)
        vbox.addWidget(self.periods_bar)
        vbox.addWidget(self.table)

        self.setLayout(vbox)
Beispiel #3
0
    def __init__(self, produit, parent=0, *args, **kwargs):

        super(By_produitViewWidget, self).__init__(parent=parent, *args, \
                                                                **kwargs)
        F_PeriodHolder.__init__(self, *args, **kwargs)

        self.setWindowTitle(_(u"By product"))

        self.title = F_PageTitle(_(u"The reports of the product: %s") % \
                                                        produit.libelle)
        self.table = By_produitTableWidget(produit, parent=self, \
                                           main_date=self.main_date)

        vbox = QtGui.QVBoxLayout()
        vbox.addWidget(self.title)
        vbox.addWidget(self.periods_bar)
        vbox.addWidget(self.table)

        self.setLayout(vbox)