Patch level : 12.0

Files correlati     : 
Commento            : Sistemata query Campo/Compass

git-svn-id: svn://10.65.10.50/branches/R_10_00@23905 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
mtollari 2017-07-03 10:34:10 +00:00
parent 521de50cce
commit 3b249a7c35

View File

@ -1161,21 +1161,21 @@ bool TCampass_app::c09a() const
WHERE RUNEXP.DWEND IS NOT NULL AND RUNEXP.DRINI IS NULL;";
if(sqlset.exec(sqlQuery) <= 0)
{
message_box(sqlQuery);
message_box("Non ho trovato nulla da importare!");
return false;
}
// Importo tutto quello che ho trovato
TLocalisamfile tabMod(LF_TABMOD);
TString msg("Importazione tabella "); msg << "C09A";
TProgress_monitor p(sqlset.items(), msg);
for(bool ok = sqlset.move_first(); ok; sqlset.move_next())
for(bool ok = !sqlset.move_first(); !sqlset.eof(); sqlset.move_next())
{
if (!p.add_status())
break;
TString ccic = sqlset.get("C09A.CCIC").as_string();
TString rcic = sqlset.get("C09A.RCIC").as_string();
int nrev = sqlset.get("C09A.NREV").as_int();
TString ccic = sqlset.get("CCIC").as_string();
TString rcic = sqlset.get("RCIC").as_string();
int nrev = sqlset.get("NREV").as_int();
TRectype rec(LF_TABMOD);
rec.put("MOD", "PS");
rec.put("CUST", "920");