accountNumbers::accountNumbers(QWidget* parent, const char* name, Qt::WFlags fl) : XMainWindow(parent, name, fl) { setupUi(this); (void)statusBar(); 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())); sBuildList(); connect(omfgThis, SIGNAL(configureGLUpdated()), this, SLOT(sBuildList())); }
accountNumbers::accountNumbers(QWidget* parent, const char* name, Qt::WindowFlags fl) : XWidget(parent, name, fl) { setupUi(this); // (void)statusBar(); connect(_account, SIGNAL(valid(bool)), this, SLOT(sHandleButtons())); connect(_delete, SIGNAL(clicked()), this, SLOT(sDelete())); connect(_edit, SIGNAL(clicked()), this, SLOT(sEdit())); connect(_new, SIGNAL(clicked()), this, SLOT(sNew())); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_showExternal, SIGNAL(toggled(bool)), this, SLOT(sBuildList())); connect(_showInactive, SIGNAL(toggled(bool)), this, SLOT(sFillList())); connect(_type, SIGNAL(newID(int)), this, SLOT(sFillList())); connect(_type, SIGNAL(activated(int)), this, SLOT(populateSubTypes())); connect(_subType, SIGNAL(newID(int)), this, SLOT(sFillList())); connect(omfgThis, SIGNAL(configureGLUpdated()), this, SLOT(sBuildList())); _type->setAllowNull(true); QString qryType = QString( "SELECT 1, '%1' UNION " "SELECT 2, '%2' UNION " "SELECT 3, '%3' UNION " "SELECT 4, '%4' UNION " "SELECT 5, '%5' ") .arg(tr("Asset")) .arg(tr("Liability")) .arg(tr("Expense")) .arg(tr("Revenue")) .arg(tr("Equity")); _type->populate(qryType); _subType->setAllowNull(true); populateSubTypes(); _showExternal->setVisible(_metrics->boolean("MultiCompanyFinancialConsolidation")); _externalCol = -1; sBuildList(); }
/* * Constructs a duplicateAccountNumbers as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * */ duplicateAccountNumbers::duplicateAccountNumbers(QWidget* parent, const char* name, Qt::WindowFlags fl) : XWidget(parent, name, fl) { setupUi(this); // signals and slots connections connect(_duplicate, SIGNAL(clicked()), this, SLOT(sDuplicate())); sBuildList(); }
projects::projects(QWidget* parent, const char*, Qt::WFlags fl) : display(parent, "projects", fl) { setupUi(optionsWidget()); setWindowTitle(tr("Projects")); setMetaSQLOptions("projects", "detail"); setReportName("ProjectsList"); setParameterWidgetVisible(true); setNewVisible(true); setSearchVisible(true); setQueryOnStartEnabled(true); setUseAltId(true); connect(list(), SIGNAL(itemSelected(int)), this, SLOT(sOpen())); if (!_privileges->check("MaintainAllProjects") && !_privileges->check("MaintainPersonalProjects")) newAction()->setEnabled(FALSE); _salesOrders->setChecked(false); _workOrders->setChecked(false); _purchaseOrders->setChecked(false); _incidents->setChecked(false); _showHierarchy->setChecked(false); connect(omfgThis, SIGNAL(projectsUpdated(int)), this, SLOT(sFillList())); connect(_showComplete, SIGNAL(toggled(bool)), this, SLOT(sFillList())); connect(_salesOrders, SIGNAL(toggled(bool)), this, SLOT(sFillList())); connect(_workOrders, SIGNAL(toggled(bool)), this, SLOT(sFillList())); connect(_purchaseOrders, SIGNAL(toggled(bool)), this, SLOT(sFillList())); connect(_incidents, SIGNAL(toggled(bool)), this, SLOT(sFillList())); connect(_showHierarchy, SIGNAL(toggled(bool)), this, SLOT(sBuildList())); QString qryType = QString( "SELECT prjtype_id, prjtype_descr FROM prjtype " ); parameterWidget()->append(tr("Owner"), "owner_username", ParameterWidget::User); parameterWidget()->append(tr("AssignedTo"), "assigned_username", ParameterWidget::User); parameterWidget()->append(tr("Account"), "crmacct_id", ParameterWidget::Crmacct); parameterWidget()->append(tr("Contact"), "cntct_id", ParameterWidget::Contact); parameterWidget()->appendComboBox(tr("Project Type"), "prjtype_id", qryType); parameterWidget()->append(tr("Project"), "prj_id", ParameterWidget::Project); parameterWidget()->append(tr("Project Task"), "project_task", ParameterWidget::Text); parameterWidget()->append(tr("Sales Order"), "cohead_id", ParameterWidget::SalesOrder); parameterWidget()->append(tr("Work Order"), "wo_id", ParameterWidget::WorkOrder); parameterWidget()->append(tr("Purchase Order"), "pohead_id", ParameterWidget::PurchaseOrder); parameterWidget()->append(tr("Start Start Date"), "startStartDate", ParameterWidget::Date, QDate::currentDate()); parameterWidget()->append(tr("Start End Date"), "startEndDate", ParameterWidget::Date, QDate::currentDate()); parameterWidget()->append(tr("Due Start Date"), "dueStartDate", ParameterWidget::Date, QDate::currentDate()); parameterWidget()->append(tr("Due End Date"), "dueEndDate", ParameterWidget::Date, QDate::currentDate()); parameterWidget()->append(tr("Assigned Start Date"), "assignedStartDate", ParameterWidget::Date, QDate::currentDate()); parameterWidget()->append(tr("Assigned End Date"), "assignedEndDate", ParameterWidget::Date, QDate::currentDate()); parameterWidget()->append(tr("Completed Start Date"), "completedStartDate", ParameterWidget::Date, QDate::currentDate()); parameterWidget()->append(tr("Completed End Date"), "completedEndDate", ParameterWidget::Date, QDate::currentDate()); sBuildList(); }
accountNumbers::accountNumbers(QWidget* parent, const char* name, Qt::WFlags fl) : XWidget(parent, name, fl) { setupUi(this); // (void)statusBar(); connect(_account, SIGNAL(valid(bool)), this, SLOT(sHandleButtons())); connect(_delete, SIGNAL(clicked()), this, SLOT(sDelete())); connect(_edit, SIGNAL(clicked()), this, SLOT(sEdit())); connect(_new, SIGNAL(clicked()), this, SLOT(sNew())); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_showExternal, SIGNAL(toggled(bool)), this, SLOT(sBuildList())); connect(omfgThis, SIGNAL(configureGLUpdated()), this, SLOT(sBuildList())); _showExternal->setVisible(_metrics->boolean("MultiCompanyFinancialConsolidation")); _externalCol = -1; sBuildList(); }