本文整理汇总了C++中MetaSQLQuery::getSource方法的典型用法代码示例。如果您正苦于以下问题:C++ MetaSQLQuery::getSource方法的具体用法?C++ MetaSQLQuery::getSource怎么用?C++ MetaSQLQuery::getSource使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MetaSQLQuery
的用法示例。
在下文中一共展示了MetaSQLQuery::getSource方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: reprintMulticopyDocument
reprintInvoices::reprintInvoices(QWidget *parent,
const char *name,
bool modal,
Qt::WFlags fl)
: reprintMulticopyDocument("InvoiceCopies", "InvoiceWatermark",
"InvoiceShowPrices",
parent, name, modal, fl)
{
setupUi(optionsWidget());
setWindowTitle(optionsWidget()->windowTitle());
list()->addColumn(tr("Invoice #"), _orderColumn, Qt::AlignRight, true, "docnumber");
list()->addColumn(tr("Doc. Date"), _dateColumn, Qt::AlignCenter,true, "invchead_invcdate");
list()->addColumn(tr("Cust. #"), -1, Qt::AlignLeft, true, "cust_number");
list()->addColumn(tr("Customer"), -1, Qt::AlignLeft, true, "cust_name");
list()->addColumn(tr("Total Amount"),_bigMoneyColumn, Qt::AlignRight, true, "extprice" );
list()->addColumn(tr("Balance"), _bigMoneyColumn, Qt::AlignRight, true, "balance" );
list()->addColumn(tr("Report"), -1, Qt::AlignLeft, false,"reportname");
QString errmsg;
bool ok = false;
MetaSQLQuery mql = MQLUtil::mqlLoad("invoices", "detail", errmsg, &ok);
if (! ok)
ErrorReporter::error(QtCriticalMsg, this, tr("Error Getting Invoices"),
errmsg, __FILE__, __LINE__);
setDoctype("IN");
setReportKey("invchead_id");
_docListQueryString = mql.getSource();
}
示例2: printSinglecopyDocument
printStatementsByCustomerType::printStatementsByCustomerType(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
: printSinglecopyDocument(parent, name, modal, fl)
{
setupUi(optionsWidget());
setWindowTitle(optionsWidget()->windowTitle());
_asOf->setDate(omfgThis->dbDate(), true);
_customerTypes->setType(ParameterGroup::CustomerType);
if (_preferences->boolean("XCheckBox/forgetful"))
_dueonly->setChecked(true);
setPrintEnabled(true);
setDoctype("AR");
setReportKey("cust_id");
bool ok = false;
QString msg;
MetaSQLQuery custm = MQLUtil::mqlLoad("customers", "statement", msg, &ok);
if (ok)
_docinfoQueryString = custm.getSource();
else
ErrorReporter::error(QtCriticalMsg, this, tr("Getting Customers to Print"),
msg, __FILE__, __LINE__);
}