Exemplo n.º 1
0
    def __init__(self, parent=0, *args, **kwargs):
        super(DashbordViewWidget, self).__init__(parent=parent, *args, **kwargs)

        self.setWindowTitle(_(u"Dashboard"))
        vbox = QtGui.QVBoxLayout()
        box_left = QtGui.QHBoxLayout()
        box_rigth = QtGui.QHBoxLayout()
        table_etat = QtGui.QVBoxLayout()
        table_alert = QtGui.QVBoxLayout()

        self.title = F_PageTitle(_("Dashboard"))

        self.title_alert = F_BoxTitle(_(u"Alerts"))
        self.table_alert = AlertTableWidget(parent=self)
        table_alert.addWidget(self.title_alert)
        table_alert.addWidget(self.table_alert)

        self.title_etat = F_BoxTitle(_(u"Current stocks"))
        self.table_etat = EtatTableWidget(parent=self)
        table_etat.addWidget(self.title_etat)
        table_etat.addWidget(self.table_etat)

        tab_widget = tabbox((table_etat, _(u"Status")), (table_alert, _(u"Warning")))

        vbox.addWidget(self.title)
        vbox.addWidget(tab_widget)
        self.setLayout(vbox)
Exemplo n.º 2
0
    def __init__(self, parent=0, *args, **kwargs):
        super(ReportViewWidget, self).__init__(parent=parent,
                                                        *args, **kwargs)

        self.setWindowTitle(_(u"Report"))
        vbox = QtGui.QVBoxLayout()
        box_left = QtGui.QHBoxLayout()
        box_rigth = QtGui.QHBoxLayout()
        table_etat = QtGui.QVBoxLayout()
        self.title = F_PageTitle(_("Report"))

        self.title_etat = F_BoxTitle(_(u"Report"))

        self.table_etat = EtatTableWidget(parent=self)
        vbox.addWidget(self.title)
        table_etat.addWidget(self.title_etat)
        table_etat.addWidget(self.table_etat)

        tab_widget = tabbox((table_etat, _(u"Report")))

        vbox.addWidget(tab_widget)
        self.setLayout(vbox)
Exemplo n.º 3
0
    def __init__(self, parent=0, *args, **kwargs):
        super(DashbordViewWidget, self).__init__(parent=parent,
                                                        *args, **kwargs)

        self.setWindowTitle(_(u"Dashboard"))
        vbox = QtGui.QVBoxLayout()
        box_left = QtGui.QHBoxLayout()
        box_rigth = QtGui.QHBoxLayout()
        table_etat = QtGui.QVBoxLayout()
        table_alert = QtGui.QVBoxLayout()
        tablebox_dern_op = QtGui.QVBoxLayout()

        self.title = F_PageTitle(_("Dashboard"))

        self.title_alert = F_BoxTitle(_(u"The list of products that the "
                                        u"rest is <100 cartons"))
        self.title_dern_op = F_BoxTitle(_(u"Table last operations"))

        self.title_etat = F_BoxTitle(_(u"Les stocks actual"))

        self.table_alert = Alert_TableWidget(parent=self)
        self.table_dern_op = Dern_opTableWidget(parent=self)
        self.table_etat = EtatTableWidget(parent=self)

        vbox.addWidget(self.title)
        table_etat.addWidget(self.title_etat)
        table_etat.addWidget(self.table_etat)

        table_alert.addWidget(self.title_alert)
        table_alert.addWidget(self.table_alert)

        tablebox_dern_op.addWidget(self.title_dern_op)
        tablebox_dern_op.addWidget(self.table_dern_op)
        tab_widget = tabbox((table_etat, _(u"Etat")),
                            (table_alert, _(u"Product warning")),
                            (tablebox_dern_op,  _(u"The last operations")))

        vbox.addWidget(tab_widget)
        self.setLayout(vbox)