Patch level : 12.0 572
Files correlati : bs Commento : Aggiunto progress bar durante l'importazione git-svn-id: svn://10.65.10.50/branches/R_10_00@24494 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
f42eb3b9be
commit
73cb530d74
@ -286,6 +286,9 @@ void TSknet_sync::load_their_origine(TISAM_recordset& out_set, const char* in_ta
|
|||||||
TProgress_monitor pi(n, str);
|
TProgress_monitor pi(n, str);
|
||||||
for (bool ok = odbc.move_first(); ok; ok = odbc.move_next())
|
for (bool ok = odbc.move_first(); ok; ok = odbc.move_next())
|
||||||
{
|
{
|
||||||
|
if(!pi.add_status())
|
||||||
|
break;
|
||||||
|
|
||||||
file.zero();
|
file.zero();
|
||||||
TString80 cfld, bfld, def; // Campo field, BeeStore field e cut field
|
TString80 cfld, bfld, def; // Campo field, BeeStore field e cut field
|
||||||
int ffld, tfld;
|
int ffld, tfld;
|
||||||
@ -940,35 +943,35 @@ void TSknet_sync::load_clifo(const char tipocf)
|
|||||||
abi = odbc.get("For_Abi").as_string();
|
abi = odbc.get("For_Abi").as_string();
|
||||||
cab = odbc.get("For_Cab").as_string();
|
cab = odbc.get("For_Cab").as_string();
|
||||||
contcor = odbc.get("For_ContoCorr").as_string();
|
contcor = odbc.get("For_ContoCorr").as_string();
|
||||||
}
|
}
|
||||||
int err = 1;
|
int err = 1;
|
||||||
// Calcolo il CIN
|
// Calcolo il CIN
|
||||||
TString msg, bban;
|
TString msg, bban;
|
||||||
bban << "#" << abi << cab << contcor;
|
bban << "#" << abi << cab << contcor;
|
||||||
for (char cin = 'A'; cin <= 'Z' && err == 1; cin++)
|
for (char cin = 'A'; cin <= 'Z' && err == 1; cin++)
|
||||||
{
|
{
|
||||||
bban[0] = cin;
|
bban[0] = cin;
|
||||||
err = bban_check(bban, msg);
|
err = bban_check(bban, msg);
|
||||||
if (err == 0)
|
if (err == 0)
|
||||||
{
|
{
|
||||||
cin = bban[0];
|
cin = bban[0];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Calcolo l'IBAN
|
// Calcolo l'IBAN
|
||||||
if (err == NOERR)
|
if (err == NOERR)
|
||||||
{
|
{
|
||||||
err = 1;
|
err = 1;
|
||||||
iban.cut(0) << statoISO << "##" << bban;
|
iban.cut(0) << statoISO << "##" << bban;
|
||||||
for (int pp = 0; pp <= 99 && err == 1; pp++)
|
for (int pp = 0; pp <= 99 && err == 1; pp++)
|
||||||
{
|
{
|
||||||
msg.format("%02d", pp);
|
msg.format("%02d", pp);
|
||||||
iban.overwrite(msg, 2);
|
iban.overwrite(msg, 2);
|
||||||
err = iban_check(iban, msg);
|
err = iban_check(iban, msg);
|
||||||
if (err == 0)
|
if (err == 0)
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user