Patch level : 12.0 604
Files correlati : fp Commento : Aggiunto controllo bottoni
This commit is contained in:
parent
278e579e67
commit
242d192aa2
@ -113,6 +113,8 @@ bool TParametri_mask::on_field_event(TOperable_field& o, TField_event e, long jo
|
||||
tipi_import();
|
||||
break;
|
||||
case F_SETPATCH:
|
||||
{
|
||||
if (e == fe_button)
|
||||
{
|
||||
TMask & m = get_tmp_msk("Livello patch");
|
||||
m.add_string(101, 0, "Versione ", 1, 1, 5, "");
|
||||
@ -129,25 +131,34 @@ bool TParametri_mask::on_field_event(TOperable_field& o, TField_event e, long jo
|
||||
else
|
||||
error_box("Errore durante la scrittura del DB Campo");
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case F_ENPTYTABLE:
|
||||
if (e == fe_button)
|
||||
{
|
||||
if (yesno_box("Sei sicuro di voler svuotare tutte le tabelle del database? Questa procedura NON É REVERSIBILE"))
|
||||
{
|
||||
db().sq_set_exec("EXEC sp_MSforeachtable @command1 = 'TRUNCATE TABLE ? '");
|
||||
db().sq_commit();
|
||||
message_box("Procedura terminata");
|
||||
}
|
||||
}
|
||||
break;
|
||||
case F_DROPTABLE:
|
||||
if (e == fe_button)
|
||||
{
|
||||
if (yesno_box("Sei sicuro di voler cancellare tutte le tabelle del database? Questa procedura NON É REVERSIBILE"))
|
||||
{
|
||||
db().sq_set_exec("EXEC sp_MSforeachtable @command1 = 'DROP TABLE ?'");
|
||||
db().sq_commit();
|
||||
message_box("Procedura terminata");
|
||||
}
|
||||
}
|
||||
break;
|
||||
case F_REBORNDB:
|
||||
if (e == fe_button)
|
||||
{
|
||||
if (yesno_box("Sei sicuro di voler ricreare tutte le tabelle del database? Questa procedura NON É REVERSIBILE"))
|
||||
{
|
||||
db().sq_set_exec("EXEC sp_MSforeachtable @command1 = 'DROP TABLE ?'");
|
||||
@ -160,6 +171,7 @@ bool TParametri_mask::on_field_event(TOperable_field& o, TField_event e, long jo
|
||||
db().sq_commit();
|
||||
message_box("Procedura terminata");
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user