Пример #1
0
class Ui_FrmLiquidacion(object):
    def setupUi(self, FrmLiquidacion):
        FrmLiquidacion.setObjectName(_fromUtf8("FrmLiquidacion"))
        FrmLiquidacion.resize(885, 644)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            FrmLiquidacion.sizePolicy().hasHeightForWidth())
        FrmLiquidacion.setSizePolicy(sizePolicy)
        FrmLiquidacion.setDockNestingEnabled(True)
        self.centralwidget = QtGui.QWidget(FrmLiquidacion)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setTabPosition(QtGui.QTabWidget.West)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tabdetails = QtGui.QWidget()
        self.tabdetails.setObjectName(_fromUtf8("tabdetails"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.tabdetails)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.groupBox_3 = QtGui.QGroupBox(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox_3.sizePolicy().hasHeightForWidth())
        self.groupBox_3.setSizePolicy(sizePolicy)
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.groupBox_3)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label_2 = QtGui.QLabel(self.groupBox_3)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
        self.txtPolicy = QtGui.QLineEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.txtPolicy.sizePolicy().hasHeightForWidth())
        self.txtPolicy.setSizePolicy(sizePolicy)
        self.txtPolicy.setMaximumSize(QtCore.QSize(200, 16777215))
        self.txtPolicy.setReadOnly(True)
        self.txtPolicy.setObjectName(_fromUtf8("txtPolicy"))
        self.gridLayout.addWidget(self.txtPolicy, 0, 1, 1, 3)
        self.label_3 = QtGui.QLabel(self.groupBox_3)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 1, 0, 1, 1)
        self.swProvider = QtGui.QStackedWidget(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.swProvider.sizePolicy().hasHeightForWidth())
        self.swProvider.setSizePolicy(sizePolicy)
        self.swProvider.setMaximumSize(QtCore.QSize(200, 16777215))
        self.swProvider.setObjectName(_fromUtf8("swProvider"))
        self.page = QtGui.QWidget()
        self.page.setObjectName(_fromUtf8("page"))
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.page)
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.txtProvider = QtGui.QLineEdit(self.page)
        self.txtProvider.setReadOnly(True)
        self.txtProvider.setObjectName(_fromUtf8("txtProvider"))
        self.horizontalLayout_5.addWidget(self.txtProvider)
        self.swProvider.addWidget(self.page)
        self.page_2 = QtGui.QWidget()
        self.page_2.setObjectName(_fromUtf8("page_2"))
        self.horizontalLayout_6 = QtGui.QHBoxLayout(self.page_2)
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.cbProvider = QtGui.QComboBox(self.page_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cbProvider.sizePolicy().hasHeightForWidth())
        self.cbProvider.setSizePolicy(sizePolicy)
        self.cbProvider.setEditable(True)
        self.cbProvider.setObjectName(_fromUtf8("cbProvider"))
        self.horizontalLayout_6.addWidget(self.cbProvider)
        self.swProvider.addWidget(self.page_2)
        self.gridLayout.addWidget(self.swProvider, 1, 1, 1, 3)
        self.label_4 = QtGui.QLabel(self.groupBox_3)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout.addWidget(self.label_4, 2, 0, 1, 1)
        self.dtPicker = QtGui.QDateEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dtPicker.sizePolicy().hasHeightForWidth())
        self.dtPicker.setSizePolicy(sizePolicy)
        self.dtPicker.setCalendarPopup(True)
        self.dtPicker.setObjectName(_fromUtf8("dtPicker"))
        self.gridLayout.addWidget(self.dtPicker, 2, 1, 1, 1)
        self.label_10 = QtGui.QLabel(self.groupBox_3)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.gridLayout.addWidget(self.label_10, 2, 2, 1, 1)
        self.txtExchangeRate = QtGui.QLineEdit(self.groupBox_3)
        self.txtExchangeRate.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.txtExchangeRate.sizePolicy().hasHeightForWidth())
        self.txtExchangeRate.setSizePolicy(sizePolicy)
        self.txtExchangeRate.setMaximumSize(QtCore.QSize(83, 16777215))
        self.txtExchangeRate.setReadOnly(True)
        self.txtExchangeRate.setObjectName(_fromUtf8("txtExchangeRate"))
        self.gridLayout.addWidget(self.txtExchangeRate, 2, 3, 1, 1)
        self.label_11 = QtGui.QLabel(self.groupBox_3)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.gridLayout.addWidget(self.label_11, 3, 0, 1, 1)
        self.txtSource = QtGui.QLineEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.txtSource.sizePolicy().hasHeightForWidth())
        self.txtSource.setSizePolicy(sizePolicy)
        self.txtSource.setMaximumSize(QtCore.QSize(200, 16777215))
        self.txtSource.setReadOnly(True)
        self.txtSource.setObjectName(_fromUtf8("txtSource"))
        self.gridLayout.addWidget(self.txtSource, 3, 1, 1, 3)
        self.label_5 = QtGui.QLabel(self.groupBox_3)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout.addWidget(self.label_5, 4, 0, 1, 1)
        self.swWarehouse = QtGui.QStackedWidget(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.swWarehouse.sizePolicy().hasHeightForWidth())
        self.swWarehouse.setSizePolicy(sizePolicy)
        self.swWarehouse.setMaximumSize(QtCore.QSize(200, 16777215))
        self.swWarehouse.setObjectName(_fromUtf8("swWarehouse"))
        self.page_3 = QtGui.QWidget()
        self.page_3.setObjectName(_fromUtf8("page_3"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.page_3)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.cbWarehouse = QtGui.QComboBox(self.page_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cbWarehouse.sizePolicy().hasHeightForWidth())
        self.cbWarehouse.setSizePolicy(sizePolicy)
        self.cbWarehouse.setEditable(True)
        self.cbWarehouse.setObjectName(_fromUtf8("cbWarehouse"))
        self.verticalLayout_6.addWidget(self.cbWarehouse)
        self.swWarehouse.addWidget(self.page_3)
        self.page_4 = QtGui.QWidget()
        self.page_4.setObjectName(_fromUtf8("page_4"))
        self.horizontalLayout_7 = QtGui.QHBoxLayout(self.page_4)
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.txtWarehouse = QtGui.QLineEdit(self.page_4)
        self.txtWarehouse.setReadOnly(True)
        self.txtWarehouse.setObjectName(_fromUtf8("txtWarehouse"))
        self.horizontalLayout_7.addWidget(self.txtWarehouse)
        self.swWarehouse.addWidget(self.page_4)
        self.gridLayout.addWidget(self.swWarehouse, 4, 1, 1, 3)
        self.horizontalLayout_2.addLayout(self.gridLayout)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.formLayout_2 = QtGui.QFormLayout()
        self.formLayout_2.setSizeConstraint(QtGui.QLayout.SetMinAndMaxSize)
        self.formLayout_2.setFieldGrowthPolicy(
            QtGui.QFormLayout.FieldsStayAtSizeHint)
        self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
        self.label_6 = QtGui.QLabel(self.groupBox_3)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_6)
        self.sbAgency = QtGui.QDoubleSpinBox(self.groupBox_3)
        self.sbAgency.setMinimumSize(QtCore.QSize(157, 0))
        self.sbAgency.setMaximum(999999999.0)
        self.sbAgency.setObjectName(_fromUtf8("sbAgency"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.sbAgency)
        self.label_7 = QtGui.QLabel(self.groupBox_3)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_7)
        self.sbStore = QtGui.QDoubleSpinBox(self.groupBox_3)
        self.sbStore.setMinimumSize(QtCore.QSize(157, 0))
        self.sbStore.setMaximum(999999999.0)
        self.sbStore.setObjectName(_fromUtf8("sbStore"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.sbStore)
        self.label_8 = QtGui.QLabel(self.groupBox_3)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.label_8)
        self.sbPaperWork = QtGui.QDoubleSpinBox(self.groupBox_3)
        self.sbPaperWork.setMinimumSize(QtCore.QSize(157, 0))
        self.sbPaperWork.setMaximum(100.0)
        self.sbPaperWork.setObjectName(_fromUtf8("sbPaperWork"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.sbPaperWork)
        self.label_9 = QtGui.QLabel(self.groupBox_3)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.LabelRole,
                                    self.label_9)
        self.sbTransportation = QtGui.QDoubleSpinBox(self.groupBox_3)
        self.sbTransportation.setMinimumSize(QtCore.QSize(157, 0))
        self.sbTransportation.setMaximum(100.0)
        self.sbTransportation.setObjectName(_fromUtf8("sbTransportation"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.FieldRole,
                                    self.sbTransportation)
        self.gridLayout_2.addLayout(self.formLayout_2, 0, 0, 1, 2)
        self.ckISO = QtGui.QCheckBox(self.groupBox_3)
        self.ckISO.setEnabled(False)
        self.ckISO.setObjectName(_fromUtf8("ckISO"))
        self.gridLayout_2.addWidget(self.ckISO, 1, 0, 1, 1)
        self.ckTaxes = QtGui.QCheckBox(self.groupBox_3)
        self.ckTaxes.setEnabled(False)
        self.ckTaxes.setObjectName(_fromUtf8("ckTaxes"))
        self.gridLayout_2.addWidget(self.ckTaxes, 1, 1, 1, 1)
        self.horizontalLayout_2.addLayout(self.gridLayout_2)
        self.horizontalLayout_3.addWidget(self.groupBox_3)
        self.groupBox_2 = QtGui.QGroupBox(self.tabdetails)
        self.groupBox_2.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox_2.sizePolicy().hasHeightForWidth())
        self.groupBox_2.setSizePolicy(sizePolicy)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.formLayout = QtGui.QFormLayout(self.groupBox_2)
        self.formLayout.setSizeConstraint(QtGui.QLayout.SetMinAndMaxSize)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label_12 = QtGui.QLabel(self.groupBox_2)
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole,
                                  self.label_12)
        self.label_13 = QtGui.QLabel(self.groupBox_2)
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole,
                                  self.label_13)
        self.label_14 = QtGui.QLabel(self.groupBox_2)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole,
                                  self.label_14)
        self.label_15 = QtGui.QLabel(self.groupBox_2)
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole,
                                  self.label_15)
        self.sbWeight = QtGui.QDoubleSpinBox(self.groupBox_2)
        self.sbWeight.setMinimumSize(QtCore.QSize(157, 0))
        self.sbWeight.setMaximum(999999999.0)
        self.sbWeight.setObjectName(_fromUtf8("sbWeight"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole,
                                  self.sbWeight)
        self.sbFreight = QtGui.QDoubleSpinBox(self.groupBox_2)
        self.sbFreight.setMinimumSize(QtCore.QSize(157, 0))
        self.sbFreight.setMaximum(999999999.0)
        self.sbFreight.setObjectName(_fromUtf8("sbFreight"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
                                  self.sbFreight)
        self.sbInsurance = QtGui.QDoubleSpinBox(self.groupBox_2)
        self.sbInsurance.setMinimumSize(QtCore.QSize(157, 0))
        self.sbInsurance.setMaximum(999999999.0)
        self.sbInsurance.setObjectName(_fromUtf8("sbInsurance"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
                                  self.sbInsurance)
        self.sbOther = QtGui.QDoubleSpinBox(self.groupBox_2)
        self.sbOther.setMinimumSize(QtCore.QSize(157, 0))
        self.sbOther.setMaximum(999999999.0)
        self.sbOther.setObjectName(_fromUtf8("sbOther"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.sbOther)
        self.horizontalLayout_3.addWidget(self.groupBox_2)
        self.verticalLayout_5.addLayout(self.horizontalLayout_3)
        self.tabledetails = OrderedEditTable(self.tabdetails)
        self.tabledetails.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
        self.tabledetails.setEditTriggers(
            QtGui.QAbstractItemView.NoEditTriggers)
        self.tabledetails.setAlternatingRowColors(True)
        self.tabledetails.setObjectName(_fromUtf8("tabledetails"))
        self.tabledetails.verticalHeader().setVisible(False)
        self.verticalLayout_5.addWidget(self.tabledetails)
        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/icons/res/document-edit.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tabdetails, icon, _fromUtf8(""))
        self.tabnavigation = QtGui.QWidget()
        self.tabnavigation.setObjectName(_fromUtf8("tabnavigation"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.tabnavigation)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.tablenavigation = QtGui.QTableView(self.tabnavigation)
        self.tablenavigation.setEditTriggers(
            QtGui.QAbstractItemView.NoEditTriggers)
        self.tablenavigation.setAlternatingRowColors(True)
        self.tablenavigation.setSelectionMode(
            QtGui.QAbstractItemView.SingleSelection)
        self.tablenavigation.setSelectionBehavior(
            QtGui.QAbstractItemView.SelectRows)
        self.tablenavigation.setObjectName(_fromUtf8("tablenavigation"))
        self.tablenavigation.horizontalHeader().setStretchLastSection(True)
        self.tablenavigation.verticalHeader().setVisible(False)
        self.verticalLayout_2.addWidget(self.tablenavigation)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label = QtGui.QLabel(self.tabnavigation)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout.addWidget(self.label)
        self.txtSearch = QtGui.QLineEdit(self.tabnavigation)
        self.txtSearch.setObjectName(_fromUtf8("txtSearch"))
        self.horizontalLayout.addWidget(self.txtSearch)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/res/table.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tabnavigation, icon1, _fromUtf8(""))
        self.verticalLayout.addWidget(self.tabWidget)
        FrmLiquidacion.setCentralWidget(self.centralwidget)
        self.toolBar = QtGui.QToolBar(FrmLiquidacion)
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        FrmLiquidacion.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.xdockWidget = QtGui.QDockWidget(FrmLiquidacion)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.xdockWidget.sizePolicy().hasHeightForWidth())
        self.xdockWidget.setSizePolicy(sizePolicy)
        self.xdockWidget.setFeatures(QtGui.QDockWidget.AllDockWidgetFeatures)
        self.xdockWidget.setAllowedAreas(QtCore.Qt.BottomDockWidgetArea
                                         | QtCore.Qt.TopDockWidgetArea)
        self.xdockWidget.setObjectName(_fromUtf8("xdockWidget"))
        self.dockWidgetContents = QtGui.QWidget()
        self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.dockWidgetContents)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.tabTotalsAccounts = QtGui.QTabWidget(self.dockWidgetContents)
        self.tabTotalsAccounts.setMinimumSize(QtCore.QSize(0, 200))
        self.tabTotalsAccounts.setObjectName(_fromUtf8("tabTotalsAccounts"))
        self.tabaccounts = QtGui.QWidget()
        self.tabaccounts.setObjectName(_fromUtf8("tabaccounts"))
        self.verticalLayout_8 = QtGui.QVBoxLayout(self.tabaccounts)
        self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8"))
        self.tableaccounts = QtGui.QTableView(self.tabaccounts)
        self.tableaccounts.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
        self.tableaccounts.setAlternatingRowColors(True)
        self.tableaccounts.setObjectName(_fromUtf8("tableaccounts"))
        self.tableaccounts.horizontalHeader().setStretchLastSection(True)
        self.tableaccounts.verticalHeader().setVisible(False)
        self.verticalLayout_8.addWidget(self.tableaccounts)
        self.tabTotalsAccounts.addTab(self.tabaccounts, _fromUtf8(""))
        self.tabtotals = QtGui.QWidget()
        self.tabtotals.setObjectName(_fromUtf8("tabtotals"))
        self.verticalLayout_7 = QtGui.QVBoxLayout(self.tabtotals)
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.tabletotals = QtGui.QTableView(self.tabtotals)
        self.tabletotals.setObjectName(_fromUtf8("tabletotals"))
        self.tabletotals.horizontalHeader().setStretchLastSection(True)
        self.tabletotals.verticalHeader().setVisible(False)
        self.verticalLayout_7.addWidget(self.tabletotals)
        self.tabTotalsAccounts.addTab(self.tabtotals, _fromUtf8(""))
        self.verticalLayout_3.addWidget(self.tabTotalsAccounts)
        self.xdockWidget.setWidget(self.dockWidgetContents)
        FrmLiquidacion.addDockWidget(QtCore.Qt.DockWidgetArea(8),
                                     self.xdockWidget)
        self.label_2.setBuddy(self.txtPolicy)
        self.label_4.setBuddy(self.dtPicker)
        self.label_10.setBuddy(self.txtExchangeRate)
        self.label_11.setBuddy(self.txtSource)
        self.label_6.setBuddy(self.sbAgency)
        self.label_7.setBuddy(self.sbStore)
        self.label_8.setBuddy(self.sbPaperWork)
        self.label_9.setBuddy(self.sbTransportation)
        self.label_12.setBuddy(self.sbWeight)
        self.label_13.setBuddy(self.sbFreight)
        self.label_14.setBuddy(self.sbInsurance)
        self.label_15.setBuddy(self.sbOther)
        self.label.setBuddy(self.txtSearch)

        self.retranslateUi(FrmLiquidacion)
        self.tabWidget.setCurrentIndex(1)
        self.swProvider.setCurrentIndex(0)
        self.swWarehouse.setCurrentIndex(1)
        self.tabTotalsAccounts.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(FrmLiquidacion)
        FrmLiquidacion.setTabOrder(self.txtPolicy, self.cbProvider)
        FrmLiquidacion.setTabOrder(self.cbProvider, self.dtPicker)
        FrmLiquidacion.setTabOrder(self.dtPicker, self.txtSource)
        FrmLiquidacion.setTabOrder(self.txtSource, self.cbWarehouse)
        FrmLiquidacion.setTabOrder(self.cbWarehouse, self.sbAgency)
        FrmLiquidacion.setTabOrder(self.sbAgency, self.sbStore)
        FrmLiquidacion.setTabOrder(self.sbStore, self.sbPaperWork)
        FrmLiquidacion.setTabOrder(self.sbPaperWork, self.sbTransportation)
        FrmLiquidacion.setTabOrder(self.sbTransportation, self.ckISO)
        FrmLiquidacion.setTabOrder(self.ckISO, self.ckTaxes)
        FrmLiquidacion.setTabOrder(self.ckTaxes, self.sbWeight)
        FrmLiquidacion.setTabOrder(self.sbWeight, self.sbFreight)
        FrmLiquidacion.setTabOrder(self.sbFreight, self.sbInsurance)
        FrmLiquidacion.setTabOrder(self.sbInsurance, self.sbOther)
        FrmLiquidacion.setTabOrder(self.sbOther, self.tabledetails)
        FrmLiquidacion.setTabOrder(self.tabledetails, self.tabletotals)
        FrmLiquidacion.setTabOrder(self.tabletotals, self.tableaccounts)
        FrmLiquidacion.setTabOrder(self.tableaccounts, self.txtProvider)
        FrmLiquidacion.setTabOrder(self.txtProvider, self.txtWarehouse)
        FrmLiquidacion.setTabOrder(self.txtWarehouse, self.txtExchangeRate)
        FrmLiquidacion.setTabOrder(self.txtExchangeRate, self.tablenavigation)
        FrmLiquidacion.setTabOrder(self.tablenavigation, self.txtSearch)
        FrmLiquidacion.setTabOrder(self.txtSearch, self.tabTotalsAccounts)
        FrmLiquidacion.setTabOrder(self.tabTotalsAccounts, self.tabWidget)

    def retranslateUi(self, FrmLiquidacion):
        FrmLiquidacion.setWindowTitle(
            QtGui.QApplication.translate("FrmLiquidacion", "Liquidación", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.groupBox_3.setTitle(
            QtGui.QApplication.translate("FrmLiquidacion",
                                         "Datos de declaración", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(
            QtGui.QApplication.translate("FrmLiquidacion", "No. Poliza", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(
            QtGui.QApplication.translate("FrmLiquidacion", "Proveedor", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(
            QtGui.QApplication.translate("FrmLiquidacion", "Fecha Poliza",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.label_10.setText(
            QtGui.QApplication.translate("FrmLiquidacion", "TC", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_11.setText(
            QtGui.QApplication.translate("FrmLiquidacion", "Procedencia", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(
            QtGui.QApplication.translate("FrmLiquidacion", "Bodega", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_6.setText(
            QtGui.QApplication.translate("FrmLiquidacion", "Agencia", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.sbAgency.setPrefix(
            QtGui.QApplication.translate("FrmLiquidacion", "C$ ", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_7.setText(
            QtGui.QApplication.translate("FrmLiquidacion", "Almacen", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.sbStore.setPrefix(
            QtGui.QApplication.translate("FrmLiquidacion", "C$ ", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_8.setText(
            QtGui.QApplication.translate("FrmLiquidacion", "Papeleria", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.sbPaperWork.setSuffix(
            QtGui.QApplication.translate("FrmLiquidacion", " %", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_9.setText(
            QtGui.QApplication.translate("FrmLiquidacion", "Transporte", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.sbTransportation.setSuffix(
            QtGui.QApplication.translate("FrmLiquidacion", " %", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ckISO.setText(
            QtGui.QApplication.translate("FrmLiquidacion", "Aplicar ISO", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.ckTaxes.setText(
            QtGui.QApplication.translate("FrmLiquidacion", "Exonerar", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.groupBox_2.setTitle(
            QtGui.QApplication.translate("FrmLiquidacion",
                                         "Totales de declaración", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_12.setText(
            QtGui.QApplication.translate("FrmLiquidacion", "Peso", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_13.setText(
            QtGui.QApplication.translate("FrmLiquidacion", "Flete ", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_14.setText(
            QtGui.QApplication.translate("FrmLiquidacion", "Seguro", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_15.setText(
            QtGui.QApplication.translate("FrmLiquidacion", "Otros Gastos",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.sbWeight.setSuffix(
            QtGui.QApplication.translate("FrmLiquidacion", " Kg", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.sbFreight.setPrefix(
            QtGui.QApplication.translate("FrmLiquidacion", "US$ ", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.sbInsurance.setPrefix(
            QtGui.QApplication.translate("FrmLiquidacion", "US$ ", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.sbOther.setPrefix(
            QtGui.QApplication.translate("FrmLiquidacion", "US$ ", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label.setText(
            QtGui.QApplication.translate("FrmLiquidacion", "&Buscar", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.toolBar.setWindowTitle(
            QtGui.QApplication.translate("FrmLiquidacion", "toolBar", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.xdockWidget.setWindowTitle(
            QtGui.QApplication.translate("FrmLiquidacion", "Detalles", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.tabTotalsAccounts.setTabText(
            self.tabTotalsAccounts.indexOf(self.tabaccounts),
            QtGui.QApplication.translate("FrmLiquidacion",
                                         "Movimientos Contables", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.tabTotalsAccounts.setTabText(
            self.tabTotalsAccounts.indexOf(self.tabtotals),
            QtGui.QApplication.translate("FrmLiquidacion", "Totales", None,
                                         QtGui.QApplication.UnicodeUTF8))
Пример #2
0
class Ui_frmEntradaCompra(object):
    def setupUi(self, frmEntradaCompra):
        frmEntradaCompra.setObjectName(_fromUtf8("frmEntradaCompra"))
        frmEntradaCompra.resize(828, 600)
        frmEntradaCompra.setStyleSheet(_fromUtf8(""))
        self.centralwidget = QtGui.QWidget(frmEntradaCompra)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setTabPosition(QtGui.QTabWidget.West)
        self.tabWidget.setTabShape(QtGui.QTabWidget.Rounded)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tabdetails = QtGui.QWidget()
        self.tabdetails.setObjectName(_fromUtf8("tabdetails"))
        self.gridLayout_2 = QtGui.QGridLayout(self.tabdetails)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.label_2 = QtGui.QLabel(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setScaledContents(False)
        self.label_2.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft
                                  | QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout_2.addWidget(self.label_2, 0, 0, 1, 1)
        self.txtDocumentNumber = QtGui.QLineEdit(self.tabdetails)
        self.txtDocumentNumber.setEnabled(True)
        self.txtDocumentNumber.setReadOnly(True)
        self.txtDocumentNumber.setObjectName(_fromUtf8("txtDocumentNumber"))
        self.gridLayout_2.addWidget(self.txtDocumentNumber, 0, 1, 1, 1)
        self.label = QtGui.QLabel(self.tabdetails)
        self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing
                                | QtCore.Qt.AlignVCenter)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout_2.addWidget(self.label, 0, 5, 1, 1)
        self.dtPicker = QtGui.QDateTimeEdit(self.tabdetails)
        self.dtPicker.setEnabled(True)
        self.dtPicker.setReadOnly(True)
        self.dtPicker.setCalendarPopup(True)
        self.dtPicker.setObjectName(_fromUtf8("dtPicker"))
        self.gridLayout_2.addWidget(self.dtPicker, 0, 6, 1, 1)
        self.tabledetails = OrderedEditTable(self.tabdetails)
        self.tabledetails.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabledetails.sizePolicy().hasHeightForWidth())
        self.tabledetails.setSizePolicy(sizePolicy)
        self.tabledetails.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
        self.tabledetails.setEditTriggers(
            QtGui.QAbstractItemView.NoEditTriggers)
        self.tabledetails.setAlternatingRowColors(True)
        self.tabledetails.setSortingEnabled(True)
        self.tabledetails.setObjectName(_fromUtf8("tabledetails"))
        self.tabledetails.horizontalHeader().setStretchLastSection(True)
        self.tabledetails.verticalHeader().setVisible(False)
        self.gridLayout_2.addWidget(self.tabledetails, 2, 0, 1, 7)
        self.groupBox_2 = QtGui.QGroupBox(self.tabdetails)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.gridLayout_3 = QtGui.QGridLayout(self.groupBox_2)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.txtObservations = QtGui.QPlainTextEdit(self.groupBox_2)
        self.txtObservations.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.txtObservations.sizePolicy().hasHeightForWidth())
        self.txtObservations.setSizePolicy(sizePolicy)
        self.txtObservations.setReadOnly(True)
        self.txtObservations.setObjectName(_fromUtf8("txtObservations"))
        self.gridLayout_3.addWidget(self.txtObservations, 0, 0, 1, 1)
        self.gridLayout_2.addWidget(self.groupBox_2, 3, 0, 1, 5)
        self.groupBox = QtGui.QGroupBox(self.tabdetails)
        self.groupBox.setTitle(_fromUtf8(""))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.formLayout_2 = QtGui.QFormLayout(self.groupBox)
        self.formLayout_2.setFieldGrowthPolicy(
            QtGui.QFormLayout.ExpandingFieldsGrow)
        self.formLayout_2.setFormAlignment(QtCore.Qt.AlignCenter)
        self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
        self.label_6 = QtGui.QLabel(self.groupBox)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setWeight(75)
        font.setBold(True)
        self.label_6.setFont(font)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_6)
        self.lblSubtotal = QtGui.QLabel(self.groupBox)
        self.lblSubtotal.setObjectName(_fromUtf8("lblSubtotal"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.lblSubtotal)
        self.label_8 = QtGui.QLabel(self.groupBox)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setWeight(75)
        font.setBold(True)
        self.label_8.setFont(font)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_8)
        self.lblIVA = QtGui.QLabel(self.groupBox)
        self.lblIVA.setObjectName(_fromUtf8("lblIVA"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.lblIVA)
        self.label_11 = QtGui.QLabel(self.groupBox)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setWeight(75)
        font.setBold(True)
        self.label_11.setFont(font)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.label_11)
        self.lblTotal = QtGui.QLabel(self.groupBox)
        self.lblTotal.setObjectName(_fromUtf8("lblTotal"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.lblTotal)
        self.label_5 = QtGui.QLabel(self.groupBox)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setWeight(75)
        font.setBold(True)
        self.label_5.setFont(font)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.LabelRole,
                                    self.label_5)
        self.lblTotalD = QtGui.QLabel(self.groupBox)
        self.lblTotalD.setObjectName(_fromUtf8("lblTotalD"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.FieldRole,
                                    self.lblTotalD)
        self.gridLayout_2.addWidget(self.groupBox, 3, 5, 1, 2)
        self.gbRadios = QtGui.QGroupBox(self.tabdetails)
        self.gbRadios.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.gbRadios.sizePolicy().hasHeightForWidth())
        self.gbRadios.setSizePolicy(sizePolicy)
        self.gbRadios.setFlat(False)
        self.gbRadios.setCheckable(False)
        self.gbRadios.setObjectName(_fromUtf8("gbRadios"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.gbRadios)
        self.horizontalLayout_3.setSizeConstraint(QtGui.QLayout.SetMinimumSize)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.rbCash = QtGui.QRadioButton(self.gbRadios)
        self.rbCash.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.rbCash.sizePolicy().hasHeightForWidth())
        self.rbCash.setSizePolicy(sizePolicy)
        self.rbCash.setChecked(True)
        self.rbCash.setObjectName(_fromUtf8("rbCash"))
        self.horizontalLayout_3.addWidget(self.rbCash)
        self.rbCredit = QtGui.QRadioButton(self.gbRadios)
        self.rbCredit.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.rbCredit.sizePolicy().hasHeightForWidth())
        self.rbCredit.setSizePolicy(sizePolicy)
        self.rbCredit.setObjectName(_fromUtf8("rbCredit"))
        self.horizontalLayout_3.addWidget(self.rbCredit)
        self.rbCheck = QtGui.QRadioButton(self.gbRadios)
        self.rbCheck.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.rbCheck.sizePolicy().hasHeightForWidth())
        self.rbCheck.setSizePolicy(sizePolicy)
        self.rbCheck.setObjectName(_fromUtf8("rbCheck"))
        self.horizontalLayout_3.addWidget(self.rbCheck)
        self.gridLayout_2.addWidget(self.gbRadios, 1, 5, 1, 2)
        self.label_3 = QtGui.QLabel(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft
                                  | QtCore.Qt.AlignVCenter)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_2.addWidget(self.label_3, 1, 0, 1, 1)
        self.swProvider = QtGui.QStackedWidget(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.swProvider.sizePolicy().hasHeightForWidth())
        self.swProvider.setSizePolicy(sizePolicy)
        self.swProvider.setObjectName(_fromUtf8("swProvider"))
        self.page = QtGui.QWidget()
        self.page.setObjectName(_fromUtf8("page"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.page)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.cbProvider = QtGui.QComboBox(self.page)
        self.cbProvider.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cbProvider.sizePolicy().hasHeightForWidth())
        self.cbProvider.setSizePolicy(sizePolicy)
        self.cbProvider.setEditable(True)
        self.cbProvider.setObjectName(_fromUtf8("cbProvider"))
        self.horizontalLayout_2.addWidget(self.cbProvider)
        self.swProvider.addWidget(self.page)
        self.page_2 = QtGui.QWidget()
        self.page_2.setObjectName(_fromUtf8("page_2"))
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.page_2)
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.txtProvider = QtGui.QLineEdit(self.page_2)
        self.txtProvider.setEnabled(True)
        self.txtProvider.setReadOnly(True)
        self.txtProvider.setObjectName(_fromUtf8("txtProvider"))
        self.horizontalLayout_5.addWidget(self.txtProvider)
        self.swProvider.addWidget(self.page_2)
        self.gridLayout_2.addWidget(self.swProvider, 1, 1, 1, 1)
        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/icons/res/document-edit.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tabdetails, icon, _fromUtf8(""))
        self.tabnavigation = QtGui.QWidget()
        self.tabnavigation.setObjectName(_fromUtf8("tabnavigation"))
        self.verticalLayout = QtGui.QVBoxLayout(self.tabnavigation)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.tablenavigation = QtGui.QTableView(self.tabnavigation)
        self.tablenavigation.setAlternatingRowColors(True)
        self.tablenavigation.setSelectionMode(
            QtGui.QAbstractItemView.SingleSelection)
        self.tablenavigation.setSelectionBehavior(
            QtGui.QAbstractItemView.SelectRows)
        self.tablenavigation.setObjectName(_fromUtf8("tablenavigation"))
        self.tablenavigation.horizontalHeader().setStretchLastSection(True)
        self.tablenavigation.verticalHeader().setVisible(False)
        self.verticalLayout.addWidget(self.tablenavigation)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label_4 = QtGui.QLabel(self.tabnavigation)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.horizontalLayout.addWidget(self.label_4)
        self.txtSearch = QtGui.QLineEdit(self.tabnavigation)
        self.txtSearch.setObjectName(_fromUtf8("txtSearch"))
        self.horizontalLayout.addWidget(self.txtSearch)
        self.verticalLayout.addLayout(self.horizontalLayout)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/res/table.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tabnavigation, icon1, _fromUtf8(""))
        self.gridLayout.addWidget(self.tabWidget, 1, 0, 1, 1)
        frmEntradaCompra.setCentralWidget(self.centralwidget)
        self.toolBar = QtGui.QToolBar(frmEntradaCompra)
        self.toolBar.setAllowedAreas(QtCore.Qt.AllToolBarAreas)
        self.toolBar.setToolButtonStyle(QtCore.Qt.ToolButtonIconOnly)
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        frmEntradaCompra.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.label_2.setBuddy(self.txtDocumentNumber)
        self.label.setBuddy(self.dtPicker)
        self.label_3.setBuddy(self.txtProvider)
        self.label_4.setBuddy(self.txtSearch)

        self.retranslateUi(frmEntradaCompra)
        self.tabWidget.setCurrentIndex(1)
        self.swProvider.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(frmEntradaCompra)
        frmEntradaCompra.setTabOrder(self.txtDocumentNumber, self.txtProvider)
        frmEntradaCompra.setTabOrder(self.txtProvider, self.dtPicker)
        frmEntradaCompra.setTabOrder(self.dtPicker, self.tabledetails)
        frmEntradaCompra.setTabOrder(self.tabledetails, self.txtObservations)
        frmEntradaCompra.setTabOrder(self.txtObservations, self.tabWidget)
        frmEntradaCompra.setTabOrder(self.tabWidget, self.cbProvider)
        frmEntradaCompra.setTabOrder(self.cbProvider, self.tablenavigation)
        frmEntradaCompra.setTabOrder(self.tablenavigation, self.txtSearch)

    def retranslateUi(self, frmEntradaCompra):
        frmEntradaCompra.setWindowTitle(
            QtGui.QApplication.translate("frmEntradaCompra", "Entrada Compra",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(
            QtGui.QApplication.translate(
                "frmEntradaCompra",
                "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
                "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
                "p, li { white-space: pre-wrap; }\n"
                "</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
                "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\"># Compra:</span></p></body></html>",
                None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(
            QtGui.QApplication.translate(
                "frmEntradaCompra",
                "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
                "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
                "p, li { white-space: pre-wrap; }\n"
                "</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
                "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Fecha:</span></p></body></html>",
                None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_2.setTitle(
            QtGui.QApplication.translate("frmEntradaCompra", "Observaciones",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.label_6.setText(
            QtGui.QApplication.translate("frmEntradaCompra", "Subtotal: ",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.lblSubtotal.setText(
            QtGui.QApplication.translate("frmEntradaCompra", "0.00", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_8.setText(
            QtGui.QApplication.translate("frmEntradaCompra", "IVA: ", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.lblIVA.setText(
            QtGui.QApplication.translate("frmEntradaCompra", "0.00", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_11.setText(
            QtGui.QApplication.translate("frmEntradaCompra", "Total C$: ",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.lblTotal.setText(
            QtGui.QApplication.translate("frmEntradaCompra", "0.00", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(
            QtGui.QApplication.translate("frmEntradaCompra", "Total US$:",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.lblTotalD.setText(
            QtGui.QApplication.translate("frmEntradaCompra", "0.00", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.gbRadios.setTitle(
            QtGui.QApplication.translate("frmEntradaCompra", "Tipo de Pago",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.rbCash.setText(
            QtGui.QApplication.translate("frmEntradaCompra", "Contado", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.rbCredit.setText(
            QtGui.QApplication.translate("frmEntradaCompra", "Credito", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.rbCheck.setText(
            QtGui.QApplication.translate("frmEntradaCompra", "Cheque", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(
            QtGui.QApplication.translate(
                "frmEntradaCompra",
                "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
                "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
                "p, li { white-space: pre-wrap; }\n"
                "</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
                "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Proveedor:</span></p></body></html>",
                None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(
            QtGui.QApplication.translate("frmEntradaCompra", "&Buscar", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.toolBar.setWindowTitle(
            QtGui.QApplication.translate("frmEntradaCompra", "toolBar", None,
                                         QtGui.QApplication.UnicodeUTF8))
Пример #3
0
class Ui_frmFactura(object):
    def setupUi(self, frmFactura):
        frmFactura.setObjectName("frmFactura")
        frmFactura.resize(479, 522)
        self.centralwidget = QtGui.QWidget(frmFactura)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setTabPosition(QtGui.QTabWidget.West)
        self.tabWidget.setObjectName("tabWidget")
        self.tabdetails = QtGui.QWidget()
        self.tabdetails.setObjectName("tabdetails")
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.tabdetails)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.label_2 = QtGui.QLabel(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
        self.label_5 = QtGui.QLabel(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth())
        self.label_5.setSizePolicy(sizePolicy)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 0, 2, 1, 1)
        self.dtPicker = QtGui.QDateTimeEdit(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.dtPicker.sizePolicy().hasHeightForWidth())
        self.dtPicker.setSizePolicy(sizePolicy)
        self.dtPicker.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.dtPicker.setReadOnly(True)
        self.dtPicker.setCalendarPopup(True)
        self.dtPicker.setObjectName("dtPicker")
        self.gridLayout.addWidget(self.dtPicker, 0, 3, 1, 1)
        self.label = QtGui.QLabel(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
        self.swcliente = QtGui.QStackedWidget(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.swcliente.sizePolicy().hasHeightForWidth())
        self.swcliente.setSizePolicy(sizePolicy)
        self.swcliente.setObjectName("swcliente")
        self.page_3 = QtGui.QWidget()
        self.page_3.setObjectName("page_3")
        self.horizontalLayout_4 = QtGui.QHBoxLayout(self.page_3)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.cbcliente = QtGui.QComboBox(self.page_3)
        self.cbcliente.setEditable(True)
        self.cbcliente.setObjectName("cbcliente")
        self.horizontalLayout_4.addWidget(self.cbcliente)
        self.swcliente.addWidget(self.page_3)
        self.page_4 = QtGui.QWidget()
        self.page_4.setObjectName("page_4")
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.page_4)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.txtcliente = QtGui.QLineEdit(self.page_4)
        self.txtcliente.setReadOnly(True)
        self.txtcliente.setObjectName("txtcliente")
        self.horizontalLayout_3.addWidget(self.txtcliente)
        self.swcliente.addWidget(self.page_4)
        self.gridLayout.addWidget(self.swcliente, 1, 1, 1, 3)
        self.label_11 = QtGui.QLabel(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_11.sizePolicy().hasHeightForWidth())
        self.label_11.setSizePolicy(sizePolicy)
        self.label_11.setObjectName("label_11")
        self.gridLayout.addWidget(self.label_11, 2, 0, 1, 1)
        self.swvendedor = QtGui.QStackedWidget(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.swvendedor.sizePolicy().hasHeightForWidth())
        self.swvendedor.setSizePolicy(sizePolicy)
        self.swvendedor.setObjectName("swvendedor")
        self.page_7 = QtGui.QWidget()
        self.page_7.setObjectName("page_7")
        self.horizontalLayout_8 = QtGui.QHBoxLayout(self.page_7)
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.cbvendedor = QtGui.QComboBox(self.page_7)
        self.cbvendedor.setEditable(True)
        self.cbvendedor.setObjectName("cbvendedor")
        self.horizontalLayout_8.addWidget(self.cbvendedor)
        self.swvendedor.addWidget(self.page_7)
        self.page_8 = QtGui.QWidget()
        self.page_8.setObjectName("page_8")
        self.horizontalLayout_9 = QtGui.QHBoxLayout(self.page_8)
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.txtvendedor = QtGui.QLineEdit(self.page_8)
        self.txtvendedor.setReadOnly(True)
        self.txtvendedor.setObjectName("txtvendedor")
        self.horizontalLayout_9.addWidget(self.txtvendedor)
        self.swvendedor.addWidget(self.page_8)
        self.gridLayout.addWidget(self.swvendedor, 2, 1, 1, 3)
        self.label_6 = QtGui.QLabel(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_6.sizePolicy().hasHeightForWidth())
        self.label_6.setSizePolicy(sizePolicy)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 3, 0, 1, 1)
        self.swbodega = QtGui.QStackedWidget(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.swbodega.sizePolicy().hasHeightForWidth())
        self.swbodega.setSizePolicy(sizePolicy)
        self.swbodega.setObjectName("swbodega")
        self.page_5 = QtGui.QWidget()
        self.page_5.setObjectName("page_5")
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.page_5)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.cbbodega = QtGui.QComboBox(self.page_5)
        self.cbbodega.setEditable(True)
        self.cbbodega.setObjectName("cbbodega")
        self.horizontalLayout_5.addWidget(self.cbbodega)
        self.swbodega.addWidget(self.page_5)
        self.page_6 = QtGui.QWidget()
        self.page_6.setObjectName("page_6")
        self.horizontalLayout_6 = QtGui.QHBoxLayout(self.page_6)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.txtbodega = QtGui.QLineEdit(self.page_6)
        self.txtbodega.setDragEnabled(True)
        self.txtbodega.setReadOnly(True)
        self.txtbodega.setObjectName("txtbodega")
        self.horizontalLayout_6.addWidget(self.txtbodega)
        self.swbodega.addWidget(self.page_6)
        self.gridLayout.addWidget(self.swbodega, 3, 1, 1, 3)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.rbcontado = QtGui.QRadioButton(self.tabdetails)
        self.rbcontado.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.rbcontado.sizePolicy().hasHeightForWidth())
        self.rbcontado.setSizePolicy(sizePolicy)
        self.rbcontado.setChecked(True)
        self.rbcontado.setObjectName("rbcontado")
        self.horizontalLayout_7.addWidget(self.rbcontado)
        self.rbcredito = QtGui.QRadioButton(self.tabdetails)
        self.rbcredito.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.rbcredito.sizePolicy().hasHeightForWidth())
        self.rbcredito.setSizePolicy(sizePolicy)
        self.rbcredito.setObjectName("rbcredito")
        self.horizontalLayout_7.addWidget(self.rbcredito)
        self.gridLayout.addLayout(self.horizontalLayout_7, 4, 2, 1, 2)
        self.lblnfac = QtGui.QLabel(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lblnfac.sizePolicy().hasHeightForWidth())
        self.lblnfac.setSizePolicy(sizePolicy)
        self.lblnfac.setStyleSheet("border:1px solid #000")
        self.lblnfac.setText("")
        self.lblnfac.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.lblnfac.setObjectName("lblnfac")
        self.gridLayout.addWidget(self.lblnfac, 0, 1, 1, 1)
        self.lblanulado = QtGui.QLabel(self.tabdetails)
        self.lblanulado.setStyleSheet("font: 75 20pt \"MS Shell Dlg 2\";\n"
"color: rgb(255, 0, 0);")
        self.lblanulado.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.lblanulado.setObjectName("lblanulado")
        self.gridLayout.addWidget(self.lblanulado, 4, 1, 1, 1)
        self.verticalLayout_3.addLayout(self.gridLayout)
        self.tabledetails = OrderedEditTable(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tabledetails.sizePolicy().hasHeightForWidth())
        self.tabledetails.setSizePolicy(sizePolicy)
        self.tabledetails.setMinimumSize(QtCore.QSize(0, 100))
        self.tabledetails.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
        self.tabledetails.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.tabledetails.setAlternatingRowColors(True)
        self.tabledetails.setObjectName("tabledetails")
        self.verticalLayout_3.addWidget(self.tabledetails)
        self.label_7 = QtGui.QLabel(self.tabdetails)
        self.label_7.setObjectName("label_7")
        self.verticalLayout_3.addWidget(self.label_7)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.txtobservaciones = QtGui.QPlainTextEdit(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.txtobservaciones.sizePolicy().hasHeightForWidth())
        self.txtobservaciones.setSizePolicy(sizePolicy)
        self.txtobservaciones.setMinimumSize(QtCore.QSize(0, 40))
        self.txtobservaciones.setMaximumSize(QtCore.QSize(16777215, 80))
        self.txtobservaciones.setReadOnly(True)
        self.txtobservaciones.setObjectName("txtobservaciones")
        self.gridLayout_2.addWidget(self.txtobservaciones, 0, 0, 3, 1)
        self.label_3 = QtGui.QLabel(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setObjectName("label_3")
        self.gridLayout_2.addWidget(self.label_3, 0, 1, 1, 1)
        self.lblsubtotal = QtGui.QLabel(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lblsubtotal.sizePolicy().hasHeightForWidth())
        self.lblsubtotal.setSizePolicy(sizePolicy)
        self.lblsubtotal.setMinimumSize(QtCore.QSize(60, 0))
        self.lblsubtotal.setMaximumSize(QtCore.QSize(300, 16777215))
        self.lblsubtotal.setStyleSheet("None")
        self.lblsubtotal.setText("")
        self.lblsubtotal.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.lblsubtotal.setObjectName("lblsubtotal")
        self.gridLayout_2.addWidget(self.lblsubtotal, 0, 2, 1, 1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label_8 = QtGui.QLabel(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_8.sizePolicy().hasHeightForWidth())
        self.label_8.setSizePolicy(sizePolicy)
        self.label_8.setObjectName("label_8")
        self.horizontalLayout_2.addWidget(self.label_8)
        self.lbltasaiva = QtGui.QLabel(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lbltasaiva.sizePolicy().hasHeightForWidth())
        self.lbltasaiva.setSizePolicy(sizePolicy)
        self.lbltasaiva.setText("")
        self.lbltasaiva.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.lbltasaiva.setObjectName("lbltasaiva")
        self.horizontalLayout_2.addWidget(self.lbltasaiva)
        self.gridLayout_2.addLayout(self.horizontalLayout_2, 1, 1, 1, 1)
        self.lbliva = QtGui.QLabel(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lbliva.sizePolicy().hasHeightForWidth())
        self.lbliva.setSizePolicy(sizePolicy)
        self.lbliva.setMinimumSize(QtCore.QSize(60, 0))
        self.lbliva.setMaximumSize(QtCore.QSize(300, 16777215))
        self.lbliva.setStyleSheet("None")
        self.lbliva.setText("")
        self.lbliva.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.lbliva.setObjectName("lbliva")
        self.gridLayout_2.addWidget(self.lbliva, 1, 2, 1, 1)
        self.label_9 = QtGui.QLabel(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_9.sizePolicy().hasHeightForWidth())
        self.label_9.setSizePolicy(sizePolicy)
        self.label_9.setObjectName("label_9")
        self.gridLayout_2.addWidget(self.label_9, 2, 1, 1, 1)
        self.lbltotal = QtGui.QLabel(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lbltotal.sizePolicy().hasHeightForWidth())
        self.lbltotal.setSizePolicy(sizePolicy)
        self.lbltotal.setMinimumSize(QtCore.QSize(60, 0))
        self.lbltotal.setMaximumSize(QtCore.QSize(300, 16777215))
        self.lbltotal.setStyleSheet("None")
        self.lbltotal.setText("")
        self.lbltotal.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.lbltotal.setObjectName("lbltotal")
        self.gridLayout_2.addWidget(self.lbltotal, 2, 2, 1, 1)
        self.verticalLayout_3.addLayout(self.gridLayout_2)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/icons/res/document-edit.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tabdetails, icon, "")
        self.tabnavigation = QtGui.QWidget()
        self.tabnavigation.setObjectName("tabnavigation")
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.tabnavigation)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.tablenavigation = QtGui.QTableView(self.tabnavigation)
        self.tablenavigation.setAlternatingRowColors(True)
        self.tablenavigation.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
        self.tablenavigation.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.tablenavigation.setObjectName("tablenavigation")
        self.tablenavigation.horizontalHeader().setStretchLastSection(True)
        self.tablenavigation.verticalHeader().setVisible(False)
        self.verticalLayout_2.addWidget(self.tablenavigation)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_4 = QtGui.QLabel(self.tabnavigation)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout.addWidget(self.label_4)
        self.txtSearch = QtGui.QLineEdit(self.tabnavigation)
        self.txtSearch.setObjectName("txtSearch")
        self.horizontalLayout.addWidget(self.txtSearch)
        self.cboFiltro = QtGui.QComboBox(self.tabnavigation)
        self.cboFiltro.setObjectName("cboFiltro")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/images/res/simbolo-dolar-300x245.jpg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.cboFiltro.addItem(icon1, "")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/icons/res/checkbox.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.cboFiltro.addItem(icon2, "")
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/icons/res/edit-delete.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.cboFiltro.addItem(icon3, "")
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/images/res/account-types-checking.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.cboFiltro.addItem(icon4, "")
        self.cboFiltro.addItem(icon, "")
        self.horizontalLayout.addWidget(self.cboFiltro)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/icons/res/table.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tabnavigation, icon5, "")
        self.verticalLayout.addWidget(self.tabWidget)
        frmFactura.setCentralWidget(self.centralwidget)
        self.statusbar = QtGui.QStatusBar(frmFactura)
        self.statusbar.setObjectName("statusbar")
        frmFactura.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(frmFactura)
        self.toolBar.setObjectName("toolBar")
        frmFactura.addToolBar(QtCore.Qt.ToolBarArea(QtCore.Qt.TopToolBarArea), self.toolBar)
        self.actionAnular = QtGui.QAction(frmFactura)
        self.actionAnular.setEnabled(True)
        self.actionAnular.setIcon(icon3)
        self.actionAnular.setObjectName("actionAnular")
        self.actionRecibo = QtGui.QAction(frmFactura)
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(":/icons/res/okteta.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRecibo.setIcon(icon6)
        self.actionRecibo.setObjectName("actionRecibo")
        self.toolBar.addAction(self.actionRecibo)
        self.toolBar.addAction(self.actionAnular)
        self.label_5.setBuddy(self.dtPicker)
        self.label.setBuddy(self.txtcliente)
        self.label_11.setBuddy(self.txtcliente)
        self.label_6.setBuddy(self.txtbodega)
        self.lbltasaiva.setBuddy(self.txtbodega)
        self.label_4.setBuddy(self.txtSearch)

        self.retranslateUi(frmFactura)
        self.tabWidget.setCurrentIndex(0)
        self.swcliente.setCurrentIndex(1)
        self.swvendedor.setCurrentIndex(1)
        self.swbodega.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(frmFactura)
        frmFactura.setTabOrder(self.cbcliente, self.cbvendedor)
        frmFactura.setTabOrder(self.cbvendedor, self.cbbodega)
        frmFactura.setTabOrder(self.cbbodega, self.rbcontado)
        frmFactura.setTabOrder(self.rbcontado, self.rbcredito)
        frmFactura.setTabOrder(self.rbcredito, self.tabledetails)
        frmFactura.setTabOrder(self.tabledetails, self.txtobservaciones)
        frmFactura.setTabOrder(self.txtobservaciones, self.dtPicker)
        frmFactura.setTabOrder(self.dtPicker, self.txtvendedor)
        frmFactura.setTabOrder(self.txtvendedor, self.txtSearch)
        frmFactura.setTabOrder(self.txtSearch, self.tablenavigation)
        frmFactura.setTabOrder(self.tablenavigation, self.txtcliente)
        frmFactura.setTabOrder(self.txtcliente, self.txtbodega)

    def retranslateUi(self, frmFactura):
        frmFactura.setWindowTitle(QtGui.QApplication.translate("frmFactura", "Factura", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("frmFactura", "<b>Facturar No.</b>", None, QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(QtGui.QApplication.translate("frmFactura", "<b>Fecha</b>", None, QtGui.QApplication.UnicodeUTF8))
        self.dtPicker.setDisplayFormat(QtGui.QApplication.translate("frmFactura", "dd/MM/yyyy", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("frmFactura", "&<b>Facturar a:</b>", None, QtGui.QApplication.UnicodeUTF8))
        self.label_11.setText(QtGui.QApplication.translate("frmFactura", "<b>Vendedor:</b>", None, QtGui.QApplication.UnicodeUTF8))
        self.label_6.setText(QtGui.QApplication.translate("frmFactura", "&<b>Bodega:<.b>", None, QtGui.QApplication.UnicodeUTF8))
        self.rbcontado.setText(QtGui.QApplication.translate("frmFactura", "Contado", None, QtGui.QApplication.UnicodeUTF8))
        self.rbcredito.setText(QtGui.QApplication.translate("frmFactura", "Crédito", None, QtGui.QApplication.UnicodeUTF8))
        self.lblanulado.setText(QtGui.QApplication.translate("frmFactura", "ANULADA", None, QtGui.QApplication.UnicodeUTF8))
        self.label_7.setText(QtGui.QApplication.translate("frmFactura", "<b>Observaciones</b>", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("frmFactura", "<b>Subtotal</b>", None, QtGui.QApplication.UnicodeUTF8))
        self.label_8.setText(QtGui.QApplication.translate("frmFactura", "<b>Iva</b>", None, QtGui.QApplication.UnicodeUTF8))
        self.label_9.setText(QtGui.QApplication.translate("frmFactura", "<b>Total</b>", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabdetails), '')
        self.label_4.setText(QtGui.QApplication.translate("frmFactura", "&Buscar", None, QtGui.QApplication.UnicodeUTF8))
        self.cboFiltro.setItemText(0, QtGui.QApplication.translate("frmFactura", "Todas", None, QtGui.QApplication.UnicodeUTF8))
        self.cboFiltro.setItemText(1, QtGui.QApplication.translate("frmFactura", "Confirmadas", None, QtGui.QApplication.UnicodeUTF8))
        self.cboFiltro.setItemText(2, QtGui.QApplication.translate("frmFactura", "Anuladas", None, QtGui.QApplication.UnicodeUTF8))
        self.cboFiltro.setItemText(3, QtGui.QApplication.translate("frmFactura", "Crédito Pendiente", None, QtGui.QApplication.UnicodeUTF8))
        self.cboFiltro.setItemText(4, QtGui.QApplication.translate("frmFactura", "Anulación pendiente", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabnavigation), '')
        self.toolBar.setWindowTitle(QtGui.QApplication.translate("frmFactura", "toolBar", None, QtGui.QApplication.UnicodeUTF8))
        self.actionAnular.setText(QtGui.QApplication.translate("frmFactura", "anular", None, QtGui.QApplication.UnicodeUTF8))
        self.actionAnular.setToolTip(QtGui.QApplication.translate("frmFactura", "Anular la Factura", None, QtGui.QApplication.UnicodeUTF8))
        self.actionRecibo.setText(QtGui.QApplication.translate("frmFactura", "Recibo", None, QtGui.QApplication.UnicodeUTF8))
        self.actionRecibo.setToolTip(QtGui.QApplication.translate("frmFactura", "Recibos", None, QtGui.QApplication.UnicodeUTF8))
Пример #4
0
class Ui_FrmLiquidacion(object):
    def setupUi(self, FrmLiquidacion):
        FrmLiquidacion.setObjectName(_fromUtf8("FrmLiquidacion"))
        FrmLiquidacion.resize(885, 644)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(FrmLiquidacion.sizePolicy().hasHeightForWidth())
        FrmLiquidacion.setSizePolicy(sizePolicy)
        FrmLiquidacion.setDockNestingEnabled(True)
        self.centralwidget = QtGui.QWidget(FrmLiquidacion)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setTabPosition(QtGui.QTabWidget.West)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tabdetails = QtGui.QWidget()
        self.tabdetails.setObjectName(_fromUtf8("tabdetails"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.tabdetails)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.groupBox_3 = QtGui.QGroupBox(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_3.sizePolicy().hasHeightForWidth())
        self.groupBox_3.setSizePolicy(sizePolicy)
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.groupBox_3)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label_2 = QtGui.QLabel(self.groupBox_3)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
        self.txtPolicy = QtGui.QLineEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.txtPolicy.sizePolicy().hasHeightForWidth())
        self.txtPolicy.setSizePolicy(sizePolicy)
        self.txtPolicy.setMaximumSize(QtCore.QSize(200, 16777215))
        self.txtPolicy.setReadOnly(True)
        self.txtPolicy.setObjectName(_fromUtf8("txtPolicy"))
        self.gridLayout.addWidget(self.txtPolicy, 0, 1, 1, 3)
        self.label_3 = QtGui.QLabel(self.groupBox_3)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 1, 0, 1, 1)
        self.swProvider = QtGui.QStackedWidget(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.swProvider.sizePolicy().hasHeightForWidth())
        self.swProvider.setSizePolicy(sizePolicy)
        self.swProvider.setMaximumSize(QtCore.QSize(200, 16777215))
        self.swProvider.setObjectName(_fromUtf8("swProvider"))
        self.page = QtGui.QWidget()
        self.page.setObjectName(_fromUtf8("page"))
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.page)
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.txtProvider = QtGui.QLineEdit(self.page)
        self.txtProvider.setReadOnly(True)
        self.txtProvider.setObjectName(_fromUtf8("txtProvider"))
        self.horizontalLayout_5.addWidget(self.txtProvider)
        self.swProvider.addWidget(self.page)
        self.page_2 = QtGui.QWidget()
        self.page_2.setObjectName(_fromUtf8("page_2"))
        self.horizontalLayout_6 = QtGui.QHBoxLayout(self.page_2)
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.cbProvider = QtGui.QComboBox(self.page_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cbProvider.sizePolicy().hasHeightForWidth())
        self.cbProvider.setSizePolicy(sizePolicy)
        self.cbProvider.setEditable(True)
        self.cbProvider.setObjectName(_fromUtf8("cbProvider"))
        self.horizontalLayout_6.addWidget(self.cbProvider)
        self.swProvider.addWidget(self.page_2)
        self.gridLayout.addWidget(self.swProvider, 1, 1, 1, 3)
        self.label_4 = QtGui.QLabel(self.groupBox_3)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout.addWidget(self.label_4, 2, 0, 1, 1)
        self.dtPicker = QtGui.QDateEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.dtPicker.sizePolicy().hasHeightForWidth())
        self.dtPicker.setSizePolicy(sizePolicy)
        self.dtPicker.setCalendarPopup(True)
        self.dtPicker.setObjectName(_fromUtf8("dtPicker"))
        self.gridLayout.addWidget(self.dtPicker, 2, 1, 1, 1)
        self.label_10 = QtGui.QLabel(self.groupBox_3)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.gridLayout.addWidget(self.label_10, 2, 2, 1, 1)
        self.txtExchangeRate = QtGui.QLineEdit(self.groupBox_3)
        self.txtExchangeRate.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.txtExchangeRate.sizePolicy().hasHeightForWidth())
        self.txtExchangeRate.setSizePolicy(sizePolicy)
        self.txtExchangeRate.setMaximumSize(QtCore.QSize(83, 16777215))
        self.txtExchangeRate.setReadOnly(True)
        self.txtExchangeRate.setObjectName(_fromUtf8("txtExchangeRate"))
        self.gridLayout.addWidget(self.txtExchangeRate, 2, 3, 1, 1)
        self.label_11 = QtGui.QLabel(self.groupBox_3)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.gridLayout.addWidget(self.label_11, 3, 0, 1, 1)
        self.txtSource = QtGui.QLineEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.txtSource.sizePolicy().hasHeightForWidth())
        self.txtSource.setSizePolicy(sizePolicy)
        self.txtSource.setMaximumSize(QtCore.QSize(200, 16777215))
        self.txtSource.setReadOnly(True)
        self.txtSource.setObjectName(_fromUtf8("txtSource"))
        self.gridLayout.addWidget(self.txtSource, 3, 1, 1, 3)
        self.label_5 = QtGui.QLabel(self.groupBox_3)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout.addWidget(self.label_5, 4, 0, 1, 1)
        self.swWarehouse = QtGui.QStackedWidget(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.swWarehouse.sizePolicy().hasHeightForWidth())
        self.swWarehouse.setSizePolicy(sizePolicy)
        self.swWarehouse.setMaximumSize(QtCore.QSize(200, 16777215))
        self.swWarehouse.setObjectName(_fromUtf8("swWarehouse"))
        self.page_3 = QtGui.QWidget()
        self.page_3.setObjectName(_fromUtf8("page_3"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.page_3)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.cbWarehouse = QtGui.QComboBox(self.page_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cbWarehouse.sizePolicy().hasHeightForWidth())
        self.cbWarehouse.setSizePolicy(sizePolicy)
        self.cbWarehouse.setEditable(True)
        self.cbWarehouse.setObjectName(_fromUtf8("cbWarehouse"))
        self.verticalLayout_6.addWidget(self.cbWarehouse)
        self.swWarehouse.addWidget(self.page_3)
        self.page_4 = QtGui.QWidget()
        self.page_4.setObjectName(_fromUtf8("page_4"))
        self.horizontalLayout_7 = QtGui.QHBoxLayout(self.page_4)
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.txtWarehouse = QtGui.QLineEdit(self.page_4)
        self.txtWarehouse.setReadOnly(True)
        self.txtWarehouse.setObjectName(_fromUtf8("txtWarehouse"))
        self.horizontalLayout_7.addWidget(self.txtWarehouse)
        self.swWarehouse.addWidget(self.page_4)
        self.gridLayout.addWidget(self.swWarehouse, 4, 1, 1, 3)
        self.horizontalLayout_2.addLayout(self.gridLayout)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.formLayout_2 = QtGui.QFormLayout()
        self.formLayout_2.setSizeConstraint(QtGui.QLayout.SetMinAndMaxSize)
        self.formLayout_2.setFieldGrowthPolicy(QtGui.QFormLayout.FieldsStayAtSizeHint)
        self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
        self.label_6 = QtGui.QLabel(self.groupBox_3)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_6)
        self.sbAgency = QtGui.QDoubleSpinBox(self.groupBox_3)
        self.sbAgency.setMinimumSize(QtCore.QSize(157, 0))
        self.sbAgency.setMaximum(999999999.0)
        self.sbAgency.setObjectName(_fromUtf8("sbAgency"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole, self.sbAgency)
        self.label_7 = QtGui.QLabel(self.groupBox_3)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_7)
        self.sbStore = QtGui.QDoubleSpinBox(self.groupBox_3)
        self.sbStore.setMinimumSize(QtCore.QSize(157, 0))
        self.sbStore.setMaximum(999999999.0)
        self.sbStore.setObjectName(_fromUtf8("sbStore"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole, self.sbStore)
        self.label_8 = QtGui.QLabel(self.groupBox_3)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_8)
        self.sbPaperWork = QtGui.QDoubleSpinBox(self.groupBox_3)
        self.sbPaperWork.setMinimumSize(QtCore.QSize(157, 0))
        self.sbPaperWork.setMaximum(100.0)
        self.sbPaperWork.setObjectName(_fromUtf8("sbPaperWork"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole, self.sbPaperWork)
        self.label_9 = QtGui.QLabel(self.groupBox_3)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_9)
        self.sbTransportation = QtGui.QDoubleSpinBox(self.groupBox_3)
        self.sbTransportation.setMinimumSize(QtCore.QSize(157, 0))
        self.sbTransportation.setMaximum(100.0)
        self.sbTransportation.setObjectName(_fromUtf8("sbTransportation"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.FieldRole, self.sbTransportation)
        self.gridLayout_2.addLayout(self.formLayout_2, 0, 0, 1, 2)
        self.ckISO = QtGui.QCheckBox(self.groupBox_3)
        self.ckISO.setEnabled(False)
        self.ckISO.setObjectName(_fromUtf8("ckISO"))
        self.gridLayout_2.addWidget(self.ckISO, 1, 0, 1, 1)
        self.ckTaxes = QtGui.QCheckBox(self.groupBox_3)
        self.ckTaxes.setEnabled(False)
        self.ckTaxes.setObjectName(_fromUtf8("ckTaxes"))
        self.gridLayout_2.addWidget(self.ckTaxes, 1, 1, 1, 1)
        self.horizontalLayout_2.addLayout(self.gridLayout_2)
        self.horizontalLayout_3.addWidget(self.groupBox_3)
        self.groupBox_2 = QtGui.QGroupBox(self.tabdetails)
        self.groupBox_2.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth())
        self.groupBox_2.setSizePolicy(sizePolicy)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.formLayout = QtGui.QFormLayout(self.groupBox_2)
        self.formLayout.setSizeConstraint(QtGui.QLayout.SetMinAndMaxSize)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label_12 = QtGui.QLabel(self.groupBox_2)
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_12)
        self.label_13 = QtGui.QLabel(self.groupBox_2)
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_13)
        self.label_14 = QtGui.QLabel(self.groupBox_2)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_14)
        self.label_15 = QtGui.QLabel(self.groupBox_2)
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_15)
        self.sbWeight = QtGui.QDoubleSpinBox(self.groupBox_2)
        self.sbWeight.setMinimumSize(QtCore.QSize(157, 0))
        self.sbWeight.setMaximum(999999999.0)
        self.sbWeight.setObjectName(_fromUtf8("sbWeight"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.sbWeight)
        self.sbFreight = QtGui.QDoubleSpinBox(self.groupBox_2)
        self.sbFreight.setMinimumSize(QtCore.QSize(157, 0))
        self.sbFreight.setMaximum(999999999.0)
        self.sbFreight.setObjectName(_fromUtf8("sbFreight"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.sbFreight)
        self.sbInsurance = QtGui.QDoubleSpinBox(self.groupBox_2)
        self.sbInsurance.setMinimumSize(QtCore.QSize(157, 0))
        self.sbInsurance.setMaximum(999999999.0)
        self.sbInsurance.setObjectName(_fromUtf8("sbInsurance"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.sbInsurance)
        self.sbOther = QtGui.QDoubleSpinBox(self.groupBox_2)
        self.sbOther.setMinimumSize(QtCore.QSize(157, 0))
        self.sbOther.setMaximum(999999999.0)
        self.sbOther.setObjectName(_fromUtf8("sbOther"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.sbOther)
        self.horizontalLayout_3.addWidget(self.groupBox_2)
        self.verticalLayout_5.addLayout(self.horizontalLayout_3)
        self.tabledetails = OrderedEditTable(self.tabdetails)
        self.tabledetails.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
        self.tabledetails.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.tabledetails.setAlternatingRowColors(True)
        self.tabledetails.setObjectName(_fromUtf8("tabledetails"))
        self.tabledetails.verticalHeader().setVisible(False)
        self.verticalLayout_5.addWidget(self.tabledetails)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/res/document-edit.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tabdetails, icon, _fromUtf8(""))
        self.tabnavigation = QtGui.QWidget()
        self.tabnavigation.setObjectName(_fromUtf8("tabnavigation"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.tabnavigation)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.tablenavigation = QtGui.QTableView(self.tabnavigation)
        self.tablenavigation.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.tablenavigation.setAlternatingRowColors(True)
        self.tablenavigation.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
        self.tablenavigation.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.tablenavigation.setObjectName(_fromUtf8("tablenavigation"))
        self.tablenavigation.horizontalHeader().setStretchLastSection(True)
        self.tablenavigation.verticalHeader().setVisible(False)
        self.verticalLayout_2.addWidget(self.tablenavigation)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label = QtGui.QLabel(self.tabnavigation)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout.addWidget(self.label)
        self.txtSearch = QtGui.QLineEdit(self.tabnavigation)
        self.txtSearch.setObjectName(_fromUtf8("txtSearch"))
        self.horizontalLayout.addWidget(self.txtSearch)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/res/table.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tabnavigation, icon1, _fromUtf8(""))
        self.verticalLayout.addWidget(self.tabWidget)
        FrmLiquidacion.setCentralWidget(self.centralwidget)
        self.toolBar = QtGui.QToolBar(FrmLiquidacion)
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        FrmLiquidacion.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.xdockWidget = QtGui.QDockWidget(FrmLiquidacion)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.xdockWidget.sizePolicy().hasHeightForWidth())
        self.xdockWidget.setSizePolicy(sizePolicy)
        self.xdockWidget.setFeatures(QtGui.QDockWidget.AllDockWidgetFeatures)
        self.xdockWidget.setAllowedAreas(QtCore.Qt.BottomDockWidgetArea|QtCore.Qt.TopDockWidgetArea)
        self.xdockWidget.setObjectName(_fromUtf8("xdockWidget"))
        self.dockWidgetContents = QtGui.QWidget()
        self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.dockWidgetContents)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.tabTotalsAccounts = QtGui.QTabWidget(self.dockWidgetContents)
        self.tabTotalsAccounts.setMinimumSize(QtCore.QSize(0, 200))
        self.tabTotalsAccounts.setObjectName(_fromUtf8("tabTotalsAccounts"))
        self.tabaccounts = QtGui.QWidget()
        self.tabaccounts.setObjectName(_fromUtf8("tabaccounts"))
        self.verticalLayout_8 = QtGui.QVBoxLayout(self.tabaccounts)
        self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8"))
        self.tableaccounts = QtGui.QTableView(self.tabaccounts)
        self.tableaccounts.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
        self.tableaccounts.setAlternatingRowColors(True)
        self.tableaccounts.setObjectName(_fromUtf8("tableaccounts"))
        self.tableaccounts.horizontalHeader().setStretchLastSection(True)
        self.tableaccounts.verticalHeader().setVisible(False)
        self.verticalLayout_8.addWidget(self.tableaccounts)
        self.tabTotalsAccounts.addTab(self.tabaccounts, _fromUtf8(""))
        self.tabtotals = QtGui.QWidget()
        self.tabtotals.setObjectName(_fromUtf8("tabtotals"))
        self.verticalLayout_7 = QtGui.QVBoxLayout(self.tabtotals)
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.tabletotals = QtGui.QTableView(self.tabtotals)
        self.tabletotals.setObjectName(_fromUtf8("tabletotals"))
        self.tabletotals.horizontalHeader().setStretchLastSection(True)
        self.tabletotals.verticalHeader().setVisible(False)
        self.verticalLayout_7.addWidget(self.tabletotals)
        self.tabTotalsAccounts.addTab(self.tabtotals, _fromUtf8(""))
        self.verticalLayout_3.addWidget(self.tabTotalsAccounts)
        self.xdockWidget.setWidget(self.dockWidgetContents)
        FrmLiquidacion.addDockWidget(QtCore.Qt.DockWidgetArea(8), self.xdockWidget)
        self.label_2.setBuddy(self.txtPolicy)
        self.label_4.setBuddy(self.dtPicker)
        self.label_10.setBuddy(self.txtExchangeRate)
        self.label_11.setBuddy(self.txtSource)
        self.label_6.setBuddy(self.sbAgency)
        self.label_7.setBuddy(self.sbStore)
        self.label_8.setBuddy(self.sbPaperWork)
        self.label_9.setBuddy(self.sbTransportation)
        self.label_12.setBuddy(self.sbWeight)
        self.label_13.setBuddy(self.sbFreight)
        self.label_14.setBuddy(self.sbInsurance)
        self.label_15.setBuddy(self.sbOther)
        self.label.setBuddy(self.txtSearch)

        self.retranslateUi(FrmLiquidacion)
        self.tabWidget.setCurrentIndex(1)
        self.swProvider.setCurrentIndex(0)
        self.swWarehouse.setCurrentIndex(1)
        self.tabTotalsAccounts.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(FrmLiquidacion)
        FrmLiquidacion.setTabOrder(self.txtPolicy, self.cbProvider)
        FrmLiquidacion.setTabOrder(self.cbProvider, self.dtPicker)
        FrmLiquidacion.setTabOrder(self.dtPicker, self.txtSource)
        FrmLiquidacion.setTabOrder(self.txtSource, self.cbWarehouse)
        FrmLiquidacion.setTabOrder(self.cbWarehouse, self.sbAgency)
        FrmLiquidacion.setTabOrder(self.sbAgency, self.sbStore)
        FrmLiquidacion.setTabOrder(self.sbStore, self.sbPaperWork)
        FrmLiquidacion.setTabOrder(self.sbPaperWork, self.sbTransportation)
        FrmLiquidacion.setTabOrder(self.sbTransportation, self.ckISO)
        FrmLiquidacion.setTabOrder(self.ckISO, self.ckTaxes)
        FrmLiquidacion.setTabOrder(self.ckTaxes, self.sbWeight)
        FrmLiquidacion.setTabOrder(self.sbWeight, self.sbFreight)
        FrmLiquidacion.setTabOrder(self.sbFreight, self.sbInsurance)
        FrmLiquidacion.setTabOrder(self.sbInsurance, self.sbOther)
        FrmLiquidacion.setTabOrder(self.sbOther, self.tabledetails)
        FrmLiquidacion.setTabOrder(self.tabledetails, self.tabletotals)
        FrmLiquidacion.setTabOrder(self.tabletotals, self.tableaccounts)
        FrmLiquidacion.setTabOrder(self.tableaccounts, self.txtProvider)
        FrmLiquidacion.setTabOrder(self.txtProvider, self.txtWarehouse)
        FrmLiquidacion.setTabOrder(self.txtWarehouse, self.txtExchangeRate)
        FrmLiquidacion.setTabOrder(self.txtExchangeRate, self.tablenavigation)
        FrmLiquidacion.setTabOrder(self.tablenavigation, self.txtSearch)
        FrmLiquidacion.setTabOrder(self.txtSearch, self.tabTotalsAccounts)
        FrmLiquidacion.setTabOrder(self.tabTotalsAccounts, self.tabWidget)

    def retranslateUi(self, FrmLiquidacion):
        FrmLiquidacion.setWindowTitle(QtGui.QApplication.translate("FrmLiquidacion", "Liquidación", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_3.setTitle(QtGui.QApplication.translate("FrmLiquidacion", "Datos de declaración", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("FrmLiquidacion", "No. Poliza", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("FrmLiquidacion", "Proveedor", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("FrmLiquidacion", "Fecha Poliza", None, QtGui.QApplication.UnicodeUTF8))
        self.label_10.setText(QtGui.QApplication.translate("FrmLiquidacion", "TC", None, QtGui.QApplication.UnicodeUTF8))
        self.label_11.setText(QtGui.QApplication.translate("FrmLiquidacion", "Procedencia", None, QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(QtGui.QApplication.translate("FrmLiquidacion", "Bodega", None, QtGui.QApplication.UnicodeUTF8))
        self.label_6.setText(QtGui.QApplication.translate("FrmLiquidacion", "Agencia", None, QtGui.QApplication.UnicodeUTF8))
        self.sbAgency.setPrefix(QtGui.QApplication.translate("FrmLiquidacion", "C$ ", None, QtGui.QApplication.UnicodeUTF8))
        self.label_7.setText(QtGui.QApplication.translate("FrmLiquidacion", "Almacen", None, QtGui.QApplication.UnicodeUTF8))
        self.sbStore.setPrefix(QtGui.QApplication.translate("FrmLiquidacion", "C$ ", None, QtGui.QApplication.UnicodeUTF8))
        self.label_8.setText(QtGui.QApplication.translate("FrmLiquidacion", "Papeleria", None, QtGui.QApplication.UnicodeUTF8))
        self.sbPaperWork.setSuffix(QtGui.QApplication.translate("FrmLiquidacion", " %", None, QtGui.QApplication.UnicodeUTF8))
        self.label_9.setText(QtGui.QApplication.translate("FrmLiquidacion", "Transporte", None, QtGui.QApplication.UnicodeUTF8))
        self.sbTransportation.setSuffix(QtGui.QApplication.translate("FrmLiquidacion", " %", None, QtGui.QApplication.UnicodeUTF8))
        self.ckISO.setText(QtGui.QApplication.translate("FrmLiquidacion", "Aplicar ISO", None, QtGui.QApplication.UnicodeUTF8))
        self.ckTaxes.setText(QtGui.QApplication.translate("FrmLiquidacion", "Exonerar", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_2.setTitle(QtGui.QApplication.translate("FrmLiquidacion", "Totales de declaración", None, QtGui.QApplication.UnicodeUTF8))
        self.label_12.setText(QtGui.QApplication.translate("FrmLiquidacion", "Peso", None, QtGui.QApplication.UnicodeUTF8))
        self.label_13.setText(QtGui.QApplication.translate("FrmLiquidacion", "Flete ", None, QtGui.QApplication.UnicodeUTF8))
        self.label_14.setText(QtGui.QApplication.translate("FrmLiquidacion", "Seguro", None, QtGui.QApplication.UnicodeUTF8))
        self.label_15.setText(QtGui.QApplication.translate("FrmLiquidacion", "Otros Gastos", None, QtGui.QApplication.UnicodeUTF8))
        self.sbWeight.setSuffix(QtGui.QApplication.translate("FrmLiquidacion", " Kg", None, QtGui.QApplication.UnicodeUTF8))
        self.sbFreight.setPrefix(QtGui.QApplication.translate("FrmLiquidacion", "US$ ", None, QtGui.QApplication.UnicodeUTF8))
        self.sbInsurance.setPrefix(QtGui.QApplication.translate("FrmLiquidacion", "US$ ", None, QtGui.QApplication.UnicodeUTF8))
        self.sbOther.setPrefix(QtGui.QApplication.translate("FrmLiquidacion", "US$ ", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("FrmLiquidacion", "&Buscar", None, QtGui.QApplication.UnicodeUTF8))
        self.toolBar.setWindowTitle(QtGui.QApplication.translate("FrmLiquidacion", "toolBar", None, QtGui.QApplication.UnicodeUTF8))
        self.xdockWidget.setWindowTitle(QtGui.QApplication.translate("FrmLiquidacion", "Detalles", None, QtGui.QApplication.UnicodeUTF8))
        self.tabTotalsAccounts.setTabText(self.tabTotalsAccounts.indexOf(self.tabaccounts), QtGui.QApplication.translate("FrmLiquidacion", "Movimientos Contables", None, QtGui.QApplication.UnicodeUTF8))
        self.tabTotalsAccounts.setTabText(self.tabTotalsAccounts.indexOf(self.tabtotals), QtGui.QApplication.translate("FrmLiquidacion", "Totales", None, QtGui.QApplication.UnicodeUTF8))
Пример #5
0
class Ui_frmEntradaCompra(object):
    def setupUi(self, frmEntradaCompra):
        frmEntradaCompra.setObjectName(_fromUtf8("frmEntradaCompra"))
        frmEntradaCompra.resize(828, 600)
        frmEntradaCompra.setStyleSheet(_fromUtf8(""))
        self.centralwidget = QtGui.QWidget(frmEntradaCompra)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setTabPosition(QtGui.QTabWidget.West)
        self.tabWidget.setTabShape(QtGui.QTabWidget.Rounded)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tabdetails = QtGui.QWidget()
        self.tabdetails.setObjectName(_fromUtf8("tabdetails"))
        self.gridLayout_2 = QtGui.QGridLayout(self.tabdetails)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.label_2 = QtGui.QLabel(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setScaledContents(False)
        self.label_2.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout_2.addWidget(self.label_2, 0, 0, 1, 1)
        self.txtDocumentNumber = QtGui.QLineEdit(self.tabdetails)
        self.txtDocumentNumber.setEnabled(True)
        self.txtDocumentNumber.setReadOnly(True)
        self.txtDocumentNumber.setObjectName(_fromUtf8("txtDocumentNumber"))
        self.gridLayout_2.addWidget(self.txtDocumentNumber, 0, 1, 1, 1)
        self.label = QtGui.QLabel(self.tabdetails)
        self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout_2.addWidget(self.label, 0, 5, 1, 1)
        self.dtPicker = QtGui.QDateTimeEdit(self.tabdetails)
        self.dtPicker.setEnabled(True)
        self.dtPicker.setReadOnly(True)
        self.dtPicker.setCalendarPopup(True)
        self.dtPicker.setObjectName(_fromUtf8("dtPicker"))
        self.gridLayout_2.addWidget(self.dtPicker, 0, 6, 1, 1)
        self.tabledetails = OrderedEditTable(self.tabdetails)
        self.tabledetails.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tabledetails.sizePolicy().hasHeightForWidth())
        self.tabledetails.setSizePolicy(sizePolicy)
        self.tabledetails.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
        self.tabledetails.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.tabledetails.setAlternatingRowColors(True)
        self.tabledetails.setSortingEnabled(True)
        self.tabledetails.setObjectName(_fromUtf8("tabledetails"))
        self.tabledetails.horizontalHeader().setStretchLastSection(True)
        self.tabledetails.verticalHeader().setVisible(False)
        self.gridLayout_2.addWidget(self.tabledetails, 2, 0, 1, 7)
        self.groupBox_2 = QtGui.QGroupBox(self.tabdetails)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.gridLayout_3 = QtGui.QGridLayout(self.groupBox_2)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.txtObservations = QtGui.QPlainTextEdit(self.groupBox_2)
        self.txtObservations.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.txtObservations.sizePolicy().hasHeightForWidth())
        self.txtObservations.setSizePolicy(sizePolicy)
        self.txtObservations.setReadOnly(True)
        self.txtObservations.setObjectName(_fromUtf8("txtObservations"))
        self.gridLayout_3.addWidget(self.txtObservations, 0, 0, 1, 1)
        self.gridLayout_2.addWidget(self.groupBox_2, 3, 0, 1, 5)
        self.groupBox = QtGui.QGroupBox(self.tabdetails)
        self.groupBox.setTitle(_fromUtf8(""))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.formLayout_2 = QtGui.QFormLayout(self.groupBox)
        self.formLayout_2.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow)
        self.formLayout_2.setFormAlignment(QtCore.Qt.AlignCenter)
        self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
        self.label_6 = QtGui.QLabel(self.groupBox)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setWeight(75)
        font.setBold(True)
        self.label_6.setFont(font)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_6)
        self.lblSubtotal = QtGui.QLabel(self.groupBox)
        self.lblSubtotal.setObjectName(_fromUtf8("lblSubtotal"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole, self.lblSubtotal)
        self.label_8 = QtGui.QLabel(self.groupBox)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setWeight(75)
        font.setBold(True)
        self.label_8.setFont(font)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_8)
        self.lblIVA = QtGui.QLabel(self.groupBox)
        self.lblIVA.setObjectName(_fromUtf8("lblIVA"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole, self.lblIVA)
        self.label_11 = QtGui.QLabel(self.groupBox)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setWeight(75)
        font.setBold(True)
        self.label_11.setFont(font)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_11)
        self.lblTotal = QtGui.QLabel(self.groupBox)
        self.lblTotal.setObjectName(_fromUtf8("lblTotal"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole, self.lblTotal)
        self.label_5 = QtGui.QLabel(self.groupBox)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setWeight(75)
        font.setBold(True)
        self.label_5.setFont(font)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_5)
        self.lblTotalD = QtGui.QLabel(self.groupBox)
        self.lblTotalD.setObjectName(_fromUtf8("lblTotalD"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.FieldRole, self.lblTotalD)
        self.gridLayout_2.addWidget(self.groupBox, 3, 5, 1, 2)
        self.gbRadios = QtGui.QGroupBox(self.tabdetails)
        self.gbRadios.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.gbRadios.sizePolicy().hasHeightForWidth())
        self.gbRadios.setSizePolicy(sizePolicy)
        self.gbRadios.setFlat(False)
        self.gbRadios.setCheckable(False)
        self.gbRadios.setObjectName(_fromUtf8("gbRadios"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.gbRadios)
        self.horizontalLayout_3.setSizeConstraint(QtGui.QLayout.SetMinimumSize)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.rbCash = QtGui.QRadioButton(self.gbRadios)
        self.rbCash.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.rbCash.sizePolicy().hasHeightForWidth())
        self.rbCash.setSizePolicy(sizePolicy)
        self.rbCash.setChecked(True)
        self.rbCash.setObjectName(_fromUtf8("rbCash"))
        self.horizontalLayout_3.addWidget(self.rbCash)
        self.rbCredit = QtGui.QRadioButton(self.gbRadios)
        self.rbCredit.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.rbCredit.sizePolicy().hasHeightForWidth())
        self.rbCredit.setSizePolicy(sizePolicy)
        self.rbCredit.setObjectName(_fromUtf8("rbCredit"))
        self.horizontalLayout_3.addWidget(self.rbCredit)
        self.rbCheck = QtGui.QRadioButton(self.gbRadios)
        self.rbCheck.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.rbCheck.sizePolicy().hasHeightForWidth())
        self.rbCheck.setSizePolicy(sizePolicy)
        self.rbCheck.setObjectName(_fromUtf8("rbCheck"))
        self.horizontalLayout_3.addWidget(self.rbCheck)
        self.gridLayout_2.addWidget(self.gbRadios, 1, 5, 1, 2)
        self.label_3 = QtGui.QLabel(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_2.addWidget(self.label_3, 1, 0, 1, 1)
        self.swProvider = QtGui.QStackedWidget(self.tabdetails)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.swProvider.sizePolicy().hasHeightForWidth())
        self.swProvider.setSizePolicy(sizePolicy)
        self.swProvider.setObjectName(_fromUtf8("swProvider"))
        self.page = QtGui.QWidget()
        self.page.setObjectName(_fromUtf8("page"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.page)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.cbProvider = QtGui.QComboBox(self.page)
        self.cbProvider.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cbProvider.sizePolicy().hasHeightForWidth())
        self.cbProvider.setSizePolicy(sizePolicy)
        self.cbProvider.setEditable(True)
        self.cbProvider.setObjectName(_fromUtf8("cbProvider"))
        self.horizontalLayout_2.addWidget(self.cbProvider)
        self.swProvider.addWidget(self.page)
        self.page_2 = QtGui.QWidget()
        self.page_2.setObjectName(_fromUtf8("page_2"))
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.page_2)
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.txtProvider = QtGui.QLineEdit(self.page_2)
        self.txtProvider.setEnabled(True)
        self.txtProvider.setReadOnly(True)
        self.txtProvider.setObjectName(_fromUtf8("txtProvider"))
        self.horizontalLayout_5.addWidget(self.txtProvider)
        self.swProvider.addWidget(self.page_2)
        self.gridLayout_2.addWidget(self.swProvider, 1, 1, 1, 1)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/res/document-edit.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tabdetails, icon, _fromUtf8(""))
        self.tabnavigation = QtGui.QWidget()
        self.tabnavigation.setObjectName(_fromUtf8("tabnavigation"))
        self.verticalLayout = QtGui.QVBoxLayout(self.tabnavigation)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.tablenavigation = QtGui.QTableView(self.tabnavigation)
        self.tablenavigation.setAlternatingRowColors(True)
        self.tablenavigation.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
        self.tablenavigation.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.tablenavigation.setObjectName(_fromUtf8("tablenavigation"))
        self.tablenavigation.horizontalHeader().setStretchLastSection(True)
        self.tablenavigation.verticalHeader().setVisible(False)
        self.verticalLayout.addWidget(self.tablenavigation)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label_4 = QtGui.QLabel(self.tabnavigation)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.horizontalLayout.addWidget(self.label_4)
        self.txtSearch = QtGui.QLineEdit(self.tabnavigation)
        self.txtSearch.setObjectName(_fromUtf8("txtSearch"))
        self.horizontalLayout.addWidget(self.txtSearch)
        self.verticalLayout.addLayout(self.horizontalLayout)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/res/table.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tabnavigation, icon1, _fromUtf8(""))
        self.gridLayout.addWidget(self.tabWidget, 1, 0, 1, 1)
        frmEntradaCompra.setCentralWidget(self.centralwidget)
        self.toolBar = QtGui.QToolBar(frmEntradaCompra)
        self.toolBar.setAllowedAreas(QtCore.Qt.AllToolBarAreas)
        self.toolBar.setToolButtonStyle(QtCore.Qt.ToolButtonIconOnly)
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        frmEntradaCompra.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.label_2.setBuddy(self.txtDocumentNumber)
        self.label.setBuddy(self.dtPicker)
        self.label_3.setBuddy(self.txtProvider)
        self.label_4.setBuddy(self.txtSearch)

        self.retranslateUi(frmEntradaCompra)
        self.tabWidget.setCurrentIndex(1)
        self.swProvider.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(frmEntradaCompra)
        frmEntradaCompra.setTabOrder(self.txtDocumentNumber, self.txtProvider)
        frmEntradaCompra.setTabOrder(self.txtProvider, self.dtPicker)
        frmEntradaCompra.setTabOrder(self.dtPicker, self.tabledetails)
        frmEntradaCompra.setTabOrder(self.tabledetails, self.txtObservations)
        frmEntradaCompra.setTabOrder(self.txtObservations, self.tabWidget)
        frmEntradaCompra.setTabOrder(self.tabWidget, self.cbProvider)
        frmEntradaCompra.setTabOrder(self.cbProvider, self.tablenavigation)
        frmEntradaCompra.setTabOrder(self.tablenavigation, self.txtSearch)

    def retranslateUi(self, frmEntradaCompra):
        frmEntradaCompra.setWindowTitle(QtGui.QApplication.translate("frmEntradaCompra", "Entrada Compra", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("frmEntradaCompra", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\"># Compra:</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("frmEntradaCompra", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Fecha:</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_2.setTitle(QtGui.QApplication.translate("frmEntradaCompra", "Observaciones", None, QtGui.QApplication.UnicodeUTF8))
        self.label_6.setText(QtGui.QApplication.translate("frmEntradaCompra", "Subtotal: ", None, QtGui.QApplication.UnicodeUTF8))
        self.lblSubtotal.setText(QtGui.QApplication.translate("frmEntradaCompra", "0.00", None, QtGui.QApplication.UnicodeUTF8))
        self.label_8.setText(QtGui.QApplication.translate("frmEntradaCompra", "IVA: ", None, QtGui.QApplication.UnicodeUTF8))
        self.lblIVA.setText(QtGui.QApplication.translate("frmEntradaCompra", "0.00", None, QtGui.QApplication.UnicodeUTF8))
        self.label_11.setText(QtGui.QApplication.translate("frmEntradaCompra", "Total C$: ", None, QtGui.QApplication.UnicodeUTF8))
        self.lblTotal.setText(QtGui.QApplication.translate("frmEntradaCompra", "0.00", None, QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(QtGui.QApplication.translate("frmEntradaCompra", "Total US$:", None, QtGui.QApplication.UnicodeUTF8))
        self.lblTotalD.setText(QtGui.QApplication.translate("frmEntradaCompra", "0.00", None, QtGui.QApplication.UnicodeUTF8))
        self.gbRadios.setTitle(QtGui.QApplication.translate("frmEntradaCompra", "Tipo de Pago", None, QtGui.QApplication.UnicodeUTF8))
        self.rbCash.setText(QtGui.QApplication.translate("frmEntradaCompra", "Contado", None, QtGui.QApplication.UnicodeUTF8))
        self.rbCredit.setText(QtGui.QApplication.translate("frmEntradaCompra", "Credito", None, QtGui.QApplication.UnicodeUTF8))
        self.rbCheck.setText(QtGui.QApplication.translate("frmEntradaCompra", "Cheque", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("frmEntradaCompra", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Proveedor:</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("frmEntradaCompra", "&Buscar", None, QtGui.QApplication.UnicodeUTF8))
        self.toolBar.setWindowTitle(QtGui.QApplication.translate("frmEntradaCompra", "toolBar", None, QtGui.QApplication.UnicodeUTF8))