Patch level : 4.0 nopatch
Files correlati : Ricompilazione Demo : [ ] Commento : git-svn-id: svn://10.65.10.50/trunk@14718 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
4301d9487b
commit
7ccb0c9cc2
@ -214,10 +214,13 @@ TMastrino::~TMastrino()
|
||||
|
||||
long TMastrino::succ(long rec, tipo_riga_mastrino tipo) const
|
||||
{
|
||||
if (rec < 0) rec = -1;
|
||||
if (rec < 0)
|
||||
rec = -1;
|
||||
|
||||
const long ul = items();
|
||||
for (long i = rec+1; i < ul; i++)
|
||||
long i;
|
||||
|
||||
for (i = rec+1; i < ul; i++)
|
||||
{
|
||||
if (row(i).tipo() == tipo)
|
||||
break;
|
||||
@ -728,8 +731,9 @@ TGrid_control::TGrid_control(
|
||||
int i = 0;
|
||||
int f_width = NUMBER_WIDTH; // Stima larghezza colonne fisse
|
||||
int max_width = f_width; // Stima larghezza della colonna piu' grande
|
||||
|
||||
for (const char* h = header.get(); h; h = header.get(), i++)
|
||||
const char* h;
|
||||
|
||||
for (h = header.get(); h; h = header.get(), i++)
|
||||
{
|
||||
CHECKD(i < MAX_COL, "Tu meni calumns in scit: ", i);
|
||||
_type[i] = ' ';
|
||||
|
@ -345,7 +345,9 @@ bool TLiquidazione_app::user_create()
|
||||
|
||||
//modifica del 03/05/1995
|
||||
int need_refresh = FALSE;
|
||||
for (int m = 1; m < _month; m++)
|
||||
int m;
|
||||
|
||||
for (m = 1; m < _month; m++)
|
||||
if (is_month_ok_strict(m) && (!look_lim(m) || !_lim->get_bool("B0")))
|
||||
{
|
||||
need_refresh = TRUE;
|
||||
|
@ -122,7 +122,8 @@ void TLiquidazione_app::recalc_ventilation(int month, const char* codatt)
|
||||
// 1) ricalcola i pim dei mesi dal primo al corrente se necessario
|
||||
recalc rcl = _recalc;
|
||||
_recalc = needed;
|
||||
for (int m = 1; m < month; m++)
|
||||
int m;
|
||||
for (m = 1; m < month; m++)
|
||||
update_att(m,codatt, FALSE);
|
||||
_recalc = rcl;
|
||||
|
||||
@ -183,7 +184,8 @@ void TLiquidazione_app::recalc_ventilation(int month, const char* codatt)
|
||||
real totven = 0.0;
|
||||
|
||||
const int vent_items = _vent_arr.items();
|
||||
for (int j = 0; j < vent_items; j++)
|
||||
int j;
|
||||
for (j = 0; j < vent_items; j++)
|
||||
{
|
||||
_VentItem& vv = (_VentItem&)_vent_arr[j];
|
||||
totacq += vv._totale;
|
||||
|
@ -575,7 +575,9 @@ void TLiquidazione_app::describe_pims(int month, const char* codatt, const bool
|
||||
if (activity == att && is_month_plain(mese) && _year == anno)
|
||||
{
|
||||
// vedi se c'e' gia' un item corrispondente
|
||||
for(int i = last+1; i < _descr_arr.items(); i++)
|
||||
int i;
|
||||
|
||||
for(i = last+1; i < _descr_arr.items(); i++)
|
||||
{
|
||||
d = (_DescrItem*)&_descr_arr[i];
|
||||
if (d->_flags == PIM_PIS &&
|
||||
@ -1261,7 +1263,9 @@ void TLiquidazione_app::set_firm(_DescrItem& d)
|
||||
|
||||
// notify errors if any
|
||||
int j = 0;
|
||||
for (int i = 0; i < _errors.items(); i++)
|
||||
int i;
|
||||
|
||||
for (i = 0; i < _errors.items(); i++)
|
||||
{
|
||||
_ErrItem& s = (_ErrItem&)_errors[i];
|
||||
if (s._att == "ALL" && s._firm == d._s0)
|
||||
@ -2347,7 +2351,7 @@ bool TLiquidazione_app::set_annual(_DescrItem& d)
|
||||
{
|
||||
// non lo ha stampato prima se annuale, perche' vladimiro il nefido
|
||||
// pretende l'assurdo aggiornamento della perc. a quella nuova
|
||||
const year_int = atoi(_year);
|
||||
const int year_int = atoi(_year);
|
||||
|
||||
row++;
|
||||
set_row(++row, year_int > 1997 ? TR("CALCOLO DELLA PERCENTUALE DI DETRAIBILITA'") : TR("CALCOLO DELLA PERCENTUALE DI INDETRAIBILITA'"));
|
||||
@ -2414,7 +2418,9 @@ void TLiquidazione_app::set_ventila(_DescrItem& d)
|
||||
int row = 11;
|
||||
real t1, t2, t3;
|
||||
TString80 s0;
|
||||
for(int i = 0; i < d._arr.items(); i++)
|
||||
int i;
|
||||
|
||||
for(i = 0; i < d._arr.items(); i++)
|
||||
{
|
||||
_vDesc& vd = (_vDesc&)d._arr[i];
|
||||
look_iva(vd._codiva);
|
||||
|
@ -310,7 +310,7 @@ bool TStampa_registri_app::compila_reg(const TMask& m)
|
||||
if (!_tabreg->eof())
|
||||
{
|
||||
const TString16 codtab = _tabreg->get("CODTAB");
|
||||
const anno = atoi(codtab.mid(0,4));
|
||||
const int anno = atoi(codtab.mid(0,4));
|
||||
if (anno > _annoes)
|
||||
{
|
||||
if (_tipo_stampa != libro_unico) //per il libro unico e' gia' stato controllato nell'handler
|
||||
@ -2168,7 +2168,7 @@ bool TStampa_registri_app::preprocess_page(int file, int counter)
|
||||
for (int j = 0; j < _riga_rmi.items(); j++)
|
||||
{
|
||||
const TRigaiva& riga = _riga_rmi.riga(j);
|
||||
const tipodet = riga._tipodet;
|
||||
const int tipodet = riga._tipodet;
|
||||
rr = _r+j;
|
||||
intra = riga._intra;
|
||||
if (_stampa_width == 132)
|
||||
|
@ -1498,7 +1498,9 @@ void Visliq_app::read_general(TMask& m)
|
||||
|
||||
|
||||
// set sheet
|
||||
for (int i = step; i < 13; i+=step)
|
||||
int i;
|
||||
|
||||
for (i = step; i < 13; i+=step)
|
||||
{
|
||||
int row = (i/step) - 1;
|
||||
|
||||
|
@ -95,7 +95,7 @@ bool Tabtra_application::user_create()
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
cg6300(int argc, char* argv[])
|
||||
int cg6300(int argc, char* argv[])
|
||||
{
|
||||
Tabtra_application* a= new Tabtra_application;
|
||||
|
||||
|
@ -762,7 +762,7 @@ bool Tabinv_application::user_destroy()
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
cg6500(int argc, char* argv[])
|
||||
int cg6500(int argc, char* argv[])
|
||||
{
|
||||
Tabinv_application* a = new Tabinv_application;
|
||||
|
||||
|
148
cg/cg6800.h
148
cg/cg6800.h
@ -1,75 +1,73 @@
|
||||
// Campi maschera cg2800a.uml
|
||||
|
||||
#define F_NUMREG 101
|
||||
#define F_NUMRIG 102
|
||||
|
||||
// Campi maschera cg2800b.uml
|
||||
|
||||
#define F_DATAREG 103
|
||||
#define F_DATADOC 104
|
||||
#define F_ANNO 105
|
||||
#define F_REGIVA 106
|
||||
#define F_PROTIVA 107
|
||||
#define F_NUPROTIVA 108
|
||||
#define F_CODCAUS 109
|
||||
#define F_CODPAG 110
|
||||
#define F_GRUPPO 111
|
||||
#define F_CONTO 112
|
||||
#define F_SOTTOCONTO 113
|
||||
#define F_SEZIONE 114
|
||||
#define F_IMPORTO 115
|
||||
#define F_DESCR 116
|
||||
#define F_GRUPPOC 117
|
||||
#define F_CONTOC 118
|
||||
#define F_SOTTOC 119
|
||||
#define F_NUMDOC 120
|
||||
#define F_DESCRREG 121
|
||||
#define F_DESCRCAU 122
|
||||
#define F_DESCRPAG 123
|
||||
#define F_DESCRPARTITA 124
|
||||
#define F_DESCRCPARTITA 125
|
||||
#define F_DATACOMP 126
|
||||
#define F_PROVV 127
|
||||
#define F_MESELIQ 128
|
||||
|
||||
// Campi maschera cg2800c.uml
|
||||
|
||||
#define F_CODCF 150
|
||||
#define F_RAGSOCOCC 151
|
||||
#define F_DATA74TER 152
|
||||
#define F_INDOCC 153
|
||||
#define F_LOCALITA 154
|
||||
#define F_CAPOCC 155
|
||||
#define F_PROVOCC 156
|
||||
#define F_IMPONIBILE 157
|
||||
#define F_IMPOSTA 158
|
||||
#define F_CODIVA 159
|
||||
#define F_TIPODET 160
|
||||
#define F_TIPOCR 161
|
||||
#define F_RAGSOCCF 162
|
||||
#define F_DESCRCODIVA 163
|
||||
#define F_CFPI 164
|
||||
#define F_CIVOCC 165
|
||||
#define F_COMOCC 166
|
||||
|
||||
// Campi maschera cg2801a.uml
|
||||
|
||||
#define F_CODDITTA 200
|
||||
#define F_RAGDITTA 201
|
||||
|
||||
// Campi maschera cg2803a.uml
|
||||
|
||||
#define F_CODDITTARIC 250
|
||||
#define F_RAGSOC 251
|
||||
#define F_NULTRAS 252
|
||||
#define F_DATAULTRAS 253
|
||||
#define F_STD 254
|
||||
#define F_USELAB 255
|
||||
#define F_STATO 256
|
||||
#define F_AGGCAUSALI 257
|
||||
#define F_AGGCLIFO 258
|
||||
#define F_AGGPCON 259
|
||||
#define F_AGGIVD 260
|
||||
#define F_FATTEM 261
|
||||
#define F_FATTRIC 262
|
||||
|
||||
// Campi maschera cg2800a.uml
|
||||
#define F_NUMREG 101
|
||||
#define F_NUMRIG 102
|
||||
|
||||
// Campi maschera cg2800b.uml
|
||||
|
||||
#define F_DATAREG 103
|
||||
#define F_DATADOC 104
|
||||
#define F_ANNO 105
|
||||
#define F_REGIVA 106
|
||||
#define F_PROTIVA 107
|
||||
#define F_NUPROTIVA 108
|
||||
#define F_CODCAUS 109
|
||||
#define F_CODPAG 110
|
||||
#define F_GRUPPO 111
|
||||
#define F_CONTO 112
|
||||
#define F_SOTTOCONTO 113
|
||||
#define F_SEZIONE 114
|
||||
#define F_IMPORTO 115
|
||||
#define F_DESCR 116
|
||||
#define F_GRUPPOC 117
|
||||
#define F_CONTOC 118
|
||||
#define F_SOTTOC 119
|
||||
#define F_NUMDOC 120
|
||||
#define F_DESCRREG 121
|
||||
#define F_DESCRCAU 122
|
||||
#define F_DESCRPAG 123
|
||||
#define F_DESCRPARTITA 124
|
||||
#define F_DESCRCPARTITA 125
|
||||
#define F_DATACOMP 126
|
||||
#define F_PROVV 127
|
||||
#define F_MESELIQ 128
|
||||
|
||||
// Campi maschera cg2800c.uml
|
||||
|
||||
#define F_CODCF 150
|
||||
#define F_RAGSOCOCC 151
|
||||
#define F_DATA74TER 152
|
||||
#define F_INDOCC 153
|
||||
#define F_LOCALITA 154
|
||||
#define F_CAPOCC 155
|
||||
#define F_PROVOCC 156
|
||||
#define F_IMPONIBILE 157
|
||||
#define F_IMPOSTA 158
|
||||
#define F_CODIVA 159
|
||||
#define F_TIPODET 160
|
||||
#define F_TIPOCR 161
|
||||
#define F_RAGSOCCF 162
|
||||
#define F_DESCRCODIVA 163
|
||||
#define F_CFPI 164
|
||||
#define F_CIVOCC 165
|
||||
#define F_COMOCC 166
|
||||
|
||||
// Campi maschera cg2801a.uml
|
||||
|
||||
#define F_CODDITTA 200
|
||||
#define F_RAGDITTA 201
|
||||
|
||||
// Campi maschera cg2803a.uml
|
||||
|
||||
#define F_CODDITTARIC 250
|
||||
#define F_RAGSOC 251
|
||||
#define F_NULTRAS 252
|
||||
#define F_DATAULTRAS 253
|
||||
#define F_STD 254
|
||||
#define F_USELAB 255
|
||||
#define F_STATO 256
|
||||
#define F_AGGCAUSALI 257
|
||||
#define F_AGGCLIFO 258
|
||||
#define F_AGGPCON 259
|
||||
#define F_AGGIVD 260
|
||||
#define F_FATTEM 261
|
||||
#define F_FATTRIC 262
|
||||
|
@ -659,8 +659,9 @@ void TTransfer_file::readat(long recnum)
|
||||
// p | 130 | 40 | 8200 | 9399 INDICE
|
||||
|
||||
int items = _index.items();
|
||||
int i;
|
||||
|
||||
for (int i = 0;i < items;i++)
|
||||
for (i = 0; i < items; i++)
|
||||
{
|
||||
if (recnum <= nrec(i))
|
||||
{
|
||||
@ -922,7 +923,7 @@ int TTransfer_file::dataes(const TDate& d, int* prevesc, TDate& finesp)
|
||||
{
|
||||
const TDate ia(esc.get("D0")); // Data inizio esercizio
|
||||
const TDate fa(esc.get("D1")); // Data fine esercizio
|
||||
const anno = esc.get_int("CODTAB");
|
||||
const int anno = esc.get_int("CODTAB");
|
||||
if (d >= ia && d <= fa)
|
||||
return anno;
|
||||
*prevesc = anno;
|
||||
@ -1476,8 +1477,9 @@ int TTransfer_file::strip_zero(TString& importo)
|
||||
TString16 app;
|
||||
|
||||
int size = importo.len();
|
||||
int i;
|
||||
|
||||
for (int i = 0; i < size; i++)
|
||||
for (i = 0; i < size; i++)
|
||||
if (importo[i] != '0') break;
|
||||
|
||||
if (i > 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user