Patch level : 12.0 no-patch

Files correlati     : 
Commento            : Caricate modifiche vecchie
ba1700: Aggiunto sia l'indirizzo di test interno che esterno
ba7500: Messi a posto la lista degli stati da aggiungere
bs0300: Tolta query di delete in eccesso
tsdb: Messe a const un po' di funzioni, sistemato TDate
li0100: Sistemata macro per calcolo posizione nel controllo del plafond
ps0713100: Sistemato controllo partita
xvtmail: Sistemato controllo SO

git-svn-id: svn://10.65.10.50/branches/R_10_00@24434 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
mtollari 2018-03-14 14:45:46 +00:00
parent dfea746f73
commit 925975ce44
9 changed files with 66 additions and 82 deletions

View File

@ -1778,7 +1778,8 @@ bool TInstaller_mask::on_key(KEY key)
{ {
case K_F7: autoload(); break; case K_F7: autoload(); break;
case K_F8: field(DLG_USER).on_hit(); break; case K_F8: field(DLG_USER).on_hit(); break;
case K_F9: field(F_WEB).set("http://10.65.10.50/campotest/v_12.0/"); case K_F9: field(F_WEB).set("http://10.65.10.50/campotest/v_12.0/"); break;
case K_F21:field(F_WEB).set("http://93.146.247.172/campotest/v_12.0/"); break;
default : ok = TArray_sheet::on_key(key); break; default : ok = TArray_sheet::on_key(key); break;
} }
return ok; return ok;

View File

@ -42,44 +42,37 @@ void TStati_mask::fill()
strarr.add("738|BARBADOS|BB"); strarr.add("738|BARBADOS|BB");
strarr.add("739|SAINT-BARTHELEMY|BL"); strarr.add("739|SAINT-BARTHELEMY|BL");
strarr.add("740|ISOLE BES|BQ"); strarr.add("740|ISOLE BES|BQ");
strarr.add("741|BAHAMAS|BS"); strarr.add("741|ISOLA BOUVET|BV");
strarr.add("742|BUTHAN|BT"); strarr.add("742|BOTSWANA|BW");
strarr.add("743|ISOLA BOUVET|BV"); strarr.add("743|CURACAO|CW");
strarr.add("744|BOTSWANA|BW"); strarr.add("744|GIBUTI|DJ");
strarr.add("745|ISOLE COCOS E KEELING|CC"); strarr.add("745|SAHARA OCCIDENTALE|EH");
strarr.add("746|CURACAO|CW"); strarr.add("746|GUERNSEY|GG");
strarr.add("747|GIBUTI|DJ"); strarr.add("747|GEORGIA DEL SUD|GS");
strarr.add("748|SAHARA OCCIDENTALE|EH"); strarr.add("748|ISOLE HEARD E MCDONALD|HM");
strarr.add("749|GUERNSEY|GG"); strarr.add("749|TERRITORI BRITANNICI DELL'OCEANO INDIANO|IO");
strarr.add("750|GIBILTERRA|GI"); strarr.add("750|JERSEY|JE");
strarr.add("751|GEORGIA DEL SUD|GS"); strarr.add("751|KIRIBATI|KI");
strarr.add("752|ISOLE HEARD E MCDONALD|HM"); strarr.add("752|LESOTHO|LS");
strarr.add("753|TERRITORI BRITANNICI DELL'OCEANO INDIANO|IO"); strarr.add("753|MAROCCO|MA");
strarr.add("754|JERSEY|JE"); strarr.add("754|MONTENEGRO|ME");
strarr.add("755|KENYA|KE"); strarr.add("755|SAINT-MARTIN|MF");
strarr.add("756|KIRIBATI|KI"); strarr.add("756|MALESIA|MY");
strarr.add("757|LESOTHO|LS"); strarr.add("757|NUOVA ZELANDA|NZ");
strarr.add("758|MAROCCO|MA"); strarr.add("758|STATO DI PALESTINA|PS");
strarr.add("759|MONTENEGRO|ME"); strarr.add("759|PALAU|PW");
strarr.add("760|SAINT-MARTIN|MF"); strarr.add("760|SERBIA|RS");
strarr.add("761|MALESIA|MY"); strarr.add("761|RUSSIA|RU");
strarr.add("762|NUOVA ZELANDA|NZ"); strarr.add("762|SVALBARD (ISOLE)|SJ");
strarr.add("763|PAPUA NUOVA GUINEA|PG"); strarr.add("763|JAN MAYEN|SJ");
strarr.add("764|STATO DI PALESTINA|PS"); strarr.add("764|SUDAN DEL SUD|SS");
strarr.add("765|PALAU|PW"); strarr.add("765|SINT MAARTEN|SX");
strarr.add("766|SERBIA|RS"); strarr.add("766|TERRITORI FRANCESI DEL SUD|TF");
strarr.add("767|RUSSIA|RU"); strarr.add("767|TURKMENISTAN|TM");
strarr.add("768|SEYCHELLES|SC"); strarr.add("768|TANZANIA|TZ");
strarr.add("769|SVALBARD (ISOLE)|SJ"); strarr.add("769|ISOLE MINORI ESTERNE DEGLI STATI UNITI D'AMERICA|UM");
strarr.add("770|JAN MAYEN|SJ"); strarr.add("770|VANUATU|VU");
strarr.add("771|SUDAN DEL SUD|SS"); strarr.add("771|YEMEN|YE");
strarr.add("772|SINT MAARTEN|SX");
strarr.add("773|TERRITORI FRANCESI DEL SUD|TF");
strarr.add("774|TURKMENISTAN|TM");
strarr.add("775|TANZANIA|TZ");
strarr.add("776|ISOLE MINORI ESTERNE DEGLI STATI UNITI D'AMERICA|UM");
strarr.add("777|VANUATU|VU");
strarr.add("778|YEMEN|YE");
sheet.force_update(); sheet.force_update();
sheet.show(); sheet.show();

