Patch level : 10.0 462
Files correlati : sc2.exe Ricompilazione Demo : [ ] Commento Allargato a 12 il numero di colonne degli importi nella stampa previsione incassi/pagamenti git-svn-id: svn://10.65.10.50/trunk@19407 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
312ae4b486
commit
b74a0d5fb3
@ -765,10 +765,10 @@ void TProspettoScadenze::print_totali_rows(int nriga, bool what)
|
||||
if (v._s[i] != ZERO)
|
||||
{
|
||||
print_real(value, v._s[i]);
|
||||
rw << format("@%dg%11s", pos, (const char*) value);
|
||||
rw << format("@%dg%12s", pos, (const char*) value);
|
||||
tot += v._s[i];
|
||||
}
|
||||
pos += 11;
|
||||
pos += 12;
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -776,10 +776,10 @@ void TProspettoScadenze::print_totali_rows(int nriga, bool what)
|
||||
if (v._s[0] != ZERO)
|
||||
{
|
||||
print_real(value, v._s[0]);
|
||||
rw << format("@%dg%11s", pos, (const char*) value);
|
||||
rw << format("@%dg%12s", pos, (const char*) value);
|
||||
tot += v._s[0];
|
||||
}
|
||||
pos += 11;
|
||||
pos += 12;
|
||||
}
|
||||
|
||||
if (_nsinfasce)
|
||||
@ -789,10 +789,10 @@ void TProspettoScadenze::print_totali_rows(int nriga, bool what)
|
||||
if (v._ns[i] != ZERO)
|
||||
{
|
||||
print_real(value, v._ns[i]);
|
||||
rw << format("@%dg%11s", pos, (const char*) value);
|
||||
rw << format("@%dg%12s", pos, (const char*) value);
|
||||
tot += v._ns[i];
|
||||
}
|
||||
pos += 11;
|
||||
pos += 12;
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -800,36 +800,36 @@ void TProspettoScadenze::print_totali_rows(int nriga, bool what)
|
||||
if (v._ns[0] != ZERO)
|
||||
{
|
||||
print_real(value, v._ns[0]);
|
||||
rw << format("@%dg%11s", pos, (const char*) value);
|
||||
rw << format("@%dg%12s", pos, (const char*) value);
|
||||
tot += v._ns[0];
|
||||
}
|
||||
pos += 11;
|
||||
pos += 12;
|
||||
}
|
||||
|
||||
if (tot != ZERO)
|
||||
{
|
||||
print_real(value, tot);
|
||||
rw << format("@%dg%11s", pos, (const char*) value);
|
||||
rw << format("@%dg%12s", pos, (const char*) value);
|
||||
}
|
||||
pos += 11;
|
||||
pos += 12;
|
||||
if (v._es != ZERO)
|
||||
{
|
||||
print_real(value, v._es);
|
||||
rw << format("@%dg%11s", pos, (const char*) value);
|
||||
rw << format("@%dg%12s", pos, (const char*) value);
|
||||
}
|
||||
pos += 11;
|
||||
pos += 12;
|
||||
if (v._sl != ZERO)
|
||||
{
|
||||
print_real(value, v._sl);
|
||||
rw << format("@%dg%11s", pos, (const char*) value);
|
||||
rw << format("@%dg%12s", pos, (const char*) value);
|
||||
}
|
||||
pos += 11;
|
||||
pos += 12;
|
||||
|
||||
const real diff = v._sl - (tot - v._es);
|
||||
if (diff != ZERO)
|
||||
{
|
||||
print_real(value, diff);
|
||||
rw << format("@%dg%11s", pos, (const char*) value);
|
||||
rw << format("@%dg%12s", pos, (const char*) value);
|
||||
}
|
||||
|
||||
if (rw.not_empty())
|
||||
@ -988,18 +988,18 @@ void TProspettoScadenze::print_header()
|
||||
if (_sinfasce)
|
||||
{
|
||||
rw << format("@%dg >%3d gg", pos, _limiti[_sfasce] * 30);
|
||||
pos += 11;
|
||||
pos += 12;
|
||||
for (int i = _sfasce; i > 0; i--)
|
||||
{
|
||||
rw << format("@%dg <= %3d gg", pos, _limiti[i] * 30);
|
||||
pos += 11;
|
||||
pos += 12;
|
||||
}
|
||||
set_header(soh, format("@%dg%s", 40+((pos-40)/2), "SCADUTO"));
|
||||
}
|
||||
else
|
||||
{
|
||||
set_header(soh, format("@%dg%11s", pos, "SCADUTO"));
|
||||
pos += 11;
|
||||
set_header(soh, format("@%dg%12s", pos, "SCADUTO"));
|
||||
pos += 12;
|
||||
}
|
||||
|
||||
const int pos_ascad = pos;
|
||||
@ -1008,24 +1008,24 @@ void TProspettoScadenze::print_header()
|
||||
for (int i = 1; i <= _nsfasce; i++)
|
||||
{
|
||||
rw << format("@%dg <= %3d gg", pos, _limiti[i] * 30);
|
||||
pos = pos + 11;
|
||||
pos = pos + 12;
|
||||
}
|
||||
rw << format("@%dg >%3d gg", pos, _limiti[_nsfasce] * 30);
|
||||
pos = pos + 11;
|
||||
pos = pos + 12;
|
||||
set_header(soh, format("@%dg%s", pos_ascad+((pos-pos_ascad)/2)-5, "A SCADERE"));
|
||||
}
|
||||
else
|
||||
{
|
||||
set_header(soh, format("@%dg%11s", pos, "A SCADERE"));
|
||||
pos += 11;
|
||||
set_header(soh, format("@%dg%12s", pos, "A SCADERE"));
|
||||
pos += 12;
|
||||
}
|
||||
set_header(soh, format("@%dg%11s", pos, "TOTALE"));
|
||||
pos += 11;
|
||||
set_header(soh, format("@%dg%11s", pos, "ESPOSTO"));
|
||||
pos += 11;
|
||||
set_header(soh, format("@%dg%11s", pos, "SALDO"));
|
||||
pos += 11;
|
||||
set_header(soh, format("@%dg%11s", pos, " DIFFERENZA"));
|
||||
set_header(soh, format("@%dg%12s", pos, "TOTALE"));
|
||||
pos += 12;
|
||||
set_header(soh, format("@%dg%12s", pos, "ESPOSTO"));
|
||||
pos += 12;
|
||||
set_header(soh, format("@%dg%12s", pos, "SALDO"));
|
||||
pos += 12;
|
||||
set_header(soh, format("@%dg%12s", pos, " DIFFERENZA"));
|
||||
set_header(++soh,(const char *)rw);
|
||||
break;
|
||||
}
|
||||
@ -1042,16 +1042,16 @@ void TProspettoScadenze::preprocess_footer()
|
||||
int TProspettoScadenze::calc_last_column()
|
||||
// Setta le righe dell'intestazione
|
||||
{
|
||||
int pos = 110;
|
||||
int pos = 112;
|
||||
|
||||
if (_sinfasce)
|
||||
pos += _sfasce * 11;
|
||||
pos += _sfasce * 12;
|
||||
else
|
||||
pos += 11;
|
||||
pos += 12;
|
||||
if (_nsinfasce)
|
||||
pos = pos + _nsfasce * 11;
|
||||
pos = pos + _nsfasce * 12;
|
||||
else
|
||||
pos += 11;
|
||||
pos += 12;
|
||||
return pos;
|
||||
}
|
||||
|
||||
|
@ -218,5 +218,11 @@ BEGIN
|
||||
WARNING "E' possibile selezionare massimo 9 fasce in totale"
|
||||
END
|
||||
|
||||
STRING DLG_PROFILE 50
|
||||
BEGIN
|
||||
PROMPT 2 -2 "Profilo "
|
||||
PSELECT
|
||||
END
|
||||
|
||||
ENDPAGE
|
||||
ENDMASK
|
||||
|
Loading…
x
Reference in New Issue
Block a user