reassignLotSerial::reassignLotSerial(QWidget* parent, const char* name, bool modal, Qt::WFlags fl) : XDialog(parent, name, modal, fl) { setupUi(this); connect(_warehouse, SIGNAL(newID(int)), this, SLOT(sFillList())); connect(_reassign, SIGNAL(clicked()), this, SLOT(sReassign())); _captive = FALSE; _item->setType(ItemLineEdit::cLotSerialControlled); _qty->setValidator(omfgThis->qtyPerVal()); _source->addColumn(tr("Location"), _itemColumn, Qt::AlignLeft , true, "locationname" ); _source->addColumn(tr("Lot/Serial #"), -1, Qt::AlignLeft , true, "ls_number" ); _source->addColumn(tr("Expires"), _dateColumn, Qt::AlignCenter, true, "itemloc_expiration" ); _source->addColumn(tr("Warranty"), _dateColumn, Qt::AlignCenter, true, "itemloc_warrpurc"); _source->addColumn(tr("Qty."), _qtyColumn, Qt::AlignRight , true, "itemloc_qty" ); //If not multi-warehouse hide whs control if (!_metrics->boolean("MultiWhs")) { _warehouseLit->hide(); _warehouse->hide(); } }
/* * Constructs a reassignProductCategoryByProductCategory 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. */ reassignProductCategoryByProductCategory::reassignProductCategoryByProductCategory(QWidget* parent, const char* name, bool modal, Qt::WFlags fl) : XDialog(parent, name, modal, fl) { setupUi(this); // signals and slots connections connect(_productCategoryPattern, SIGNAL(toggled(bool)), _productCategory, SLOT(setEnabled(bool))); connect(_selectedProductCategory, SIGNAL(toggled(bool)), _productCategories, SLOT(setEnabled(bool))); connect(_reassign, SIGNAL(clicked()), this, SLOT(sReassign())); connect(_close, SIGNAL(clicked()), this, SLOT(reject())); init(); }
/* * Constructs a reassignCustomerTypeByCustomerType 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. */ reassignCustomerTypeByCustomerType::reassignCustomerTypeByCustomerType(QWidget* parent, const char* name, bool modal, Qt::WFlags fl) : QDialog(parent, name, modal, fl) { setupUi(this); // signals and slots connections connect(_customerTypePattern, SIGNAL(toggled(bool)), _customerType, SLOT(setEnabled(bool))); connect(_selectedCustomerType, SIGNAL(toggled(bool)), _customerTypes, SLOT(setEnabled(bool))); connect(_reassign, SIGNAL(clicked()), this, SLOT(sReassign())); connect(_close, SIGNAL(clicked()), this, SLOT(reject())); init(); }
reassignClassCodeByClassCode::reassignClassCodeByClassCode(QWidget* parent, const char* name, bool modal, Qt::WFlags fl) : XDialog(parent, name, modal, fl) { setupUi(this); // signals and slots connections connect(_classCodePattern, SIGNAL(toggled(bool)), _classCode, SLOT(setEnabled(bool))); connect(_selectedClassCode, SIGNAL(toggled(bool)), _classCodes, SLOT(setEnabled(bool))); connect(_reassign, SIGNAL(clicked()), this, SLOT(sReassign())); connect(_close, SIGNAL(clicked()), this, SLOT(reject())); _classCodes->setType(XComboBox::ClassCodes); _newClassCode->setType(XComboBox::ClassCodes); }