From d566d3fc8372667b786fdfe6101a0e64024295d2 Mon Sep 17 00:00:00 2001 From: mtollari Date: Fri, 23 Jun 2017 13:43:55 +0000 Subject: [PATCH] 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 --- src/tf/tf0100.cpp | 33 +++++---------------------------- 1 file changed, 5 insertions(+), 28 deletions(-) diff --git a/src/tf/tf0100.cpp b/src/tf/tf0100.cpp index 56dbc6334..fc6f58d2a 100644 --- a/src/tf/tf0100.cpp +++ b/src/tf/tf0100.cpp @@ -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; }