class Ui_JobTicketChooserDialog(object):
    def setupUi(self, JobTicketChooserDialog):
        JobTicketChooserDialog.setObjectName(_fromUtf8("JobTicketChooserDialog"))
        JobTicketChooserDialog.resize(702, 457)
        JobTicketChooserDialog.setSizeGripEnabled(True)
        JobTicketChooserDialog.setModal(True)
        self.verticalLayout_3 = QtGui.QVBoxLayout(JobTicketChooserDialog)
        self.verticalLayout_3.setMargin(4)
        self.verticalLayout_3.setSpacing(4)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.splitter = QtGui.QSplitter(JobTicketChooserDialog)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.treeJobTypes = QtGui.QTreeView(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.treeJobTypes.sizePolicy().hasHeightForWidth())
        self.treeJobTypes.setSizePolicy(sizePolicy)
        self.treeJobTypes.setSizeIncrement(QtCore.QSize(1, 0))
        self.treeJobTypes.setObjectName(_fromUtf8("treeJobTypes"))
        self.tabWidget = QtGui.QTabWidget(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setTabPosition(QtGui.QTabWidget.North)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tabOld = QtGui.QWidget()
        self.tabOld.setObjectName(_fromUtf8("tabOld"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.tabOld)
        self.horizontalLayout.setMargin(4)
        self.horizontalLayout.setSpacing(4)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.tblOldTickets = CTableView(self.tabOld)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tblOldTickets.sizePolicy().hasHeightForWidth())
        self.tblOldTickets.setSizePolicy(sizePolicy)
        self.tblOldTickets.setSizeIncrement(QtCore.QSize(2, 0))
        self.tblOldTickets.setObjectName(_fromUtf8("tblOldTickets"))
        self.horizontalLayout.addWidget(self.tblOldTickets)
        self.tabWidget.addTab(self.tabOld, _fromUtf8(""))
        self.tabNew = QtGui.QWidget()
        self.tabNew.setObjectName(_fromUtf8("tabNew"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.tabNew)
        self.horizontalLayout_2.setMargin(4)
        self.horizontalLayout_2.setSpacing(4)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.widget = QtGui.QWidget(self.tabNew)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.widget.sizePolicy().hasHeightForWidth())
        self.widget.setSizePolicy(sizePolicy)
        self.widget.setObjectName(_fromUtf8("widget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.widget)
        self.verticalLayout.setSizeConstraint(QtGui.QLayout.SetMaximumSize)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.clnCalendar = CCalendarWidget(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.clnCalendar.sizePolicy().hasHeightForWidth())
        self.clnCalendar.setSizePolicy(sizePolicy)
        self.clnCalendar.setFirstDayOfWeek(QtCore.Qt.Monday)
        self.clnCalendar.setGridVisible(False)
        self.clnCalendar.setVerticalHeaderFormat(QtGui.QCalendarWidget.ISOWeekNumbers)
        self.clnCalendar.setObjectName(_fromUtf8("clnCalendar"))
        self.verticalLayout.addWidget(self.clnCalendar)
        self.gpSuperviseUnit = QtGui.QGroupBox(self.widget)
        self.gpSuperviseUnit.setObjectName(_fromUtf8("gpSuperviseUnit"))
        self.gridLayout = QtGui.QGridLayout(self.gpSuperviseUnit)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.lblJobDescription = QtGui.QLabel(self.gpSuperviseUnit)
        self.lblJobDescription.setText(_fromUtf8(""))
        self.lblJobDescription.setAlignment(QtCore.Qt.AlignCenter)
        self.lblJobDescription.setWordWrap(True)
        self.lblJobDescription.setObjectName(_fromUtf8("lblJobDescription"))
        self.gridLayout.addWidget(self.lblJobDescription, 0, 0, 1, 4)
        self.lblCurrentSuperviseUnitValue = QtGui.QLabel(self.gpSuperviseUnit)
        self.lblCurrentSuperviseUnitValue.setObjectName(_fromUtf8("lblCurrentSuperviseUnitValue"))
        self.gridLayout.addWidget(self.lblCurrentSuperviseUnitValue, 1, 1, 1, 3)
        self.lblCurrentSuperviseUnit = QtGui.QLabel(self.gpSuperviseUnit)
        self.lblCurrentSuperviseUnit.setObjectName(_fromUtf8("lblCurrentSuperviseUnit"))
        self.gridLayout.addWidget(self.lblCurrentSuperviseUnit, 1, 0, 1, 1)
        self.groupBox = QtGui.QGroupBox(self.gpSuperviseUnit)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.lblLimitSuperviseUnitValue = QtGui.QLabel(self.groupBox)
        self.lblLimitSuperviseUnitValue.setObjectName(_fromUtf8("lblLimitSuperviseUnitValue"))
        self.gridLayout_2.addWidget(self.lblLimitSuperviseUnitValue, 0, 3, 1, 1)
        self.lblFromSuperviseUnit = QtGui.QLabel(self.groupBox)
        self.lblFromSuperviseUnit.setObjectName(_fromUtf8("lblFromSuperviseUnit"))
        self.gridLayout_2.addWidget(self.lblFromSuperviseUnit, 0, 2, 1, 1)
        self.lblFreePersonQuota = QtGui.QLabel(self.groupBox)
        self.lblFreePersonQuota.setObjectName(_fromUtf8("lblFreePersonQuota"))
        self.gridLayout_2.addWidget(self.lblFreePersonQuota, 1, 1, 1, 1)
        self.lblFromPersonQuota = QtGui.QLabel(self.groupBox)
        self.lblFromPersonQuota.setObjectName(_fromUtf8("lblFromPersonQuota"))
        self.gridLayout_2.addWidget(self.lblFromPersonQuota, 1, 2, 1, 1)
        self.lblPersonQuota = QtGui.QLabel(self.groupBox)
        self.lblPersonQuota.setObjectName(_fromUtf8("lblPersonQuota"))
        self.gridLayout_2.addWidget(self.lblPersonQuota, 1, 0, 1, 1)
        self.lblLimitPersonQuota = QtGui.QLabel(self.groupBox)
        self.lblLimitPersonQuota.setObjectName(_fromUtf8("lblLimitPersonQuota"))
        self.gridLayout_2.addWidget(self.lblLimitPersonQuota, 1, 3, 1, 1)
        self.lblFreeSuperviseUnit = QtGui.QLabel(self.groupBox)
        self.lblFreeSuperviseUnit.setObjectName(_fromUtf8("lblFreeSuperviseUnit"))
        self.gridLayout_2.addWidget(self.lblFreeSuperviseUnit, 0, 0, 1, 1)
        self.lblOnDayLimitTitle = QtGui.QLabel(self.groupBox)
        self.lblOnDayLimitTitle.setObjectName(_fromUtf8("lblOnDayLimitTitle"))
        self.gridLayout_2.addWidget(self.lblOnDayLimitTitle, 2, 0, 1, 1)
        self.lblFreeSuperviseUnitValue = QtGui.QLabel(self.groupBox)
        self.lblFreeSuperviseUnitValue.setObjectName(_fromUtf8("lblFreeSuperviseUnitValue"))
        self.gridLayout_2.addWidget(self.lblFreeSuperviseUnitValue, 0, 1, 1, 1)
        self.lblOnDayActionTypes = QtGui.QLabel(self.groupBox)
        self.lblOnDayActionTypes.setText(_fromUtf8(""))
        self.lblOnDayActionTypes.setWordWrap(True)
        self.lblOnDayActionTypes.setObjectName(_fromUtf8("lblOnDayActionTypes"))
        self.gridLayout_2.addWidget(self.lblOnDayActionTypes, 3, 0, 1, 1)
        self.lblOnDayLimits = QtGui.QLabel(self.groupBox)
        self.lblOnDayLimits.setText(_fromUtf8(""))
        self.lblOnDayLimits.setAlignment(QtCore.Qt.AlignCenter)
        self.lblOnDayLimits.setObjectName(_fromUtf8("lblOnDayLimits"))
        self.gridLayout_2.addWidget(self.lblOnDayLimits, 3, 1, 1, 3)
        self.gridLayout.addWidget(self.groupBox, 2, 0, 1, 4)
        self.verticalLayout.addWidget(self.gpSuperviseUnit)
        self.label = QtGui.QLabel(self.widget)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        self.cmbSubdivFilter = QtGui.QComboBox(self.widget)
        self.cmbSubdivFilter.setObjectName(_fromUtf8("cmbSubdivFilter"))
        self.verticalLayout.addWidget(self.cmbSubdivFilter)
        self.btnApplyFilter = QtGui.QPushButton(self.widget)
        self.btnApplyFilter.setObjectName(_fromUtf8("btnApplyFilter"))
        self.verticalLayout.addWidget(self.btnApplyFilter)
        spacerItem = QtGui.QSpacerItem(20, 152, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.horizontalLayout_2.addWidget(self.widget)
        self.tblTickets = CTableView(self.tabNew)
        self.tblTickets.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tblTickets.sizePolicy().hasHeightForWidth())
        self.tblTickets.setSizePolicy(sizePolicy)
        self.tblTickets.setSizeIncrement(QtCore.QSize(2, 0))
        self.tblTickets.setObjectName(_fromUtf8("tblTickets"))
        self.horizontalLayout_2.addWidget(self.tblTickets)
        self.tabWidget.addTab(self.tabNew, _fromUtf8(""))
        self.verticalLayout_3.addWidget(self.splitter)
        self.buttonBox = QtGui.QDialogButtonBox(JobTicketChooserDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.verticalLayout_3.addWidget(self.buttonBox)
        self.buttonBox.raise_()
        self.splitter.raise_()

        self.retranslateUi(JobTicketChooserDialog)
        self.tabWidget.setCurrentIndex(1)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), JobTicketChooserDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), JobTicketChooserDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(JobTicketChooserDialog)
        JobTicketChooserDialog.setTabOrder(self.treeJobTypes, self.tabWidget)
        JobTicketChooserDialog.setTabOrder(self.tabWidget, self.tblOldTickets)
        JobTicketChooserDialog.setTabOrder(self.tblOldTickets, self.clnCalendar)
        JobTicketChooserDialog.setTabOrder(self.clnCalendar, self.tblTickets)
        JobTicketChooserDialog.setTabOrder(self.tblTickets, self.buttonBox)

    def retranslateUi(self, JobTicketChooserDialog):
        JobTicketChooserDialog.setWindowTitle(_translate("JobTicketChooserDialog", "Выберите работу-дату-место", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabOld), _translate("JobTicketChooserDialog", "Ранее назначенные", None))
        self.gpSuperviseUnit.setTitle(_translate("JobTicketChooserDialog", "Информация по квотам и УЕТ", None))
        self.lblCurrentSuperviseUnitValue.setText(_translate("JobTicketChooserDialog", "0", None))
        self.lblCurrentSuperviseUnit.setText(_translate("JobTicketChooserDialog", "УЕТ текущей услуги:", None))
        self.groupBox.setTitle(_translate("JobTicketChooserDialog", "Остатки", None))
        self.lblLimitSuperviseUnitValue.setText(_translate("JobTicketChooserDialog", "0", None))
        self.lblFromSuperviseUnit.setText(_translate("JobTicketChooserDialog", "из", None))
        self.lblFreePersonQuota.setText(_translate("JobTicketChooserDialog", "0", None))
        self.lblFromPersonQuota.setText(_translate("JobTicketChooserDialog", "из", None))
        self.lblPersonQuota.setText(_translate("JobTicketChooserDialog", "Врачебная квота:", None))
        self.lblLimitPersonQuota.setText(_translate("JobTicketChooserDialog", "0", None))
        self.lblFreeSuperviseUnit.setText(_translate("JobTicketChooserDialog", "УЕТ:", None))
        self.lblOnDayLimitTitle.setText(_translate("JobTicketChooserDialog", "Суточная квота:", None))
        self.lblFreeSuperviseUnitValue.setText(_translate("JobTicketChooserDialog", "0", None))
        self.label.setText(_translate("JobTicketChooserDialog", "Фильтр подразделений", None))
        self.btnApplyFilter.setText(_translate("JobTicketChooserDialog", "Применить", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabNew), _translate("JobTicketChooserDialog", "Новые", None))
Example #2
0
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(846, 578)
        self.gridLayout = QtGui.QGridLayout(Dialog)
        self.gridLayout.setMargin(4)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.tabWidget = QtGui.QTabWidget(Dialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setMinimumSize(QtCore.QSize(0, 0))
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.tab)
        self.horizontalLayout.setSpacing(4)
        self.horizontalLayout.setMargin(4)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.calendarHoliday = CCalendarWidget(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.calendarHoliday.sizePolicy().hasHeightForWidth())
        self.calendarHoliday.setSizePolicy(sizePolicy)
        self.calendarHoliday.setMinimumSize(QtCore.QSize(300, 0))
        self.calendarHoliday.setFirstDayOfWeek(QtCore.Qt.Monday)
        self.calendarHoliday.setGridVisible(True)
        self.calendarHoliday.setObjectName(_fromUtf8("calendarHoliday"))
        self.horizontalLayout.addWidget(self.calendarHoliday)
        self.tableHoliday = CTableView(self.tab)
        self.tableHoliday.setEditTriggers(
            QtGui.QAbstractItemView.NoEditTriggers)
        self.tableHoliday.setObjectName(_fromUtf8("tableHoliday"))
        self.horizontalLayout.addWidget(self.tableHoliday)
        self.tabWidget.addTab(self.tab, _fromUtf8(""))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.tab_2)
        self.horizontalLayout_3.setSpacing(4)
        self.horizontalLayout_3.setMargin(4)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.calendarChangeday = CCalendarWidget(self.tab_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.calendarChangeday.sizePolicy().hasHeightForWidth())
        self.calendarChangeday.setSizePolicy(sizePolicy)
        self.calendarChangeday.setMinimumSize(QtCore.QSize(300, 0))
        self.calendarChangeday.setFirstDayOfWeek(QtCore.Qt.Monday)
        self.calendarChangeday.setGridVisible(True)
        self.calendarChangeday.setObjectName(_fromUtf8("calendarChangeday"))
        self.horizontalLayout_3.addWidget(self.calendarChangeday)
        self.tableChangeday = CTableView(self.tab_2)
        self.tableChangeday.setEditTriggers(
            QtGui.QAbstractItemView.NoEditTriggers)
        self.tableChangeday.setObjectName(_fromUtf8("tableChangeday"))
        self.horizontalLayout_3.addWidget(self.tableChangeday)
        self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
        self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 4)
        spacerItem = QtGui.QSpacerItem(577, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 1, 0, 1, 1)
        self.buttonEdit = QtGui.QPushButton(Dialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.buttonEdit.sizePolicy().hasHeightForWidth())
        self.buttonEdit.setSizePolicy(sizePolicy)
        self.buttonEdit.setDefault(True)
        self.buttonEdit.setObjectName(_fromUtf8("buttonEdit"))
        self.gridLayout.addWidget(self.buttonEdit, 1, 1, 1, 1)
        self.buttonAdd = QtGui.QPushButton(Dialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.buttonAdd.sizePolicy().hasHeightForWidth())
        self.buttonAdd.setSizePolicy(sizePolicy)
        self.buttonAdd.setAutoDefault(False)
        self.buttonAdd.setObjectName(_fromUtf8("buttonAdd"))
        self.gridLayout.addWidget(self.buttonAdd, 1, 2, 1, 1)
        self.buttonClose = QtGui.QPushButton(Dialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.buttonClose.sizePolicy().hasHeightForWidth())
        self.buttonClose.setSizePolicy(sizePolicy)
        self.buttonClose.setAutoDefault(False)
        self.buttonClose.setObjectName(_fromUtf8("buttonClose"))
        self.gridLayout.addWidget(self.buttonClose, 1, 3, 1, 1)

        self.retranslateUi(Dialog)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QObject.connect(
            self.calendarHoliday,
            QtCore.SIGNAL(_fromUtf8("currentPageChanged(int,int)")),
            Dialog.updateTable)
        QtCore.QObject.connect(
            self.calendarChangeday,
            QtCore.SIGNAL(_fromUtf8("currentPageChanged(int,int)")),
            Dialog.updateTable)
        QtCore.QObject.connect(
            self.tableHoliday,
            QtCore.SIGNAL(_fromUtf8("clicked(QModelIndex)")),
            Dialog.updateCalendar)
        QtCore.QObject.connect(
            self.tableHoliday,
            QtCore.SIGNAL(_fromUtf8("activated(QModelIndex)")),
            Dialog.updateCalendar)
        QtCore.QObject.connect(
            self.tableHoliday,
            QtCore.SIGNAL(_fromUtf8("doubleClicked(QModelIndex)")),
            Dialog.edit)
        QtCore.QObject.connect(
            self.tableChangeday,
            QtCore.SIGNAL(_fromUtf8("clicked(QModelIndex)")),
            Dialog.updateCalendar)
        QtCore.QObject.connect(
            self.tableChangeday,
            QtCore.SIGNAL(_fromUtf8("activated(QModelIndex)")),
            Dialog.updateCalendar)
        QtCore.QObject.connect(
            self.tableChangeday,
            QtCore.SIGNAL(_fromUtf8("doubleClicked(QModelIndex)")),
            Dialog.edit)
        QtCore.QObject.connect(self.buttonClose,
                               QtCore.SIGNAL(_fromUtf8("pressed()")),
                               Dialog.close)
        QtCore.QObject.connect(self.buttonAdd,
                               QtCore.SIGNAL(_fromUtf8("pressed()")),
                               Dialog.add)
        QtCore.QObject.connect(self.buttonEdit,
                               QtCore.SIGNAL(_fromUtf8("pressed()")),
                               Dialog.edit)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        Dialog.setTabOrder(self.tabWidget, self.calendarHoliday)
        Dialog.setTabOrder(self.calendarHoliday, self.tableHoliday)
        Dialog.setTabOrder(self.tableHoliday, self.calendarChangeday)
        Dialog.setTabOrder(self.calendarChangeday, self.tableChangeday)
        Dialog.setTabOrder(self.tableChangeday, self.buttonEdit)
        Dialog.setTabOrder(self.buttonEdit, self.buttonAdd)
        Dialog.setTabOrder(self.buttonAdd, self.buttonClose)

    def retranslateUi(self, Dialog):
        Dialog.setWindowTitle(
            QtGui.QApplication.translate("Dialog",
                                         "Настройки календарных отклонений",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab),
            QtGui.QApplication.translate("Dialog", "Праздники", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab_2),
            QtGui.QApplication.translate("Dialog", "Переносы", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.buttonEdit.setText(
            QtGui.QApplication.translate("Dialog", "F4 правка", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.buttonEdit.setShortcut(
            QtGui.QApplication.translate("Dialog", "F4", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.buttonAdd.setText(
            QtGui.QApplication.translate("Dialog", "F9 вставка", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.buttonAdd.setShortcut(
            QtGui.QApplication.translate("Dialog", "F9", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.buttonClose.setText(
            QtGui.QApplication.translate("Dialog", "Закрыть", None,
                                         QtGui.QApplication.UnicodeUTF8))
Example #3
0
class Ui_JobsOperatingDialog(object):
    def setupUi(self, JobsOperatingDialog):
        JobsOperatingDialog.setObjectName(_fromUtf8("JobsOperatingDialog"))
        JobsOperatingDialog.setWindowModality(QtCore.Qt.NonModal)
        JobsOperatingDialog.resize(1159, 743)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(JobsOperatingDialog.sizePolicy().hasHeightForWidth())
        JobsOperatingDialog.setSizePolicy(sizePolicy)
        JobsOperatingDialog.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.verticalLayout_3 = QtGui.QVBoxLayout(JobsOperatingDialog)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.splitter_2 = QtGui.QSplitter(JobsOperatingDialog)
        self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_2.setObjectName(_fromUtf8("splitter_2"))
        self.pnlFilter = QtGui.QWidget(self.splitter_2)
        self.pnlFilter.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pnlFilter.sizePolicy().hasHeightForWidth())
        self.pnlFilter.setSizePolicy(sizePolicy)
        self.pnlFilter.setObjectName(_fromUtf8("pnlFilter"))
        self.verticalLayout = QtGui.QVBoxLayout(self.pnlFilter)
        self.verticalLayout.setSizeConstraint(QtGui.QLayout.SetMaximumSize)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.pnlSmartFilter = QtGui.QWidget(self.pnlFilter)
        self.pnlSmartFilter.setObjectName(_fromUtf8("pnlSmartFilter"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.pnlSmartFilter)
        self.verticalLayout_4.setMargin(0)
        self.verticalLayout_4.setSpacing(4)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.splitter = QtGui.QSplitter(self.pnlSmartFilter)
        self.splitter.setOrientation(QtCore.Qt.Vertical)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.treeOrgStructure = QtGui.QTreeView(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(10)
        sizePolicy.setHeightForWidth(self.treeOrgStructure.sizePolicy().hasHeightForWidth())
        self.treeOrgStructure.setSizePolicy(sizePolicy)
        self.treeOrgStructure.setObjectName(_fromUtf8("treeOrgStructure"))
        self.tabDateClientFilter = QtGui.QTabWidget(self.splitter)
        self.tabDateClientFilter.setObjectName(_fromUtf8("tabDateClientFilter"))
        self.tabDateFilter = QtGui.QWidget()
        self.tabDateFilter.setObjectName(_fromUtf8("tabDateFilter"))
        self.gridLayout_2 = QtGui.QGridLayout(self.tabDateFilter)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.calendar = CCalendarWidget(self.tabDateFilter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.calendar.sizePolicy().hasHeightForWidth())
        self.calendar.setSizePolicy(sizePolicy)
        self.calendar.setFirstDayOfWeek(QtCore.Qt.Monday)
        self.calendar.setGridVisible(False)
        self.calendar.setObjectName(_fromUtf8("calendar"))
        self.gridLayout_2.addWidget(self.calendar, 1, 1, 1, 1)
        self.pnlDateRange = QtGui.QWidget(self.tabDateFilter)
        self.pnlDateRange.setEnabled(False)
        self.pnlDateRange.setObjectName(_fromUtf8("pnlDateRange"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.pnlDateRange)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.lblDateRangeFrom = QtGui.QLabel(self.pnlDateRange)
        self.lblDateRangeFrom.setEnabled(False)
        self.lblDateRangeFrom.setObjectName(_fromUtf8("lblDateRangeFrom"))
        self.horizontalLayout.addWidget(self.lblDateRangeFrom)
        self.edtDateRangeFrom = CDateEdit(self.pnlDateRange)
        self.edtDateRangeFrom.setEnabled(False)
        self.edtDateRangeFrom.setObjectName(_fromUtf8("edtDateRangeFrom"))
        self.horizontalLayout.addWidget(self.edtDateRangeFrom)
        self.lblDateRangeTo = QtGui.QLabel(self.pnlDateRange)
        self.lblDateRangeTo.setEnabled(False)
        self.lblDateRangeTo.setObjectName(_fromUtf8("lblDateRangeTo"))
        self.horizontalLayout.addWidget(self.lblDateRangeTo)
        self.edtDateRangeTo = CDateEdit(self.pnlDateRange)
        self.edtDateRangeTo.setEnabled(False)
        self.edtDateRangeTo.setObjectName(_fromUtf8("edtDateRangeTo"))
        self.horizontalLayout.addWidget(self.edtDateRangeTo)
        self.gridLayout_2.addWidget(self.pnlDateRange, 2, 1, 1, 1)
        self.btnCalendarDate = QtGui.QRadioButton(self.tabDateFilter)
        self.btnCalendarDate.setText(_fromUtf8(""))
        self.btnCalendarDate.setCheckable(True)
        self.btnCalendarDate.setChecked(True)
        self.btnCalendarDate.setObjectName(_fromUtf8("btnCalendarDate"))
        self.gridLayout_2.addWidget(self.btnCalendarDate, 1, 0, 1, 1)
        self.btnDateRange = QtGui.QRadioButton(self.tabDateFilter)
        self.btnDateRange.setText(_fromUtf8(""))
        self.btnDateRange.setObjectName(_fromUtf8("btnDateRange"))
        self.gridLayout_2.addWidget(self.btnDateRange, 2, 0, 1, 1)
        self.tabDateClientFilter.addTab(self.tabDateFilter, _fromUtf8(""))
        self.tblJobTypes = CTableView(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(10)
        sizePolicy.setHeightForWidth(self.tblJobTypes.sizePolicy().hasHeightForWidth())
        self.tblJobTypes.setSizePolicy(sizePolicy)
        self.tblJobTypes.setObjectName(_fromUtf8("tblJobTypes"))
        self.verticalLayout_4.addWidget(self.splitter)
        self.verticalLayout_2.addWidget(self.pnlSmartFilter)
        self.verticalLayout.addLayout(self.verticalLayout_2)
        self.pnlJobTickets = QtGui.QWidget(self.splitter_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(10)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pnlJobTickets.sizePolicy().hasHeightForWidth())
        self.pnlJobTickets.setSizePolicy(sizePolicy)
        self.pnlJobTickets.setObjectName(_fromUtf8("pnlJobTickets"))
        self.gridLayout_4 = QtGui.QGridLayout(self.pnlJobTickets)
        self.gridLayout_4.setMargin(0)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.lblSuperviseInfo = QtGui.QLabel(self.pnlJobTickets)
        self.lblSuperviseInfo.setObjectName(_fromUtf8("lblSuperviseInfo"))
        self.gridLayout_4.addWidget(self.lblSuperviseInfo, 4, 2, 1, 1)
        self.tblJobTickets = CJobTicketsView(self.pnlJobTickets)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tblJobTickets.sizePolicy().hasHeightForWidth())
        self.tblJobTickets.setSizePolicy(sizePolicy)
        self.tblJobTickets.setObjectName(_fromUtf8("tblJobTickets"))
        self.gridLayout_4.addWidget(self.tblJobTickets, 0, 1, 1, 2)
        self.lblTicketsCount = QtGui.QLabel(self.pnlJobTickets)
        self.lblTicketsCount.setObjectName(_fromUtf8("lblTicketsCount"))
        self.gridLayout_4.addWidget(self.lblTicketsCount, 4, 1, 1, 1)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setContentsMargins(-1, -1, 0, -1)
        self.gridLayout_3.setHorizontalSpacing(1)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.lblCurrentTablePage = QtGui.QLabel(self.pnlJobTickets)
        self.lblCurrentTablePage.setEnabled(False)
        self.lblCurrentTablePage.setMinimumSize(QtCore.QSize(100, 0))
        self.lblCurrentTablePage.setAlignment(QtCore.Qt.AlignCenter)
        self.lblCurrentTablePage.setObjectName(_fromUtf8("lblCurrentTablePage"))
        self.gridLayout_3.addWidget(self.lblCurrentTablePage, 0, 2, 1, 1)
        self.btnNextTablePage = QtGui.QPushButton(self.pnlJobTickets)
        self.btnNextTablePage.setEnabled(False)
        self.btnNextTablePage.setObjectName(_fromUtf8("btnNextTablePage"))
        self.gridLayout_3.addWidget(self.btnNextTablePage, 0, 3, 1, 1)
        self.btnPrevTablePage = QtGui.QPushButton(self.pnlJobTickets)
        self.btnPrevTablePage.setEnabled(False)
        self.btnPrevTablePage.setObjectName(_fromUtf8("btnPrevTablePage"))
        self.gridLayout_3.addWidget(self.btnPrevTablePage, 0, 1, 1, 1)
        self.gridLayout_4.addLayout(self.gridLayout_3, 3, 2, 1, 1)
        self.lblMaxTablePagesCount = QtGui.QLabel(self.pnlJobTickets)
        self.lblMaxTablePagesCount.setEnabled(False)
        self.lblMaxTablePagesCount.setObjectName(_fromUtf8("lblMaxTablePagesCount"))
        self.gridLayout_4.addWidget(self.lblMaxTablePagesCount, 3, 1, 1, 1)
        self.verticalLayout_3.addWidget(self.splitter_2)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.btnEnableStaticFilter = QtGui.QToolButton(JobsOperatingDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btnEnableStaticFilter.sizePolicy().hasHeightForWidth())
        self.btnEnableStaticFilter.setSizePolicy(sizePolicy)
        self.btnEnableStaticFilter.setCheckable(True)
        self.btnEnableStaticFilter.setChecked(True)
        self.btnEnableStaticFilter.setAutoExclusive(False)
        self.btnEnableStaticFilter.setObjectName(_fromUtf8("btnEnableStaticFilter"))
        self.horizontalLayout_2.addWidget(self.btnEnableStaticFilter)
        self.btnEnableEQueue = QtGui.QToolButton(JobsOperatingDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btnEnableEQueue.sizePolicy().hasHeightForWidth())
        self.btnEnableEQueue.setSizePolicy(sizePolicy)
        self.btnEnableEQueue.setCheckable(True)
        self.btnEnableEQueue.setAutoExclusive(False)
        self.btnEnableEQueue.setObjectName(_fromUtf8("btnEnableEQueue"))
        self.horizontalLayout_2.addWidget(self.btnEnableEQueue)
        self.verticalLayout_3.addLayout(self.horizontalLayout_2)
        self.grpStaticFilter = QtGui.QStackedWidget(JobsOperatingDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.grpStaticFilter.sizePolicy().hasHeightForWidth())
        self.grpStaticFilter.setSizePolicy(sizePolicy)
        self.grpStaticFilter.setMinimumSize(QtCore.QSize(0, 0))
        self.grpStaticFilter.setObjectName(_fromUtf8("grpStaticFilter"))
        self.grpStaticFilterPage1 = QtGui.QWidget()
        self.grpStaticFilterPage1.setObjectName(_fromUtf8("grpStaticFilterPage1"))
        self.gridLayout = QtGui.QGridLayout(self.grpStaticFilterPage1)
        self.gridLayout.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
        self.gridLayout.setMargin(4)
        self.gridLayout.setSpacing(4)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.grpPersonFilter = QtGui.QGroupBox(self.grpStaticFilterPage1)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.grpPersonFilter.sizePolicy().hasHeightForWidth())
        self.grpPersonFilter.setSizePolicy(sizePolicy)
        self.grpPersonFilter.setObjectName(_fromUtf8("grpPersonFilter"))
        self.gridLayout_8 = QtGui.QGridLayout(self.grpPersonFilter)
        self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
        self.lblOrgStructure = QtGui.QLabel(self.grpPersonFilter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lblOrgStructure.sizePolicy().hasHeightForWidth())
        self.lblOrgStructure.setSizePolicy(sizePolicy)
        self.lblOrgStructure.setObjectName(_fromUtf8("lblOrgStructure"))
        self.gridLayout_8.addWidget(self.lblOrgStructure, 0, 0, 1, 1)
        self.cmbOrgStructure = COrgStructureComboBox(self.grpPersonFilter)
        self.cmbOrgStructure.setObjectName(_fromUtf8("cmbOrgStructure"))
        self.gridLayout_8.addWidget(self.cmbOrgStructure, 0, 1, 1, 1)
        self.lblSpeciality = QtGui.QLabel(self.grpPersonFilter)
        self.lblSpeciality.setObjectName(_fromUtf8("lblSpeciality"))
        self.gridLayout_8.addWidget(self.lblSpeciality, 1, 0, 1, 1)
        self.cmbSpeciality = CRBComboBox(self.grpPersonFilter)
        self.cmbSpeciality.setObjectName(_fromUtf8("cmbSpeciality"))
        self.gridLayout_8.addWidget(self.cmbSpeciality, 1, 1, 1, 1)
        self.lblPerson = QtGui.QLabel(self.grpPersonFilter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lblPerson.sizePolicy().hasHeightForWidth())
        self.lblPerson.setSizePolicy(sizePolicy)
        self.lblPerson.setObjectName(_fromUtf8("lblPerson"))
        self.gridLayout_8.addWidget(self.lblPerson, 2, 0, 1, 1)
        self.cmbPerson = CPersonComboBoxEx(self.grpPersonFilter)
        self.cmbPerson.setObjectName(_fromUtf8("cmbPerson"))
        self.cmbPerson.addItem(_fromUtf8(""))
        self.gridLayout_8.addWidget(self.cmbPerson, 2, 1, 1, 1)
        self.chkFilterListLength = QtGui.QCheckBox(self.grpPersonFilter)
        self.chkFilterListLength.setEnabled(True)
        self.chkFilterListLength.setChecked(True)
        self.chkFilterListLength.setObjectName(_fromUtf8("chkFilterListLength"))
        self.gridLayout_8.addWidget(self.chkFilterListLength, 3, 1, 1, 1)
        self.edtFilterListLength = QtGui.QSpinBox(self.grpPersonFilter)
        self.edtFilterListLength.setMaximum(1000000000)
        self.edtFilterListLength.setProperty("value", 250)
        self.edtFilterListLength.setObjectName(_fromUtf8("edtFilterListLength"))
        self.gridLayout_8.addWidget(self.edtFilterListLength, 4, 1, 1, 1)
        self.buttonBoxFilter = QtGui.QDialogButtonBox(self.grpPersonFilter)
        self.buttonBoxFilter.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBoxFilter.setStandardButtons(QtGui.QDialogButtonBox.Apply|QtGui.QDialogButtonBox.Reset)
        self.buttonBoxFilter.setObjectName(_fromUtf8("buttonBoxFilter"))
        self.gridLayout_8.addWidget(self.buttonBoxFilter, 5, 0, 1, 2)
        self.gridLayout.addWidget(self.grpPersonFilter, 10, 2, 1, 1)
        self.groupBox_2 = QtGui.QGroupBox(self.grpStaticFilterPage1)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.gridLayout_6 = QtGui.QGridLayout(self.groupBox_2)
        self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6"))
        self.chkClientLastName = QtGui.QCheckBox(self.groupBox_2)
        self.chkClientLastName.setObjectName(_fromUtf8("chkClientLastName"))
        self.gridLayout_6.addWidget(self.chkClientLastName, 0, 0, 1, 2)
        self.edtClientLastName = QtGui.QLineEdit(self.groupBox_2)
        self.edtClientLastName.setEnabled(False)
        self.edtClientLastName.setObjectName(_fromUtf8("edtClientLastName"))
        self.gridLayout_6.addWidget(self.edtClientLastName, 0, 2, 1, 4)
        self.chkClientFirstName = QtGui.QCheckBox(self.groupBox_2)
        self.chkClientFirstName.setObjectName(_fromUtf8("chkClientFirstName"))
        self.gridLayout_6.addWidget(self.chkClientFirstName, 1, 0, 1, 2)
        self.edtClientFirstName = QtGui.QLineEdit(self.groupBox_2)
        self.edtClientFirstName.setEnabled(False)
        self.edtClientFirstName.setObjectName(_fromUtf8("edtClientFirstName"))
        self.gridLayout_6.addWidget(self.edtClientFirstName, 1, 2, 1, 4)
        self.chkClientPatrName = QtGui.QCheckBox(self.groupBox_2)
        self.chkClientPatrName.setObjectName(_fromUtf8("chkClientPatrName"))
        self.gridLayout_6.addWidget(self.chkClientPatrName, 2, 0, 1, 2)
        self.edtClientPatrName = QtGui.QLineEdit(self.groupBox_2)
        self.edtClientPatrName.setEnabled(False)
        self.edtClientPatrName.setObjectName(_fromUtf8("edtClientPatrName"))
        self.gridLayout_6.addWidget(self.edtClientPatrName, 2, 2, 1, 4)
        self.lblSex = QtGui.QLabel(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lblSex.sizePolicy().hasHeightForWidth())
        self.lblSex.setSizePolicy(sizePolicy)
        self.lblSex.setObjectName(_fromUtf8("lblSex"))
        self.gridLayout_6.addWidget(self.lblSex, 3, 0, 1, 1)
        self.cmbSex = QtGui.QComboBox(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cmbSex.sizePolicy().hasHeightForWidth())
        self.cmbSex.setSizePolicy(sizePolicy)
        self.cmbSex.setObjectName(_fromUtf8("cmbSex"))
        self.cmbSex.addItem(_fromUtf8(""))
        self.cmbSex.setItemText(0, _fromUtf8(""))
        self.cmbSex.addItem(_fromUtf8(""))
        self.cmbSex.addItem(_fromUtf8(""))
        self.gridLayout_6.addWidget(self.cmbSex, 3, 1, 1, 2)
        self.lblAge = QtGui.QLabel(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lblAge.sizePolicy().hasHeightForWidth())
        self.lblAge.setSizePolicy(sizePolicy)
        self.lblAge.setObjectName(_fromUtf8("lblAge"))
        self.gridLayout_6.addWidget(self.lblAge, 4, 0, 1, 1)
        self.edtAgeFrom = QtGui.QSpinBox(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.edtAgeFrom.sizePolicy().hasHeightForWidth())
        self.edtAgeFrom.setSizePolicy(sizePolicy)
        self.edtAgeFrom.setMaximum(150)
        self.edtAgeFrom.setObjectName(_fromUtf8("edtAgeFrom"))
        self.gridLayout_6.addWidget(self.edtAgeFrom, 4, 1, 1, 2)
        self.lblAgeTo = QtGui.QLabel(self.groupBox_2)
        self.lblAgeTo.setObjectName(_fromUtf8("lblAgeTo"))
        self.gridLayout_6.addWidget(self.lblAgeTo, 4, 3, 1, 1)
        self.edtAgeTo = QtGui.QSpinBox(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.edtAgeTo.sizePolicy().hasHeightForWidth())
        self.edtAgeTo.setSizePolicy(sizePolicy)
        self.edtAgeTo.setMaximum(150)
        self.edtAgeTo.setObjectName(_fromUtf8("edtAgeTo"))
        self.gridLayout_6.addWidget(self.edtAgeTo, 4, 4, 1, 1)
        self.lblAgeYears = QtGui.QLabel(self.groupBox_2)
        self.lblAgeYears.setObjectName(_fromUtf8("lblAgeYears"))
        self.gridLayout_6.addWidget(self.lblAgeYears, 4, 5, 1, 1)
        self.gridLayout.addWidget(self.groupBox_2, 10, 0, 1, 1)
        self.groupBox_3 = QtGui.QGroupBox(self.grpStaticFilterPage1)
        self.groupBox_3.setTitle(_fromUtf8(""))
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.gridLayout_7 = QtGui.QGridLayout(self.groupBox_3)
        self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7"))
        self.chkClientId = QtGui.QCheckBox(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.chkClientId.sizePolicy().hasHeightForWidth())
        self.chkClientId.setSizePolicy(sizePolicy)
        self.chkClientId.setObjectName(_fromUtf8("chkClientId"))
        self.gridLayout_7.addWidget(self.chkClientId, 0, 0, 1, 1)
        self.cmbClientAccountingSystem = CRBComboBox(self.groupBox_3)
        self.cmbClientAccountingSystem.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cmbClientAccountingSystem.sizePolicy().hasHeightForWidth())
        self.cmbClientAccountingSystem.setSizePolicy(sizePolicy)
        self.cmbClientAccountingSystem.setObjectName(_fromUtf8("cmbClientAccountingSystem"))
        self.gridLayout_7.addWidget(self.cmbClientAccountingSystem, 0, 1, 1, 3)
        self.edtClientId = QtGui.QLineEdit(self.groupBox_3)
        self.edtClientId.setEnabled(False)
        self.edtClientId.setInputMask(_fromUtf8(""))
        self.edtClientId.setMaxLength(32767)
        self.edtClientId.setObjectName(_fromUtf8("edtClientId"))
        self.gridLayout_7.addWidget(self.edtClientId, 1, 0, 1, 4)
        self.chkJobTicketId = QtGui.QCheckBox(self.groupBox_3)
        self.chkJobTicketId.setObjectName(_fromUtf8("chkJobTicketId"))
        self.gridLayout_7.addWidget(self.chkJobTicketId, 2, 0, 1, 2)
        self.edtJobTicketId = QtGui.QLineEdit(self.groupBox_3)
        self.edtJobTicketId.setEnabled(False)
        self.edtJobTicketId.setObjectName(_fromUtf8("edtJobTicketId"))
        self.gridLayout_7.addWidget(self.edtJobTicketId, 2, 2, 1, 2)
        self.lblTissueType = QtGui.QLabel(self.groupBox_3)
        self.lblTissueType.setObjectName(_fromUtf8("lblTissueType"))
        self.gridLayout_7.addWidget(self.lblTissueType, 3, 0, 1, 2)
        self.line = QtGui.QFrame(self.groupBox_3)
        self.line.setFrameShape(QtGui.QFrame.VLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.gridLayout_7.addWidget(self.line, 3, 2, 4, 1)
        self.chkAwaiting = QtGui.QCheckBox(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.chkAwaiting.sizePolicy().hasHeightForWidth())
        self.chkAwaiting.setSizePolicy(sizePolicy)
        self.chkAwaiting.setChecked(True)
        self.chkAwaiting.setObjectName(_fromUtf8("chkAwaiting"))
        self.gridLayout_7.addWidget(self.chkAwaiting, 3, 3, 1, 1)
        self.cmbTissueType = CRBComboBox(self.groupBox_3)
        self.cmbTissueType.setObjectName(_fromUtf8("cmbTissueType"))
        self.gridLayout_7.addWidget(self.cmbTissueType, 4, 0, 1, 2)
        self.chkInProgress = QtGui.QCheckBox(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.chkInProgress.sizePolicy().hasHeightForWidth())
        self.chkInProgress.setSizePolicy(sizePolicy)
        self.chkInProgress.setAutoFillBackground(False)
        self.chkInProgress.setObjectName(_fromUtf8("chkInProgress"))
        self.gridLayout_7.addWidget(self.chkInProgress, 4, 3, 1, 1)
        self.lblTakenTissueType = QtGui.QLabel(self.groupBox_3)
        self.lblTakenTissueType.setObjectName(_fromUtf8("lblTakenTissueType"))
        self.gridLayout_7.addWidget(self.lblTakenTissueType, 5, 0, 1, 2)
        self.chkDone = QtGui.QCheckBox(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.chkDone.sizePolicy().hasHeightForWidth())
        self.chkDone.setSizePolicy(sizePolicy)
        self.chkDone.setObjectName(_fromUtf8("chkDone"))
        self.gridLayout_7.addWidget(self.chkDone, 5, 3, 1, 1)
        self.cmbTakenTissueType = CRBComboBox(self.groupBox_3)
        self.cmbTakenTissueType.setObjectName(_fromUtf8("cmbTakenTissueType"))
        self.gridLayout_7.addWidget(self.cmbTakenTissueType, 6, 0, 1, 2)
        self.chkOnlyUrgent = QtGui.QCheckBox(self.groupBox_3)
        self.chkOnlyUrgent.setObjectName(_fromUtf8("chkOnlyUrgent"))
        self.gridLayout_7.addWidget(self.chkOnlyUrgent, 6, 3, 1, 1)
        self.gridLayout.addWidget(self.groupBox_3, 10, 1, 1, 1)
        self.grpStaticFilter.addWidget(self.grpStaticFilterPage1)
        self.grbEQueueControlWidget = QtGui.QWidget()
        self.grbEQueueControlWidget.setObjectName(_fromUtf8("grbEQueueControlWidget"))
        self.gridLayout_5 = QtGui.QGridLayout(self.grbEQueueControlWidget)
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.eqControlWidget = CEQControlWidget(self.grbEQueueControlWidget)
        self.eqControlWidget.setObjectName(_fromUtf8("eqControlWidget"))
        self.gridLayout_5.addWidget(self.eqControlWidget, 0, 0, 1, 1)
        self.grpStaticFilter.addWidget(self.grbEQueueControlWidget)
        self.verticalLayout_3.addWidget(self.grpStaticFilter)
        self.buttonBox = QtGui.QDialogButtonBox(JobsOperatingDialog)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.verticalLayout_3.addWidget(self.buttonBox)

        self.retranslateUi(JobsOperatingDialog)
        self.tabDateClientFilter.setCurrentIndex(0)
        self.grpStaticFilter.setCurrentIndex(0)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), JobsOperatingDialog.reject)
        QtCore.QObject.connect(self.btnCalendarDate, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.calendar.setEnabled)
        QtCore.QObject.connect(self.btnCalendarDate, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.pnlDateRange.setDisabled)
        QtCore.QObject.connect(self.btnDateRange, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.lblDateRangeFrom.setEnabled)
        QtCore.QObject.connect(self.btnDateRange, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.lblDateRangeTo.setEnabled)
        QtCore.QObject.connect(self.btnDateRange, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.edtDateRangeFrom.setEnabled)
        QtCore.QObject.connect(self.btnDateRange, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.edtDateRangeTo.setEnabled)
        QtCore.QObject.connect(self.chkClientFirstName, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.edtClientFirstName.setEnabled)
        QtCore.QObject.connect(self.chkClientLastName, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.edtClientLastName.setEnabled)
        QtCore.QObject.connect(self.chkClientPatrName, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.edtClientPatrName.setEnabled)
        QtCore.QObject.connect(self.chkClientId, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.cmbClientAccountingSystem.setEnabled)
        QtCore.QObject.connect(self.chkClientId, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.edtClientId.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(JobsOperatingDialog)
        JobsOperatingDialog.setTabOrder(self.btnCalendarDate, self.btnDateRange)
        JobsOperatingDialog.setTabOrder(self.btnDateRange, self.edtDateRangeFrom)
        JobsOperatingDialog.setTabOrder(self.edtDateRangeFrom, self.edtDateRangeTo)
        JobsOperatingDialog.setTabOrder(self.edtDateRangeTo, self.chkClientLastName)
        JobsOperatingDialog.setTabOrder(self.chkClientLastName, self.edtClientLastName)
        JobsOperatingDialog.setTabOrder(self.edtClientLastName, self.chkClientFirstName)
        JobsOperatingDialog.setTabOrder(self.chkClientFirstName, self.edtClientFirstName)
        JobsOperatingDialog.setTabOrder(self.edtClientFirstName, self.chkClientPatrName)
        JobsOperatingDialog.setTabOrder(self.chkClientPatrName, self.edtClientPatrName)
        JobsOperatingDialog.setTabOrder(self.edtClientPatrName, self.cmbSex)
        JobsOperatingDialog.setTabOrder(self.cmbSex, self.edtAgeFrom)
        JobsOperatingDialog.setTabOrder(self.edtAgeFrom, self.edtAgeTo)
        JobsOperatingDialog.setTabOrder(self.edtAgeTo, self.chkClientId)
        JobsOperatingDialog.setTabOrder(self.chkClientId, self.cmbClientAccountingSystem)
        JobsOperatingDialog.setTabOrder(self.cmbClientAccountingSystem, self.edtClientId)
        JobsOperatingDialog.setTabOrder(self.edtClientId, self.chkJobTicketId)
        JobsOperatingDialog.setTabOrder(self.chkJobTicketId, self.edtJobTicketId)
        JobsOperatingDialog.setTabOrder(self.edtJobTicketId, self.cmbTissueType)
        JobsOperatingDialog.setTabOrder(self.cmbTissueType, self.cmbTakenTissueType)
        JobsOperatingDialog.setTabOrder(self.cmbTakenTissueType, self.chkAwaiting)
        JobsOperatingDialog.setTabOrder(self.chkAwaiting, self.chkInProgress)
        JobsOperatingDialog.setTabOrder(self.chkInProgress, self.chkDone)
        JobsOperatingDialog.setTabOrder(self.chkDone, self.chkOnlyUrgent)
        JobsOperatingDialog.setTabOrder(self.chkOnlyUrgent, self.cmbOrgStructure)
        JobsOperatingDialog.setTabOrder(self.cmbOrgStructure, self.cmbSpeciality)
        JobsOperatingDialog.setTabOrder(self.cmbSpeciality, self.cmbPerson)
        JobsOperatingDialog.setTabOrder(self.cmbPerson, self.chkFilterListLength)
        JobsOperatingDialog.setTabOrder(self.chkFilterListLength, self.edtFilterListLength)
        JobsOperatingDialog.setTabOrder(self.edtFilterListLength, self.buttonBoxFilter)
        JobsOperatingDialog.setTabOrder(self.buttonBoxFilter, self.btnEnableEQueue)
        JobsOperatingDialog.setTabOrder(self.btnEnableEQueue, self.buttonBox)
        JobsOperatingDialog.setTabOrder(self.buttonBox, self.treeOrgStructure)
        JobsOperatingDialog.setTabOrder(self.treeOrgStructure, self.calendar)
        JobsOperatingDialog.setTabOrder(self.calendar, self.tblJobTickets)
        JobsOperatingDialog.setTabOrder(self.tblJobTickets, self.tabDateClientFilter)
        JobsOperatingDialog.setTabOrder(self.tabDateClientFilter, self.tblJobTypes)

    def retranslateUi(self, JobsOperatingDialog):
        JobsOperatingDialog.setWindowTitle(_translate("JobsOperatingDialog", "Выполнение работ", None))
        self.lblDateRangeFrom.setText(_translate("JobsOperatingDialog", "С", None))
        self.lblDateRangeTo.setText(_translate("JobsOperatingDialog", "По", None))
        self.tabDateClientFilter.setTabText(self.tabDateClientFilter.indexOf(self.tabDateFilter), _translate("JobsOperatingDialog", "&Дата", None))
        self.lblSuperviseInfo.setText(_translate("JobsOperatingDialog", "Не выбрана работа", None))
        self.lblTicketsCount.setText(_translate("JobsOperatingDialog", "Список пуст", None))
        self.lblCurrentTablePage.setText(_translate("JobsOperatingDialog", "Страница 1", None))
        self.btnNextTablePage.setText(_translate("JobsOperatingDialog", ">", None))
        self.btnPrevTablePage.setText(_translate("JobsOperatingDialog", "<", None))
        self.lblMaxTablePagesCount.setText(_translate("JobsOperatingDialog", "Всего страниц: ", None))
        self.btnEnableStaticFilter.setText(_translate("JobsOperatingDialog", "Фильтр", None))
        self.btnEnableEQueue.setText(_translate("JobsOperatingDialog", "Электронная очередь", None))
        self.grpPersonFilter.setTitle(_translate("JobsOperatingDialog", "Фильтр по назначившему", None))
        self.lblOrgStructure.setText(_translate("JobsOperatingDialog", "Подразделение", None))
        self.lblSpeciality.setText(_translate("JobsOperatingDialog", "Специальность", None))
        self.cmbSpeciality.setWhatsThis(_translate("JobsOperatingDialog", "<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:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"></p></body></html>", None))
        self.lblPerson.setText(_translate("JobsOperatingDialog", "Врач", None))
        self.cmbPerson.setItemText(0, _translate("JobsOperatingDialog", "Врач", None))
        self.chkFilterListLength.setText(_translate("JobsOperatingDialog", "Вывести на экран постранично, количество строк:", None))
        self.chkClientLastName.setText(_translate("JobsOperatingDialog", "Фамилия", None))
        self.chkClientFirstName.setText(_translate("JobsOperatingDialog", "Имя", None))
        self.chkClientPatrName.setText(_translate("JobsOperatingDialog", "Отчество", None))
        self.lblSex.setText(_translate("JobsOperatingDialog", "Пол", None))
        self.cmbSex.setItemText(1, _translate("JobsOperatingDialog", "М", None))
        self.cmbSex.setItemText(2, _translate("JobsOperatingDialog", "Ж", None))
        self.lblAge.setText(_translate("JobsOperatingDialog", "Возраст с", None))
        self.lblAgeTo.setText(_translate("JobsOperatingDialog", "по", None))
        self.lblAgeYears.setText(_translate("JobsOperatingDialog", "лет", None))
        self.chkClientId.setText(_translate("JobsOperatingDialog", "Код", None))
        self.chkJobTicketId.setText(_translate("JobsOperatingDialog", "Идентификатор", None))
        self.lblTissueType.setText(_translate("JobsOperatingDialog", "Биоматериал", None))
        self.chkAwaiting.setText(_translate("JobsOperatingDialog", "&Ожидающие", None))
        self.chkInProgress.setText(_translate("JobsOperatingDialog", "&Выполняемые", None))
        self.lblTakenTissueType.setText(_translate("JobsOperatingDialog", "Забранный биоматериал", None))
        self.chkDone.setText(_translate("JobsOperatingDialog", "&Законченные", None))
        self.chkOnlyUrgent.setText(_translate("JobsOperatingDialog", "Только &срочные", None))
Example #4
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(452, 790)
        self.hboxlayout = QtGui.QHBoxLayout(Form)
        self.hboxlayout.setMargin(0)
        self.hboxlayout.setSpacing(0)
        self.hboxlayout.setObjectName(_fromUtf8("hboxlayout"))
        self.splitterMain = QtGui.QSplitter(Form)
        self.splitterMain.setOrientation(QtCore.Qt.Vertical)
        self.splitterMain.setChildrenCollapsible(False)
        self.splitterMain.setObjectName(_fromUtf8("splitterMain"))
        self.splitterOrgs = QtGui.QSplitter(self.splitterMain)
        self.splitterOrgs.setOrientation(QtCore.Qt.Horizontal)
        self.splitterOrgs.setHandleWidth(2)
        self.splitterOrgs.setChildrenCollapsible(False)
        self.splitterOrgs.setObjectName(_fromUtf8("splitterOrgs"))
        self.treeOrgStructure = CTreeView(self.splitterOrgs)
        self.treeOrgStructure.setObjectName(_fromUtf8("treeOrgStructure"))
        self.treeOrgPersonnel = CTreeView(self.splitterOrgs)
        self.treeOrgPersonnel.setObjectName(_fromUtf8("treeOrgPersonnel"))
        self.calendarWidget = CCalendarWidget(self.splitterMain)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.calendarWidget.sizePolicy().hasHeightForWidth())
        self.calendarWidget.setSizePolicy(sizePolicy)
        self.calendarWidget.setFirstDayOfWeek(QtCore.Qt.Monday)
        self.calendarWidget.setObjectName(_fromUtf8("calendarWidget"))
        self.tabPlace = QtGui.QTabWidget(self.splitterMain)
        self.tabPlace.setTabShape(QtGui.QTabWidget.Rounded)
        self.tabPlace.setObjectName(_fromUtf8("tabPlace"))
        self.tabAmbulatory = QtGui.QWidget()
        self.tabAmbulatory.setObjectName(_fromUtf8("tabAmbulatory"))
        self.gridlayout = QtGui.QGridLayout(self.tabAmbulatory)
        self.gridlayout.setMargin(4)
        self.gridlayout.setSpacing(0)
        self.gridlayout.setObjectName(_fromUtf8("gridlayout"))
        self.splitterAmb = QtGui.QSplitter(self.tabAmbulatory)
        self.splitterAmb.setOrientation(QtCore.Qt.Vertical)
        self.splitterAmb.setObjectName(_fromUtf8("splitterAmb"))
        self.frmAmbTimeTable = QtGui.QFrame(self.splitterAmb)
        self.frmAmbTimeTable.setFrameShape(QtGui.QFrame.NoFrame)
        self.frmAmbTimeTable.setFrameShadow(QtGui.QFrame.Plain)
        self.frmAmbTimeTable.setObjectName(_fromUtf8("frmAmbTimeTable"))
        self.gridLayout_2 = QtGui.QGridLayout(self.frmAmbTimeTable)
        self.gridLayout_2.setMargin(0)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.eqPanelWidget = CEQPanelWidget(self.frmAmbTimeTable)
        self.eqPanelWidget.setObjectName(_fromUtf8("eqPanelWidget"))
        self.gridLayout = QtGui.QGridLayout(self.eqPanelWidget)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.gridLayout_2.addWidget(self.eqPanelWidget, 1, 0, 1, 1)
        self.btnRefreshAmb = QtGui.QToolButton(self.frmAmbTimeTable)
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        font.setStrikeOut(True)
        self.btnRefreshAmb.setFont(font)
        self.btnRefreshAmb.setText(_fromUtf8(""))
        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/new/prefix1/icons/refresh.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnRefreshAmb.setIcon(icon)
        self.btnRefreshAmb.setObjectName(_fromUtf8("btnRefreshAmb"))
        self.gridLayout_2.addWidget(self.btnRefreshAmb, 1, 1, 1, 1)
        self.tblAmbTimeTable = CTableView(self.frmAmbTimeTable)
        self.tblAmbTimeTable.setObjectName(_fromUtf8("tblAmbTimeTable"))
        self.gridLayout_2.addWidget(self.tblAmbTimeTable, 0, 0, 1, 2)
        self.frmAmbQueue = QtGui.QFrame(self.splitterAmb)
        self.frmAmbQueue.setFrameShape(QtGui.QFrame.NoFrame)
        self.frmAmbQueue.setFrameShadow(QtGui.QFrame.Raised)
        self.frmAmbQueue.setObjectName(_fromUtf8("frmAmbQueue"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.frmAmbQueue)
        self.verticalLayout_2.setMargin(0)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.tblAmbQueue = CTableView(self.frmAmbQueue)
        self.tblAmbQueue.setObjectName(_fromUtf8("tblAmbQueue"))
        self.verticalLayout_2.addWidget(self.tblAmbQueue)
        self.gridlayout.addWidget(self.splitterAmb, 1, 0, 1, 1)
        self.tabPlace.addTab(self.tabAmbulatory, _fromUtf8(""))
        self.tabHome = QtGui.QWidget()
        self.tabHome.setObjectName(_fromUtf8("tabHome"))
        self.gridlayout1 = QtGui.QGridLayout(self.tabHome)
        self.gridlayout1.setMargin(4)
        self.gridlayout1.setSpacing(0)
        self.gridlayout1.setObjectName(_fromUtf8("gridlayout1"))
        self.splitterHome = QtGui.QSplitter(self.tabHome)
        self.splitterHome.setOrientation(QtCore.Qt.Vertical)
        self.splitterHome.setObjectName(_fromUtf8("splitterHome"))
        self.frmHomeTimeTable = QtGui.QFrame(self.splitterHome)
        self.frmHomeTimeTable.setFrameShape(QtGui.QFrame.NoFrame)
        self.frmHomeTimeTable.setFrameShadow(QtGui.QFrame.Plain)
        self.frmHomeTimeTable.setObjectName(_fromUtf8("frmHomeTimeTable"))
        self.gridLayout_3 = QtGui.QGridLayout(self.frmHomeTimeTable)
        self.gridLayout_3.setMargin(0)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.btnRefreshHome = QtGui.QToolButton(self.frmHomeTimeTable)
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        font.setStrikeOut(True)
        self.btnRefreshHome.setFont(font)
        self.btnRefreshHome.setText(_fromUtf8(""))
        self.btnRefreshHome.setIcon(icon)
        self.btnRefreshHome.setObjectName(_fromUtf8("btnRefreshHome"))
        self.gridLayout_3.addWidget(self.btnRefreshHome, 1, 1, 1, 1)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.gridLayout_3.addItem(spacerItem, 1, 0, 1, 1)
        self.tblHomeTimeTable = CTableView(self.frmHomeTimeTable)
        self.tblHomeTimeTable.setObjectName(_fromUtf8("tblHomeTimeTable"))
        self.gridLayout_3.addWidget(self.tblHomeTimeTable, 0, 0, 1, 2)
        self.frmHomeQueue = QtGui.QFrame(self.splitterHome)
        self.frmHomeQueue.setFrameShape(QtGui.QFrame.NoFrame)
        self.frmHomeQueue.setFrameShadow(QtGui.QFrame.Raised)
        self.frmHomeQueue.setObjectName(_fromUtf8("frmHomeQueue"))
        self.vboxlayout = QtGui.QVBoxLayout(self.frmHomeQueue)
        self.vboxlayout.setMargin(0)
        self.vboxlayout.setSpacing(0)
        self.vboxlayout.setObjectName(_fromUtf8("vboxlayout"))
        self.tblHomeQueue = CTableView(self.frmHomeQueue)
        self.tblHomeQueue.setObjectName(_fromUtf8("tblHomeQueue"))
        self.vboxlayout.addWidget(self.tblHomeQueue)
        self.gridlayout1.addWidget(self.splitterHome, 0, 0, 1, 1)
        self.tabPlace.addTab(self.tabHome, _fromUtf8(""))
        self.tabExpert = QtGui.QWidget()
        self.tabExpert.setObjectName(_fromUtf8("tabExpert"))
        self.tabPlace.addTab(self.tabExpert, _fromUtf8(""))
        self.hboxlayout.addWidget(self.splitterMain)

        self.retranslateUi(Form)
        self.tabPlace.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Form)
        Form.setTabOrder(self.treeOrgStructure, self.treeOrgPersonnel)
        Form.setTabOrder(self.treeOrgPersonnel, self.calendarWidget)
        Form.setTabOrder(self.calendarWidget, self.tabPlace)
        Form.setTabOrder(self.tabPlace, self.tblAmbTimeTable)
        Form.setTabOrder(self.tblAmbTimeTable, self.tblAmbQueue)
        Form.setTabOrder(self.tblAmbQueue, self.tblHomeTimeTable)
        Form.setTabOrder(self.tblHomeTimeTable, self.tblHomeQueue)

    def retranslateUi(self, Form):
        Form.setWindowTitle(_translate("Form", "Form", None))
        self.btnRefreshAmb.setToolTip(
            _translate("Form", "Обновить список номерков", None))
        self.tabPlace.setTabText(self.tabPlace.indexOf(self.tabAmbulatory),
                                 _translate("Form", "Амбулаторно", None))
        self.btnRefreshHome.setToolTip(
            _translate("Form", "Обновить список номерков", None))
        self.tabPlace.setTabText(self.tabPlace.indexOf(self.tabHome),
                                 _translate("Form", "На дому", None))
        self.tabPlace.setTabText(self.tabPlace.indexOf(self.tabExpert),
                                 _translate("Form", "КЭР", None))
Example #5
0
class Ui_DublicateWeekDialog(object):
    def setupUi(self, DublicateWeekDialog):
        DublicateWeekDialog.setObjectName(_fromUtf8("DublicateWeekDialog"))
        DublicateWeekDialog.resize(460, 390)
        self.gridLayout = QtGui.QGridLayout(DublicateWeekDialog)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label = QtGui.QLabel(DublicateWeekDialog)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.edtStart = CDateEdit(DublicateWeekDialog)
        self.edtStart.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.edtStart.sizePolicy().hasHeightForWidth())
        self.edtStart.setSizePolicy(sizePolicy)
        self.edtStart.setObjectName(_fromUtf8("edtStart"))
        self.gridLayout.addWidget(self.edtStart, 0, 1, 1, 1)
        self.label_2 = QtGui.QLabel(DublicateWeekDialog)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
        self.edtCountDays = QtGui.QSpinBox(DublicateWeekDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.edtCountDays.sizePolicy().hasHeightForWidth())
        self.edtCountDays.setSizePolicy(sizePolicy)
        self.edtCountDays.setMinimum(1)
        self.edtCountDays.setMaximum(7)
        self.edtCountDays.setObjectName(_fromUtf8("edtCountDays"))
        self.gridLayout.addWidget(self.edtCountDays, 2, 1, 1, 1)
        self.label_3 = QtGui.QLabel(DublicateWeekDialog)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 3, 0, 1, 2)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 2, 2, 1, 1)
        self.calendar = CCalendarWidget(DublicateWeekDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.calendar.sizePolicy().hasHeightForWidth())
        self.calendar.setSizePolicy(sizePolicy)
        self.calendar.setFirstDayOfWeek(QtCore.Qt.Monday)
        self.calendar.setGridVisible(False)
        self.calendar.setObjectName(_fromUtf8("calendar"))
        self.gridLayout.addWidget(self.calendar, 5, 0, 1, 3)
        self.buttonBox = QtGui.QDialogButtonBox(DublicateWeekDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.gridLayout.addWidget(self.buttonBox, 8, 2, 1, 1)
        self.groupBox = QtGui.QGroupBox(DublicateWeekDialog)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.label_4 = QtGui.QLabel(self.groupBox)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.horizontalLayout_2.addWidget(self.label_4)
        self.label_6 = QtGui.QLabel(self.groupBox)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.horizontalLayout_2.addWidget(self.label_6)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.gridLayout_2.addLayout(self.horizontalLayout_2, 0, 1, 1, 1)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.lblGoodColor = QtGui.QLabel(self.groupBox)
        self.lblGoodColor.setObjectName(_fromUtf8("lblGoodColor"))
        self.horizontalLayout_3.addWidget(self.lblGoodColor)
        self.label_5 = QtGui.QLabel(self.groupBox)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.horizontalLayout_3.addWidget(self.label_5)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem2)
        self.gridLayout_2.addLayout(self.horizontalLayout_3, 0, 0, 1, 1)
        self.gridLayout.addWidget(self.groupBox, 6, 0, 1, 3)
        self.lblWarning = QtGui.QLabel(DublicateWeekDialog)
        self.lblWarning.setText(_fromUtf8(""))
        self.lblWarning.setObjectName(_fromUtf8("lblWarning"))
        self.gridLayout.addWidget(self.lblWarning, 4, 0, 1, 3)
        self.chkBusyDays = QtGui.QCheckBox(DublicateWeekDialog)
        self.chkBusyDays.setObjectName(_fromUtf8("chkBusyDays"))
        self.gridLayout.addWidget(self.chkBusyDays, 7, 0, 1, 1)

        self.retranslateUi(DublicateWeekDialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), DublicateWeekDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), DublicateWeekDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(DublicateWeekDialog)

    def retranslateUi(self, DublicateWeekDialog):
        DublicateWeekDialog.setWindowTitle(_translate("DublicateWeekDialog", "Копировать за период", None))
        self.label.setText(_translate("DublicateWeekDialog", "Дата, с которой копируем", None))
        self.label_2.setText(_translate("DublicateWeekDialog", "Количество копируемых дней", None))
        self.label_3.setText(_translate("DublicateWeekDialog", "Выбирете день начала копирования:", None))
        self.groupBox.setTitle(_translate("DublicateWeekDialog", "Расшифровка цветов", None))
        self.label_4.setText(_translate("DublicateWeekDialog", "<html><head/><body><p><span style=\" color:#CD5555;background-color:#CD5555;\">Good</span></p></body></html>", None))
        self.label_6.setText(_translate("DublicateWeekDialog", "Дни с расписанием", None))
        self.lblGoodColor.setText(_translate("DublicateWeekDialog", "<html><head/><body><p><span style=\" color:#98fb98;background-color:#98fb98;\">Good</span></p></body></html>", None))
        self.label_5.setText(_translate("DublicateWeekDialog", "Свободные дни", None))
        self.chkBusyDays.setText(_translate("DublicateWeekDialog", "Перезаписать дни с расписанием", None))
Example #6
0
class Ui_JobPlannerDialog(object):
    def setupUi(self, JobPlannerDialog):
        JobPlannerDialog.setObjectName(_fromUtf8("JobPlannerDialog"))
        JobPlannerDialog.resize(656, 581)
        self.verticalLayout = QtGui.QVBoxLayout(JobPlannerDialog)
        self.verticalLayout.setSpacing(4)
        self.verticalLayout.setMargin(4)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.splitter_2 = QtGui.QSplitter(JobPlannerDialog)
        self.splitter_2.setOrientation(QtCore.Qt.Vertical)
        self.splitter_2.setChildrenCollapsible(False)
        self.splitter_2.setObjectName(_fromUtf8("splitter_2"))
        self.splitter = QtGui.QSplitter(self.splitter_2)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setChildrenCollapsible(False)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.calendar = CCalendarWidget(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.calendar.sizePolicy().hasHeightForWidth())
        self.calendar.setSizePolicy(sizePolicy)
        self.calendar.setFirstDayOfWeek(QtCore.Qt.Monday)
        self.calendar.setGridVisible(False)
        self.calendar.setObjectName(_fromUtf8("calendar"))
        self.treeOrgStructure = QtGui.QTreeView(self.splitter)
        self.treeOrgStructure.setObjectName(_fromUtf8("treeOrgStructure"))
        self.tblJobs = CTableView(self.splitter)
        self.tblJobs.setObjectName(_fromUtf8("tblJobs"))
        self.widget = QtGui.QWidget(self.splitter_2)
        self.widget.setObjectName(_fromUtf8("widget"))
        self.gridLayout = QtGui.QGridLayout(self.widget)
        self.gridLayout.setMargin(0)
        self.gridLayout.setSpacing(4)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.tblJobPlan = CJobPlanTable(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tblJobPlan.sizePolicy().hasHeightForWidth())
        self.tblJobPlan.setSizePolicy(sizePolicy)
        self.tblJobPlan.setObjectName(_fromUtf8("tblJobPlan"))
        self.gridLayout.addWidget(self.tblJobPlan, 0, 0, 1, 5)
        self.btnFill = QtGui.QPushButton(self.widget)
        self.btnFill.setObjectName(_fromUtf8("btnFill"))
        self.gridLayout.addWidget(self.btnFill, 1, 0, 1, 1)
        self.btnDuplicate = QtGui.QPushButton(self.widget)
        self.btnDuplicate.setObjectName(_fromUtf8("btnDuplicate"))
        self.gridLayout.addWidget(self.btnDuplicate, 1, 1, 1, 1)
        spacerItem = QtGui.QSpacerItem(273, 23, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 1, 3, 1, 1)
        self.btnClose = QtGui.QPushButton(self.widget)
        self.btnClose.setObjectName(_fromUtf8("btnClose"))
        self.gridLayout.addWidget(self.btnClose, 1, 4, 1, 1)
        self.btnDublicateWeek = QtGui.QPushButton(self.widget)
        self.btnDublicateWeek.setObjectName(_fromUtf8("btnDublicateWeek"))
        self.gridLayout.addWidget(self.btnDublicateWeek, 1, 2, 1, 1)
        self.verticalLayout.addWidget(self.splitter_2)

        self.retranslateUi(JobPlannerDialog)
        QtCore.QObject.connect(self.btnClose,
                               QtCore.SIGNAL(_fromUtf8("clicked()")),
                               JobPlannerDialog.accept)
        QtCore.QMetaObject.connectSlotsByName(JobPlannerDialog)
        JobPlannerDialog.setTabOrder(self.calendar, self.treeOrgStructure)
        JobPlannerDialog.setTabOrder(self.treeOrgStructure, self.tblJobs)
        JobPlannerDialog.setTabOrder(self.tblJobs, self.tblJobPlan)
        JobPlannerDialog.setTabOrder(self.tblJobPlan, self.btnFill)
        JobPlannerDialog.setTabOrder(self.btnFill, self.btnClose)

    def retranslateUi(self, JobPlannerDialog):
        JobPlannerDialog.setWindowTitle(
            _translate("JobPlannerDialog", "Планирование ресурсов", None))
        self.btnFill.setText(
            _translate("JobPlannerDialog", "Заполнить (F9)", None))
        self.btnFill.setShortcut(_translate("JobPlannerDialog", "F9", None))
        self.btnDuplicate.setText(
            _translate("JobPlannerDialog", "Копировать с предыдущего месяца",
                       None))
        self.btnClose.setText(_translate("JobPlannerDialog", "Закрыть", None))
        self.btnDublicateWeek.setText(
            _translate("JobPlannerDialog", "Копировать с выбранной недели",
                       None))
        self.btnFill.setAutoDefault(False)
        self.btnDuplicate.setAutoDefault(False)
        self.btnClose.setAutoDefault(False)
        self.btnDublicateWeek.setAutoDefault(False)