dspSlowMovingInventoryByClassCode::dspSlowMovingInventoryByClassCode(QWidget* parent, const char* name, Qt::WFlags fl) : XMainWindow(parent, name, fl) { setupUi(this); _costsGroupInt = new QButtonGroup(this); _costsGroupInt->addButton(_useStandardCosts); _costsGroupInt->addButton(_useActualCosts); _orderByGroupInt = new QButtonGroup(this); _orderByGroupInt->addButton(_itemNumber); _orderByGroupInt->addButton(_dateLastUsed); _orderByGroupInt->addButton(_inventoryValue); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_itemsite, SIGNAL(populateMenu(QMenu*,QTreeWidgetItem*,int)), this, SLOT(sPopulateMenu(QMenu*,QTreeWidgetItem*))); connect(_showValue, SIGNAL(toggled(bool)), this, SLOT(sHandleValue(bool))); connect(_query, SIGNAL(clicked()), this, SLOT(sFillList())); _classCode->setType(ClassCode); _itemsite->addColumn(tr("Whs."), _whsColumn, Qt::AlignCenter ); _itemsite->addColumn(tr("Item Number"), _itemColumn, Qt::AlignLeft ); _itemsite->addColumn(tr("Description"), -1, Qt::AlignLeft ); _itemsite->addColumn(tr("UOM"), _uomColumn, Qt::AlignCenter ); _itemsite->addColumn(tr("Last Movement"), _itemColumn, Qt::AlignCenter ); _itemsite->addColumn(tr("QOH"), _qtyColumn, Qt::AlignRight ); _itemsite->addColumn(tr("Unit Cost"), _costColumn, Qt::AlignRight ); _itemsite->addColumn(tr("Value"), _costColumn, Qt::AlignRight ); sHandleValue(_showValue->isChecked()); _showValue->setEnabled(_privileges->check("ViewInventoryValue")); }
dspSlowMovingInventoryByClassCode::dspSlowMovingInventoryByClassCode(QWidget* parent, const char*, Qt::WindowFlags fl) : display(parent, "dspSlowMovingInventoryByClassCode", fl) { setupUi(optionsWidget()); setWindowTitle(tr("Slow Moving Inventory")); setListLabel(tr("Quantities on Hand")); setReportName("SlowMovingInventoryByClassCode"); setMetaSQLOptions("slowMovingInventoryByClassCode", "detail"); _costsGroupInt = new QButtonGroup(this); _costsGroupInt->addButton(_useStandardCosts); _costsGroupInt->addButton(_useActualCosts); _costsGroupInt->addButton(_usePostedCosts); connect(_showValue, SIGNAL(toggled(bool)), this, SLOT(sHandleValue(bool))); _classCode->setType(ParameterGroup::ClassCode); list()->addColumn(tr("Site"), _whsColumn, Qt::AlignCenter, true, "warehous_code" ); list()->addColumn(tr("Item Number"), _itemColumn, Qt::AlignLeft, true, "item_number" ); list()->addColumn(tr("Description"), -1, Qt::AlignLeft, true, "itemdescrip" ); list()->addColumn(tr("UOM"), _uomColumn, Qt::AlignCenter, true, "uom_name" ); list()->addColumn(tr("Last Movement"), _itemColumn, Qt::AlignCenter, true, "itemsite_datelastused" ); list()->addColumn(tr("QOH"), _qtyColumn, Qt::AlignRight, true, "itemsite_qtyonhand" ); list()->addColumn(tr("Unit Cost"), _costColumn, Qt::AlignRight, true, "cost" ); list()->addColumn(tr("Value"), _costColumn, Qt::AlignRight, true, "value" ); sHandleValue(_showValue->isChecked()); _showValue->setEnabled(_privileges->check("ViewInventoryValue")); }
dspQOH::dspQOH(QWidget* parent, const char*, Qt::WFlags fl) : display(parent, "dspQOH", fl) { setupUi(optionsWidget()); setWindowTitle(tr("Quantities on Hand")); setReportName("QOH"); setMetaSQLOptions("qoh", "detail"); setUseAltId(true); setParameterWidgetVisible(true); _costsGroupInt = new QButtonGroup(this); _costsGroupInt->addButton(_useStandardCosts); _costsGroupInt->addButton(_useActualCosts); _costsGroupInt->addButton(_usePostedCosts); _showGroupInt = new QButtonGroup(this); _showGroupInt->addButton(_showAll); _showGroupInt->addButton(_showPositive); _showGroupInt->addButton(_showNegative); parameterWidget()->appendComboBox(tr("Class Code"), "classcode_id", XComboBox::ClassCodes); parameterWidget()->append(tr("Class Code Pattern"), "classcode_pattern", ParameterWidget::Text); parameterWidget()->appendComboBox(tr("Cost Category"), "costcat_id", XComboBox::CostCategories); parameterWidget()->append(tr("Cost Category Pattern"), "costcat_pattern", ParameterWidget::Text); parameterWidget()->append(tr("Item"), "item_id", ParameterWidget::Item); parameterWidget()->appendComboBox(tr("Item Group"), "itemgrp_id", XComboBox::ItemGroups); parameterWidget()->append(tr("Item Group Pattern"), "itemgrp_pattern", ParameterWidget::Text); if (_metrics->boolean("MultiWhs")) parameterWidget()->append(tr("Site"), "warehous_id", ParameterWidget::Site); if (_metrics->boolean("EnableAsOfQOH")) parameterWidget()->appendComboBox(tr("As Of"), "asOf", XComboBox::AccountingPeriods); connect(_showValue, SIGNAL(toggled(bool)), this, SLOT(sHandleValue(bool))); list()->addColumn(tr("Site"), _whsColumn, Qt::AlignCenter, true, "warehous_code" ); list()->addColumn(tr("Item Number"), _itemColumn, Qt::AlignLeft, true, "item_number" ); list()->addColumn(tr("Description"), -1, Qt::AlignLeft, true, "itemdescrip" ); list()->addColumn(tr("Class Code"), _itemColumn, Qt::AlignLeft, true, "classcode_code" ); list()->addColumn(tr("Cost Category"), _itemColumn, Qt::AlignLeft, false, "costcat_code" ); list()->addColumn(tr("UOM"), _uomColumn, Qt::AlignCenter, true, "uom_name" ); list()->addColumn(tr("Default Location"), _itemColumn, Qt::AlignLeft, true, "defaultlocation" ); list()->addColumn(tr("Reorder Lvl."), _qtyColumn, Qt::AlignRight, true, "reorderlevel" ); list()->addColumn(tr("QOH"), _qtyColumn, Qt::AlignRight, true, "qoh" ); list()->addColumn(tr("Non-Netable"), _qtyColumn, Qt::AlignRight, true, "nnqoh" ); list()->addColumn(tr("Unit Cost"), _costColumn, Qt::AlignRight, true, "cost" ); list()->addColumn(tr("Value"), _costColumn, Qt::AlignRight, true, "value" ); list()->addColumn(tr("NN Value"), _costColumn, Qt::AlignRight, true, "nnvalue" ); list()->addColumn(tr("Cost Method"), _costColumn, Qt::AlignCenter, true, "costmethod" ); sHandleValue(_showValue->isChecked()); _showValue->setEnabled(_privileges->check("ViewInventoryValue")); }
dspQOHByParameterList::dspQOHByParameterList(QWidget* parent, const char* name, Qt::WFlags fl) : XWidget(parent, name, fl) { setupUi(this); _costsGroupInt = new QButtonGroup(this); _costsGroupInt->addButton(_useStandardCosts); _costsGroupInt->addButton(_useActualCosts); _costsGroupInt->addButton(_usePostedCosts); _showGroupInt = new QButtonGroup(this); _showGroupInt->addButton(_showAll); _showGroupInt->addButton(_showPositive); _showGroupInt->addButton(_showNegative); _orderByGroupInt = new QButtonGroup(this); _orderByGroupInt->addButton(_byItemNumber); _orderByGroupInt->addButton(_byValue); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_qoh, SIGNAL(populateMenu(QMenu*,QTreeWidgetItem*,int)), this, SLOT(sPopulateMenu(QMenu*,QTreeWidgetItem*))); connect(_query, SIGNAL(clicked()), this, SLOT(sFillList())); connect(_showValue, SIGNAL(toggled(bool)), this, SLOT(sHandleValue(bool))); _qoh->addColumn(tr("Site"), _whsColumn, Qt::AlignCenter, true, "warehous_code" ); _qoh->addColumn(tr("Class Code"), _itemColumn, Qt::AlignLeft, true, "classcode_code" ); _qoh->addColumn(tr("Item Number"), _itemColumn, Qt::AlignLeft, true, "item_number" ); _qoh->addColumn(tr("Description"), -1, Qt::AlignLeft, true, "itemdescrip" ); _qoh->addColumn(tr("UOM"), _uomColumn, Qt::AlignCenter, true, "uom_name" ); _qoh->addColumn(tr("Default Location"), _itemColumn, Qt::AlignLeft, true, "defaultlocation" ); _qoh->addColumn(tr("Reorder Lvl."), _qtyColumn, Qt::AlignRight, true, "reorderlevel" ); _qoh->addColumn(tr("QOH"), _qtyColumn, Qt::AlignRight, true, "qoh" ); _qoh->addColumn(tr("Non-Netable"), _qtyColumn, Qt::AlignRight, true, "f_nnqoh" ); _qoh->addColumn(tr("Unit Cost"), _costColumn, Qt::AlignRight, true, "cost" ); _qoh->addColumn(tr("Value"), _costColumn, Qt::AlignRight, true, "value" ); _qoh->addColumn(tr("NN Value"), _costColumn, Qt::AlignRight, true, "f_nnvalue" ); _qoh->addColumn(tr("Cost Method"), _costColumn, Qt::AlignCenter, true, "f_costmethod" ); sHandleValue(_showValue->isChecked()); _showValue->setEnabled(_privileges->check("ViewInventoryValue")); }