incidentWorkbench::incidentWorkbench(QWidget* parent, const char* name, Qt::WFlags fl) : XMainWindow(parent, name, fl) { setupUi(this); connect(_autoUpdate, SIGNAL(toggled(bool)), this, SLOT(sHandleAutoUpdate(bool))); connect(_edit, SIGNAL(clicked()), this, SLOT(sEdit())); connect(_new, SIGNAL(clicked()), this, SLOT(sNew())); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_query, SIGNAL(clicked()), this, SLOT(sFillList())); connect(_reset, SIGNAL(clicked()), this, SLOT(sReset())); connect(_view, SIGNAL(clicked()), this, SLOT(sView())); _incdt->addColumn(tr("Number"), _itemColumn, Qt::AlignLeft ); _incdt->addColumn(tr("Account"), _itemColumn, Qt::AlignLeft ); _incdt->addColumn(tr("Status"), _itemColumn, Qt::AlignLeft ); _incdt->addColumn(tr("Assigned To"), _userColumn, Qt::AlignLeft ); _incdt->addColumn(tr("Summary"), -1, Qt::AlignLeft ); _createdDates->setStartNull(tr("Earliest"), omfgThis->startOfTime(), TRUE); _createdDates->setEndNull(tr("Latest"), omfgThis->endOfTime(), TRUE); _createdDates->setStartCaption(tr("First Creation Date:")); _createdDates->setEndCaption(tr("Last Creation Date:")); if (_preferences->boolean("XCheckBox/forgetful")) { _statusFeedback->setChecked(true); _statusConfirmed->setChecked(true); _statusNew->setChecked(true); _statusAssigned->setChecked(true); } _assignedTo->setType(User); }
void dspSlowMovingInventoryByClassCode::sPopulateMenu(QMenu *pMenu, QTreeWidgetItem *pSelected) { int menuItem; if (((XTreeWidgetItem *)pSelected)->id() != -1) { menuItem = pMenu->insertItem(tr("Transfer to another Warehouse..."), this, SLOT(sTransfer()), 0); if (!_privileges->check("CreateInterWarehouseTrans")) pMenu->setItemEnabled(menuItem, FALSE); menuItem = pMenu->insertItem(tr("Adjust this QOH..."), this, SLOT(sAdjust()), 0); if (!_privileges->check("CreateAdjustmentTrans")) pMenu->setItemEnabled(menuItem, FALSE); menuItem = pMenu->insertItem(tr("Reset this QOH to 0..."), this, SLOT(sReset()), 0); if (!_privileges->check("CreateAdjustmentTrans")) pMenu->setItemEnabled(menuItem, FALSE); pMenu->insertSeparator(); menuItem = pMenu->insertItem(tr("Enter Misc. Count..."), this, SLOT(sMiscCount()), 0); if (!_privileges->check("EnterMiscCounts")) pMenu->setItemEnabled(menuItem, FALSE); pMenu->insertSeparator(); menuItem = pMenu->insertItem(tr("Issue Count Tag..."), this, SLOT(sIssueCountTag()), 0); if (!_privileges->check("IssueCountTags")) pMenu->setItemEnabled(menuItem, FALSE); } }
void dspExpiredInventoryByClassCode::sPopulateMenu(Q3PopupMenu *, Q3ListViewItem *) { #if 0 int menuItem; if (((XListViewItem *)pSelected)->id() != -1) { menuItem = pMenu->insertItem(tr("Transfer to another Warehouse..."), this, SLOT(sTransfer()), 0); if (!_privleges->check("CreateInterWarehouseTrans")) pMenu->setItemEnabled(menuItem, FALSE); menuItem = pMenu->insertItem(tr("Adjust this QOH..."), this, SLOT(sAdjust()), 0); if (!_privleges->check("CreateAdjustmentTrans")) pMenu->setItemEnabled(menuItem, FALSE); menuItem = pMenu->insertItem(tr("Reset this QOH to 0..."), this, SLOT(sReset()), 0); if (!_privleges->check("CreateAdjustmentTrans")) pMenu->setItemEnabled(menuItem, FALSE); pMenu->insertSeparator(); menuItem = pMenu->insertItem(tr("Enter Misc. Count..."), this, SLOT(sMiscCount()), 0); if (!_privleges->check("EnterMiscCounts")) pMenu->setItemEnabled(menuItem, FALSE); pMenu->insertSeparator(); menuItem = pMenu->insertItem(tr("Issue Count Tag..."), this, SLOT(sIssueCountTag()), 0); if (!_privleges->check("IssueCountTags")) pMenu->setItemEnabled(menuItem, FALSE); } #endif }
void dspSlowMovingInventoryByClassCode::sPopulateMenu(QMenu *pMenu, QTreeWidgetItem *pSelected, int) { QAction *menuItem; if (((XTreeWidgetItem *)pSelected)->id() != -1) { menuItem = pMenu->addAction(tr("Transfer to another Site..."), this, SLOT(sTransfer()));; if (!_privileges->check("CreateInterWarehouseTrans")) menuItem->setEnabled(false); menuItem = pMenu->addAction(tr("Adjust this QOH..."), this, SLOT(sAdjust()));; if (!_privileges->check("CreateAdjustmentTrans")) menuItem->setEnabled(false); menuItem = pMenu->addAction(tr("Reset this QOH to 0..."), this, SLOT(sReset()));; if (!_privileges->check("CreateAdjustmentTrans")) menuItem->setEnabled(false); pMenu->addSeparator(); menuItem = pMenu->addAction(tr("Enter Misc. Count..."), this, SLOT(sMiscCount()));; if (!_privileges->check("EnterMiscCounts")) menuItem->setEnabled(false); pMenu->addSeparator(); menuItem = pMenu->addAction(tr("Issue Count Tag..."), this, SLOT(sIssueCountTag()));; if (!_privileges->check("IssueCountTags")) menuItem->setEnabled(false); } }
resetQOHBalances::resetQOHBalances(QWidget* parent, const char* name, bool modal, Qt::WFlags fl) : XDialog(parent, name, modal, fl) { setupUi(this); connect(_reset, SIGNAL(clicked()), this, SLOT(sReset())); _classCode->setType(ClassCode); _transDate->setEnabled(_privileges->check("AlterTransactionDates")); _transDate->setDate(omfgThis->dbDate()); _username->setText(omfgThis->username()); }
void dspQOHByParameterList::sPopulateMenu(QMenu *pMenu, QTreeWidgetItem *pSelected) { if (((XTreeWidgetItem *)pSelected)->id() != -1) { int menuItem; if (((XTreeWidgetItem *)pSelected)->altId()) { pMenu->insertItem(tr("View Location/Lot/Serial # Detail..."), this, SLOT(sViewDetail()), 0); pMenu->insertSeparator(); } if (_metrics->boolean("MultiWhs")) { menuItem = pMenu->insertItem(tr("Transfer to another Warehouse..."), this, SLOT(sTransfer()), 0); if (!_privileges->check("CreateInterWarehouseTrans")) pMenu->setItemEnabled(menuItem, FALSE); } menuItem = pMenu->insertItem(tr("Adjust this QOH..."), this, SLOT(sAdjust()), 0); if (!_privileges->check("CreateAdjustmentTrans")) pMenu->setItemEnabled(menuItem, FALSE); menuItem = pMenu->insertItem(tr("Reset this QOH to 0..."), this, SLOT(sReset()), 0); if (!_privileges->check("CreateAdjustmentTrans")) pMenu->setItemEnabled(menuItem, FALSE); pMenu->insertSeparator(); menuItem = pMenu->insertItem(tr("Enter Misc. Count..."), this, SLOT(sMiscCount()), 0); if (!_privileges->check("EnterMiscCounts")) pMenu->setItemEnabled(menuItem, FALSE); pMenu->insertSeparator(); menuItem = pMenu->insertItem(tr("Issue Count Tag..."), this, SLOT(sIssueCountTag()), 0); if (!_privileges->check("IssueCountTags")) pMenu->setItemEnabled(menuItem, FALSE); } }
void dspQOHByZone::sPopulateMenu(QMenu *pMenu, QTreeWidgetItem *pSelected, int) { if (((XTreeWidgetItem *)pSelected)->id() != -1) { QAction *menuItem; if (((XTreeWidgetItem *)pSelected)->altId()) { pMenu->addAction(tr("View Location/Lot/Serial # Detail..."), this, SLOT(sViewDetail())); pMenu->addSeparator(); } if (_metrics->boolean("MultiWhs")) { menuItem = pMenu->addAction(tr("Transfer to another Site..."), this, SLOT(sTransfer()));; if (!_privileges->check("CreateInterWarehouseTrans")) menuItem->setEnabled(false); } menuItem = pMenu->addAction(tr("Adjust this Quantity..."), this, SLOT(sAdjust()));; if (!_privileges->check("CreateAdjustmentTrans")) menuItem->setEnabled(false); menuItem = pMenu->addAction(tr("Reset this Quantity to 0..."), this, SLOT(sReset()));; if (!_privileges->check("CreateAdjustmentTrans")) menuItem->setEnabled(false); pMenu->addSeparator(); menuItem = pMenu->addAction(tr("Enter Misc. Count..."), this, SLOT(sMiscCount()));; if (!_privileges->check("EnterMiscCounts")) menuItem->setEnabled(false); pMenu->addSeparator(); menuItem = pMenu->addAction(tr("Issue Count Tag..."), this, SLOT(sIssueCountTag()));; if (!_privileges->check("IssueCountTags")) menuItem->setEnabled(false); } }