enum SetResponse rptTimePhasedProductionByPlannerCode::set(ParameterList &pParams) { _captive = TRUE; QVariant param; bool valid; param = pParams.value("plancode_id", &valid); if (valid) _plannerCode->setId(param.toInt()); param = pParams.value("plancode_pattern", &valid); if (valid) _plannerCode->setPattern(param.toString()); param = pParams.value("warehous_id", &valid); if (valid) _warehouse->setId(param.toInt()); else _warehouse->setAll(); _inventoryUnits->setChecked(pParams.inList("inventoryUnits")); _capacityUnits->setChecked(pParams.inList("capacityUnits")); _altCapacityUnits->setChecked(pParams.inList("altCapacityUnits")); _showInactive->setChecked(pParams.inList("showInactive")); _calendar->load(pParams); _periods->load(pParams); if (pParams.inList("print")) { sPrint(); return NoError_Print; } if (pParams.inList("submit")) { sSubmit(); return NoError_Submit; } return NoError; }
/* * Constructs a bankAdjustmentEditList as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * */ bankAdjustmentEditList::bankAdjustmentEditList(QWidget* parent, const char* name, Qt::WFlags fl) : QMainWindow(parent, name, fl) { setupUi(this); (void)statusBar(); // signals and slots connections connect(_close, SIGNAL(clicked()), this, SLOT(close())); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_new, SIGNAL(clicked()), this, SLOT(sNew())); connect(_edit, SIGNAL(clicked()), this, SLOT(sEdit())); connect(_view, SIGNAL(clicked()), this, SLOT(sView())); connect(_delete, SIGNAL(clicked()), this, SLOT(sDelete())); connect(_bankaccnt, SIGNAL(newID(int)), this, SLOT(sFillList())); connect(_adjustments, SIGNAL(valid(bool)), _view, SLOT(setEnabled(bool))); connect(_adjustments, SIGNAL(populateMenu(QMenu*,QTreeWidgetItem*,int)), this, SLOT(sPopulateMenu(QMenu*))); init(); }
/* * Constructs a standardJournals as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * */ standardJournals::standardJournals(QWidget* parent, const char* name, Qt::WFlags fl) : XWidget(parent, name, fl) { setupUi(this); // (void)statusBar(); // signals and slots connections connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_new, SIGNAL(clicked()), this, SLOT(sNew())); connect(_edit, SIGNAL(clicked()), this, SLOT(sEdit())); connect(_delete, SIGNAL(clicked()), this, SLOT(sDelete())); connect(_stdjrnl, SIGNAL(populateMenu(QMenu*,QTreeWidgetItem*,int)), this, SLOT(sPopulateMenu(QMenu*))); connect(_close, SIGNAL(clicked()), this, SLOT(close())); connect(_view, SIGNAL(clicked()), this, SLOT(sView())); connect(_stdjrnl, SIGNAL(valid(bool)), _view, SLOT(setEnabled(bool))); connect(_post, SIGNAL(clicked()), this, SLOT(sPost())); init(); }
enum SetResponse printStatementByCustomer::set(ParameterList &pParams) { _captive = TRUE; QVariant param; bool valid; param = pParams.value("cust_id", &valid); if (valid) _cust->setId(param.toInt()); if (pParams.inList("print")) { sPrint(); return NoError_Print; } return NoError; }
/* * Constructs a printRaForm as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * * The dialog will by default be modeless, unless you set 'modal' to * true to construct a modal dialog. */ printRaForm::printRaForm(QWidget* parent, const char* name, bool modal, Qt::WFlags fl) : QDialog(parent, name, modal, fl) { setupUi(this); // signals and slots connections connect(_close, SIGNAL(clicked()), this, SLOT(reject())); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_ra, SIGNAL(valid(bool)), _print, SLOT(setEnabled(bool))); _captive = FALSE; _report->populate( "SELECT form_id, form_name " "FROM form " "WHERE (form_key='RA') " "ORDER BY form_name;" ); }
/* * Constructs a dspItemCostDetail as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * */ dspItemCostDetail::dspItemCostDetail(QWidget* parent, const char* name, Qt::WFlags fl) : XMainWindow(parent, name, fl) { setupUi(this); (void)statusBar(); QButtonGroup* _costTypeGroupInt = new QButtonGroup(this); _costTypeGroupInt->addButton(_standardCosts); _costTypeGroupInt->addButton(_actualCosts); // signals and slots connections connect(_costTypeGroupInt, SIGNAL(buttonClicked(int)), this, SLOT(sFillList())); connect(_close, SIGNAL(clicked()), this, SLOT(close())); connect(_item, SIGNAL(newId(int)), this, SLOT(sPopulate())); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_costType, SIGNAL(newID(int)), this, SLOT(sFillList())); init(); }
/* * Constructs a productCategories as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * */ productCategories::productCategories(QWidget* parent, const char* name, Qt::WFlags fl) : QMainWindow(parent, name, fl) { setupUi(this); (void)statusBar(); // signals and slots connections connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_new, SIGNAL(clicked()), this, SLOT(sNew())); connect(_edit, SIGNAL(clicked()), this, SLOT(sEdit())); connect(_prodcat, SIGNAL(populateMenu(Q3PopupMenu*,Q3ListViewItem*,int)), this, SLOT(sPopulateMenu(Q3PopupMenu*))); connect(_close, SIGNAL(clicked()), this, SLOT(close())); connect(_delete, SIGNAL(clicked()), this, SLOT(sDelete())); connect(_deleteUnused, SIGNAL(clicked()), this, SLOT(sDeleteUnused())); connect(_view, SIGNAL(clicked()), this, SLOT(sView())); connect(_prodcat, SIGNAL(valid(bool)), _view, SLOT(setEnabled(bool))); init(); }
/* * Constructs a openReturnAuthorizations as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * */ openReturnAuthorizations::openReturnAuthorizations(QWidget* parent, const char* name, Qt::WFlags fl) : QMainWindow(parent, name, fl) { setupUi(this); (void)statusBar(); // signals and slots connections connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_ra, SIGNAL(populateMenu(QMenu*,QTreeWidgetItem*,int)), this, SLOT(sPopulateMenu(QMenu*))); connect(_close, SIGNAL(clicked()), this, SLOT(close())); connect(_edit, SIGNAL(clicked()), this, SLOT(sEdit())); connect(_view, SIGNAL(clicked()), this, SLOT(sView())); connect(_ra, SIGNAL(valid(bool)), _view, SLOT(setEnabled(bool))); connect(_new, SIGNAL(clicked()), this, SLOT(sNew())); connect(_delete, SIGNAL(clicked()), this, SLOT(sDelete())); connect(_warehouse, SIGNAL(updated()), this, SLOT(sFillList())); statusBar()->hide(); _ra->addColumn(tr("S/O #"), _orderColumn, Qt::AlignLeft ); _ra->addColumn(tr("Cust. #"), _orderColumn, Qt::AlignLeft ); _ra->addColumn(tr("Customer"), -1, Qt::AlignLeft ); _ra->addColumn(tr("Cust. P/O Number"), _itemColumn, Qt::AlignLeft ); _ra->addColumn(tr("Created"), _dateColumn, Qt::AlignCenter ); _ra->addColumn(tr("Expires"), _dateColumn, Qt::AlignCenter ); if (_privleges->check("MaintainSalesOrders")) { connect(_ra, SIGNAL(valid(bool)), _edit, SLOT(setEnabled(bool))); connect(_ra, SIGNAL(valid(bool)), _delete, SLOT(setEnabled(bool))); connect(_ra, SIGNAL(itemSelected(int)), _edit, SLOT(animateClick())); } else { _new->setEnabled(FALSE); connect(_ra, SIGNAL(itemSelected(int)), _view, SLOT(animateClick())); } connect(omfgThis, SIGNAL(returnAuthorizationsUpdated()), this, SLOT(sFillList())); sFillList(); }
dspGLSeries::dspGLSeries(QWidget* parent, const char* name, Qt::WFlags fl) : XWidget(parent, name, fl) { setupUi(this); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_gltrans, SIGNAL(populateMenu(QMenu*,QTreeWidgetItem*,int)), this, SLOT(sPopulateMenu(QMenu*))); connect(_query, SIGNAL(clicked()), this, SLOT(sFillList())); _gltrans->addColumn(tr("Date"), _dateColumn, Qt::AlignCenter,true, "transdate"); _gltrans->addColumn(tr("Journal #"),_orderColumn, Qt::AlignRight, true, "gltrans_journalnumber"); _gltrans->addColumn(tr("Source"), _orderColumn, Qt::AlignCenter,true, "gltrans_source"); _gltrans->addColumn(tr("Doc. Type"), _itemColumn, Qt::AlignCenter,true, "gltrans_doctype"); _gltrans->addColumn(tr("Doc. Num."),_orderColumn, Qt::AlignCenter,true, "gltrans_docnumber"); _gltrans->addColumn(tr("Notes/Account"), -1, Qt::AlignLeft, true, "account"); _gltrans->addColumn(tr("Debit"), _bigMoneyColumn, Qt::AlignRight, true, "debit"); _gltrans->addColumn(tr("Credit"),_bigMoneyColumn, Qt::AlignRight, true, "credit"); _gltrans->addColumn(tr("Posted"), _ynColumn, Qt::AlignCenter,true, "gltrans_posted"); }
printCheck::printCheck(QWidget* parent, const char* name, Qt::WFlags fl) : XWidget(parent, name, fl) { setupUi(this); connect(_bankaccnt, SIGNAL(newID(int)), this, SLOT(sHandleBankAccount(int))); connect(_check, SIGNAL(newID(int)), this, SLOT(sEnableCreateEFT())); connect(_createEFT, SIGNAL(clicked()), this, SLOT(sCreateEFT())); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); _captive = FALSE; _setCheckNumber = -1; _check->setAllowNull(TRUE); _bankaccnt->setType(XComboBox::APBankAccounts); _createEFT->setVisible(_metrics->boolean("ACHSupported") && _metrics->boolean("ACHEnabled")); }
enum SetResponse rptBalanceSheet::set( const ParameterList & pParams ) { _captive = true; QVariant param; bool valid; param = pParams.value("period_id", &valid); if (valid) _period->setId(param.toInt()); if (pParams.inList("print")) { sPrint(); return NoError_Print; } return NoError; }
bankAdjustmentEditList::bankAdjustmentEditList(QWidget* parent, const char* name, Qt::WindowFlags fl) : XWidget(parent, name, fl) { setupUi(this); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_new, SIGNAL(clicked()), this, SLOT(sNew())); connect(_edit, SIGNAL(clicked()), this, SLOT(sEdit())); connect(_view, SIGNAL(clicked()), this, SLOT(sView())); connect(_delete, SIGNAL(clicked()), this, SLOT(sDelete())); connect(_bankaccnt, SIGNAL(newID(int)), this, SLOT(sFillList())); connect(_adjustments, SIGNAL(populateMenu(QMenu*,QTreeWidgetItem*,int)), this, SLOT(sPopulateMenu(QMenu*))); _bankaccnt->populate("SELECT bankaccnt_id," " (bankaccnt_name || '-' || bankaccnt_descrip)," " bankaccnt_name " "FROM bankaccnt " "ORDER BY bankaccnt_name;"); _adjustments->addColumn(tr("Bank Account"),_itemColumn, Qt::AlignLeft, true, "f_bank"); _adjustments->addColumn(tr("Adj. Type"), _orderColumn, Qt::AlignLeft, true, "bankadjtype_name"); _adjustments->addColumn(tr("Dist. Date"), _dateColumn, Qt::AlignCenter,true, "bankadj_date"); _adjustments->addColumn(tr("Doc. Number"), -1, Qt::AlignRight, true, "bankadj_docnumber"); _adjustments->addColumn(tr("Amount"), _bigMoneyColumn, Qt::AlignRight, true, "bankadj_amount"); _adjustments->addColumn(tr("Currency"),_currencyColumn, Qt::AlignLeft, !omfgThis->singleCurrency(), "currabbr"); if (_privileges->check("MaintainBankAdjustments")) { connect(_adjustments, SIGNAL(valid(bool)), _edit, SLOT(setEnabled(bool))); connect(_adjustments, SIGNAL(valid(bool)), _delete, SLOT(setEnabled(bool))); connect(_adjustments, SIGNAL(itemSelected(int)), _edit, SLOT(animateClick())); } else { _new->setEnabled(false); connect(_adjustments, SIGNAL(itemSelected(int)), _view, SLOT(animateClick())); } connect(omfgThis, SIGNAL(bankAdjustmentsUpdated(int, bool)), this, SLOT(sFillList())); sFillList(); }
salesAccounts::salesAccounts(QWidget* parent, const char* name, Qt::WFlags fl) : XWidget(parent, name, fl) { setupUi(this); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_new, SIGNAL(clicked()), this, SLOT(sNew())); connect(_edit, SIGNAL(clicked()), this, SLOT(sEdit())); connect(_delete, SIGNAL(clicked()), this, SLOT(sDelete())); connect(_view, SIGNAL(clicked()), this, SLOT(sView())); _salesaccnt->addColumn(tr("Site"), -1, Qt::AlignCenter , true, "warehouscode"); _salesaccnt->addColumn(tr("Cust. Type"), _itemColumn, Qt::AlignCenter , true, "custtypecode"); _salesaccnt->addColumn(tr("Prod. Cat."), _itemColumn, Qt::AlignCenter , true, "prodcatcode"); _salesaccnt->addColumn(tr("Sales Accnt. #"), _itemColumn, Qt::AlignCenter , true, "salesaccount"); _salesaccnt->addColumn(tr("Credit Accnt. #"), _itemColumn, Qt::AlignCenter , true, "creditaccount"); _salesaccnt->addColumn(tr("COS Accnt. #"), _itemColumn, Qt::AlignCenter , true, "cosaccount"); _salesaccnt->addColumn(tr("Returns Accnt. #"), _itemColumn, Qt::AlignCenter , true, "returnsaccount"); _salesaccnt->addColumn(tr("Cost of Returns Accnt. #"), _itemColumn, Qt::AlignCenter , true, "coraccount" ); _salesaccnt->addColumn(tr("Cost of Warranty Accnt. #"), _itemColumn, Qt::AlignCenter , true, "cowaccount" ); if (! _metrics->boolean("EnableReturnAuth")) { _salesaccnt->hideColumn(6); _salesaccnt->hideColumn(7); _salesaccnt->hideColumn(8); } if (_privileges->check("MaintainSalesAccount")) { connect(_salesaccnt, SIGNAL(valid(bool)), _edit, SLOT(setEnabled(bool))); connect(_salesaccnt, SIGNAL(valid(bool)), _delete, SLOT(setEnabled(bool))); connect(_salesaccnt, SIGNAL(itemSelected(int)), _edit, SLOT(animateClick())); } else { _new->setEnabled(FALSE); connect(_salesaccnt, SIGNAL(itemSelected(int)), _view, SLOT(animateClick())); } sFillList(); }
/* * Constructs a dspWoScheduleByParameterList as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * */ dspWoScheduleByParameterList::dspWoScheduleByParameterList(QWidget* parent, const char* name, Qt::WFlags fl) : QMainWindow(parent, name, fl) { setupUi(this); (void)statusBar(); // signals and slots connections connect(_wo, SIGNAL(populateMenu(QMenu*,QTreeWidgetItem*,int)), this, SLOT(sPopulateMenu(QMenu*, QTreeWidgetItem*))); connect(_close, SIGNAL(clicked()), this, SLOT(close())); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_query, SIGNAL(clicked()), this, SLOT(sFillList())); connect(_autoUpdate, SIGNAL(toggled(bool)), this, SLOT(sHandleAutoUpdate(bool))); connect(_postProduction, SIGNAL(clicked()), this, SLOT(sPostProduction())); connect(_postOperations, SIGNAL(clicked()), this, SLOT(sPostOperations())); connect(_printTraveler, SIGNAL(clicked()), this, SLOT(sPrintTraveler())); connect(_wo, SIGNAL(itemSelectionChanged()), this, SLOT(sHandleButtons())); _dates->setStartCaption(tr("Start W/O Start Date:")); _dates->setStartNull(tr("Earliest"), omfgThis->startOfTime(), TRUE); _dates->setEndNull(tr("Latest"), omfgThis->endOfTime(), TRUE); _dates->setEndCaption(tr("End W/O Start Date:")); _wo->addColumn(tr("parentType"), 0, Qt::AlignCenter ); _wo->addColumn(tr("W/O #"), _orderColumn, Qt::AlignLeft ); _wo->addColumn(tr("Status"), _statusColumn, Qt::AlignCenter ); _wo->addColumn(tr("Pri."), _statusColumn, Qt::AlignCenter ); _wo->addColumn(tr("Whs."), _whsColumn, Qt::AlignCenter ); _wo->addColumn(tr("Item Number"), _itemColumn, Qt::AlignLeft ); _wo->addColumn(tr("Description"), -1, Qt::AlignLeft ); _wo->addColumn(tr("UOM"), _uomColumn, Qt::AlignCenter ); _wo->addColumn(tr("Ordered"), _qtyColumn, Qt::AlignRight ); _wo->addColumn(tr("Received"), _qtyColumn, Qt::AlignRight ); _wo->addColumn(tr("Start Date"), _dateColumn, Qt::AlignRight ); _wo->addColumn(tr("Due Date"), _dateColumn, Qt::AlignRight ); _wo->addColumn(tr("Condition"), _dateColumn, Qt::AlignLeft ); connect(omfgThis, SIGNAL(workOrdersUpdated(int, bool)), this, SLOT(sFillList())); if (!_metrics->boolean("Routings")) _postOperations->hide(); }
/* * Constructs a boo as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * */ boo::boo(QWidget* parent, const char* name, Qt::WFlags fl) : QMainWindow(parent, name, fl) { setupUi(this); (void)statusBar(); // signals and slots connections connect(_new, SIGNAL(clicked()), this, SLOT(sNew())); connect(_edit, SIGNAL(clicked()), this, SLOT(sEdit())); connect(_moveDown, SIGNAL(clicked()), this, SLOT(sMoveDown())); connect(_moveUp, SIGNAL(clicked()), this, SLOT(sMoveUp())); connect(_item, SIGNAL(newId(int)), this, SLOT(sFillList())); connect(_revision, SIGNAL(newId(int)), this, SLOT(sFillList())); connect(_close, SIGNAL(clicked()), this, SLOT(close())); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_view, SIGNAL(clicked()), this, SLOT(sView())); connect(_booitem, SIGNAL(valid(bool)), _view, SLOT(setEnabled(bool))); connect(_showExpired, SIGNAL(toggled(bool)), this, SLOT(sFillList())); connect(_showFuture, SIGNAL(toggled(bool)), this, SLOT(sFillList())); connect(_booitem, SIGNAL(populateMenu(QMenu*,QTreeWidgetItem*,int)), this, SLOT(sPopulateMenu(QMenu*))); connect(_save, SIGNAL(clicked()), this, SLOT(sSave())); connect(_expire, SIGNAL(clicked()), this, SLOT(sExpire())); statusBar()->hide(); _item->setType(ItemLineEdit::cGeneralManufactured | ItemLineEdit::cGeneralPurchased | ItemLineEdit::cJob); _booitem->addColumn(tr("#"), _seqColumn, Qt::AlignCenter ); _booitem->addColumn(tr("Std Oper."), _itemColumn, Qt::AlignLeft ); _booitem->addColumn(tr("Work Cntr."), _itemColumn, Qt::AlignLeft ); _booitem->addColumn(tr("Description"), -1, Qt::AlignLeft ); _booitem->addColumn(tr("Effective"), _dateColumn, Qt::AlignCenter ); _booitem->addColumn(tr("Expires"), _dateColumn, Qt::AlignCenter ); _booitem->addColumn(tr("Exec. Day"), _qtyColumn, Qt::AlignCenter ); connect(omfgThis, SIGNAL(boosUpdated(int, bool)), this, SLOT(sFillList(int, bool))); _activate->hide(); _revision->setMode(RevisionLineEdit::Maintain); _revision->setType("BOO"); }
/* * Constructs a addresses as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * */ addresses::addresses(QWidget* parent, const char* name, Qt::WFlags fl) : QMainWindow(parent, name, fl) { setupUi(this); (void)statusBar(); // signals and slots connections connect(_address, SIGNAL(populateMenu(QMenu*, QTreeWidgetItem*, int)), this, SLOT(sPopulateMenu(QMenu*, QTreeWidgetItem*, int))); connect(_edit, SIGNAL(clicked()), this, SLOT(sEdit())); connect(_view, SIGNAL(clicked()), this, SLOT(sView())); connect(_delete, SIGNAL(clicked()), this, SLOT(sDelete())); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_close, SIGNAL(clicked()), this, SLOT(close())); connect(_new, SIGNAL(clicked()), this, SLOT(sNew())); connect(_activeOnly, SIGNAL(toggled(bool)), this, SLOT(sFillList())); //statusBar()->hide(); _activeOnly->setChecked(true); _address->addColumn(tr("Line 1"), -1, Qt::AlignLeft ); _address->addColumn(tr("Line 2"), 75, Qt::AlignLeft ); _address->addColumn(tr("Line 3"), 75, Qt::AlignLeft ); _address->addColumn(tr("City"), 75, Qt::AlignLeft ); _address->addColumn(tr("State"), 50, Qt::AlignLeft ); _address->addColumn(tr("Country"), 50, Qt::AlignLeft ); _address->addColumn(tr("Postal Code"),50,Qt::AlignLeft ); if (_privleges->check("MaintainAddresses")) { connect(_address, SIGNAL(valid(bool)), _edit, SLOT(setEnabled(bool))); connect(_address, SIGNAL(valid(bool)), _delete, SLOT(setEnabled(bool))); connect(_address, SIGNAL(itemSelected(int)), _edit, SLOT(animateClick())); } else { _new->setEnabled(FALSE); connect(_address, SIGNAL(itemSelected(int)), _view, SLOT(animateClick())); } sFillList(); }
/* * Constructs a dspSalesHistoryByCustomer as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * */ dspSalesHistoryByCustomer::dspSalesHistoryByCustomer(QWidget* parent, const char* name, Qt::WFlags fl) : XMainWindow(parent, name, fl) { setupUi(this); (void)statusBar(); // signals and slots connections connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_close, SIGNAL(clicked()), this, SLOT(close())); connect(_query, SIGNAL(clicked()), this, SLOT(sFillList())); connect(_sohist, SIGNAL(populateMenu(QMenu*,QTreeWidgetItem*,int)), this, SLOT(sPopulateMenu(QMenu*))); connect(_showPrices, SIGNAL(toggled(bool)), this, SLOT(sHandleParams())); connect(_showCosts, SIGNAL(toggled(bool)), this, SLOT(sHandleParams())); _productCategory->setType(ProductCategory); _sohist->addColumn(tr("S/O #"), _orderColumn, Qt::AlignRight ); _sohist->addColumn(tr("Invoice #"), _orderColumn, Qt::AlignRight ); _sohist->addColumn(tr("Ord. Date"), _dateColumn, Qt::AlignCenter ); _sohist->addColumn(tr("Invc. Date"), _dateColumn, Qt::AlignCenter ); _sohist->addColumn(tr("Item Number"), _itemColumn, Qt::AlignLeft ); _sohist->addColumn(tr("Description"), -1, Qt::AlignLeft ); _sohist->addColumn(tr("Shipped"), _qtyColumn, Qt::AlignRight ); if (_privileges->check("ViewCustomerPrices")) { _sohist->addColumn( tr("Unit Price"), _priceColumn, Qt::AlignRight ); _sohist->addColumn( tr("Ext. Price"), _bigMoneyColumn, Qt::AlignRight ); } if (_privileges->check("ViewCosts")) { _sohist->addColumn( tr("Unit Cost"), _costColumn, Qt::AlignRight ); _sohist->addColumn( tr("Ext. Cost"), _costColumn, Qt::AlignRight ); } _showCosts->setEnabled(_privileges->check("ViewCosts")); _showPrices->setEnabled(_privileges->check("ViewCustomerPrices")); sHandleParams(); _cust->setFocus(); }
dspSingleLevelBOM::dspSingleLevelBOM(QWidget* parent, const char* name, Qt::WFlags fl) : XWidget(parent, name, fl) { setupUi(this); connect(_bomitem, SIGNAL(populateMenu(QMenu*,QTreeWidgetItem*,int)), this, SLOT(sPopulateMenu(QMenu*))); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_query, SIGNAL(clicked()), this, SLOT(sFillList())); connect(_item, SIGNAL(valid(bool)), _revision, SLOT(setEnabled(bool))); _item->setType(ItemLineEdit::cGeneralManufactured | ItemLineEdit::cGeneralPurchased | ItemLineEdit::cPhantom | ItemLineEdit::cKit | ItemLineEdit::cPlanning | ItemLineEdit::cTooling); _bomitem->addColumn(tr("#"), 30, Qt::AlignCenter,true, "bomitem_seqnumber" ); _bomitem->addColumn(tr("Item Number"), _itemColumn, Qt::AlignLeft, true, "item_number" ); _bomitem->addColumn(tr("Description"), -1, Qt::AlignLeft, true, "itemdescription" ); _bomitem->addColumn(tr("Issue UOM"), _uomColumn, Qt::AlignCenter,true, "issueuomname" ); _bomitem->addColumn(tr("Issue Fxd. Qty."), _qtyColumn, Qt::AlignRight, true, "bomitem_qtyfxd" ); _bomitem->addColumn(tr("Issue Qty. Per"), _qtyColumn, Qt::AlignRight, true, "bomitem_qtyper" ); _bomitem->addColumn(tr("Inv. UOM"), _uomColumn, Qt::AlignCenter,true, "invuomname" ); _bomitem->addColumn(tr("Inv. Fxd. Qty."), _qtyColumn, Qt::AlignRight, true, "invqtyfxd" ); _bomitem->addColumn(tr("Inv. Qty. Per"), _qtyColumn, Qt::AlignRight, true, "invqtyper" ); _bomitem->addColumn(tr("Scrap %"), _prcntColumn, Qt::AlignRight, true, "bomitem_scrap" ); _bomitem->addColumn(tr("Effective"), _dateColumn, Qt::AlignCenter,true, "bomitem_effective" ); _bomitem->addColumn(tr("Expires"), _dateColumn, Qt::AlignCenter,true, "bomitem_expires" ); _bomitem->addColumn(tr("ECN #"), _itemColumn, Qt::AlignLeft, true, "bomitem_ecn" ); _bomitem->addColumn(tr("Notes"), _itemColumn, Qt::AlignLeft, false, "bomitem_notes" ); _bomitem->addColumn(tr("Reference"), _itemColumn, Qt::AlignLeft, false, "bomitem_ref" ); _expiredDaysLit->setEnabled(_showExpired->isChecked()); _expiredDays->setEnabled(_showExpired->isChecked()); _effectiveDaysLit->setEnabled(_showFuture->isChecked()); _effectiveDays->setEnabled(_showFuture->isChecked()); _item->setFocus(); _revision->setEnabled(false); _revision->setMode(RevisionLineEdit::View); _revision->setType("BOM"); _revision->setVisible(_metrics->boolean("RevControl")); }
enum SetResponse rptSalesHistoryByBilltoName::set(const ParameterList &pParams) { QVariant param; bool valid; param = pParams.value("billto_name", &valid); if (valid) _billtoName->setText(param.toString()); param = pParams.value("prodcat_id", &valid); if (valid) _productCategory->setId(param.toInt()); param = pParams.value("prodcat_pattern", &valid); if (valid) _productCategory->setPattern(param.toString()); param = pParams.value("warehous_id", &valid); if (valid) _warehouse->setId(param.toInt()); else _warehouse->setAll(); param = pParams.value("startDate", &valid); if (valid) _dates->setStartDate(param.toDate()); param = pParams.value("endDate", &valid); if (valid) _dates->setEndDate(param.toDate()); _showPrices->setChecked(pParams.inList("showPrices")); _showCosts->setChecked(pParams.inList("showCosts")); if (pParams.inList("print")) { sPrint(); return NoError_Print; } return NoError; }
enum SetResponse rptTimePhasedBookingsByProductCategory::set(ParameterList &pParams) { _captive = TRUE; QVariant param; bool valid; param = pParams.value("prodcat_id", &valid); if (valid) _productCategory->setId(param.toInt()); param = pParams.value("prodcat_pattern", &valid); if (valid) _productCategory->setPattern(param.toString()); param = pParams.value("warehous_id", &valid); if (valid) _warehouse->setId(param.toInt()); else _warehouse->setAll(); _inventoryUnits->setChecked(pParams.inList("inventoryUnits")); _capacityUnits->setChecked(pParams.inList("capacityUnits")); _altCapacityUnits->setChecked(pParams.inList("altCapacityUnits")); _salesDollars->setChecked(pParams.inList("salesDollars")); _calendar->load(pParams); if (pParams.inList("print")) { sPrint(); return NoError_Print; } if (pParams.inList("submit")) { sSubmit(); return NoError_Submit; } return NoError; }
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")); }
dspCapacityBufferStatusByWorkCenter::dspCapacityBufferStatusByWorkCenter(QWidget* parent, const char* name, Qt::WFlags fl) : XWidget(parent, name, fl) { setupUi(this); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_query, SIGNAL(clicked()), this, SLOT(sQuery())); _wrkcnt->populate( "SELECT wrkcnt_id, (wrkcnt_code || '-' || wrkcnt_descrip) " "FROM wrkcnt " "ORDER BY wrkcnt_code;" ); _roughCut->addColumn(tr("Site"), _whsColumn, Qt::AlignCenter,true, "warehous_code"); _roughCut->addColumn(tr("Work Center"), -1, Qt::AlignLeft, true, "wrkcnt_code"); _roughCut->addColumn(tr("Total Setup"), _timeColumn, Qt::AlignRight, true, "sutime"); _roughCut->addColumn(tr("Total Run"), _timeColumn, Qt::AlignRight, true, "rntime"); _roughCut->addColumn(tr("Daily Capacity"),_uomColumn, Qt::AlignRight, true, "dailycap"); _roughCut->addColumn(tr("Days Load"), _uomColumn, Qt::AlignRight, true, "daysload"); _roughCut->addColumn(tr("Buffer Status"), _uomColumn, Qt::AlignRight, true, "bufrsts"); }
printLabelsByOrder::printLabelsByOrder(QWidget* parent, const char* name, bool modal, Qt::WFlags fl) : XDialog(parent, name, modal, fl) { setupUi(this); connect(_labelFrom, SIGNAL(valueChanged(int)), this, SLOT(sSetToMin(int))); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); _captive = FALSE; _report->populate( "SELECT labelform_id, labelform_name " "FROM labelform " "ORDER BY labelform_name;" ); _order->setAllowedTypes(OrderLineEdit::Purchase | OrderLineEdit::Return | OrderLineEdit::Transfer); _order->setAllowedStatuses(OrderLineEdit::Unposted | OrderLineEdit::Open); }
printLabelsByTo::printLabelsByTo(QWidget* parent, const char* name, bool modal, Qt::WFlags fl) : XDialog(parent, name, modal, fl) { setupUi(this); _print = _buttonBox->button(QDialogButtonBox::Ok); _print->setEnabled(false); connect(_buttonBox, SIGNAL(rejected()), this, SLOT(reject())); connect(_buttonBox, SIGNAL(accepted()), this, SLOT(sPrint())); connect(_order, SIGNAL(valid(bool)), _print, SLOT(setEnabled(bool))); connect(_from, SIGNAL(valueChanged(int)), this, SLOT(sSetToMin(int))); _order->setAllowedTypes(OrderLineEdit::Transfer); _order->setAllowedStatuses(OrderLineEdit::Open | OrderLineEdit::Closed); _report->populate( "SELECT labelform_id, labelform_name " "FROM labelform " "ORDER BY labelform_name;" ); }
/* * Constructs a bankAccounts as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * */ bankAccounts::bankAccounts(QWidget* parent, const char* name, Qt::WFlags fl) : QMainWindow(parent, name, fl) { setupUi(this); (void)statusBar(); // signals and slots connections connect(_bankaccnt, SIGNAL(populateMenu(Q3PopupMenu*,Q3ListViewItem*,int)), this, SLOT(sPopulateMenu(Q3PopupMenu*))); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_new, SIGNAL(clicked()), this, SLOT(sNew())); connect(_delete, SIGNAL(clicked()), this, SLOT(sDelete())); connect(_close, SIGNAL(clicked()), this, SLOT(close())); connect(_view, SIGNAL(clicked()), this, SLOT(sView())); connect(_bankaccnt, SIGNAL(valid(bool)), _view, SLOT(setEnabled(bool))); connect(_edit, SIGNAL(clicked()), this, SLOT(sEdit())); connect(_serviceCharge, SIGNAL(clicked()), this, SLOT(sPostServiceCharge())); connect(_adjustment, SIGNAL(clicked()), this, SLOT(sPostAdjustment())); init(); }
printMulticopyDocument::printMulticopyDocument(QWidget *parent, const char *name, bool modal, Qt::WindowFlags fl) : XDialog(parent, name, modal, fl) { _data = new printMulticopyDocumentPrivate(this); connect(_data->_print, SIGNAL(clicked()), this, SLOT(sPrint())); // This indirection allows scripts to replace core behavior - 14285 connect(this, SIGNAL(timeToPrintOneDoc(XSqlQuery*)), this, SLOT(sPrintOneDoc(XSqlQuery*))); connect(this, SIGNAL(timeToMarkOnePrinted(XSqlQuery*)), this, SLOT(sMarkOnePrinted(XSqlQuery*))); connect(this, SIGNAL(timeToPostOneDoc(XSqlQuery*)), this, SLOT(sPostOneDoc(XSqlQuery*))); _distributeInventory = false; }
/* * Constructs a rptCostedSummarizedBOM as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * * The dialog will by default be modeless, unless you set 'modal' to * true to construct a modal dialog. */ rptCostedSummarizedBOM::rptCostedSummarizedBOM(QWidget* parent, const char* name, bool modal, Qt::WFlags fl) : QDialog(parent, name, modal, fl) { setupUi(this); QButtonGroup* _costsGroupInt = new QButtonGroup(this); _costsGroupInt->addButton(_useStandardCosts); _costsGroupInt->addButton(_useActualCosts); // signals and slots connections connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_close, SIGNAL(clicked()), this, SLOT(close())); connect(_showExpired, SIGNAL(toggled(bool)), _expiredDaysLit, SLOT(setEnabled(bool))); connect(_showExpired, SIGNAL(toggled(bool)), _expiredDays, SLOT(setEnabled(bool))); connect(_showFuture, SIGNAL(toggled(bool)), _effectiveDaysLit, SLOT(setEnabled(bool))); connect(_showFuture, SIGNAL(toggled(bool)), _effectiveDays, SLOT(setEnabled(bool))); connect(_item, SIGNAL(valid(bool)), _print, SLOT(setEnabled(bool))); _item->setType(ItemLineEdit::cGeneralManufactured); }
unpostedGLTransactions::unpostedGLTransactions(QWidget* parent, const char* name, bool modal, Qt::WFlags fl) : XDialog(parent, name, modal, fl) { setupUi(this); connect(_gltrans, SIGNAL(populateMenu(QMenu*,QTreeWidgetItem*)), this, SLOT(sPopulateMenu(QMenu*, QTreeWidgetItem*))); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); _gltrans->addColumn(tr("Date"), _dateColumn, Qt::AlignCenter, true, "gltrans_date" ); _gltrans->addColumn(tr("Source"), _orderColumn, Qt::AlignCenter, true, "gltrans_source" ); _gltrans->addColumn(tr("Doc. Type"), _docTypeColumn, Qt::AlignCenter, true, "gltrans_doctype" ); _gltrans->addColumn(tr("Doc. #"), _orderColumn, Qt::AlignCenter, true, "docnumber" ); _gltrans->addColumn(tr("Reference"), -1, Qt::AlignLeft, true, "reference" ); _gltrans->addColumn(tr("Account"), _itemColumn, Qt::AlignLeft, true, "account" ); _gltrans->addColumn(tr("Debit"), _moneyColumn, Qt::AlignRight, true, "debit" ); _gltrans->addColumn(tr("Credit"), _moneyColumn, Qt::AlignRight, true, "credit" ); _gltrans->addColumn(tr("Posted"), _ynColumn, Qt::AlignCenter, true, "gltrans_posted" ); _periodid = -1; }
dspTimePhasedPlannedREByPlannerCode::dspTimePhasedPlannedREByPlannerCode(QWidget* parent, const char* name, Qt::WFlags fl) : XWidget(parent, name, fl) { setupUi(this); QButtonGroup* _costsGroupInt = new QButtonGroup(this); _costsGroupInt->addButton(_useStandardCost); _costsGroupInt->addButton(_useActualCost); QButtonGroup* _salesPriceGroupInt = new QButtonGroup(this); _salesPriceGroupInt->addButton(_useListPrice); _salesPriceGroupInt->addButton(_useAveragePrice); connect(_query, SIGNAL(clicked()), this, SLOT(sFillList())); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); _plannerCode->setType(ParameterGroup::PlannerCode); _plannedRE->addColumn("", 80, Qt::AlignRight); }
dspCapacityUOMsByClassCode::dspCapacityUOMsByClassCode(QWidget* parent, const char* name, Qt::WFlags fl) : XWidget(parent, name, fl) { setupUi(this); connect(_item, SIGNAL(populateMenu(QMenu*,QTreeWidgetItem*,int)), this, SLOT(sPopulateMenu(QMenu*))); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_query, SIGNAL(clicked()), this, SLOT(sFillList())); _classCode->setType(ParameterGroup::ClassCode); _item->addColumn(tr("Class Code"), _itemColumn, Qt::AlignCenter,true, "classcode_code"); _item->addColumn(tr("Item Number"), _itemColumn, Qt::AlignLeft, true, "item_number"); _item->addColumn(tr("Description"), -1, Qt::AlignLeft, true, "descrip"); _item->addColumn(tr("Inv. UOM"), _uomColumn, Qt::AlignCenter,true, "uom_name"); _item->addColumn(tr("Cap. UOM"), _uomColumn, Qt::AlignCenter,true, "capuom"); _item->addColumn(tr("Cap./Inv. Rat."),_qtyColumn, Qt::AlignRight, true, "capinvrat"); _item->addColumn(tr("Alt. UOM"), _uomColumn, Qt::AlignCenter,true, "altcapuom"); _item->addColumn(tr("Alt/Inv Ratio"), _qtyColumn, Qt::AlignRight, true, "altcapinvrat"); }