View File

@ -400,11 +400,6 @@ void TSknet_sync::load_their_origine(TISAM_recordset& out_set, const char* in_ta
} }
} }
} }
if (ini_get_bool(CONFIG_DITTA, "BS", "SKEmptyOnImp"))
{
str.cut(0) << "DELETE FROM " << in_table << " WHERE Origine=" << their_origin() << ";";
odbc.exec(str);
}
} }
} }
@ -1248,7 +1243,7 @@ void TSknet_sync::sync_doc()
static TDocumento existDoc; static TDocumento existDoc;
if (existDoc.read('D', datadoc.year(), numdoc, nd) == NOERR) // Ha uno stato che considero bloccato if (existDoc.read('D', datadoc.year(), numdoc, nd) == NOERR) // Ha uno stato che considero bloccato
{ {
if (existDoc.stato() <= '2')// && docs.get("DOCANNULLATO").as_int() == 1) if (existDoc.stato() <= '3')// && docs.get("DOCANNULLATO").as_int() == 1)
{ {
existDoc.remove(); existDoc.remove();
} }

View File

@ -405,7 +405,7 @@ TProgress_monitor::~TProgress_monitor()
CHECK("top_win NULL", topwin != NULL_WIN); CHECK("top_win NULL", topwin != NULL_WIN);
if (_pm_inst <= 0 && topwin != NULL_WIN) if (_pm_inst <= 0 && topwin != NULL_WIN)
{ {
xvt_scr_set_focus_vobj(topwin); xvt_scr_set_focus_vobj(topwin);
xvt_vobj_raise(topwin); xvt_vobj_raise(topwin);
topwin = NULL_WIN; topwin = NULL_WIN;
} }

View File

@ -6,13 +6,8 @@
* Classe per esecuzioni di query temporanee (wrapper semplice per SACommand) * * Classe per esecuzioni di query temporanee (wrapper semplice per SACommand) *
******************************************************************************/ ******************************************************************************/
TDate SSimpleQuery::sqGetDate(const char * field) const TDate SSimpleQuery::sqGetDate(const char * field)
{ {
#ifdef DBG const TDate app(_rec.get_date(field));
warning_box("Guarda qua! Non so se funziona! (sqGetDate)"); return app;
#endif // DBG
TString val = sqGet(field);
val.cut(val.find('T'));
return val;
} }

View File

@ -120,64 +120,64 @@ public:
// Conguration // Conguration
/**< Imposta la query ricevuta come (const char *) nel recordset */ /**< Imposta la query ricevuta come (const char *) nel recordset */
bool sqSet(const char* query) { return _rec.set(query); } const bool sqSet(const char* query) { return _rec.set(query); }
/**< Imposta la query ricevuta come (string) nel recordset */ /**< Imposta la query ricevuta come (string) nel recordset */
bool sqSet(string query) { return _rec.set(query.c_str()); } const bool sqSet(string query) { return _rec.set(query.c_str()); }
/**< Imposta la query ricevuta come (TString) nel recordset */ /**< Imposta la query ricevuta come (TString) nel recordset */
bool sqSet(TString& query) { return _rec.set(static_cast<const char *>(query)); } const bool sqSet(TString& query) { return _rec.set(static_cast<const char *>(query)); }
/**< Esegue la query impostata nel recordset, se viene passato autoF == true esegue anche un comando sqNext() */ /**< Esegue la query impostata nel recordset, se viene passato autoF == true esegue anche un comando sqNext() */
bool sqExec(bool autoF = true) { return _rec.exec(autoF); } const bool sqExec(bool autoF = true) { return _rec.exec(autoF); }
/**< Unisce le funzioni sqSet e sqExec, riceve la query come (const char *) */ /**< Unisce le funzioni sqSet e sqExec, riceve la query come (const char *) */
bool sqSetExec(const char* query, bool autoF = true) { _rec.set(query); return _rec.exec(autoF); } const bool sqSetExec(const char* query, bool autoF = true) { _rec.set(query); return _rec.exec(autoF); }
/**< Unisce le funzioni sqSet e sqExec, riceve la query come (string) */ /**< Unisce le funzioni sqSet e sqExec, riceve la query come (string) */
bool sqSetExec(string query, bool autoF = true) { _rec.set(query.c_str()); return _rec.exec(autoF); } const bool sqSetExec(string query, bool autoF = true) { _rec.set(query.c_str()); return _rec.exec(autoF); }
/**< Unisce le funzioni sqSet e sqExec, riceve la query come (TString) */ /**< Unisce le funzioni sqSet e sqExec, riceve la query come (TString) */
bool sqSetExec(TString& query, bool autoF = true); const bool sqSetExec(TString& query, bool autoF = true);
/**< Si sposta avanti di un record, in caso di esito negativo valorizza _stringError e _codeError */ /**< Si sposta avanti di un record, in caso di esito negativo valorizza _stringError e _codeError */
bool sqNext() { return _rec.next(); } const bool sqNext() { return _rec.next(); }
/**< Si sposta indietro di un record, in caso di esito negativo valorizza _stringError e _codeError */ /**< Si sposta indietro di un record, in caso di esito negativo valorizza _stringError e _codeError */
bool sqPrev() { return _rec.prev(); } const bool sqPrev() { return _rec.prev(); }
/**< Si sposta avanti di un record, in caso di esito negativo valorizza _stringError e _codeError */ /**< Si sposta avanti di un record, in caso di esito negativo valorizza _stringError e _codeError */
bool sqFirst() { return _rec.first(); } const bool sqFirst() { return _rec.first(); }
/**< Si sposta al primo record, in caso di esito negativo valorizza _stringError e _codeError */ /**< Si sposta al primo record, in caso di esito negativo valorizza _stringError e _codeError */
bool sqLast() { return _rec.last(); } const bool sqLast() { return _rec.last(); }
/**< Si sposta alla posizione n, in caso di esito negativo valorizza _stringError e _codeError */ /**< Si sposta alla posizione n, in caso di esito negativo valorizza _stringError e _codeError */
bool sqGo(int newPos) { return _rec.go(newPos); } const bool sqGo(int newPos) { return _rec.go(newPos); }
/**< Ritorna il numero di righe affette dall'ultima query */ /**< Ritorna il numero di righe affette dall'ultima query */
const int sqRowsAffected() { return _rec.rowsAffected(); } const int sqRowsAffected() { return _rec.rowsAffected(); }
// Getters // Getters
/**< Ritorna il valore nel campo (field) in formato (int) */ /**< Ritorna il valore nel campo (field) in formato (int) */
int sqGetInt(const char* field) { return _rec.get_int(field); } const int sqGetInt(const char* field) { return _rec.get_int(field); }
/**< Ritorna il valore nel campo (field) in formato (short) */ /**< Ritorna il valore nel campo (field) in formato (short) */
short sqGetShort(const char* field) { return _rec.get_short(field); } const short sqGetShort(const char* field) { return _rec.get_short(field); }
/**< Ritorna il valore nel campo (field) in formato (long) */ /**< Ritorna il valore nel campo (field) in formato (long) */
long sqGetLong(const char* field) { return _rec.get_long(field); } const long sqGetLong(const char* field) { return _rec.get_long(field); }
/**< Ritorna il valore nel campo (field) in formato (double) */ /**< Ritorna il valore nel campo (field) in formato (double) */
double sqGetDouble(const char* field) { return _rec.get_double(field); } const double sqGetDouble(const char* field) { return _rec.get_double(field); }
/**< Ritorna il valore nel campo (field) in formato (bool) */ /**< Ritorna il valore nel campo (field) in formato (bool) */
bool sqGetBool(const char* field) { return _rec.get_bool(field); } const bool sqGetBool(const char* field) { return _rec.get_bool(field); }
/**< Ritorna il valore nel campo (field) in formato (TDate) */ /**< Ritorna il valore nel campo (field) in formato (TDate) */
TDate sqGetDate(const char* field); const TDate sqGetDate(const char* field);
/**< Ritorna il valore nel campo (field) in formato (real) */ /**< Ritorna il valore nel campo (field) in formato (real) */
real sqGetReal(const char* field) { return sqGet(field); } const real sqGetReal(const char* field);
/**< Ritorna il valore nel campo (field) in formato (SADateTime), Campo non gestisce le ore */ /**< Ritorna il valore nel campo (field) in formato (SADateTime), Campo non gestisce le ore */
//SADateTime sqGetDateTime(const char* field) { get_short(field); } //SADateTime sqGetDateTime(const char* field) { get_short(field); }
/**< Ritorna il valore nel campo (field) passato come (const char *) in formato (const char *) */ /**< Ritorna il valore nel campo (field) passato come (const char *) in formato (const char *) */
const char* sqGet(const char* field) { return _rec.get(field); } const char* sqGet(const char* field) { return _rec.get(field); }
/**< Ritorna il valore nel campo (field) passato come (string) in formato (const char *) */ /**< Ritorna il valore nel campo (field) passato come (string) in formato (const char *) */
const char* sqGet(string field) { return _rec.get(field.c_str()); } const char* sqGet(string field) { return _rec.get(field.c_str()); }
/**< Ritorna il valore nel campo (field) passato come (TString) in formato (const char *) */ /**< Ritorna il valore nel campo (field) passato come (TString) in formato (const char *) */
const char* sqGet(TString& field) { return _rec.get(static_cast<const char*>(field)); } const char* sqGet(TString& field) { return _rec.get(static_cast<const char*>(field)); }
/**< Ritorna il valore nel campo (field) in formato (char) */ /**< Ritorna il valore nel campo (field) in formato (char) */
char sqGetChar(const char* field) { return _rec.get_char(field); } const char sqGetChar(const char* field) { return _rec.get_char(field); }
/**< Ritorna la posizione attuale */ /**< Ritorna la posizione attuale */
long sqPos() const { return _rec.pos(); } const long sqPos() const { return _rec.pos(); }
// Error Getters // Error Getters
/**< Ritorno l'ultimo codice errore segnalato in formato /int) */ /**< Ritorno l'ultimo codice errore segnalato in formato /int) */
long sqGetCodeError(bool erase = true) { return _rec.get_code_error(erase); } const long sqGetCodeError(bool erase = true) { return _rec.get_code_error(erase); }
/**< Ritorno l'ultima stringa di errore segnalato in formato (const char *) */ /**< Ritorno l'ultima stringa di errore segnalato in formato (const char *) */
const char* sqGetStringError(bool erase = true) { return _rec.get_string_error(erase); } const char* sqGetStringError(bool erase = true) { return _rec.get_string_error(erase); }
//char * getCharPointer(const char * field) { return const_cast<char*>(static_cast<const char*>(recset.Field(field).asString())); } //char * getCharPointer(const char * field) { return const_cast<char*>(static_cast<const char*>(recset.Field(field).asString())); }

View File

@ -9,7 +9,7 @@
#include "li0100a.h" #include "li0100a.h"
#define PLA_COLS 10 // n° colonne di lettere di intento #define PLA_COLS 10 // n° colonne di lettere di intento
#define CPC(x) (START_PLA + x*3) #define CPC(x) (START_PLA + x*2)
/* Utility ***********************/ /* Utility ***********************/

View File

@ -165,7 +165,7 @@ void TEsporta_dativa_app::esporta_righe_iva(const TMask& m) const
const long numreg = rmoviva.get(RMI_NUMREG).as_int(); const long numreg = rmoviva.get(RMI_NUMREG).as_int();
bool partita_chiusa = test_partita(numreg, last_data_pag, adata); bool partita_chiusa = test_partita(numreg, last_data_pag, adata);
if (partita_chiusa) if (!partita_chiusa)
{ {
if (with_cms) if (with_cms)
{ {

View File

@ -286,7 +286,7 @@ BOOLEAN xvt_powermail_send(const char* to, const char* cc, const char* ccn,
{ {
wxString server, port, user, password, from; wxString server, port, user, password, from;
// Controllo che Windows sia almeno 8 e che riesca a ricevere i parametri E-mail // Controllo che Windows sia almeno 8 e che riesca a ricevere i parametri E-mail
if(xvt_sys_get_os_version() < XVT_WS_WIN_8 || !GetMailParams(server, port, user, password, from)) if(xvt_sys_get_os_version() < XVT_WS_WIN_7 || !GetMailParams(server, port, user, password, from))
xvt_mail_send(to, cc, ccn, subject, msg, attach, flags); xvt_mail_send(to, cc, ccn, subject, msg, attach, flags);
DIRECTORY tmp; xvt_fsys_get_temp_dir(&tmp); DIRECTORY tmp; xvt_fsys_get_temp_dir(&tmp);