本文整理汇总了C++中parameterWidget函数的典型用法代码示例。如果您正苦于以下问题:C++ parameterWidget函数的具体用法?C++ parameterWidget怎么用?C++ parameterWidget使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了parameterWidget函数的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: display
dspUsageStatistics::dspUsageStatistics(QWidget* parent, const char* name, Qt::WFlags fl)
: display(parent, name, fl)
{
setWindowTitle(tr("Item Usage Statistics"));
setReportName("UsageStatistics");
setMetaSQLOptions("usageStatistics", "detail");
setUseAltId(true);
setParameterWidgetVisible(true);
_printing = false;
parameterWidget()->append(tr("Start Date"), "startDate", ParameterWidget::Date, QDate(QDate::currentDate().year(),1,1), true);
parameterWidget()->append(tr("End Date"), "endDate", ParameterWidget::Date, QDate::currentDate(), true);
parameterWidget()->appendComboBox(tr("Class Code"), "classcode_id", XComboBox::ClassCodes);
parameterWidget()->append(tr("Class Code Pattern"), "classcode_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);
parameterWidget()->applyDefaultFilterSet();
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("Received"), _qtyColumn, Qt::AlignRight, true, "received" );
list()->addColumn(tr("Issued"), _qtyColumn, Qt::AlignRight, true, "issued" );
list()->addColumn(tr("Sold"), _qtyColumn, Qt::AlignRight, true, "sold" );
list()->addColumn(tr("Scrap"), _qtyColumn, Qt::AlignRight, true, "scrap" );
list()->addColumn(tr("Adjustments"), _qtyColumn, Qt::AlignRight, true, "adjust" );
if (_metrics->boolean("MultiWhs"))
list()->addColumn(tr("Transfers"), _qtyColumn, Qt::AlignRight, true, "transfer" );
}
开发者ID:Dinesh-Ramakrishnan,项目名称:qt-client,代码行数:33,代码来源:dspUsageStatistics.cpp
示例2: display
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"));
}
开发者ID:AlFoX,项目名称:qt-client,代码行数:53,代码来源:dspQOH.cpp
示例3: parameterWidget
SetResponse dspQOHByZone::set(const ParameterList &pParams)
{
XWidget::set(pParams);
QVariant param;
bool valid;
parameterWidget()->setSavedFilters();
param = pParams.value("whsezone_id", &valid);
if (valid)
parameterWidget()->setDefault(tr("Zone"), param);
parameterWidget()->applyDefaultFilterSet();
return NoError;
}
开发者ID:dwatson78,项目名称:qt-client,代码行数:16,代码来源:dspQOHByZone.cpp
示例4: display
dspInventoryLocator::dspInventoryLocator(QWidget* parent, const char*, Qt::WindowFlags fl)
: display(parent, "dspInventoryLocator", fl)
{
setupUi(optionsWidget());
setWindowTitle(tr("Location/Lot/Serial # Detail"));
setListLabel(tr("Locations"));
setReportName("LocationLotSerialNumberDetail");
setMetaSQLOptions("inventoryLocator", "detail");
setUseAltId(true);
list()->addColumn(tr("Site"), _whsColumn, Qt::AlignCenter,true, "warehous_code");
list()->addColumn(tr("Location"), 200, Qt::AlignLeft, true, "locationname");
list()->addColumn(tr("Netable"), _orderColumn, Qt::AlignCenter,true, "netable");
list()->addColumn(tr("Usable"), _orderColumn, Qt::AlignCenter,true, "usable");
list()->addColumn(tr("Lot/Serial #"), -1, Qt::AlignLeft, true, "lotserial");
list()->addColumn(tr("Expiration"),_dateColumn, Qt::AlignCenter,true, "expiration");
list()->addColumn(tr("Warranty"), _dateColumn, Qt::AlignCenter,true, "warranty");
list()->addColumn(tr("Qty."), _qtyColumn, Qt::AlignRight, true, "qoh");
ParameterWidget *pw = parameterWidget();
pw->append(tr("Site"), "site", ParameterWidget::Site);
pw->append(tr("Location"), "_location_name", ParameterWidget::Text);
pw->append(tr("Lot/Serial"), "lot_serial", ParameterWidget::Text);
setupCharacteristics("LS");
setParameterWidgetVisible(true);
}
开发者ID:ChristopherCotnoir,项目名称:qt-client,代码行数:28,代码来源:dspInventoryLocator.cpp
示例5: display
dspQOHByZone::dspQOHByZone(QWidget* parent, const char*, Qt::WindowFlags fl)
: display(parent, "dspQOHByZone", fl)
{
setupUi(optionsWidget());
setWindowTitle(tr("Quantities on Hand By Zone"));
setReportName("QOHByZone");
setMetaSQLOptions("qoh", "detailByZone");
setUseAltId(true);
setParameterWidgetVisible(true);
QString _zoneSQL ("SELECT whsezone_id, warehous_code||' :- '||whsezone_name||' - '||whsezone_descrip "
"FROM whsezone "
"JOIN whsinfo ON (warehous_id=whsezone_warehous_id) "
" ORDER BY warehous_code, whsezone_name;");
//if (_metrics->boolean("MultiWhs"))
// parameterWidget()->append(tr("Site"), "warehous_id", ParameterWidget::Site, "", true);
// TODO filter Zone based on Site selection
parameterWidget()->appendComboBox(tr("Zone"), "whsezone_id", _zoneSQL, "", true);
if (_metrics->boolean("MultiWhs"))
list()->addColumn(tr("Site"), _whsColumn, Qt::AlignCenter, true, "warehous_code" );
list()->addColumn(tr("Zone"), _whsColumn, Qt::AlignCenter, true, "whsezone_name" );
list()->addColumn(tr("Item Number"), _itemColumn, Qt::AlignLeft, true, "item_number" );
list()->addColumn(tr("Description"), -1, Qt::AlignLeft, true, "item_descrip1" );
list()->addColumn(tr("UOM"), _uomColumn, Qt::AlignCenter, true, "uom_name" );
list()->addColumn(tr("Location"), _itemColumn, Qt::AlignLeft, false, "location_descrip" );
list()->addColumn(tr("QOH"), _qtyColumn, Qt::AlignRight, true, "qoh" );
list()->addColumn(tr("Aisle"), -1, Qt::AlignLeft, false, "location_aisle" );
list()->addColumn(tr("Rack"), -1, Qt::AlignLeft, false, "location_rack" );
list()->addColumn(tr("Bin"), -1, Qt::AlignLeft, false, "location_bin" );
}
开发者ID:dwatson78,项目名称:qt-client,代码行数:33,代码来源:dspQOHByZone.cpp
示例6: parameterWidget
SetResponse dspQOH::set(const ParameterList &pParams)
{
XWidget::set(pParams);
QVariant param;
bool valid;
parameterWidget()->setSavedFilters();
param = pParams.value("classcode_id", &valid);
if (valid)
parameterWidget()->setDefault(tr("Class Code"), param);
param = pParams.value("classcode_pattern", &valid);
if (valid)
parameterWidget()->setDefault(tr("Class Code Pattern"), param);
param = pParams.value("costcat_id", &valid);
if (valid)
parameterWidget()->setDefault(tr("Cost Category"), param);
param = pParams.value("costcat_pattern", &valid);
if (valid)
parameterWidget()->setDefault(tr("Cost Category Pattern"), param);
param = pParams.value("item_id", &valid);
if (valid)
parameterWidget()->setDefault(tr("Item"), param);
param = pParams.value("itemgrp_id", &valid);
if (valid)
parameterWidget()->setDefault(tr("Item Group"), param);
param = pParams.value("itemgrp_pattern", &valid);
if (valid)
parameterWidget()->setDefault(tr("Item Group Pattern"), param);
param = pParams.value("warehous_id", &valid);
if (valid)
parameterWidget()->setDefault(tr("Site"), param);
parameterWidget()->applyDefaultFilterSet();
if (pParams.inList("run"))
sFillList();
return NoError;
}
开发者ID:AlFoX,项目名称:qt-client,代码行数:47,代码来源:dspQOH.cpp
示例7: parameterWidget
bool dspSalesOrders::setParams(ParameterList & params)
{
parameterWidget()->appendValue(params);
params.append("noLines", tr("No Lines"));
params.append("closed", tr("Closed"));
params.append("open", tr("Open"));
params.append("partial", tr("Partial"));
return true;
}
开发者ID:bixwilson,项目名称:qt-client,代码行数:10,代码来源:dspSalesOrders.cpp
示例8: parameterWidget
void todoList::sNewOpportunity()
{
ParameterList params;
parameterWidget()->appendValue(params);
params.append("mode", "new");
opportunity newdlg(this, "", true);
newdlg.set(params);
if (newdlg.exec() != XDialog::Rejected)
sFillList();
}
开发者ID:ChristopherCotnoir,项目名称:qt-client,代码行数:11,代码来源:todoList.cpp
示例9: parameterWidget
void dspTimePhasedSales::sViewHistory()
{
ParameterList params;
parameterWidget()->appendValue(params);
params.append("filter", parameterWidget()->filter());
if (_groupBy->id() == 1)
params.append("prodcat_id", list()->id());
else if (_groupBy->id() == 2)
params.append("item_id", list()->id());
else
params.append("cust_id", list()->id());
params.append("warehous_id", list()->altId());
params.append("startDate", _columnDates[_column - 4].startDate);
params.append("endDate", _columnDates[_column - 4].endDate);
params.append("run");
dspSalesHistory *newdlg = new dspSalesHistory();
newdlg->set(params);
omfgThis->handleNewWindow(newdlg);
}
开发者ID:AlFoX,项目名称:qt-client,代码行数:21,代码来源:dspTimePhasedSales.cpp
示例10: display
dspTrialBalances::dspTrialBalances(QWidget* parent, const char*, Qt::WFlags fl)
: display(parent, "dspTrialBalances", fl)
{
setWindowTitle(tr("Trial Balances"));
setListLabel(tr("Trial Balances"));
setReportName("TrialBalances");
setMetaSQLOptions("trialBalances", "detail");
setUseAltId(true);
setParameterWidgetVisible(true);
list()->addColumn(tr("Start"), _dateColumn, Qt::AlignCenter, true, "period_start" );
list()->addColumn(tr("End"), _dateColumn, Qt::AlignCenter, true, "period_end" );
list()->addColumn(tr("Account #"), _itemColumn, Qt::AlignLeft, true, "account" );
list()->addColumn(tr("Description"), -1, Qt::AlignLeft, true, "accnt_descrip" );
list()->addColumn(tr("Beg. Bal."), _bigMoneyColumn, Qt::AlignRight, true, "beginning" );
list()->addColumn(tr("Beg. Bal. Sense"), 25, Qt::AlignLeft, true, "beginningsense" );
list()->addColumn(tr("Debits"), _bigMoneyColumn, Qt::AlignRight, true, "debits" );
list()->addColumn(tr("Credits"), _bigMoneyColumn, Qt::AlignRight, true, "credits" );
list()->addColumn(tr("Difference"), _bigMoneyColumn, Qt::AlignRight, true, "diff" );
list()->addColumn(tr("Difference Sense"), 25, Qt::AlignLeft, true, "diffsense" );
list()->addColumn(tr("End Bal."), _bigMoneyColumn, Qt::AlignRight, true, "ending" );
list()->addColumn(tr("End Bal. Sense"), 25, Qt::AlignLeft, true, "endingsense" );
// Determine current period
int periodid = -1;
XSqlQuery qry;
qry.exec("SELECT period_id "
"FROM period "
"WHERE (current_date BETWEEN period_start AND period_end);");
if (qry.first())
periodid = qry.value("period_id").toInt();
parameterWidget()->appendComboBox(tr("Period"), "period_id", XComboBox::AccountingPeriods, QVariant(periodid));
if (_metrics->value("GLCompanySize").toInt() > 0)
parameterWidget()->appendComboBox(tr("Company"), "company_id", XComboBox::Companies);
parameterWidget()->append(tr("GL Account"), "accnt_id", ParameterWidget::GLAccount);
parameterWidget()->append(tr("Show Zero Amounts"), "showZero", ParameterWidget::Exists);
parameterWidget()->applyDefaultFilterSet();
}
开发者ID:AlFoX,项目名称:qt-client,代码行数:39,代码来源:dspTrialBalances.cpp
示例11: parameterWidget
bool dspDetailedInventoryHistoryByLotSerial::setParams(ParameterList ¶ms)
{
if (!display::setParams(params))
return false;
QString trace = "N";
params = parameterWidget()->parameters();
if ( ((_selected->isChecked() && _lotSerial->number().trimmed().length() == 0)
|| (_pattern->isChecked() && _lotSerialPattern->text().trimmed().length() == 0))
&& (!_item->isValid()) )
{
QMessageBox::warning( this, tr("Enter Lot/Serial #"),
tr("<p>You must enter a Lot/Serial or Item criteria to print Inventory "
"Detail by Lot/Serial #.</p>") );
_lotSerial->setFocus();
return false;
}
bool valid;
QVariant param;
param = params.value("traceId", &valid);
if (valid)
{
int traceid = param.toInt();
if (traceid)
trace = "B";
else
trace = "F";
}
if (_item->isValid())
params.append("itemid", _item->id());
params.append("trace", trace);
if (_selected->isChecked())
{
if (_lotSerial->number().trimmed().length() > 0)
params.append("lotSerial", _lotSerial->number().trimmed());
}
else
{
params.append("pattern", "t");
params.append("lotSerial", _lotSerialPattern->text().trimmed().toUpper());
}
return true;
}
开发者ID:szuke,项目名称:qt-client,代码行数:49,代码来源:dspDetailedInventoryHistoryByLotSerial.cpp
示例12: display
dspUserPrivileges::dspUserPrivileges(QWidget* parent, const char* name, Qt::WindowFlags fl)
: display(parent, name, fl)
{
setWindowTitle(tr("User Privilege Audit"));
setReportName("UserPrivileges");
setMetaSQLOptions("permissions", "privileges");
setParameterWidgetVisible(true);
setUseAltId(true);
_printing = false;
_grpSql = "SELECT grp_id, grp_name FROM grp ORDER BY grp_name;";
parameterWidget()->append(tr("Username"), "username", ParameterWidget::User);
parameterWidget()->appendComboBox(tr("Role"), "role", _grpSql);
parameterWidget()->append(tr("Privilege"), "privilege", ParameterWidget::Text);
parameterWidget()->applyDefaultFilterSet();
list()->addColumn(tr("Username"), 100, Qt::AlignLeft, true, "priv_username" );
list()->addColumn(tr("Role"), 100, Qt::AlignLeft, true, "grp_name" );
list()->addColumn(tr("Module"), -1, Qt::AlignLeft, true, "priv_module" );
list()->addColumn(tr("Privilege Name"), -1, Qt::AlignLeft, true, "priv_name" );
list()->addColumn(tr("Description"), -1, Qt::AlignLeft, true, "priv_descrip" );
}
开发者ID:dwatson78,项目名称:qt-client,代码行数:24,代码来源:dspUserPrivileges.cpp
示例13: parameterWidget
enum SetResponse dspBacklog::set(const ParameterList &pParams)
{
XWidget::set(pParams);
QVariant param;
bool valid;
param = pParams.value("custtype_id", &valid);
if (valid)
parameterWidget()->setDefault(tr("Customer Type"), param);
param = pParams.value("custtype_pattern", &valid);
if (valid)
parameterWidget()->setDefault(tr("Customer Type Pattern"), param);
param = pParams.value("custgrp_id", &valid);
if (valid)
parameterWidget()->setDefault(tr("Customer Group"), param);
param = pParams.value("custgrp_pattern", &valid);
if (valid)
parameterWidget()->setDefault(tr("Customer Group Pattern"), param);
param = pParams.value("prodcat_id", &valid);
if (valid)
parameterWidget()->setDefault(tr("Product Category"), param);
param = pParams.value("prodcat_pattern", &valid);
if (valid)
parameterWidget()->setDefault(tr("Product Category Pattern"), param);
param = pParams.value("item_id", &valid);
if (valid)
parameterWidget()->setDefault(tr("Item"), param);
param = pParams.value("sohead_id", &valid);
if (valid)
parameterWidget()->setDefault(tr("Sales Order"), param);
if (pParams.inList("run"))
{
sFillList();
return NoError_Run;
}
return NoError;
}
开发者ID:Saturn49,项目名称:qt-client,代码行数:46,代码来源:dspBacklog.cpp
示例14: parameterWidget
enum SetResponse dspGLTransactions::set(const ParameterList &pParams)
{
XSqlQuery dspet;
XWidget::set(pParams);
parameterWidget()->setSavedFilters();
QVariant param;
bool valid;
param = pParams.value("accnt_id", &valid);
if (valid)
parameterWidget()->setDefault(tr("GL Account"), param.toInt());
param = pParams.value("startDate", &valid);
if (valid)
parameterWidget()->setDefault(tr("Start Date"), param.toDate());
param = pParams.value("endDate", &valid);
if (valid)
parameterWidget()->setDefault(tr("End Date"), param.toDate());
param = pParams.value("period_id", &valid);
if (valid)
{
dspet.prepare( "SELECT period_start, period_end "
"FROM period "
"WHERE (period_id=:period_id);" );
dspet.bindValue(":period_id", param.toInt());
dspet.exec();
if (dspet.first())
{
parameterWidget()->setDefault(tr("Start Date"), dspet.value("period_start").toDate());
parameterWidget()->setDefault(tr("End Date"), dspet.value("period_end").toDate());
}
}
parameterWidget()->applyDefaultFilterSet();
if (pParams.inList("run"))
{
emit fillList();
return NoError_Run;
}
return NoError;
}
开发者ID:AlFoX,项目名称:qt-client,代码行数:47,代码来源:dspGLTransactions.cpp
示例15: parameterWidget
enum SetResponse dspUsageStatistics::set(const ParameterList &pParams)
{
XWidget::set(pParams);
QVariant param;
bool valid;
parameterWidget()->setSavedFilters();
param = pParams.value("item_id", &valid);
if (valid)
parameterWidget()->setDefault(tr("Item"), param);
param = pParams.value("warehous_id", &valid);
if (valid)
{
if (param.toInt() > 0)
parameterWidget()->setDefault(tr("Site"), param);
}
param = pParams.value("startDate", &valid);
if (valid)
parameterWidget()->setDefault(tr("Start Date"), param);
else
parameterWidget()->setDefault(tr("Start Date"), omfgThis->startOfTime());
param = pParams.value("endDate", &valid);
if (valid)
parameterWidget()->setDefault(tr("End Date"), param);
else
parameterWidget()->setDefault(tr("End Date"), omfgThis->endOfTime());
parameterWidget()->applyDefaultFilterSet();
if (pParams.inList("run"))
{
sFillList();
return NoError_Run;
}
return NoError;
}
开发者ID:Dinesh-Ramakrishnan,项目名称:qt-client,代码行数:41,代码来源:dspUsageStatistics.cpp
示例16: tr
bool dspInventoryLocator::setParams(ParameterList ¶ms)
{
if(!_item->isValid())
{
QMessageBox::warning( this, tr("Enter a Valid Item Number"),
tr("You must enter a valid Item Number for this report.") );
return false;
}
_warehouse->appendValue(params);
params.append("item_id", _item->id());
params.append("yes", tr("Yes"));
params.append("no", tr("No"));
params.append("na", tr("N/A"));
ParameterList widgetParams = parameterWidget()->parameters();
foreach(const Parameter &p, widgetParams)
{
params.append(p);
}
开发者ID:ChristopherCotnoir,项目名称:qt-client,代码行数:20,代码来源:dspInventoryLocator.cpp
注:本文中的parameterWidget函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论