Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(-1 == ComboCuentas->currentIndex())
- {
- QMessageBox::information(this,APP,tr("Debe seleccionar la cuenta a la que estar asociada la licencia."),QMessageBox::Ok);
- ComboCuentas->setFocus(Qt::NoFocusReason);
- }else
- if(-1 == ComboProductos->currentIndex())
- {
- QMessageBox::information(this,APP,tr("Debe seleccionar el producto al que estar asociada la licencia."),QMessageBox::Ok);
- ComboProductos->setFocus(Qt::NoFocusReason);
- }else
- if(TextSerie->text() == "")
- {
- QMessageBox::information(this,APP,tr("Introduzca el nmero de serie de la licencia."),QMessageBox::Ok);
- TextSerie->setFocus(Qt::NoFocusReason);
- }else
- {
- QString str = TextFecha->text();
- if(str == "")
- {
- QMessageBox::information(this,APP,tr("Introduzca la fecha de la licencia."),QMessageBox::Ok);
- }else
- {
- if(nd(str).length() > 0)
- {
- return true;
- }else
- {
- QMessageBox::information(this,APP,tr("La fecha es incorrecta."),QMessageBox::Ok);
- TextFecha->setFocus(Qt::NoFocusReason);
- }
- }
- }
Add Comment
Please, Sign In to add comment