Patch level : 10.0
Files correlati : 772.exe Ricompilazione Demo : [ ] Commento : Corretto filtro per data della stampa schede percipienti git-svn-id: svn://10.65.10.50/branches/R_10_00@21636 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
2a7d0abdc4
commit
752b1431e8
@ -451,7 +451,7 @@ bool TStampa_mov::init_print()
|
|||||||
|
|
||||||
printer().set_char_size(8);
|
printer().set_char_size(8);
|
||||||
set_real_picture("#.###.###.###");
|
set_real_picture("#.###.###.###");
|
||||||
set_magic_currency(TRUE);
|
set_magic_currency(true);
|
||||||
|
|
||||||
_g_tot_imp = _g_tot_rit = _g_tot_ver = ZERO;
|
_g_tot_imp = _g_tot_rit = _g_tot_ver = ZERO;
|
||||||
|
|
||||||
@ -472,37 +472,34 @@ bool TStampa_mov::init_print()
|
|||||||
_datada = data1 == "" ? botime : datada;
|
_datada = data1 == "" ? botime : datada;
|
||||||
_dataa = data2 == "" ? eotime : dataa;
|
_dataa = data2 == "" ? eotime : dataa;
|
||||||
|
|
||||||
TDate data (msk.get(F_DATASTAMPA));
|
TDate data(msk.get(F_DATASTAMPA));
|
||||||
_datastampa = data.string();
|
_datastampa = data.string();
|
||||||
|
|
||||||
reset_files(); //resetta l'albero di stampa
|
reset_files(); //resetta l'albero di stampa
|
||||||
add_file(LF_SCPERC);
|
add_file(LF_SCPERC);
|
||||||
|
|
||||||
TLocalisamfile* fl = &(current_cursor()->file(LF_SCPERC));
|
TRectype da(LF_SCPERC), a(LF_SCPERC);
|
||||||
TRectype da (fl->curr());
|
|
||||||
TRectype a (fl->curr());
|
|
||||||
|
|
||||||
da.zero();
|
|
||||||
a.zero();
|
|
||||||
|
|
||||||
da.put(SPR_CODDITTA, _codditta);
|
da.put(SPR_CODDITTA, _codditta);
|
||||||
da.put(SPR_TIPOA, _tipoa_da);
|
da.put(SPR_TIPOA, _tipoa_da);
|
||||||
da.put(SPR_CODANAGR, _cod_da);
|
da.put(SPR_CODANAGR, _cod_da);
|
||||||
|
if (_datada > botime)
|
||||||
|
da.put(SPR_DATADOC, _datada);
|
||||||
|
|
||||||
a.put(SPR_CODDITTA, _codditta);
|
a.put(SPR_CODDITTA, _codditta);
|
||||||
a.put(SPR_TIPOA, _tipoa_a);
|
a.put(SPR_TIPOA, _tipoa_a);
|
||||||
a.put(SPR_CODANAGR, _cod_a);
|
a.put(SPR_CODANAGR, _cod_a);
|
||||||
|
if (_dataa < eotime)
|
||||||
|
a.put(SPR_DATADOC, _dataa);
|
||||||
|
|
||||||
current_cursor()->setregion(da, a);
|
current_cursor()->setregion(da, a);
|
||||||
|
|
||||||
// viene ordinato per numero pagamento e numero versamento
|
// viene ordinato per numero pagamento e numero versamento
|
||||||
dati_erogante();
|
dati_erogante();
|
||||||
stampa_dati_erog_perc();
|
stampa_dati_erog_perc();
|
||||||
//intesta_fissa();
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
else
|
|
||||||
return FALSE;
|
return tasto == K_ENTER;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TStampa_mov::dati_erogante()
|
void TStampa_mov::dati_erogante()
|
||||||
|
@ -1731,9 +1731,8 @@ bool TQuadroF::preprocess_print(TCursor& cur)
|
|||||||
_ptr[i] = 1;
|
_ptr[i] = 1;
|
||||||
|
|
||||||
// Carica i prospetti
|
// Carica i prospetti
|
||||||
const long codditta = cur.file(LF_RIGHEF).get_long("CODDITTA");
|
const long codditta = cur.file(LF_RIGHEF2).get_long("CODDITTA");
|
||||||
TRectype dep(cur.file(LF_RIGHEF).curr());
|
TRectype dep(LF_RIGHEF2);
|
||||||
dep.zero();
|
|
||||||
dep.put("CODDITTA", codditta);
|
dep.put("CODDITTA", codditta);
|
||||||
dep.put("TIPOPRO", "A");
|
dep.put("TIPOPRO", "A");
|
||||||
_prospetti.add(new TRecord_array(dep, "NPROG"));
|
_prospetti.add(new TRecord_array(dep, "NPROG"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user