From 6b65f697962f9cc029c6e7c4d9fa7defbb968d3e Mon Sep 17 00:00:00 2001 From: nik Date: Fri, 28 Apr 1995 15:09:49 +0000 Subject: [PATCH] Correzioni ai mastrini git-svn-id: svn://10.65.10.50/trunk@1316 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/cg3100.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/cg/cg3100.cpp b/cg/cg3100.cpp index d615cf455..7b8a75e7f 100755 --- a/cg/cg3100.cpp +++ b/cg/cg3100.cpp @@ -79,7 +79,7 @@ class TListaMov_application : public TPrintapp TBit_array _err; TDate _data_ini, _data_fin, _datareg, _data_prec, _datacomp; TString _descr, _descr_doc, _descr_causale; - TString _tipo_ini, _masc, _causale; + TString _tipo_ini, _masc, _causale, _app; TString _causale_ini, _causale_fin, _registro,_registro_ini, _registro_fin; TString _tipoatt, _tipo_elenco,_tipo_clifo_prec,_cod,_tipoelsucc; TString _appoggio, _tipodoc, _tipodocumento; @@ -322,7 +322,12 @@ void TListaMov_application::compila_comuni() _comuni->read(); if (_comuni->bad()) _comuni->curr().zero(); - //_dencom = _comuni->get(COM_DENCOM); + //modifica del 26/04/1995 + _dencom = _comuni->get(COM_DENCOM); + if (!_dencom.empty()) + _app = "Com"; + else _app = "Loc"; + //fine modifica _provcom = _comuni->get(COM_PROVCOM); } @@ -862,7 +867,7 @@ void TListaMov_application::stampa_intestazione() else set_row (2, "@b@121gAllegato SI"); set_row (3, "@b@54gCap #5t", &_capcf); - set_row (3,"@b@64gLoc #.20t", &_dencom); + set_row (3,"@b@64g%s #.20t", (const char*)_app, &_dencom); set_row (3,"@b@89gPr #.5t", &_provcom); set_row (3, "@b@98gC.F. #16t", &_cofi); if (_alleg == 0) @@ -1110,7 +1115,7 @@ bool TListaMov_application::preprocess_page(int file,int counter) if (_tipo_elenco != _tipo_clifo_prec && _tipo_clifo_prec != "") printer().formfeed(); - TLocalisamfile & file = cur->file(LF_MOV); + TLocalisamfile& file = cur->file(LF_MOV); TRectype da (file.curr()); TRectype a (file.curr()); da.zero();