Guest User

Untitled

a guest
Apr 23rd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. if(-1 == ComboCuentas->currentIndex())
  2. {
  3. QMessageBox::information(this,APP,tr("Debe seleccionar la cuenta a la que estar asociada la licencia."),QMessageBox::Ok);
  4. ComboCuentas->setFocus(Qt::NoFocusReason);
  5. }else
  6. if(-1 == ComboProductos->currentIndex())
  7. {
  8. QMessageBox::information(this,APP,tr("Debe seleccionar el producto al que estar asociada la licencia."),QMessageBox::Ok);
  9. ComboProductos->setFocus(Qt::NoFocusReason);
  10. }else
  11. if(TextSerie->text() == "")
  12. {
  13. QMessageBox::information(this,APP,tr("Introduzca el nmero de serie de la licencia."),QMessageBox::Ok);
  14. TextSerie->setFocus(Qt::NoFocusReason);
  15. }else
  16. {
  17. QString str = TextFecha->text();
  18. if(str == "")
  19. {
  20. QMessageBox::information(this,APP,tr("Introduzca la fecha de la licencia."),QMessageBox::Ok);
  21. }else
  22. {
  23. if(nd(str).length() > 0)
  24. {
  25. return true;
  26. }else
  27. {
  28. QMessageBox::information(this,APP,tr("La fecha es incorrecta."),QMessageBox::Ok);
  29. TextFecha->setFocus(Qt::NoFocusReason);
  30. }
  31. }
  32. }
Add Comment
Please, Sign In to add comment