assignLotSerial::assignLotSerial(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl) : XDialog(parent, name, modal, fl) { setupUi(this); _print = _buttonBox->addButton(tr("Print"), QDialogButtonBox::ActionRole); connect(_new, SIGNAL(clicked()), this, SLOT(sNew())); connect(_delete, SIGNAL(clicked()), this, SLOT(sDelete())); connect(_buttonBox, SIGNAL(accepted()), this, SLOT(sAssign())); connect(_buttonBox, SIGNAL(rejected()), this, SLOT(reject())); connect(_print, SIGNAL(clicked()), this, SLOT(sPrint())); connect(_options, SIGNAL(clicked()), this, SLOT(sPrintOptions())); _itemlocSeries = -1; _trapClose = true; _item->setReadOnly(true); _itemlocdist->addColumn( tr("Lot/Serial #"), -1, Qt::AlignLeft, true, "ls_number"); _itemlocdist->addColumn( tr("Expires"), _dateColumn, Qt::AlignCenter,true, "itemlocdist_expiration"); _itemlocdist->addColumn( tr("Warranty"),_dateColumn, Qt::AlignCenter,true, "itemlocdist_warranty"); _itemlocdist->addColumn( tr("Qty."), _qtyColumn, Qt::AlignRight, true, "itemlocdist_qty"); QStringList char_names = _lschars.getLotCharNames(); for (int i=0; i < char_names.size(); i++) { _itemlocdist->addColumn(char_names.at(i), -1, Qt::AlignLeft, true, QString("lschar%1").arg(i)); } _qtyToAssign->setPrecision(omfgThis->qtyVal()); _qtyAssigned->setPrecision(omfgThis->qtyVal()); _qtyBalance->setPrecision(omfgThis->qtyVal()); }
getLotInfo::getLotInfo(QWidget* parent, const char* name, bool modal, Qt::WFlags fl) : XDialog(parent, name, modal, fl) { setupUi(this); // signals and slots connections connect(_close, SIGNAL(clicked()), this, SLOT(reject())); connect(_assign, SIGNAL(clicked()), this, SLOT(sAssign())); }
/* * Constructs a assignItemToPlannerCode 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. */ assignItemToPlannerCode::assignItemToPlannerCode(QWidget* parent, const char* name, bool modal, Qt::WFlags fl) : XDialog(parent, name, modal, fl) { setupUi(this); // signals and slots connections connect(_item, SIGNAL(valid(bool)), _assign, SLOT(setEnabled(bool))); connect(_close, SIGNAL(clicked()), this, SLOT(reject())); connect(_assign, SIGNAL(clicked()), this, SLOT(sAssign())); init(); }
assignItemToPlannerCode::assignItemToPlannerCode(QWidget* parent, const char* name, bool modal, Qt::WFlags fl) : XDialog(parent, name, modal, fl) { setupUi(this); // signals and slots connections connect(_item, SIGNAL(valid(bool)), _buttonBox->button(QDialogButtonBox::Ok), SLOT(setEnabled(bool))); connect(_buttonBox, SIGNAL(accepted()), this, SLOT(sAssign())); connect(_buttonBox, SIGNAL(rejected()), this, SLOT(reject())); _plannerCode->setAllowNull(TRUE); _plannerCode->setType(XComboBox::PlannerCodes); }
assignClassCodeToPlannerCode::assignClassCodeToPlannerCode(QWidget* parent, const char* name, bool modal, Qt::WFlags fl) : XDialog(parent, name, modal, fl) { setupUi(this); // signals and slots connections connect(_assign, SIGNAL(clicked()), this, SLOT(sAssign())); connect(_close, SIGNAL(clicked()), this, SLOT(reject())); _classCode->setType(ParameterGroup::ClassCode); _planCode->setAllowNull(TRUE); _planCode->setType(XComboBox::PlannerCodes); }
createLotSerial::createLotSerial(QWidget* parent, const char* name, bool modal, Qt::WFlags fl) : XDialog(parent, name, modal, fl) { setupUi(this); connect(_assign, SIGNAL(clicked()), this, SLOT(sAssign())); connect(_lotSerial, SIGNAL(textChanged(QString)), this, SLOT(sHandleLotSerial())); _item->setReadOnly(TRUE); _serial = false; _itemsiteid = -1; _preassigned = false; resize(minimumSize()); }
assignLotSerial::assignLotSerial(QWidget* parent, const char* name, bool modal, Qt::WFlags fl) : QDialog(parent, name, modal, fl) { setupUi(this); connect(_new, SIGNAL(clicked()), this, SLOT(sNew())); connect(_delete, SIGNAL(clicked()), this, SLOT(sDelete())); connect(_assign, SIGNAL(clicked()), this, SLOT(sAssign())); _trapClose = TRUE; _item->setReadOnly(TRUE); _itemlocdist->addColumn( tr("Lot/Serial #"), -1, Qt::AlignLeft ); _itemlocdist->addColumn( tr("Expires"), _dateColumn, Qt::AlignCenter ); _itemlocdist->addColumn( tr("Qty."), _qtyColumn, Qt::AlignRight ); }
/* * Constructs a pricingScheduleAssignment 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. */ pricingScheduleAssignment::pricingScheduleAssignment(QWidget* parent, const char* name, bool modal, Qt::WFlags fl) : XDialog(parent, name, modal, fl) { setupUi(this); // signals and slots connections connect(_selectedCustomerType, SIGNAL(toggled(bool)), _customerTypes, SLOT(setEnabled(bool))); connect(_customerTypePattern, SIGNAL(toggled(bool)), _customerType, SLOT(setEnabled(bool))); connect(_buttonBox, SIGNAL(accepted()), this, SLOT(sAssign())); connect(_selectedCustomerShipto, SIGNAL(toggled(bool)), _customerShipto, SLOT(setEnabled(bool))); connect(_cust, SIGNAL(newId(int)), this, SLOT(sCustomerSelected())); _customerTypes->setType(XComboBox::CustomerTypes); _ipshead->setAllowNull(true); _ipshead->populate( "SELECT ipshead_id, (ipshead_name || ' - ' || ipshead_descrip) " "FROM ipshead " "WHERE (CURRENT_DATE < ipshead_expires) " "ORDER BY ipshead_name;" ); }
assignLotSerial::assignLotSerial(QWidget* parent, const char* name, bool modal, Qt::WFlags fl) : XDialog(parent, name, modal, fl) { setupUi(this); connect(_new, SIGNAL(clicked()), this, SLOT(sNew())); connect(_delete, SIGNAL(clicked()), this, SLOT(sDelete())); connect(_assign, SIGNAL(clicked()), this, SLOT(sAssign())); connect(_cancel, SIGNAL(clicked()), this, SLOT(sCancel())); connect(this, SIGNAL(rejected()), this, SLOT(sCancel())); _trapClose = TRUE; _item->setReadOnly(TRUE); _itemlocdist->addColumn( tr("Lot/Serial #"), -1, Qt::AlignLeft, true, "ls_number"); _itemlocdist->addColumn( tr("Expires"), _dateColumn, Qt::AlignCenter,true, "itemlocdist_expiration"); _itemlocdist->addColumn( tr("Warranty"),_dateColumn, Qt::AlignCenter,true, "itemlocdist_warranty"); _itemlocdist->addColumn( tr("Qty."), _qtyColumn, Qt::AlignRight, true, "itemlocdist_qty"); _qtyToAssign->setPrecision(omfgThis->qtyVal()); _qtyAssigned->setPrecision(omfgThis->qtyVal()); _qtyBalance->setPrecision(omfgThis->qtyVal()); }