From 858cfe98d0898c6592a0cb5d0781b880329e1ac0 Mon Sep 17 00:00:00 2001 From: mtollari Date: Thu, 9 Nov 2017 10:42:39 +0000 Subject: [PATCH] Patch level : 12.0 no-patch Files correlati : Commento : Eliminata Ilaria dagli utenti debug, sistemato about git-svn-id: svn://10.65.10.50/branches/R_10_00@24186 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- src/include/about.cpp | 8 ++++++++ src/include/maskfld.cpp | 2 +- src/include/utility.cpp | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/include/about.cpp b/src/include/about.cpp index 44bf67be7..d54eaa74d 100755 --- a/src/include/about.cpp +++ b/src/include/about.cpp @@ -13,6 +13,8 @@ #include #include #include +#include +#include static int txt_sort(const TSortable& o1, const TSortable& o2, void* jolly) { @@ -472,6 +474,7 @@ TInfo_mask::TInfo_mask() : TProperty_sheet(TR("Informazioni")) TFilename temp; temp.tempdir(); TString strdb, strsql; + TString apisql = SQLAPIV, apiurl = xvturl_version(); { TISAM_recordset rs(""); strdb = rs.driver_version(); @@ -555,6 +558,11 @@ TInfo_mask::TInfo_mask() : TProperty_sheet(TR("Informazioni")) add_prop(TR("Libreria GUI"), strwx); add_prop(TR("Libreria PDF"), printer); add_prop(TR("Libreria SQL"), strsql); + if(is_debug_station()) + { + add_prop(TR("Libreria API SQL"), apisql); + add_prop(TR("Libreria API WEB"), apiurl); + } #ifdef _MSC_VER const int cver = _MSC_VER / 100 - 6; const int csub = _MSC_VER % 100; diff --git a/src/include/maskfld.cpp b/src/include/maskfld.cpp index 72769817e..0415a60b8 100755 --- a/src/include/maskfld.cpp +++ b/src/include/maskfld.cpp @@ -3035,7 +3035,7 @@ const char* TDate_field::win2raw( { g.set_day(19); g.set_month(06); - g.set_year(1994) + g.set_year(1994); } else if (s[0] != 'O') // s != "OGGI" ok = false; diff --git a/src/include/utility.cpp b/src/include/utility.cpp index 58e530128..e635713ba 100755 --- a/src/include/utility.cpp +++ b/src/include/utility.cpp @@ -625,7 +625,7 @@ static bool is_sirio_station(const char* hostname) bool is_debug_station() { const TString& host = get_hostname(); - return is_sirio_station(host) || xvt_str_same(host, "GIARDINI") || ini_get_int(CONFIG_INSTALL, "DEBUG", "LEVEL", 0) > 0; + return is_sirio_station(host) || ini_get_int(CONFIG_INSTALL, "DEBUG", "LEVEL", 0) > 0; } bool is_power_station() @@ -711,4 +711,4 @@ void quoted_string(TString& query, const char* val) TString get_iva_sirio() { return "04879210963"; -} \ No newline at end of file +}