Patch level : 12.0 412
Files correlati : Commento : Tolta chiamata a codice non funzionante per test git-svn-id: svn://10.65.10.50/branches/R_10_00@23877 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
55cbe98cd1
commit
d566d3fc83
@ -1008,7 +1008,6 @@ inline void printError(TPrinter* stampa, TString movimento, TString documento, T
|
||||
|
||||
bool TTrFa_mask::checkRec(TPrinter* stampa, TToken_string rec)
|
||||
{
|
||||
|
||||
bool ok = true;
|
||||
TString numMov = rec.get(_numero), numDoc = rec.get(_numdoc);
|
||||
TString msgerr;
|
||||
@ -1470,24 +1469,7 @@ bool TTrFa_app::send(TTrFa_mask* msk)
|
||||
// Booleano per appendere i record nel db
|
||||
_append = false;
|
||||
// Controllo che non ci sia già una esportazione in attesa
|
||||
TString query; query << "SELECT * FROM TFF0100F WHERE P1_KEYPRGINVIO='" << DTE_PROVV << "' OR P1_KEYPRGINVIO='" << DTR_PROVV << "';";
|
||||
TODBC_recordset testProv(query);
|
||||
if(testProv.items() > 0)
|
||||
{
|
||||
|
||||
TString msg;
|
||||
if(get_hostname() == "GIARDINI")
|
||||
msg << "Gentilissima Ilaria, Il tuo fantastico programmatore di quartiere ci tiene a farti notare che sono già presenti dei record provvisori da esportare, cosa vorresti fare?";
|
||||
else
|
||||
msg << "Sono già presenti dei record da esportare, cosa vuoi fare?";
|
||||
_append = custom_box(msg, "Aggiungi", "Sovrascrivi", NULL) == 1;
|
||||
|
||||
if(!_append)
|
||||
{
|
||||
// Elimino la roba
|
||||
warning_box("Va che non hai implementato l'eliminazione della roba nel db");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************************************
|
||||
* Esporto
|
||||
@ -1509,17 +1491,12 @@ bool TTrFa_app::send(TTrFa_mask* msk)
|
||||
}
|
||||
if(xvt_sql_commit(_db))
|
||||
{
|
||||
message_box("Ho esportato correttamente!");
|
||||
// Imposto l'esportazione
|
||||
setEsportato(sheet);
|
||||
}
|
||||
|
||||
TProgress_monitor p(sheet.items(),"Esportazione fatture");
|
||||
FOR_EACH_SHEET_ROW(sheet, r, strarr)
|
||||
{
|
||||
if(!p.add_status())
|
||||
return false;
|
||||
if(strcmp(strarr->get(_invio), "X") != 0) continue; // Non mi interessa se non è selezionata
|
||||
//setEsportato(sheet);
|
||||
}
|
||||
else
|
||||
message_box("Il commit non è andato a buon fine");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user