dspPoItemsByVendor::dspPoItemsByVendor(QWidget* parent, const char*, Qt::WFlags fl) : display(parent, "dspPoItemsByVendor", fl) { setupUi(optionsWidget()); setWindowTitle(tr("Purchase Order Items by Vendor")); setListLabel(tr("Purchase Order Items")); setReportName("POLineItemsByVendor"); setMetaSQLOptions("poItems", "detail"); setUseAltId(true); connect(_vendor, SIGNAL(updated()), this, SLOT(sPopulatePo())); connect(_searchFor, SIGNAL(textChanged(const QString&)), this, SLOT(sSearch(const QString&))); connect(_next, SIGNAL(clicked()), this, SLOT(sSearchNext())); _agent->setText(omfgThis->username()); list()->addColumn(tr("P/O #"), _orderColumn, Qt::AlignRight, true, "pohead_number" ); list()->addColumn(tr("Site"), _whsColumn, Qt::AlignCenter, true, "warehous_code" ); list()->addColumn(tr("Status"), 0, Qt::AlignCenter, true, "poitem_status" ); list()->addColumn(tr("Status"), _dateColumn, Qt::AlignCenter, true, "f_poitem_status" ); list()->addColumn(tr("Vendor"), _itemColumn, Qt::AlignLeft, true, "vend_name" ); list()->addColumn(tr("Due Date"), _dateColumn, Qt::AlignCenter, true, "poitem_duedate" ); list()->addColumn(tr("Item Number"), _itemColumn, Qt::AlignLeft, true, "itemnumber" ); list()->addColumn(tr("Description"), -1, Qt::AlignLeft, true, "itemdescrip" ); list()->addColumn(tr("Vend. Item #"), _itemColumn, Qt::AlignLeft, true, "poitem_vend_item_number"); list()->addColumn(tr("UOM"), _uomColumn, Qt::AlignCenter, true, "itemuom" ); list()->addColumn(tr("Vend. UOM"), _uomColumn, Qt::AlignCenter, true, "poitem_vend_uom" ); list()->addColumn(tr("Ordered"), _qtyColumn, Qt::AlignRight, true, "poitem_qty_ordered" ); list()->addColumn(tr("Received"), _qtyColumn, Qt::AlignRight, true, "poitem_qty_received" ); list()->addColumn(tr("Returned"), _qtyColumn, Qt::AlignRight, true, "poitem_qty_returned" ); }
dspPoItemsByVendor::dspPoItemsByVendor(QWidget* parent, const char* name, Qt::WFlags fl) : XWidget(parent, name, fl) { setupUi(this); // (void)statusBar(); connect(_poitem, SIGNAL(populateMenu(QMenu*,QTreeWidgetItem*)), this, SLOT(sPopulateMenu(QMenu*,QTreeWidgetItem*))); connect(_vendor, SIGNAL(newId(int)), this, SLOT(sPopulatePo())); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_query, SIGNAL(clicked()), this, SLOT(sFillList())); connect(_searchFor, SIGNAL(textChanged(const QString&)), this, SLOT(sSearch(const QString&))); connect(_next, SIGNAL(clicked()), this, SLOT(sSearchNext())); _agent->setText(omfgThis->username()); _poitem->addColumn(tr("P/O #"), _orderColumn, Qt::AlignRight, true, "pohead_number" ); _poitem->addColumn(tr("Whs."), _whsColumn, Qt::AlignCenter, true, "warehousecode" ); _poitem->addColumn(tr("Status"), _dateColumn, Qt::AlignCenter, true, "poitemstatus" ); _poitem->addColumn(tr("Due Date"), _dateColumn, Qt::AlignCenter, true, "poitem_duedate" ); _poitem->addColumn(tr("Item #"), _itemColumn, Qt::AlignLeft, true, "itemnumber" ); _poitem->addColumn(tr("Description"), -1, Qt::AlignLeft, true, "itemdescrip" ); _poitem->addColumn(tr("Vend. Item #"), _itemColumn, Qt::AlignLeft, true, "poitem_vend_item_number"); _poitem->addColumn(tr("UOM"), _uomColumn, Qt::AlignCenter, true, "itemuom" ); _poitem->addColumn(tr("Ordered"), _qtyColumn, Qt::AlignRight, true, "poitem_qty_ordered" ); _poitem->addColumn(tr("Received"), _qtyColumn, Qt::AlignRight, true, "poitem_qty_received" ); _poitem->addColumn(tr("Returned"), _qtyColumn, Qt::AlignRight, true, "poitem_qty_returned" ); _poitem->addColumn(tr("Item Status"), 10, Qt::AlignCenter, false, "poitem_status" ); _vendor->setFocus(); }