From 5b29a414ed5a82fa987425db6997b3c9b9474437 Mon Sep 17 00:00:00 2001 From: luca Date: Fri, 22 Jul 2005 12:00:50 +0000 Subject: [PATCH] Patch level :2.2 nopatch Files correlati : Ricompilazione Demo : [ ] Commento :stampa rendiconto: risolti altri inconvenienti (manca il campo DATA per le righe originate dai doc, non stampa le righe originate dai doc anche se presenti nel file, non ci sono le descrizioni di riga) git-svn-id: svn://10.65.10.50/trunk@13287 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ca/ca3700.cpp | 45 ++++----------------------------------------- 1 file changed, 4 insertions(+), 41 deletions(-) diff --git a/ca/ca3700.cpp b/ca/ca3700.cpp index 7ce0c7570..67c7e8107 100755 --- a/ca/ca3700.cpp +++ b/ca/ca3700.cpp @@ -360,43 +360,6 @@ TPrint_rendiconto_ca_recordset* rendiconto_recordset() { return (TPrint_rendicon //metodo per riconoscere se il record corrente soddisfa i filtri della maschera...strafighissimo! bool TPrint_rendiconto_ca_recordset::valid_record(const TRelation& rel) const { - //prima controlla la testata... - const TRectype& mov = rel.curr(LF_MOVANA); - - const char tipomov = mov.get_char(MOVANA_TIPOMOV); - int tipomov_int = 0; - switch (tipomov) - { - case 'P': tipomov_int = 2; break; - case 'V': tipomov_int = 4; break; - case 'T': tipomov_int = 1;break; - default: tipomov_int = 1; break; - } - if ((tipomov_int) == 0) - return false; - - //..poi le righe (devono comparire solo le righe con cdc/cms/fsc che appaiono nello sheet) - const TRectype& rmov = rel.curr(LF_RMOVANA); - - if (_codcosto.not_empty()) - { - const TString& cos = rmov.get(RMOVANA_CODCCOSTO); - if (cos != _codcosto) - return false; - } - if (_codcms.not_empty()) - { - const TString& cms = rmov.get(RMOVANA_CODCMS); - if (cms != _codcms) - return false; - } - if (_codfas.not_empty()) - { - const TString& fas = rmov.get(RMOVANA_CODFASE); - if (fas != _codfas) - return false; - } - return true; } @@ -407,8 +370,6 @@ bool TPrint_rendiconto_ca_recordset::mov_filter(const TRelation* rel) void TPrint_rendiconto_ca_recordset::set_custom_filter(TCursor& cur) const { - //crea un file temporaneo che non viene distrutto ad inizio stampa effettiva -// TExternisamfile* tmp = new TExternisamfile(dbf, trr); relation()->replace(_tmp); //sostituisce il vero file rmovana con quello temporaneo //filtro sul file esterno (_tmp, cioč 1000) sui conti selezionati sulla maschera @@ -660,7 +621,7 @@ void TPrint_rendiconto_ca_recordset::salva_rmovana(const TRectype& rmovana, cons _tmp->curr().put("DESC", movana.get(MOVANA_DESCR)); //descrizione movana _tmp->curr().put("NRIGA", rmovana.get(RMOVANA_NUMRIG)); - _tmp->curr().put("DESCRIGA", movana.get(RMOVANA_DESCR)); //descrizione rmovana + _tmp->curr().put("DESCRIGA", rmovana.get(RMOVANA_DESCR)); //descrizione rmovana /*[Tipo documento] O=I** @@ -830,7 +791,9 @@ void TPrint_rendiconto_ca_recordset::crea_righe_rdoc(const TPrint_rendiconto_ca_ if (doc_items > 0) { - TProgind pi(doc_items, "Scansione documenti..."); + TString commento_progind; + commento_progind << "Scansione documenti " << codnum << "..."; + TProgind pi(doc_items, commento_progind); //scanning del file dei documenti alla ricerca di quelli che hanno la data ed il CODNUM //validi nei filtri impostati dall'utente