Patch level : 12.0 1100

Files correlati     : f151.dir f151.trr ca1.exe ca2.exe ca3.exe ca3100.uml
                      ca3100a.rep ca3100b.rep ca3200.uml ca3200a.rep
                      ca3200b.rep ca3300.uml ca3300a.rep ca3300b.rep
                      ca3300c.rep ca3300d.rep ca3600.uml ca3600a.rep
                      ca3700.uml ca3700a.rep ca3700b.rep ca3800.uml
                      ca3800a.rep ca3800as.rep ca3800b.rep ca3800bs.rep
                      ca3800c.rep ca3800cs.rep ca3883.cpp ca3900.uml
                      ca3900a.rep
Commento :

Aggiunta contabilità separata alle stampe di analitica.
Aggiunto meccanismo per lanciare le stampe in batch.
Sintassi: ca3 -7 -b <nome del file che contiene i valori dell maschera> <tipo di output <P>rint|<E>xport|E<X>cel|PD<F>|<T>esto|<D>Base|<V>isualizza> <nome del file di output

Esempio: ca3 -7 -b select.sav X c:\out\rend

esporta il rendiconto di commessa usando i parametri salvati in select.sav nel file c:\out\rend.xls
This commit is contained in:
Alessandro Bonazzi 2021-12-13 22:21:30 +01:00
parent 4e21c63769
commit fadf0f5faa
50 changed files with 3575 additions and 2971 deletions

View File

@ -1025,7 +1025,7 @@ bool TMovanal_msk::row2imp(int r, TImporto& imp) const
return !imp.is_zero();
}
const TToken_string& TMovanal_msk::rec2key(const TRectype& rec) const
const TToken_string& TMovanal_msk::rec2key(const TRectype& rec) const //qui
{
TToken_string& key = get_tmp_string();
key = get(F_TIPO);
@ -1127,7 +1127,6 @@ void TMovanal_msk::aggiorna_saldo_riga(int r)
sld += TImporto('D', dare);
}
}
sld.normalize();
set(F_DARE, sld.sezione() == 'D' ? sld.valore() : ZERO);
set(F_AVERE, sld.sezione() == 'A' ? sld.valore() : ZERO);

View File

@ -50,11 +50,8 @@ bool TRic_saldi_msk::on_field_event(TOperable_field& o, TField_event e, long jol
const long recset_items = recset.items();
TProgind pi(recset_items, "Ricerca movimenti che interessano l'esercizio selezionato...", true, true);
for (bool ok = recset.move_first(); ok; ok = recset.move_next())
for (bool ok = recset.move_first(); pi.addstatus(1) && ok; ok = recset.move_next())
{
if (!pi.addstatus(1))
break;
const TDate curr_date = recset.get(MOVANA_DATACOMP).as_date();
const TDate fcomp_date = recset.get(MOVANA_DATAFCOMP).as_date();

View File

@ -1,8 +1,11 @@
#include <applicat.h>
#include <defmask.h>
#include <execp.h>
#include <reprint.h>
#include <repapp.h>
#include "commesse.h"
#include "cdc.h"
#include "fasi.h"
#include "movana.h"
#include "rmovana.h"
@ -19,89 +22,32 @@ class TPrint_movimenti_ca_mask : public TAnal_report_mask
{
protected:
bool on_field_event(TOperable_field& o, TField_event e, long jolly);
const TString& get_report_class() const;
bool test_compatible_report();
void create_page2();
int create_page2_sheet(int lf, int& y, short& dlg, bool required);
public:
virtual const TString & get_report_class() const;
TPrint_movimenti_ca_mask();
virtual ~TPrint_movimenti_ca_mask() {}
};
const TString & TPrint_movimenti_ca_mask::get_report_class() const
{
TString& classe = get_tmp_string();
classe = "ca3100";
TString classe = TAnal_report_mask::get_report_class();
const int stp = get_int(F_TIPOSTAMPA);
classe << (stp == 1 ? 'a' : 'b'); // tipo di report da usare
return classe;
}
bool TPrint_movimenti_ca_mask::test_compatible_report()
{
TFilename lib = get_report_class();
const TString& name = get(F_REPORT);
bool ok = name.not_empty();
if (ok)
{
TReport rep;
ok = rep.load(name);
if (ok)
{
const TString& classe = rep.get_class();
ok = classe == lib;
}
}
if (!ok)
{
set(F_REPORT, lib);
lib.ext("rep");
ok = lib.custom_path();
}
return ok;
classe.cut(6);
classe << (stp == 1 ? 'a' : 'b'); // tipo di report da usare
return get_tmp_string() = classe;
}
bool TPrint_movimenti_ca_mask::on_field_event(TOperable_field& o, TField_event e, long jolly)
{
switch (o.dlg())
{
case DLG_PRINT:
if (e == fe_button)
{
main_app().print();
return false;
}
break;
case DLG_PREVIEW:
if (e == fe_button)
{
main_app().preview();
return false;
}
break;
case F_TIPOSTAMPA:
if (e == fe_init || e == fe_modify)
{
test_compatible_report(); //in base al tipo stampa setta i report compatibili
}
break;
case F_REPORT:
if (e == fe_button)
{
const TString8 lib = get_report_class();
TFilename path = o.get();
if (select_custom_file(path, "rep", lib))
{
path = path.name();
path.ext("");
o.set(path);
}
} else
if (e == fe_close)
{
if (!test_compatible_report())
return error_box(TR("Impossibile trovare un report compatibile"));
}
if (e == fe_modify || e == fe_init)
set_report_class();
break;
case F_DATAINI:
case F_DATAFIN:
@ -127,13 +73,12 @@ bool TPrint_movimenti_ca_mask::on_field_event(TOperable_field& o, TField_event e
}
}
break;
default: break;
default:
break;
}
return true;
}
TPrint_movimenti_ca_mask::TPrint_movimenti_ca_mask()
:TAnal_report_mask("ca3100")
{
@ -146,7 +91,6 @@ TPrint_movimenti_ca_mask::TPrint_movimenti_ca_mask()
create_sheet(F_RIGHE);
}
///////////////////////////////////////////////////////////
// RECORDSET
///////////////////////////////////////////////////////////
@ -158,12 +102,12 @@ class TPrint_movimenti_ca_recordset : public TISAM_recordset
char _tipomov;
long _danumreg, _anumreg;
TString4 _dacaus, _acaus;
TString _codcosto, _codcms, _codfas;
TString _codcosto, _codcms, _codfas, _contsep;
protected:
const TVariant& get(const char* column_name) const;
static bool mov_filter(const TRelation* rel);
bool valid_record(const TRelation& rel) const;
virtual void set_custom_filter(TCursor& cur) const;
public:
@ -171,28 +115,33 @@ public:
TPrint_movimenti_ca_recordset(const TString& sql) : TISAM_recordset(sql) { }
};
static const TPrint_movimenti_ca_recordset* myself = NULL;
static const TPrint_movimenti_ca_recordset* myself = nullptr;
//metodo per riconoscere se il record corrente soddisfa i filtri della maschera...strafighissimo!
bool TPrint_movimenti_ca_recordset::valid_record(const TRelation& rel) const
{
//prima controlla la testata...
const TRectype& mov = rel.curr(LF_MOVANA);
const TRectype& rmov = rel.curr(LF_RMOVANA);
switch (_tipoord)
{
case 1: //controllo sul numreg
{
const long numreg = mov.get_long(MOVANA_NUMREG);
if (numreg < _danumreg || ( _anumreg >= _danumreg && numreg > _anumreg ))
const int nr = rmov.get_int(RMOVANA_NUMRIG);
if (nr > 1)
int i = 1;
if (!between(numreg, _danumreg, _anumreg))
return false;
}
break;
case 2: //controllo sulle date
{
const char* datefld = _anno > 0 ? MOVANA_DATACOMP : MOVANA_DATAREG;
const TDate data = mov.get(datefld);
if (data < _dadata || ( _adata.ok() && data > _adata ))
const TDate data = mov.get(_anno > 0 ? MOVANA_DATACOMP : MOVANA_DATAREG);
if (!data.between(_dadata, _adata))
return false;
}
break;
@ -213,32 +162,36 @@ bool TPrint_movimenti_ca_recordset::valid_record(const TRelation& rel) const
if (tipomov != _tipomov)
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.starts_with(_codcosto))
if (_codcosto.full() && !rmov.get(RMOVANA_CODCCOSTO).starts_with(_codcosto))
return false;
}
if (_codcms.not_empty())
{
const TString& cms = rmov.get(RMOVANA_CODCMS);
if (!cms.starts_with(_codcms))
if (_codcms.full() && !rmov.get(RMOVANA_CODCMS).starts_with(_codcms))
return false;
}
if (_codfas.not_empty())
{
const TString& fas = rmov.get(RMOVANA_CODFASE);
if (!fas.starts_with(_codfas))
if (_codfas.full() && !rmov.get(RMOVANA_CODFASE).starts_with(_codfas))
return false;
if (_contsep.full() && _contsep != mov.get(MOVANA_CONTSEP))
return false;
}
return true;
}
const TVariant& TPrint_movimenti_ca_recordset::get(const char* column_name) const
{
const TFixed_string fld(column_name);
if (fld == "#COSTO")
return get_tmp_var() = _codcosto;
else
if (fld == "#COMMESSA")
return get_tmp_var() = _codcms;
else
if (fld == "#FASE")
return get_tmp_var() = _codfas;
else
if (fld == "#CONTSEP")
return get_tmp_var() = _contsep;
return TISAM_recordset::get(column_name);
}
bool TPrint_movimenti_ca_recordset::mov_filter(const TRelation* rel)
{
return myself->valid_record(*rel);
@ -286,10 +239,9 @@ void TPrint_movimenti_ca_recordset::set_filter(const TPrint_movimenti_ca_mask& m
_acaus = msk.get(F_CAUSALEFIN);
_tipomov = msk.get(F_TIPOMOV)[0];
_contsep = msk.get(F_CONTSEP);
}
////////////////////////////////////////////////////////
// REPORT
////////////////////////////////////////////////////////
@ -302,6 +254,8 @@ class TPrint_movimenti_ca_rep : public TAnal_report
protected:
virtual bool set_recordset(const TString& sql);
virtual bool get_usr_val(const TString& name, TVariant& var) const;
virtual const char * get_excel_header_section() { return get_class() == "ca3100a" ? "H0|H1|H2" : "H0|H2|H3"; }
virtual void set_dbase_fixed_fields(bool on = true);
public:
void set_filter(const TPrint_movimenti_ca_mask& msk, int cms_row);
@ -314,21 +268,25 @@ bool TPrint_movimenti_ca_rep::get_usr_val(const TString& name, TVariant& var) co
var.set(_anno);
return true;
}
else
if (name == "#DADATA")
{
var.set(_dadata);
return true;
}
else
if (name == "#ADATA")
{
var.set(_adata);
return true;
}
else
if (name == "#DANUMREG")
{
var.set(_danumreg);
return true;
}
else
if (name == "#ANUMREG")
{
var.set(_anumreg);
@ -343,6 +301,12 @@ bool TPrint_movimenti_ca_rep::set_recordset(const TString& sql)
return TReport::set_recordset(rs);
}
void TPrint_movimenti_ca_rep::set_dbase_fixed_fields(bool on)
{
field("B1.201")->show(on);
field("B1.202")->show(on);
}
void TPrint_movimenti_ca_rep::set_filter(const TPrint_movimenti_ca_mask& msk, int cms_row)
{
_anno = msk.get_int(F_ANNO);
@ -359,64 +323,93 @@ void TPrint_movimenti_ca_rep::set_filter(const TPrint_movimenti_ca_mask& msk, in
////////////////////////////////////////////////////////
// APPLICAZIONE
////////////////////////////////////////////////////////
class TPrint_movimenti_ca : public TSkeleton_application
class TPrint_movimenti_ca : public TReport_application
{
TPrint_movimenti_ca_mask * _mask;
TPrint_movimenti_ca_rep * _rep;
protected:
virtual const char * extra_modules() const {return "cm";} //funziona anche con autorizzazione CM
virtual TReport & get_report(const TAutomask & m);
virtual TTrec * get_dbase_recdesc(TReport & rep, const TAutomask & mask);
virtual TAutomask & get_mask();
virtual void execute_print(TReport_book & book, TAutomask & mask, TReport & rep, export_type type = _export_printer);
virtual const char * output_name(const TAutomask & mask, const TReport & rep) const { return "lmov"; }
// @cmember Distruzione dei dati dell'utente
virtual bool user_destroy();
void print_or_preview(const bool stampa);
virtual void print();
virtual void preview();
virtual void main_loop();
public:
TPrint_movimenti_ca() : _mask(nullptr), _rep(nullptr) {}
~TPrint_movimenti_ca() {}
};
TReport & TPrint_movimenti_ca::get_report(const TAutomask & m)
{
if (_rep == nullptr)
_rep = new TPrint_movimenti_ca_rep;
_rep->load(_mask->get(DLG_REPORT));
return * _rep;
}
void TPrint_movimenti_ca::print_or_preview(const bool stampa)
TTrec * TPrint_movimenti_ca::get_dbase_recdesc(TReport & rep, const TAutomask & mask)
{
TTrec * desc = new TTrec;
TToken_string def;
TRectype cms(LF_COMMESSE);
TRectype fasi(LF_FASI);
TRectype cdc(LF_CDC);
TRectype rmovana(LF_RMOVANA);
TRectype movana(LF_MOVANA);
const int tipostampa = mask.get_int(F_TIPOSTAMPA);
desc->add_fielddef(rmovana.rec_des(), RMOVANA_NUMRIG);
desc->add_fielddef(cdc.rec_des(), CDC_CODCOSTO);
desc->add_fielddef(cms.rec_des(), COMMESSE_CODCMS);
desc->add_fielddef(fasi.rec_des(), FASI_CODFASE);
desc->add_fielddef(rmovana.rec_des(), RMOVANA_CODCONTO);
desc->add_fielddef(rmovana.rec_des(), RMOVANA_DESCR);
desc->add_fielddef(movana.rec_des(), MOVANA_TIPOMOV);
desc->add_fielddef("DARE", _realfld, 18, 2);
desc->add_fielddef("AVERE", _realfld, 18, 2);
desc->add_fielddef(movana.rec_des(), MOVANA_NUMREG);
desc->add_fielddef(movana.rec_des(), MOVANA_CONTSEP);
TToken_string keydef(MOVANA_NUMREG, '+');
keydef.add(RMOVANA_NUMRIG);
desc->add_keydef(keydef, true);
return desc;
}
TAutomask & TPrint_movimenti_ca::get_mask()
{
if (_mask == nullptr)
_mask = new TPrint_movimenti_ca_mask;
return *_mask;
}
void TPrint_movimenti_ca::execute_print(TReport_book & book, TAutomask & mask, TReport & rep, export_type type)
{
//costruzione della query x il report in base ai parametri della maschera
TSheet_field& sheet = _mask->sfield(F_RIGHE);
TSheet_field & sheet = mask.sfield(F_RIGHE);
const int n_righe_sheet = sheet.items();
//se lo sheet è vuoto aggiunge una riga vuota
if (n_righe_sheet == 0)
sheet.insert();
//report e book
TReport_book book; //book dei report
TPrint_movimenti_ca_rep rep;
rep.load(_mask->get(F_REPORT));
FOR_EACH_SHEET_ROW(sheet, r, row)
{
rep.set_filter(*_mask, r);
book.add(rep);
((TPrint_movimenti_ca_rep &) rep).set_filter((TPrint_movimenti_ca_mask &) mask, r);
book.add(rep, type);
}
}
if (stampa)
book.print(); //stampa il book dei report
else
book.preview(); //anteprima il book dei report
}
void TPrint_movimenti_ca::print()
bool TPrint_movimenti_ca::user_destroy()
{
print_or_preview(true);
}
void TPrint_movimenti_ca::preview()
{
print_or_preview(false);
}
void TPrint_movimenti_ca::main_loop()
{
_mask = new TPrint_movimenti_ca_mask;
_mask->run();
delete _mask;
_mask = NULL;
safe_delete(_mask);
safe_delete(_rep);
return TReport_application::user_destroy();
}
int ca3100(int argc, char* argv[])

View File

@ -14,8 +14,9 @@
#define F_NUMEROFIN 210
#define F_CAUSALEINI 211
#define F_CAUSALEFIN 212
#define F_REPORT 213
#define F_TIPOMOV 214
#define F_CONTSEP 215
#define F_DESCONTSEP 216
//sheet di pagina 2
#define F_RIGHE 400

View File

@ -1,25 +1,15 @@
#include "ca3100.h"
#include "camask.h"
#define ALL_EXPORT
#define CLASS_NAME "ca3100a"
TOOLBAR "topbar" 0 0 0 2
#include <aprintbar.h>
ENDPAGE
TOOLBAR "bottombar" 0 -2 0 1
STRING F_REPORT 256 66
BEGIN
PROMPT 1 -2 "Report "
FLAGS "B"
CHECKTYPE REQUIRED
END
STRING DLG_PROFILE 50
BEGIN
PROMPT 1 -1 "Profilo "
PSELECT
END
TOOLBAR "bottombar" 0 -3 0 1
#include <bprintbar.h>
ENDPAGE
PAGE "Parametri stampa" 0 0 0 2
@ -151,9 +141,35 @@ BEGIN
ITEM "T|Trasferito"
END
STRING F_CONTSEP 6
BEGIN
PROMPT 1 10 "Cont. separata "
USE &NPENT
INPUT CODTAB F_CONTSEP
DISPLAY "Codice@6" CODTAB
DISPLAY "Descrizione@50" S0
OUTPUT F_CONTSEP CODTAB
OUTPUT F_DESCONTSEP S0
CHECKTYPE NORMAL
FIELD CONTSEP
MODULE NP
END
STRING F_DESCONTSEP 50 48
BEGIN
PROMPT 26 10 ""
USE &NPENT KEY 2
INPUT S0 F_DESCONTSEP
DISPLAY "Descrizione@50" S0
DISPLAY "Codice@6" CODTAB
COPY OUTPUT F_CONTSEP
CHECKTYPE NORMAL
MODULE NP
END
SPREADSHEET F_RIGHE -1 -1
BEGIN
PROMPT 1 12 "Selezione su CdC / Commesse / Fasi"
PROMPT 0 12 "Selezione su CdC / Commesse / Fasi"
ITEM "Cdc1"
ITEM "Cdc2"
ITEM "Cdc3"

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report libraries="ve1300" name="ca3100a" lpi="8" class="ca3100b">
<report libraries="ve1300" page_merge="" save_printer="" name="ca3100a" use_printer_font="" orientation="2" page_split="" lpi="8" command="" class="ca3100a">
<description>Movimenti CA per numero registrazione</description>
<font face="Courier New" size="8" />
<section type="Head" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="" hidden="" page_break="" can_break="" pattern="1">
<font italic="1" face="Courier New" size="8" />
<prescript description="H0 PRESCRIPT">#ESERCIZIO @
0 &#3E;
@ -10,79 +10,111 @@ IF
121 122 SCAMBIA_CAMPI
THEN
;</prescript>
<field x="1" type="Stringa" width="50" pattern="1">
<field x="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font italic="1" face="Courier New" bold="1" size="10" />
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="76" type="Data" width="10" pattern="1">
<field x="76" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<source>#SYSTEM.DATE</source>
</field>
<field x="157" type="Numero" align="right" width="3" pattern="1">
<field x="157" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="">
<source>#REPORT.PAGE</source>
</field>
<field x="10" y="1.25" type="Testo" width="12" pattern="1" text="Dal numero" />
<field x="22" y="1.25" type="Numero" align="right" width="12" pattern="1" hide_zero="1">
<field x="10" y="1.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="1" hide_zero="" text="Dal numero" />
<field x="22" y="1.25" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="1" hide_zero="1" text="">
<font face="Courier New" bold="1" size="8" />
<source>#DANUMREG</source>
</field>
<field x="40" y="1.25" type="Testo" width="12" pattern="1" text="Al numero" />
<field x="52" y="1.25" type="Numero" align="right" width="12" pattern="1" hide_zero="1">
<field x="40" y="1.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="1" hide_zero="" text="Al numero" />
<field x="52" y="1.25" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="1" hide_zero="1" text="">
<font face="Courier New" bold="1" size="8" />
<source>#ANUMREG</source>
</field>
<field border="2" x="1" y="2.5" type="Linea" width="161" height="0" pattern="1" />
<field x="1.5" y="3" type="Testo" align="center" width="7" pattern="1" text="N.Reg." />
<field x="33.5" y="3" type="Testo" align="center" width="11" pattern="1" text="Fine Comp." />
<field x="45.5" y="3" type="Testo" align="center" width="8" pattern="1" text="N.Reg.CG" />
<field x="55" y="3" type="Testo" align="center" width="6" pattern="1" text="N.Doc." />
<field x="62" y="3" type="Testo" align="center" width="7" pattern="1" text="Tp.Doc." />
<field x="69" y="3" type="Testo" align="center" width="11" pattern="1" text="Descrizione" />
<field x="95" y="3" type="Testo" align="center" width="7" pattern="1" text="Causale" />
<field x="125" y="3" type="Testo" align="center" width="7" pattern="1" text="Tp.Mov." />
<field x="133" y="3" type="Testo" align="center" width="15" pattern="1" text="Totale Dare" />
<field x="147" y="3" type="Testo" align="center" width="15" pattern="1" text="Totale Avere" />
<field x="33.5" y="4" type="Testo" align="center" width="11" pattern="1" text="Data Doc." />
<field border="2" x="1" y="5" type="Linea" width="161" height="0" pattern="1" />
<field x="10" y="3" type="Testo" align="center" width="10" id="121" pattern="1" text="Data Reg." />
<field x="22" y="3" type="Testo" width="11" id="122" pattern="1" text="Data Comp." />
<field x="65" y="1.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="18" codval="" id="" pattern="1" hide_zero="" text="Centro di Costo:" />
<field x="82" y="1.25" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="8" />
<source>#COSTO</source>
<prescript description="H0.0 PRESCRIPT">CA_FORMAT_COSTO</prescript>
</field>
<field x="107" y="1.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="1" hide_zero="" text="Commessa:" />
<field x="117" y="1.25" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#COMMESSA</source>
<prescript description="H0.0 PRESCRIPT">CA_FORMAT_COMMESSA</prescript>
</field>
<field x="139" y="1.25" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Cont.separata">
<modules>NP</modules>
</field>
<field x="154" y="1.25" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<modules>NP</modules>
<source>#CONTSEP</source>
<prescript description="H0.0 PRESCRIPT">"MOVANA.SEZIONE" @
"D" =
IF
0 #THIS !
THEN
</prescript>
</field>
<field x="74" y="2.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="1" hide_zero="" text="Fase:" />
<field x="82" y="2.25" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#FASE</source>
<prescript description="H0.0 PRESCRIPT">CA_FORMAT_FASE</prescript>
</field>
<field border="2" x="1" y="4" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="161" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="1.5" y="4.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="N.Reg." />
<field x="33.5" y="4.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="1" hide_zero="" text="Fine Comp." />
<field x="45.5" y="4.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="8" codval="" id="" pattern="1" hide_zero="" text="N.Reg.CG" />
<field x="55" y="4.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="N.Doc." />
<field x="62" y="4.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="Tp.Doc." />
<field x="69" y="4.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="1" hide_zero="" text="Descrizione" />
<field x="95" y="4.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="Causale" />
<field x="125" y="4.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="Tp.Mov." />
<field x="133" y="4.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Totale Dare" />
<field x="147" y="4.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Totale Avere" />
<field x="33.5" y="5.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="1" hide_zero="" text="Data Doc." />
<field border="2" x="1" y="6.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="161" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="10" y="4.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="10" codval="" id="121" pattern="1" hide_zero="" text="Data Reg." />
<field x="22" y="4.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="11" codval="" id="122" pattern="1" hide_zero="" text="Data Comp." />
</section>
<section type="Head" level="1" height="3" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="1" hidden="" height="3" page_break="" can_break="" pattern="1">
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1.101
MESSAGE RESET,F1.102</prescript>
<field border="1" radius="100" x="1" type="Testo" valign="center" align="center" shade_offset="25" width="161" height="2.5" pattern="2" text="MOVIMENTI DI CONTABILITA' ANALITICA">
<field border="1" radius="100" x="1" deactivated="" type="Testo" valign="center" hidden="" align="center" link="" dynamic_height="" shade_offset="25" width="161" codval="" height="2.5" id="" pattern="2" hide_zero="" text="MOVIMENTI DI CONTABILITA' ANALITICA">
<font face="Courier New" bold="1" size="16" />
</field>
</section>
<section type="Head" level="2" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="2" hidden="" page_break="" can_break="" pattern="1">
<groupby>NUMREG</groupby>
<field x="1" y="1" type="Numero" align="right" link="107.NUMREG" width="7" pattern="1">
<field x="1" y="1" deactivated="" type="Numero" hidden="" align="right" link="107.NUMREG" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.NUMREG</source>
</field>
<field x="34" y="1" type="Data" width="11" pattern="1">
<field x="34" y="1" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.DATAFCOMP</source>
</field>
<field x="47" y="1" type="Numero" align="right" link="23.NUMREG" width="7" pattern="1" hide_zero="1">
<field x="47" y="1" deactivated="" type="Numero" hidden="" align="right" link="23.NUMREG" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="1" text="">
<source>MOVANA.NUMREGCG</source>
</field>
<field x="56" y="1" type="Stringa" width="7" pattern="1">
<field x="56" y="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.NUMDOC</source>
</field>
<field x="64" y="1" type="Stringa" width="4" pattern="1">
<field x="64" y="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.TIPODOC</source>
</field>
<field x="69" y="1" type="Stringa" dynamic_height="1" width="25" height="2" pattern="1">
<field x="69" y="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="1" shade_offset="" width="25" codval="" height="2" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.DESCR</source>
</field>
<field x="95" y="1" type="Stringa" width="3" pattern="1">
<field x="95" y="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.CODCAUS</source>
</field>
<field x="99" y="1" type="Stringa" dynamic_height="1" width="25" height="2" pattern="1">
<field x="99" y="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="1" shade_offset="" width="25" codval="" height="2" id="" pattern="1" hide_zero="" text="">
<prescript description="H2.0 PRESCRIPT">MESSAGE ISAMREAD,CAUS,CODCAUS=MOVANA.CODCAUS,DESCR</prescript>
</field>
<field x="127" y="1" type="Stringa" width="1" pattern="1">
<field x="127" y="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="1" codval="" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.TIPOMOV</source>
</field>
<field x="131" y="1" type="Valuta" align="right" width="15" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="131" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>MOVANA.TOTDOC</source>
<prescript description="H2.0 PRESCRIPT">"MOVANA.SEZIONE" @
"A" =
@ -91,68 +123,69 @@ IF
THEN
</prescript>
</field>
<field x="146" y="1" type="Valuta" align="right" width="15" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="146" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>MOVANA.TOTDOC</source>
<prescript description="H2.0 PRESCRIPT">"MOVANA.SEZIONE" @
<prescript description="">"MOVANA.SEZIONE" @
"D" =
IF
0 #THIS !
THEN
</prescript>
</field>
<field x="34" y="2" type="Data" width="11" pattern="1">
<field x="34" y="2" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.DATADOC</source>
</field>
<field x="8" y="3" type="Testo" align="center" width="4" pattern="1" text="Riga" />
<field x="13" y="3" type="Testo" width="23" pattern="1" text="Centro di Costo" />
<field x="37" y="3" type="Testo" width="23" pattern="1" text="Commessa" />
<field x="61" y="3" type="Testo" width="13" pattern="1" text="Fase" />
<field x="75" y="3" type="Testo" width="23" pattern="1" text="Conto" />
<field x="99" y="3" type="Testo" width="25" pattern="1" text="Descrizione" />
<field x="131.18" y="3" type="Testo" align="center" width="15" pattern="1" text="Dare" />
<field x="146.18" y="3" type="Testo" align="center" width="15" pattern="1" text="Avere" />
<field border="1" x="8.18" y="4" type="Linea" width="154" height="0" pattern="1" />
<field x="-9.88" y="1" type="Data" width="10" id="121" pattern="1">
<field x="8" y="3" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="1" hide_zero="" text="Riga" />
<field x="13" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="" pattern="1" hide_zero="" text="Centro di Costo" />
<field x="37" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="" pattern="1" hide_zero="" text="Commessa" />
<field x="55" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="1" hide_zero="" text="Riga" />
<field x="61" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="Fase" />
<field x="75" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="" pattern="1" hide_zero="" text="Conto" />
<field x="99" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="25" codval="" id="" pattern="1" hide_zero="" text="Descrizione" />
<field x="131.18" y="3" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Dare" />
<field x="146.18" y="3" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Avere" />
<field border="1" x="8.18" y="4" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="154" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="-9.88" y="1" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="121" pattern="1" hide_zero="" text="">
<source>DATAREG</source>
</field>
<field x="10" y="1" type="Data" width="10" id="121" pattern="1">
<field x="10" y="1" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="121" pattern="1" hide_zero="" text="">
<source>MOVANA.DATAREG</source>
</field>
<field x="22" y="1" type="Data" align="right" width="11" id="122" pattern="1">
<field x="22" y="1" deactivated="" type="Data" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="11" codval="" id="122" pattern="1" hide_zero="" text="">
<source>MOVANA.DATACOMP</source>
</field>
</section>
<section type="Body" pattern="1" />
<section type="Body" level="1" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="" hidden="" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="1" hidden="" page_break="" can_break="" pattern="1">
<prescript description="B1 PRESCRIPT">#ESERCIZIO @
0 &#3E;
IF
121 122 SCAMBIA_CAMPI
THEN
;</prescript>
<field x="9" type="Numero" align="right" width="3" pattern="1">
<field x="9" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="">
<source>NUMRIG</source>
</field>
<field x="13" type="Stringa" width="23" pattern="1">
<field x="13" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="" pattern="1" hide_zero="" text="">
<source>CODCCOSTO</source>
<prescript description="B1.0 PRESCRIPT">CA_FORMAT_COSTO</prescript>
</field>
<field x="37" type="Stringa" width="23" pattern="1">
<field x="37" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="" pattern="1" hide_zero="" text="">
<source>CODCMS</source>
<prescript description="B1.0 PRESCRIPT">CA_FORMAT_COMMESSA</prescript>
</field>
<field x="61" type="Stringa" width="13" pattern="1">
<field x="61" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="">
<source>CODFASE</source>
<prescript description="B1.0 PRESCRIPT">CA_FORMAT_FASE</prescript>
</field>
<field x="75" type="Stringa" width="23" pattern="1">
<field x="75" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="" pattern="1" hide_zero="" text="">
<source>CODCONTO</source>
<prescript description="B1.0 PRESCRIPT">CA_FORMAT_CONTO</prescript>
</field>
<field x="99" type="Stringa" dynamic_height="1" width="25" height="2" pattern="1">
<field x="99" deactivated="" type="Stringa" hidden="" link="" dynamic_height="1" shade_offset="" width="25" codval="" height="2" id="" pattern="1" hide_zero="" text="">
<source>DESCR</source>
</field>
<field x="131" type="Valuta" align="right" width="15" id="101" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="131" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="101" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>IMPORTO</source>
<prescript description="B1.101 PRESCRIPT">"RMOVANA.SEZIONE" @
"A" =
@ -162,7 +195,7 @@ THEN
</prescript>
<postscript description="B1.101 POSTSCRIPT">MESSAGE ADD,F1.101</postscript>
</field>
<field x="146" type="Valuta" align="right" width="15" id="102" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="146" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="102" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>IMPORTO</source>
<prescript description="B1.102 PRESCRIPT">"RMOVANA.SEZIONE" @
"D" =
@ -172,21 +205,38 @@ THEN
</prescript>
<postscript description="B1.102 POSTSCRIPT">MESSAGE ADD,F1.102</postscript>
</field>
<field x="163" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="7" codval="" id="201" pattern="1" hide_zero="" text="">
<source>MOVANA.NUMREG</source>
</field>
<field x="171" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="6" codval="" id="202" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<modules>NP</modules>
<source>#CONTSEP</source>
<prescript description="B1.202 PRESCRIPT">"MOVANA.SEZIONE" @
"D" =
IF
0 #THIS !
THEN
</prescript>
</field>
<field x="127.5" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="1" codval="" id="204" pattern="1" hide_zero="" text="">
<source>MOVANA.TIPOMOV</source>
</field>
</section>
<section type="Foot" height="1" pattern="1" />
<section type="Foot" level="1" pattern="1">
<field border="2" x="1" y="1" type="Linea" width="161" height="0" pattern="1" />
<field x="101" y="1.5" type="Testo" width="30" pattern="1" text="Totale generale per sezione:">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="" hidden="" height="1" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="1" hidden="" page_break="" can_break="" pattern="1">
<field border="2" x="1" y="1" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="161" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="101" y="1.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="30" codval="" id="" pattern="1" hide_zero="" text="Totale generale per sezione:">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="131" y="1.5" type="Valuta" align="right" width="15" id="101" pattern="1" text="###.###.###,@@">
<field x="131" y="1.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="101" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="146" y="1.5" type="Valuta" align="right" width="15" id="102" pattern="1" text="###.###.###,@@">
<field x="146" y="1.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="102" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
</section>
<section type="Foot" level="2" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="2" hidden="" page_break="" can_break="" pattern="1" />
<sql>USE RMOVANA
JOIN MOVANA INTO NUMREG==NUMREG</sql>
<prescript description="PRESCRIPT">: SCAMBIA_CAMPI ( F1 F2 -- )

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report libraries="ve1300" name="ca3100b" lpi="8" class="ca3100b">
<report libraries="ve1300" page_merge="" save_printer="" name="ca3100b" use_printer_font="" orientation="2" page_split="" lpi="8" command="" class="ca3100b">
<description>Movimenti CA per data</description>
<font face="Courier New" size="8" />
<section type="Head" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="" hidden="" page_break="" can_break="" pattern="1">
<font italic="1" face="Courier New" size="8" />
<prescript description="H0 PRESCRIPT">#ESERCIZIO @
0 &#3E;
@ -10,84 +10,116 @@ IF
121 122 SCAMBIA_CAMPI
THEN
;</prescript>
<field x="1" type="Stringa" width="50" pattern="1">
<field x="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font italic="1" face="Courier New" bold="1" size="10" />
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="76" type="Data" width="12" pattern="1">
<field x="76" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="1" hide_zero="" text="">
<source>#SYSTEM.DATE</source>
</field>
<field x="157" type="Numero" align="right" width="3" pattern="1">
<field x="157" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="">
<source>#REPORT.PAGE</source>
</field>
<field x="10" y="1.25" type="Testo" width="12" pattern="1" text="Dalla data" />
<field x="22" y="1.25" type="Data" width="12" pattern="1">
<field x="10" y="1.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="1" hide_zero="" text="Dalla data" />
<field x="22" y="1.25" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#DADATA</source>
</field>
<field x="40" y="1.25" type="Testo" width="12" pattern="1" text="Alla data" />
<field x="52" y="1.25" type="Data" width="12" pattern="1">
<field x="40" y="1.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="1" hide_zero="" text="Alla data" />
<field x="52" y="1.25" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#ADATA</source>
</field>
<field border="2" x="1" y="2.5" type="Linea" width="161" height="0" pattern="1" />
<field x="13" y="3" type="Testo" align="center" width="7" pattern="1" text="N.Reg." />
<field x="33" y="3" type="Testo" align="center" width="11" pattern="1" text="Fine Comp." />
<field x="45" y="3" type="Testo" align="center" width="8" pattern="1" text="N.Reg.CG" />
<field x="55" y="3" type="Testo" align="center" width="6" pattern="1" text="N.Doc." />
<field x="62" y="3" type="Testo" align="center" width="7" pattern="1" text="Tp.Doc." />
<field x="69" y="3" type="Testo" align="center" width="11" pattern="1" text="Descrizione" />
<field x="95" y="3" type="Testo" align="center" width="7" pattern="1" text="Causale" />
<field x="124" y="3" type="Testo" align="center" width="7" pattern="1" text="Tp.Mov." />
<field x="131" y="3" type="Testo" align="center" width="15" pattern="1" text="Totale Dare" />
<field x="146" y="3" type="Testo" align="center" width="15" pattern="1" text="Totale Avere" />
<field x="33" y="4" type="Testo" align="center" width="11" pattern="1" text="Data Doc." />
<field border="2" x="1" y="5" type="Linea" width="161" height="0" pattern="1" />
<field x="1" y="3" type="Testo" align="center" width="10" id="121" pattern="1" text="Data Reg." />
<field x="22" y="3" type="Testo" width="11" id="122" pattern="1" text="Data Comp." />
<field x="65.5" y="1.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="18" codval="" id="" pattern="1" hide_zero="" text="Centro di Costo:" />
<field x="82.5" y="1.25" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="9" />
<source>#COSTO</source>
<prescript description="H0.0 PRESCRIPT">CA_FORMAT_COSTO</prescript>
</field>
<field x="107.5" y="1.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="1" hide_zero="" text="Commessa:" />
<field x="117.5" y="1.25" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#COMMESSA</source>
<prescript description="H0.0 PRESCRIPT">CA_FORMAT_COMMESSA</prescript>
</field>
<field x="139.5" y="1.25" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Cont.separata">
<modules>NP</modules>
</field>
<field x="154.5" y="1.25" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<modules>NP</modules>
<source>#CONTSEP</source>
<prescript description="H0.0 PRESCRIPT">"MOVANA.SEZIONE" @
"D" =
IF
0 #THIS !
THEN
</prescript>
</field>
<field x="74.5" y="2.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="1" hide_zero="" text="Fase:" />
<field x="82.5" y="2.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#FASE</source>
<prescript description="H0.0 PRESCRIPT">CA_FORMAT_FASE</prescript>
</field>
<field border="2" x="1" y="3.75" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="161" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="13" y="4.25" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="N.Reg." />
<field x="33" y="4.25" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="1" hide_zero="" text="Fine Comp." />
<field x="45" y="4.25" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="8" codval="" id="" pattern="1" hide_zero="" text="N.Reg.CG" />
<field x="55" y="4.25" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="N.Doc." />
<field x="62" y="4.25" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="Tp.Doc." />
<field x="69" y="4.25" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="1" hide_zero="" text="Descrizione" />
<field x="95" y="4.25" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="Causale" />
<field x="124" y="4.25" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="Tp.Mov." />
<field x="131" y="4.25" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Totale Dare" />
<field x="146" y="4.25" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Totale Avere" />
<field x="33" y="5.25" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="1" hide_zero="" text="Data Doc." />
<field border="2" x="1" y="6.25" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="161" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="1" y="4.25" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="10" codval="" id="121" pattern="1" hide_zero="" text="Data Reg." />
<field x="22" y="4.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="11" codval="" id="122" pattern="1" hide_zero="" text="Data Comp." />
</section>
<section type="Head" level="1" height="3" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="1" hidden="" height="3" page_break="" can_break="" pattern="1">
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1.101
MESSAGE RESET,F1.102</prescript>
<field border="1" radius="100" x="1" type="Testo" valign="center" align="center" shade_offset="25" width="161" height="2.5" pattern="2" text="MOVIMENTI DI CONTABILITA' ANALITICA">
<field border="1" radius="100" x="1" deactivated="" type="Testo" valign="center" hidden="" align="center" link="" dynamic_height="" shade_offset="25" width="161" codval="" height="2.5" id="" pattern="2" hide_zero="" text="MOVIMENTI DI CONTABILITA' ANALITICA">
<font face="Courier New" bold="1" size="16" />
</field>
</section>
<section type="Head" level="2" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="2" hidden="" page_break="" can_break="" pattern="1">
<groupby>IF (#ANNO &#3E; 0,MOVANA.DATACOMP,MOVANA.DATAREG)</groupby>
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2.131
MESSAGE RESET,F2.132</prescript>
</section>
<section type="Head" level="3" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="3" hidden="" page_break="" can_break="" pattern="1">
<groupby>NUMREG</groupby>
<field x="13" y="1" type="Numero" align="right" link="107.NUMREG" width="7" pattern="1">
<field x="13" y="1" deactivated="" type="Numero" hidden="" align="right" link="107.NUMREG" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.NUMREG</source>
</field>
<field x="34" y="1" type="Data" width="11" pattern="1">
<field x="34" y="1" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.DATAFCOMP</source>
</field>
<field x="47" y="1" type="Numero" align="right" link="23.NUMREG" width="7" pattern="1" hide_zero="1">
<field x="47" y="1" deactivated="" type="Numero" hidden="" align="right" link="23.NUMREG" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="1" text="">
<source>MOVANA.NUMREGCG</source>
</field>
<field x="56" y="1" type="Stringa" width="7" pattern="1">
<field x="56" y="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.NUMDOC</source>
</field>
<field x="64" y="1" type="Stringa" width="4" pattern="1">
<field x="64" y="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.TIPODOC</source>
</field>
<field x="69" y="1" type="Stringa" dynamic_height="1" width="25" height="2" pattern="1">
<field x="69" y="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="1" shade_offset="" width="25" codval="" height="2" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.DESCR</source>
</field>
<field x="95" y="1" type="Stringa" width="3" pattern="1">
<field x="95" y="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.CODCAUS</source>
</field>
<field x="99" y="1" type="Stringa" dynamic_height="1" width="25" height="2" pattern="1">
<field x="99" y="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="1" shade_offset="" width="25" codval="" height="2" id="" pattern="1" hide_zero="" text="">
<prescript description="H3.0 PRESCRIPT">MESSAGE ISAMREAD,CAUS,CODCAUS=MOVANA.CODCAUS,DESCR</prescript>
</field>
<field x="127" y="1" type="Stringa" width="1" pattern="1">
<field x="127" y="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="1" codval="" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.TIPOMOV</source>
</field>
<field x="131" y="1" type="Valuta" align="right" width="15" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="131" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>MOVANA.TOTDOC</source>
<prescript description="H2.0 PRESCRIPT">"MOVANA.SEZIONE" @
"A" =
@ -96,7 +128,7 @@ IF
THEN
</prescript>
</field>
<field x="146" y="1" type="Valuta" align="right" width="15" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="146" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>MOVANA.TOTDOC</source>
<prescript description="H2.0 PRESCRIPT">"MOVANA.SEZIONE" @
"D" =
@ -105,56 +137,57 @@ IF
THEN
</prescript>
</field>
<field x="34" y="2" type="Data" width="11" pattern="1">
<field x="34" y="2" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.DATADOC</source>
</field>
<field x="8" y="3" type="Testo" align="center" width="4" pattern="1" text="Riga" />
<field x="13" y="3" type="Testo" width="23" pattern="1" text="Centro di Costo" />
<field x="37" y="3" type="Testo" width="23" pattern="1" text="Commessa" />
<field x="61" y="3" type="Testo" width="13" pattern="1" text="Fase" />
<field x="75" y="3" type="Testo" width="23" pattern="1" text="Conto" />
<field x="99" y="3" type="Testo" width="25" pattern="1" text="Descrizione" />
<field x="131.18" y="3" type="Testo" align="center" width="15" pattern="1" text="Dare" />
<field x="146.18" y="3" type="Testo" align="center" width="15" pattern="1" text="Avere" />
<field border="1" x="8.18" y="4" type="Linea" width="154" height="0" pattern="1" />
<field x="1" y="1" type="Data" width="10" id="121" pattern="1">
<field x="8" y="3" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="1" hide_zero="" text="Riga" />
<field x="13" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="" pattern="1" hide_zero="" text="Centro di Costo" />
<field x="37" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="" pattern="1" hide_zero="" text="Commessa" />
<field x="55" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="1" hide_zero="" text="Riga" />
<field x="61" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="Fase" />
<field x="75" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="" pattern="1" hide_zero="" text="Conto" />
<field x="99" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="25" codval="" id="" pattern="1" hide_zero="" text="Descrizione" />
<field x="131.18" y="3" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Dare" />
<field x="146.18" y="3" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Avere" />
<field border="1" x="8.18" y="4" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="154" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="1" y="1" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="121" pattern="1" hide_zero="" text="">
<source>MOVANA.DATAREG</source>
</field>
<field x="22" y="1" type="Data" align="right" width="11" id="122" pattern="1">
<field x="22" y="1" deactivated="" type="Data" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="11" codval="" id="122" pattern="1" hide_zero="" text="">
<source>MOVANA.DATACOMP</source>
</field>
</section>
<section type="Body" pattern="1" />
<section type="Body" level="1" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="" hidden="" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="1" hidden="" page_break="" can_break="" pattern="1">
<prescript description="B1 PRESCRIPT">#ESERCIZIO @
0 &#3E;
IF
121 122 SCAMBIA_CAMPI
THEN
;</prescript>
<field x="9" type="Numero" align="right" width="3" pattern="1">
<field x="9" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="">
<source>NUMRIG</source>
</field>
<field x="13" type="Stringa" width="23" pattern="1">
<field x="13" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="" pattern="1" hide_zero="" text="">
<source>CODCCOSTO</source>
<prescript description="B1.0 PRESCRIPT">CA_FORMAT_COSTO</prescript>
</field>
<field x="37" type="Stringa" width="23" pattern="1">
<field x="37" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="" pattern="1" hide_zero="" text="">
<source>CODCMS</source>
<prescript description="B1.0 PRESCRIPT">CA_FORMAT_COMMESSA</prescript>
</field>
<field x="61" type="Stringa" width="13" pattern="1">
<field x="61" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="">
<source>CODFASE</source>
<prescript description="B1.0 PRESCRIPT">CA_FORMAT_FASE</prescript>
</field>
<field x="75" type="Stringa" width="23" pattern="1">
<field x="75" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="" pattern="1" hide_zero="" text="">
<source>CODCONTO</source>
<prescript description="B1.0 PRESCRIPT">CA_FORMAT_CONTO</prescript>
</field>
<field x="99" type="Stringa" dynamic_height="1" width="25" height="2" pattern="1">
<field x="99" deactivated="" type="Stringa" hidden="" link="" dynamic_height="1" shade_offset="" width="25" codval="" height="2" id="" pattern="1" hide_zero="" text="">
<source>DESCR</source>
</field>
<field x="131" type="Valuta" align="right" width="15" id="101" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="131" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="101" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>IMPORTO</source>
<prescript description="B1.101 PRESCRIPT">"RMOVANA.SEZIONE" @
"A" =
@ -165,7 +198,7 @@ THEN
<postscript description="B1.101 POSTSCRIPT">MESSAGE ADD,F1.101
MESSAGE ADD,F2.131</postscript>
</field>
<field x="146" type="Valuta" align="right" width="15" id="102" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="146" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="102" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>IMPORTO</source>
<prescript description="B1.102 PRESCRIPT">"RMOVANA.SEZIONE" @
"D" =
@ -176,27 +209,44 @@ THEN
<postscript description="B1.102 POSTSCRIPT">MESSAGE ADD,F1.102
MESSAGE ADD,F2.132</postscript>
</field>
<field x="162" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="7" codval="" id="201" pattern="1" hide_zero="" text="">
<source>MOVANA.NUMREG</source>
</field>
<field x="170" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="6" codval="" id="202" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<modules>NP</modules>
<source>#CONTSEP</source>
<prescript description="B1.202 PRESCRIPT">"MOVANA.SEZIONE" @
"D" =
IF
0 #THIS !
THEN
</prescript>
</field>
<field x="127" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="1" codval="" id="204" pattern="1" hide_zero="" text="">
<source>MOVANA.TIPOMOV</source>
</field>
</section>
<section type="Foot" height="1" pattern="1" />
<section type="Foot" level="1" pattern="1">
<field border="2" x="1" y="1" type="Linea" width="161" height="0" pattern="1" />
<field x="101" y="1.5" type="Testo" width="30" pattern="1" text="Totale generale per sezione:">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="" hidden="" height="1" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="1" hidden="" page_break="" can_break="" pattern="1">
<field border="2" x="1" y="1" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="161" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="101" y="1.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="30" codval="" id="" pattern="1" hide_zero="" text="Totale generale per sezione:">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="131" y="1.5" type="Valuta" align="right" width="15" id="101" pattern="1" text="###.###.###,@@">
<field x="131" y="1.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="101" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="146" y="1.5" type="Valuta" align="right" width="15" id="102" pattern="1" text="###.###.###,@@">
<field x="146" y="1.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="102" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
</section>
<section type="Foot" level="2" pattern="1">
<field border="1" x="2" y="1" type="Linea" width="160" height="0" pattern="1" />
<field x="110" y="1.5" type="Testo" width="20" pattern="1" text="Totale giornaliero:" />
<field x="131" y="1.25" type="Valuta" align="right" width="15" id="131" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="146" y="1.25" type="Valuta" align="right" width="15" id="132" pattern="1" hide_zero="1" text="###.###.###,@@" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="2" hidden="" page_break="" can_break="" pattern="1">
<field border="1" x="2" y="1" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="160" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="110" y="1.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="Totale giornaliero:" />
<field x="131" y="1.25" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="131" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="146" y="1.25" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="132" pattern="1" hide_zero="1" text="###.###.###,@@" />
</section>
<section type="Foot" level="3" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="3" hidden="" page_break="" can_break="" pattern="1" />
<sql>USE RMOVANA
JOIN MOVANA INTO NUMREG==NUMREG
BY MOVANA-&#3E;#DATAORD</sql>

View File

@ -2,11 +2,13 @@
#include <defmask.h>
#include <execp.h>
#include <progind.h>
#include <reprint.h>
#include <repapp.h>
#include "../cg/cglib.h"
#include "commesse.h"
#include "cdc.h"
#include "fasi.h"
#include "pconana.h"
#include "movana.h"
#include "rmovana.h"
@ -24,88 +26,30 @@ class TPrint_mastrini_ca_mask : public TAnal_report_mask
{
protected:
bool on_field_event(TOperable_field& o, TField_event e, long jolly);
const TString& get_report_class() const;
bool test_compatible_report();
public:
virtual const TString & get_report_class() const;
TPrint_mastrini_ca_mask();
virtual ~TPrint_mastrini_ca_mask() {}
};
const TString & TPrint_mastrini_ca_mask::get_report_class() const
{
TString& classe = get_tmp_string();
classe = "ca3200a";
// const int stp = get_int(F_TIPOCONTI);
// classe << (stp == 1 ? 'a' : 'b'); // tipo di report da usare in caso di report multipli
return classe;
}
TString classe = TAnal_report_mask::get_report_class();
const bool per_conto = get_bool(F_PERCONTO);
bool TPrint_mastrini_ca_mask::test_compatible_report()
{
TFilename lib = get_report_class();
const TString& name = get(F_REPORT);
bool ok = name.not_empty();
if (ok)
{
TReport rep;
ok = rep.load(name);
if (ok)
{
const TString& classe = rep.get_class();
ok = classe == lib;
}
}
if (!ok)
{
set(F_REPORT, lib);
lib.ext("rep");
ok = lib.custom_path();
}
return ok;
classe.cut(6);
classe << (per_conto ? 'b' : 'a'); // tipo di report da usare
return get_tmp_string() = classe;
}
bool TPrint_mastrini_ca_mask::on_field_event(TOperable_field& o, TField_event e, long jolly)
{
switch (o.dlg())
{
case DLG_PRINT:
if (e == fe_button)
{
main_app().print();
return false;
}
break;
case DLG_PREVIEW:
if (e == fe_button)
{
main_app().preview();
return false;
}
break;
case F_TIPOCONTI:
if (e == fe_init || e == fe_modify)
{
test_compatible_report(); //in base al tipo di conti da stampare setta i report compatibili (solo nel caso di rep multipli)
}
break;
case F_REPORT:
if (e == fe_button)
{
const TString8 lib = get_report_class();
TFilename path = o.get();
if (select_custom_file(path, "rep", lib))
{
path = path.name();
path.ext("");
o.set(path);
}
} else
if (e == fe_close)
{
if (!test_compatible_report())
return error_box(TR("Impossibile trovare un report compatibile"));
}
case F_PERCONTO:
if (e == fe_modify || e == fe_init)
set_report_class();
break;
case F_ANNO:
if (e == fe_modify && !o.empty())
@ -180,7 +124,7 @@ protected:
int _tipimov;
TDate _dadata, _adata;
long _danumreg, _anumreg;
TString _daconto, _aconto, _codcosto, _codcms, _codfas;
TString _daconto, _aconto, _codcosto, _codcms, _codfas, _contsep;
protected: //da libreria
virtual const TVariant& get(const char* column_name) const;
@ -259,7 +203,12 @@ bool TPrint_mastrini_ca_recordset::valid_record(const TRelation& rel) const
if (fas != _codfas)
return false;
}
if (_contsep.not_empty())
{
const TString& contsep = mov.get(MOVANA_CONTSEP);
if (contsep != _contsep)
return false;
}
return true;
}
@ -288,14 +237,15 @@ void TPrint_mastrini_ca_recordset::set_custom_filter(TCursor& cur) const
const TImporto& TPrint_mastrini_ca_recordset::saldo_iniziale(const char* conto) const
{
TAnal_bill bill(conto, _codcosto, _codcms, _codfas);
const TSaldanal& saldo = ca_saldo(bill, _dadata, _adata, _tipimov);
const TSaldanal& saldo = ca_saldo(bill, _contsep, _dadata, _adata, _tipimov);
return saldo._ini;
}
const TVariant& TPrint_mastrini_ca_recordset::get(const char* column_name) const
{
if (strncmp(column_name, "SALDOINI:", 9) == 0)
const TFixed_string fld(column_name);
if (fld.starts_with("SALDOINI:"))
{
const TString16 sub_field = column_name+9;
const TString& conto = get(RMOVANA_CODCONTO).as_string();
@ -308,25 +258,18 @@ const TVariant& TPrint_mastrini_ca_recordset::get(const char* column_name) const
var = saldo_ini.sezione() == 'A' ? saldo_ini.valore() : ZERO;
return var;
}
if (strcmp(column_name, "#COSTO") == 0)
{
TVariant& var = get_tmp_var();
var = _codcosto;
return var;
}
if (strcmp(column_name, "#COMMESSA") == 0)
{
TVariant& var = get_tmp_var();
var = _codcms;
return var;
}
if (strcmp(column_name, "#FASE") == 0)
{
TVariant& var = get_tmp_var();
var = _codfas;
return var;
}
else
if (fld == "#COSTO")
return get_tmp_var() = _codcosto;
else
if (fld == "#COMMESSA")
return get_tmp_var() = _codcms;
else
if (fld == "#FASE")
return get_tmp_var() = _codfas;
else
if (fld == "#CONTSEP")
return get_tmp_var() = _contsep;
return TISAM_recordset::get(column_name);
}
@ -345,7 +288,7 @@ void TPrint_mastrini_ca_recordset::set_filter(const TPrint_mastrini_ca_mask& msk
_codcms = rel.curr().get(RMOVANA_CODCMS);
_codfas = rel.curr().get(RMOVANA_CODFASE);
}
_contsep = msk.get(F_CONTSEP);
for (int i = 0; msk.id2pos(F_CDC1_INI+i) > 0; i++)
{
_daconto << msk.get(F_CDC1_INI+i);
@ -394,7 +337,8 @@ TPrint_mastrini_ca_alternative_recordset::TPrint_mastrini_ca_alternative_records
const TImporto& TPrint_mastrini_ca_alternative_recordset::saldo_finale(const char* conto) const
{
TAnal_bill bill(conto, _codcosto, _codcms, _codfas);
const TSaldanal& saldo = ca_saldo(bill, _dadata, _adata, _tipimov);
const TSaldanal& saldo = ca_saldo(bill, "", _dadata, _adata, _tipimov); // qui
return saldo._fin;
}
@ -470,7 +414,7 @@ void TPrint_mastrini_ca_alternative_recordset::set_filter(const TPrint_mastrini_
{
TPconana_recordset pconana;
pconana.set_filter(' ', _daconto, _aconto, _codcosto, _codcms, _codfas,
pconana.set_filter(' ', _daconto, _aconto, _codcosto, _codcms, _codfas, _contsep,
_dadata, _adata, _tipimov, _tipoconti==1, _tipoconti==2);
const long pconana_items = pconana.items();
@ -485,20 +429,26 @@ void TPrint_mastrini_ca_alternative_recordset::set_filter(const TPrint_mastrini_
a_rmovana.put(RMOVANA_DATACOMP, _adata);
TString filtro;
if (_codcosto.not_empty())
if (_codcosto.full())
filtro << "(" << RMOVANA_CODCCOSTO << "?=\"" << _codcosto << "*\")";
if (_codcms.not_empty())
if (_codcms.full())
{
if (filtro.not_empty())
if (filtro.full())
filtro << "&&";
filtro << "(" << RMOVANA_CODCMS << "?=\"" << _codcms << "*\")";
}
if (_codfas.not_empty())
if (_codfas.full())
{
if (filtro.not_empty())
if (filtro.full())
filtro << "&&";
filtro << "(" << RMOVANA_CODFASE << "?=\"" << _codfas << "*\")";
}
if (_contsep.full())
{
if (filtro.full())
filtro << "&&";
filtro << "(" << MOVANA_CONTSEP << "==\"" << _contsep << "*\")";
}
//scandisce il piano dei conti..
for (bool pok = pconana.move_first(); pok; pok = pconana.move_next())
@ -558,6 +508,8 @@ class TPrint_mastrini_ca_rep : public TAnal_report
{
protected:
virtual bool set_recordset(const TString& sql);
virtual const char * get_excel_header_section() { return "H1|H2"; }
virtual void set_dbase_fixed_fields(bool on);
public:
void set_filter(const TPrint_mastrini_ca_mask& msk, int cms_row);
@ -569,6 +521,15 @@ bool TPrint_mastrini_ca_rep::set_recordset(const TString& sql)
return TReport::set_recordset(rs);
}
void TPrint_mastrini_ca_rep::set_dbase_fixed_fields(bool on)
{
field("B1.201")->show(on);
field("B1.202")->show(on);
field("B1.203")->show(on);
field("B1.204")->show(on);
field("B1.205")->show(on);
}
void TPrint_mastrini_ca_rep::set_filter(const TPrint_mastrini_ca_mask& msk, int cms_row)
{
TReport::set_recordset(NULL); //forza azzeramento file anal.dbf prima di ricostruirlo
@ -594,47 +555,96 @@ void TPrint_mastrini_ca_rep::set_filter(const TPrint_mastrini_ca_mask& msk, int
////////////////////////////////////////////////////////
// APPLICAZIONE
////////////////////////////////////////////////////////
class TPrint_mastrini_ca : public TSkeleton_application
class TPrint_mastrini_ca : public TReport_application
{
TPrint_mastrini_ca_mask* _mask;
TPrint_mastrini_ca_rep * _rep;
protected:
virtual const char * extra_modules() const {return "cm";} //funziona anche con autorizzazione CM
virtual TReport & get_report(const TAutomask & m);
virtual TAutomask & get_mask();
virtual TTrec * get_dbase_recdesc(TReport & rep, const TAutomask & mask);
virtual void execute_print(TReport_book & book, TAutomask & mask, TReport & rep, export_type type = _export_printer);
virtual const char * output_name(const TAutomask & mask, const TReport & rep) const { return "mastrini"; }
// @cmember Distruzione dei dati dell'utente
virtual bool user_destroy() { return true; }
void print_or_preview(const bool stampa);
virtual void print();
virtual void preview();
virtual void main_loop();
public:
TPrint_mastrini_ca() : _mask(nullptr), _rep(nullptr) {}
~TPrint_mastrini_ca() {}
};
void TPrint_mastrini_ca::print()
TReport & TPrint_mastrini_ca::get_report(const TAutomask & m)
{
print_or_preview(true);
if (_rep == nullptr)
_rep = new TPrint_mastrini_ca_rep;
_rep->load(_mask->get(DLG_REPORT));
return *_rep;
}
void TPrint_mastrini_ca::preview()
TAutomask & TPrint_mastrini_ca::get_mask()
{
print_or_preview(false);
if (_mask == nullptr)
_mask = new TPrint_mastrini_ca_mask;
return *_mask;
}
void TPrint_mastrini_ca::print_or_preview(const bool stampa)
TTrec * TPrint_mastrini_ca::get_dbase_recdesc(TReport & rep, const TAutomask & mask)
{
//report e book dei report
TReport_book book;
TString path = _mask->get(F_REPORT);
if (path.empty())
path = "ca3200a";
TPrint_mastrini_ca_rep rep;
rep.load(path);
TTrec * desc = new TTrec;
TToken_string def;
TRectype cms(LF_COMMESSE);
TRectype fasi(LF_FASI);
TRectype cdc(LF_CDC);
TRectype rmovana(LF_RMOVANA);
TRectype movana(LF_MOVANA);
desc->add_fielddef(movana.rec_des(), MOVANA_DATACOMP);
desc->add_fielddef(rmovana.rec_des(), RMOVANA_NUMREG);
desc->add_fielddef(rmovana.rec_des(), RMOVANA_NUMRIG);
desc->add_fielddef(rmovana.rec_des(), RMOVANA_DESCR);
desc->add_fielddef(movana.rec_des(), MOVANA_NUMREGCG);
desc->add_fielddef(movana.rec_des(), MOVANA_DATADOC);
desc->add_fielddef(movana.rec_des(), MOVANA_NUMDOC);
desc->add_fielddef(movana.rec_des(), MOVANA_CODCAUS);
desc->add_fielddef("DESCRCAUS", _alfafld, 50);
desc->add_fielddef("DARE", _realfld, 18, 2);
desc->add_fielddef("AVERE", _realfld, 18, 2);
desc->add_fielddef("SALDO", _realfld, 18, 2);
desc->add_fielddef("TIPO", _alfafld, 18);
desc->add_fielddef("CODCF", _longfld, 6);
desc->add_fielddef("RAGSOC", _alfafld, 50);
desc->add_fielddef(cdc.rec_des(), CDC_CODCOSTO);
desc->add_fielddef(cms.rec_des(), COMMESSE_CODCMS);
desc->add_fielddef(fasi.rec_des(), FASI_CODFASE);
desc->add_fielddef(movana.rec_des(), MOVANA_CONTSEP);
desc->add_fielddef(rmovana.rec_des(), RMOVANA_CODCONTO);
TToken_string keydef(CDC_CODCOSTO, '+');
keydef.add(COMMESSE_CODCMS);
keydef.add(FASI_CODFASE);
keydef.add(RMOVANA_CODCONTO);
keydef.add(MOVANA_DATACOMP);
keydef.add(RMOVANA_NUMREG);
keydef.add(RMOVANA_NUMRIG);
desc->add_keydef(keydef, true);
return desc;
}
void TPrint_mastrini_ca::execute_print(TReport_book & book, TAutomask & mask, TReport & rep, export_type type)
{
TSheet_field& sheet = _mask->sfield(F_RIGHE);
TString video_string; //stringa che compare nella progind
TString msg; //stringa che compare nella progind
if (sheet.empty()) //se non ci sono righe sullo sheet (selezione su tutte le cms/cdc)...
{
if (_mask->get_bool(F_PERCONTO))
{
rep.set_filter(*_mask, -1); //fa la set filter sulla prima riga (che è quella usata)
((TPrint_mastrini_ca_rep &)rep).set_filter((TPrint_mastrini_ca_mask &)mask, -1);
book.add(rep);
}
else
@ -681,27 +691,25 @@ void TPrint_mastrini_ca::print_or_preview(const bool stampa)
skip_closed = !yesno_box(TR("E' stata richiesta la stampa di tutte le commesse:\n"
"Si desidera includere anche le commesse chiuse?"));
TProgind pi(set.items(), video_string, true, true);
for (bool sok = set.move_first(); sok; sok = set.move_next()) //fighissimo metodo per scandire un file in 1 riga!
TProgress_monitor pi(set.items(), msg, true);
for (bool sok = set.move_first(); pi.add_status() && sok; sok = set.move_next()) //fighissimo metodo per scandire un file in 1 riga!
{
if (!pi.addstatus(1))
break;
if (skip_closed && set.get(COMMESSE_CHIUSA).as_bool())
continue;
row = set.get(0u).as_string(); //prende il valore del primo campo del file (CDC o CMS code)
row = set.get_string(0u); //prende il valore del primo campo del file (CDC o CMS code)
if (!codici_buoni.is_key(row))
continue;
//completa la stringa da visualizzare sulla progind
video_string.cut(0) << row << '\n' << set.get(1u);
pi.set_text(video_string);
msg = row;
msg << '\n' << set.get(1u);
pi.set_text(msg);
for (int l = liv1.levels()-2; l >= 0; l--) //se la struttura è a più livelli costruisce la tokenstring
row.insert("|", liv1.total_len(l));
rep.set_filter(*_mask, 0); //fa la set filter sulla prima riga (che è quella usata)
((TPrint_mastrini_ca_rep &)rep).set_filter((TPrint_mastrini_ca_mask &)mask, 0); //fa la set filter sulla prima riga (che è quella usata)
book.add(rep);
}
sheet.destroy(); //cancella le commesse aggiunte in automatico sullo sheet
@ -711,25 +719,12 @@ void TPrint_mastrini_ca::print_or_preview(const bool stampa)
{
FOR_EACH_SHEET_ROW(sheet, r, row)
{
rep.set_filter(*_mask, r);
book.add(rep);
((TPrint_mastrini_ca_rep &)rep).set_filter((TPrint_mastrini_ca_mask &) mask, r);
rep.set_export_sections(type);
book.add(rep, type);
rep.reset_export_sections();
}
}
if (stampa)
book.print(); //stampa il book dei report
else
book.preview(); //anteprima
}
void TPrint_mastrini_ca::main_loop()
{
_mask = new TPrint_mastrini_ca_mask;
_mask->run();
delete _mask;
_mask = NULL;
}
int ca3200(int argc, char* argv[])

View File

@ -6,17 +6,19 @@
#define F_RAGSOC 202
#define F_DATASTAMPA 203
#define F_ANNO 204
#define F_REPORT 205
#define F_CONTSEP 206
#define F_DESCONTSEP 207
//campi generati dal pdc
#define F_CDC1_INI 206
#define F_CDC4_INI 209
#define F_CDC1_FIN 216
#define F_CDC4_FIN 219
#define F_DES1_INI 226
#define F_DES4_INI 229
#define F_DES1_FIN 236
#define F_DES4_FIN 239
#define F_CDC1_INI 208
#define F_CDC4_INI 211
#define F_CDC1_FIN 218
#define F_CDC4_FIN 221
#define F_DES1_INI 228
#define F_DES4_INI 231
#define F_DES1_FIN 238
#define F_DES4_FIN 241
//campi sulla maschera
#define F_DATAINI 250

View File

@ -1,25 +1,16 @@
#include "ca3200.h"
#include "camask.h"
#define ALL_EXPORT
#define CLASS_NAME "ca3200a"
TOOLBAR "topbar" 0 0 0 2
#define ALL_EXPORT
#include <aprintbar.h>
ENDPAGE
TOOLBAR "bottombar" 0 -2 0 1
STRING F_REPORT 256 66
BEGIN
PROMPT 1 -2 "Report "
FLAGS "B"
CHECKTYPE REQUIRED
END
STRING DLG_PROFILE 50
BEGIN
PROMPT 1 -1 "Profilo "
PSELECT
END
TOOLBAR "bottombar" 0 -3 0 1
#include <bprintbar.h>
ENDPAGE
PAGE "Selezioni" 0 0 0 2
@ -69,7 +60,7 @@ BEGIN
ADD NONE
END
GROUPBOX DLG_NULL 78 7
GROUPBOX DLG_NULL 78 8
BEGIN
PROMPT 1 5 "@bOpzioni stampa"
END
@ -115,9 +106,35 @@ BEGIN
PROMPT 2 10 "Non suddivisi per Commessa/CDC "
END
STRING F_CONTSEP 6
BEGIN
PROMPT 1 11 "Cont. separata "
USE &NPENT
INPUT CODTAB F_CONTSEP
DISPLAY "Codice@6" CODTAB
DISPLAY "Descrizione@50" S0
OUTPUT F_CONTSEP CODTAB
OUTPUT F_DESCONTSEP S0
CHECKTYPE NORMAL
FIELD CONTSEP
MODULE NP
END
STRING F_DESCONTSEP 50 48
BEGIN
PROMPT 26 11 ""
USE &NPENT KEY 2
INPUT S0 F_DESCONTSEP
DISPLAY "Descrizione@50" S0
DISPLAY "Codice@6" CODTAB
COPY OUTPUT F_CONTSEP
CHECKTYPE NORMAL
MODULE NP
END
SPREADSHEET F_RIGHE -1 -1
BEGIN
PROMPT 0 12 ""
PROMPT 0 13 ""
ITEM "Cdc1"
ITEM "Cdc2"
ITEM "Cdc3"

View File

@ -1,58 +1,71 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report libraries="ve1300" name="ca3200a" orientation="2" lpi="8" class="ca3200a">
<report libraries="ve1300" page_merge="" save_printer="" name="ca3200a" use_printer_font="" orientation="2" page_split="" lpi="8" command="" class="ca3200a">
<description>Mastrini CA</description>
<font face="Courier New" size="8" />
<section type="Head">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="" hidden="" page_break="" can_break="" pattern="1">
<font italic="1" face="Courier New" bold="1" size="8" />
</section>
<section type="Head" level="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="1" hidden="" page_break="" can_break="" pattern="1">
<font face="Arial" size="9" />
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1.101
MESSAGE RESET,F1.102</prescript>
<field border="1" radius="100" x="1" y="0.5" type="Testo" valign="center" align="center" shade_offset="25" width="167" height="4" text="MASTRINI DI CONTABILITA' ANALITICA">
<field border="1" radius="100" x="1" y="0.5" deactivated="" type="Testo" valign="center" hidden="" align="center" link="" dynamic_height="" shade_offset="25" width="167" codval="" height="4" id="" pattern="2" hide_zero="" text="MASTRINI DI CONTABILITA' ANALITICA">
<font face="Arial" bold="1" size="14" />
</field>
<field x="1" y="5.5" type="Stringa" width="50" pattern="1">
<field x="1" y="5.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="80" y="5.5" type="Data" width="10" pattern="1">
<field x="80" y="5.5" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#SYSTEM.DATE</source>
</field>
<field x="1" y="7" type="Testo" width="18" pattern="1" text="Centro di Costo:" />
<field x="20" y="7" type="Stringa" width="23" pattern="1">
<field x="1" y="7" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="18" codval="" id="" pattern="1" hide_zero="" text="Centro di Costo:" />
<field x="44" y="7" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,CDC,CODCOSTO=#101,DESCRIZ</prescript>
</field>
<field x="1" y="8.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="1" hide_zero="" text="Commessa:" />
<field x="44" y="8.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#102,DESCRIZ</prescript>
</field>
<field x="1" y="10" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="1" hide_zero="" text="Fase:" />
<field x="44" y="10" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,FASI,CODFASE=#103,DESCRIZ</prescript>
</field>
<field x="1" y="11.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="18" codval="" id="" pattern="1" hide_zero="" text="Contabilit&#E0; separata:">
<modules>NP</modules>
</field>
<field x="44" y="11.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<modules>NP</modules>
<prescript description="H1.0 PRESCRIPT">MESSAGE TABLEREAD,&#26;NPENT,#104,S0</prescript>
</field>
<field border="2" x="1" y="12.75" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="167" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="20" y="7" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="101" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#COSTO</source>
<prescript description="H1.0 PRESCRIPT">CA_FORMAT_COSTO</prescript>
<prescript description="H1.101 PRESCRIPT">CA_FORMAT_COSTO</prescript>
</field>
<field x="44" y="7" type="Stringa" width="50" pattern="1">
<font face="Arial" bold="1" size="9" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,CDC,CODCOSTO=RMOVANA.CODCCOSTO,DESCRIZ</prescript>
</field>
<field x="1" y="8.5" type="Testo" width="9" pattern="1" text="Commessa:" />
<field x="20" y="8.5" type="Stringa" width="23" pattern="1">
<field x="20" y="8.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="102" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#COMMESSA</source>
<prescript description="H1.0 PRESCRIPT">CA_FORMAT_COMMESSA</prescript>
<prescript description="H1.102 PRESCRIPT">CA_FORMAT_COMMESSA</prescript>
</field>
<field x="44" y="8.5" type="Stringa" width="50" pattern="1">
<font face="Arial" bold="1" size="9" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=RMOVANA.CODCMS,DESCRIZ</prescript>
</field>
<field x="1" y="10" type="Testo" width="5" pattern="1" text="Fase:" />
<field x="20" y="10" type="Stringa" width="13" pattern="1">
<field x="20" y="10" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="103" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#FASE</source>
<prescript description="H1.0 PRESCRIPT">CA_FORMAT_FASE</prescript>
<prescript description="H1.103 PRESCRIPT">CA_FORMAT_FASE</prescript>
</field>
<field x="44" y="10" type="Stringa" width="50" pattern="1">
<field x="20" y="11.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="104" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,FASI,CODFASE=RMOVANA.CODFASE,DESCRIZ</prescript>
<modules>NP</modules>
<source>#CONTSEP</source>
</field>
<field border="2" x="1" y="11.5" type="Linea" width="167" height="0" pattern="1" />
</section>
<section repeat="1" type="Head" level="2" height="5">
<section repeat="1" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="2" hidden="" height="5" page_break="" can_break="" pattern="1">
<groupby>CODCONTO</groupby>
<font italic="1" face="Arial" size="8" />
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2.101
@ -60,38 +73,38 @@ MESSAGE RESET,F2.102
MESSAGE RESET,F2.201
MESSAGE RESET,F2.202
</prescript>
<field y="0.5" type="Testo" width="6" pattern="1" text="Conto:">
<field y="0.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="Conto:">
<font italic="1" face="Arial" bold="1" size="8" />
</field>
<field x="7" y="0.5" type="Stringa" width="23" pattern="1">
<field x="7" y="0.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="" pattern="1" hide_zero="" text="">
<font italic="1" face="Arial" bold="1" size="8" />
<source>CODCONTO</source>
<prescript description="H2.0 PRESCRIPT">CA_FORMAT_CONTO</prescript>
</field>
<field x="31" y="0.5" type="Stringa" width="50" pattern="1">
<field x="31" y="0.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font italic="1" face="Arial" bold="1" size="8" />
<source>CODCONTO</source>
<prescript description="H2.0 PRESCRIPT">CA_FORMAT_CONTO_DESCR</prescript>
</field>
<field x="10" y="2" type="Testo" align="center" width="10" pattern="1" text="N.Reg. &#2F; Riga" />
<field x="22" y="2" type="Testo" width="11" pattern="1" text="Descrizione" />
<field x="41" y="2" type="Testo" width="8" pattern="1" text="N.Reg.CG" />
<field x="50" y="2" type="Testo" align="center" width="10" pattern="1" text="Data Doc." />
<field x="61" y="2" type="Testo" align="center" width="6" pattern="1" text="N.Doc." />
<field x="68" y="2" type="Testo" width="7" pattern="1" text="Causale" />
<field x="102" y="2" type="Testo" align="right" width="4" pattern="1" text="Dare" />
<field x="115" y="2" type="Testo" align="right" width="5" pattern="1" text="Avere" />
<field x="120" y="2" type="Testo" align="right" width="14" pattern="1" text="Saldo" />
<field x="137" y="2" type="Testo" width="30" pattern="1" text="Tipo&#2F;Codice&#2F;Ragsoc. Cli.&#2F;Forn." />
<field border="1" x="1" y="3" type="Linea" width="168" height="0" pattern="1" />
<field x="66" y="3.5" type="Testo" width="25" pattern="1" text="Progressivo precedente" />
<field x="1" y="2" type="Testo" align="center" width="10" id="121" pattern="1" text="Data" />
<field x="91" y="3.5" type="Valuta" align="right" width="13" id="201" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="10" y="2" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="N.Reg. Riga" />
<field x="22" y="2" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="1" hide_zero="" text="Descrizione" />
<field x="41" y="2" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="8" codval="" id="" pattern="1" hide_zero="" text="N.Reg.CG" />
<field x="50" y="2" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Data Doc." />
<field x="61" y="2" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="N.Doc." />
<field x="68" y="2" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="Causale" />
<field x="102" y="2" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="1" hide_zero="" text="Dare" />
<field x="115" y="2" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="1" hide_zero="" text="Avere" />
<field x="120" y="2" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="" pattern="1" hide_zero="" text="Saldo" />
<field x="137" y="2" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="30" codval="" id="" pattern="1" hide_zero="" text="Tipo&#2F;Codice&#2F;Ragsoc. Cli.&#2F;Forn." />
<field border="1" x="1" y="3" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="168" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="66" y="3.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="25" codval="" id="" pattern="1" hide_zero="" text="Progressivo precedente" />
<field x="1" y="2" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="10" codval="" id="121" pattern="1" hide_zero="" text="Data" />
<field x="91" y="3.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="201" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDOINI:DARE</source>
<postscript description="H2.201 POSTSCRIPT">MESSAGE COPY,B1.103
</postscript>
</field>
<field x="107" y="3.5" type="Valuta" align="right" width="13" id="202" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="107" y="3.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="202" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDOINI:AVERE</source>
<prescript description="H2.202 PRESCRIPT">#THIS @
DUP
@ -103,46 +116,45 @@ ELSE
THEN</prescript>
</field>
</section>
<section type="Head" level="3">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="3" hidden="" page_break="" can_break="" pattern="1">
<groupby>DATACOMP</groupby>
<prescript description="H3 PRESCRIPT">MESSAGE RESET,F3.103</prescript>
</section>
<section type="Body" />
<section type="Body" level="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="" hidden="" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="1" hidden="" height="1" page_break="" can_break="" pattern="1">
<condition>NUMREG != 0</condition>
<font face="Arial" size="8" />
<field x="1" type="Data" width="10" pattern="1">
<field x="1" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<source>DATACOMP</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE COPY,F3.131</postscript>
</field>
<field x="11.5" type="Numero" align="right" link="107.NUMREG" width="6" pattern="1">
<field x="11.5" deactivated="" type="Numero" hidden="" align="right" link="107.NUMREG" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="">
<source>NUMREG</source>
</field>
<field x="17.5" type="Testo" align="center" width="1" pattern="1" text="&#2F;" />
<field x="18.5" type="Numero" align="right" width="3" pattern="1">
<field x="18.5" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="">
<source>NUMRIG</source>
</field>
<field x="22" type="Stringa" dynamic_height="1" width="20" height="2" pattern="1">
<field x="22" deactivated="" type="Stringa" hidden="" link="" dynamic_height="1" shade_offset="" width="20" codval="" height="2" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" size="8" />
<source>DESCR</source>
</field>
<field x="43" type="Numero" align="right" link="23.NUMREG" width="6" pattern="1">
<field x="43" deactivated="" type="Numero" hidden="" align="right" link="23.NUMREG" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.NUMREGCG</source>
</field>
<field x="50" type="Data" width="10" pattern="1">
<field x="50" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.DATADOC</source>
</field>
<field x="61" type="Stringa" align="right" width="6" pattern="1">
<field x="61" deactivated="" type="Stringa" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.NUMDOC</source>
</field>
<field x="68" type="Stringa" width="3" pattern="1">
<field x="68" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.CODCAUS</source>
</field>
<field x="72" type="Stringa" dynamic_height="1" width="20" height="2" pattern="1">
<field x="72" deactivated="" type="Stringa" hidden="" link="" dynamic_height="1" shade_offset="" width="20" codval="" height="2" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" size="8" />
<prescript description="B1.0 PRESCRIPT">MESSAGE ISAMREAD,CAUS,CODCAUS=MOVANA.CODCAUS,DESCR</prescript>
</field>
<field x="93" type="Valuta" align="right" width="13" id="101" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="93" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="101" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>IMPORTO</source>
<prescript description="B1.101 PRESCRIPT">"RMOVANA.SEZIONE" @
"A" =
@ -158,7 +170,7 @@ THEN
<postscript description="B1.101 POSTSCRIPT">MESSAGE ADD,F2.101
</postscript>
</field>
<field x="107" type="Valuta" align="right" width="13" id="102" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="107" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="102" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>IMPORTO</source>
<prescript description="B1.102 PRESCRIPT">"RMOVANA.SEZIONE" @
"D" =
@ -174,83 +186,108 @@ THEN
<postscript description="B1.102 POSTSCRIPT">MESSAGE ADD,F2.102
</postscript>
</field>
<field x="121" type="Valuta" align="right" width="13" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="121" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<postscript description="B1.103 POSTSCRIPT">MESSAGE COPY,F3.103</postscript>
</field>
<field x="136.5" type="Stringa" width="1" id="104" pattern="1">
<field x="136.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="1" codval="" id="104" pattern="1" hide_zero="" text="">
<source>MOV.TIPO</source>
</field>
<field x="137.5" type="Numero" align="right" width="6" id="105" pattern="1" hide_zero="1">
<field x="137.5" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="6" codval="" id="105" pattern="1" hide_zero="1" text="">
<source>MOV.CODCF</source>
</field>
<field x="144" type="Stringa" dynamic_height="1" width="20" height="2" id="106" pattern="1">
<field x="144" deactivated="" type="Stringa" hidden="" link="" dynamic_height="1" shade_offset="" width="20" codval="" height="2" id="106" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" size="8" />
<prescript description="B1.106 PRESCRIPT">MESSAGE ISAMREAD,CLIFO,TIPOCF=#104!CODCF=#105,RAGSOC</prescript>
</field>
<field x="168" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="23" codval="" id="201" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#COSTO</source>
<prescript description="B1.201 PRESCRIPT">CA_FORMAT_COSTO</prescript>
</field>
<field x="192" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="23" codval="" id="202" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#COMMESSA</source>
<prescript description="B1.202 PRESCRIPT">CA_FORMAT_COMMESSA</prescript>
</field>
<field x="216" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="13" codval="" id="203" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#FASE</source>
<prescript description="B1.203 PRESCRIPT">CA_FORMAT_FASE</prescript>
</field>
<field x="230" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="13" codval="" id="204" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<modules>NP</modules>
<source>#CONTSEP</source>
</field>
<field x="244" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="23" codval="" id="205" pattern="1" hide_zero="" text="">
<font italic="1" face="Arial" bold="1" size="8" />
<source>CODCONTO</source>
<prescript description="">CA_FORMAT_CONTO</prescript>
</field>
</section>
<section type="Foot">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="" hidden="" page_break="" can_break="" pattern="1">
<font face="Arial" size="8" />
<field border="2" x="1" y="0.5" type="Linea" width="167" height="0" pattern="1" />
<field x="143" y="1" type="Testo" width="5" pattern="1" text="Pag." />
<field x="149" y="1" type="Numero" align="right" width="3" pattern="1">
<field border="2" x="1" y="0.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="167" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="143" y="1" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="1" hide_zero="" text="Pag." />
<field x="149" y="1" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="">
<source>#REPORT.PAGE</source>
</field>
</section>
<section type="Foot" level="1">
<field border="1" x="1" y="0.5" type="Linea" width="168" height="0" pattern="1" />
<field x="74" y="1" type="Testo" width="20" pattern="1" text="TOTALI COMMESSA">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="1" hidden="" page_break="" can_break="" pattern="1">
<field border="1" x="1" y="0.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="168" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="74" y="1" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="TOTALI COMMESSA">
<font face="Arial" bold="1" size="9" />
</field>
<field x="92" y="1" type="Valuta" align="right" width="14" id="101" pattern="1" text="###.###.###,@@">
<field x="92" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="101" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Arial" bold="1" size="9" />
</field>
<field x="106" y="1" type="Valuta" align="right" width="14" id="102" pattern="1" text="###.###.###,@@">
<field x="106" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="102" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Arial" bold="1" size="9" />
</field>
<field x="120" y="1" type="Valuta" align="right" width="14" id="103" pattern="1" text="###.###.###,@@">
<field x="120" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="103" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Arial" bold="1" size="9" />
<source>#101-#102</source>
</field>
</section>
<section type="Foot" level="2" height="3.5">
<field border="1" x="1" y="0.25" type="Linea" width="168" height="0" pattern="1" />
<field x="72" y="0.5" type="Testo" width="22" pattern="1" text="Totali periodo:">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="2" hidden="" height="3.5" page_break="" can_break="" pattern="1">
<field border="1" x="1" y="0.25" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="168" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="72" y="0.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="22" codval="" id="" pattern="1" hide_zero="" text="Totali periodo:">
<font face="Arial" bold="1" size="8" />
</field>
<field x="72" y="1.75" type="Testo" width="22" pattern="1" text="Totali progressivi:">
<field x="72" y="1.75" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="22" codval="" id="" pattern="1" hide_zero="" text="Totali progressivi:">
<font face="Arial" bold="1" size="8" />
</field>
<field x="93" y="0.5" type="Valuta" align="right" width="13" id="101" pattern="1" text="###.###.###,@@">
<field x="93" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="101" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Arial" bold="1" size="8" />
<postscript description="F2.101 POSTSCRIPT">MESSAGE ADD,F1.101</postscript>
</field>
<field x="107" y="0.5" type="Valuta" align="right" width="13" id="102" pattern="1" text="###.###.###,@@">
<field x="107" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="102" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Arial" bold="1" size="8" />
<postscript description="F2.102 POSTSCRIPT">MESSAGE ADD,F1.102</postscript>
</field>
<field x="93" y="1.75" type="Valuta" align="right" width="13" id="201" pattern="1" text="###.###.###,@@">
<field x="93" y="1.75" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="201" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Arial" bold="1" size="8" />
<source>#101+#H2.201</source>
</field>
<field x="107" y="1.75" type="Valuta" align="right" width="13" id="202" pattern="1" text="###.###.###,@@">
<field x="107" y="1.75" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="202" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Arial" bold="1" size="8" />
<source>#102+#H2.202</source>
</field>
<field x="121" y="1.75" type="Valuta" align="right" width="13" id="203" pattern="1" text="###.###.###,@@">
<field x="121" y="1.75" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="203" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Arial" bold="1" size="8" />
<source>#201-#202</source>
</field>
</section>
<section type="Foot" level="3">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="3" hidden="" page_break="" can_break="" pattern="1">
<condition>#103 != 0</condition>
<font italic="1" face="Arial" size="8" />
<field x="135" y="0.5" type="Testo" width="2" pattern="1" text="al">
<field x="135" y="0.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="2" codval="" id="" pattern="1" hide_zero="" text="al">
<font italic="1" face="Arial Black" size="7" />
</field>
<field x="119" y="0.5" type="Valuta" align="right" width="15" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="119" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<font italic="1" face="Arial" bold="1" size="8" />
</field>
<field x="137" y="0.5" type="Data" valign="center" width="11" id="131" pattern="1">
<field x="137" y="0.5" deactivated="" type="Data" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="11" codval="" id="131" pattern="1" hide_zero="" text="">
<font italic="1" face="Arial" size="7" />
</field>
</section>

View File

@ -1,58 +1,67 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report libraries="ve1300" name="ca3200b" orientation="2" lpi="8" class="ca3200a">
<report libraries="ve1300" page_merge="" save_printer="" name="ca3200b" use_printer_font="" orientation="2" page_split="" lpi="8" command="" class="ca3200b">
<description>Mastrini CA per conto</description>
<font face="Courier New" size="8" />
<section type="Head" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="" hidden="" page_break="" can_break="" pattern="1">
<font italic="1" face="Courier New" bold="1" size="8" />
</section>
<section type="Head" level="1" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="1" hidden="" page_break="" can_break="" pattern="1">
<font face="Arial" size="9" />
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1.101
MESSAGE RESET,F1.102</prescript>
<field border="1" radius="100" x="1" y="0.5" type="Testo" valign="center" align="center" shade_offset="25" width="167" height="4" pattern="2" text="MASTRINI DI CONTABILITA' ANALITICA">
<field border="1" radius="100" x="1" y="0.5" deactivated="" type="Testo" valign="center" hidden="" align="center" link="" dynamic_height="" shade_offset="25" width="167" codval="" height="4" id="" pattern="2" hide_zero="" text="MASTRINI DI CONTABILITA' ANALITICA">
<font face="Arial" bold="1" size="14" />
</field>
<field x="1" y="5.5" type="Stringa" width="50" pattern="1">
<field x="1" y="5.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="80" y="5.5" type="Data" width="10" pattern="1">
<field x="80" y="5.5" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#SYSTEM.DATE</source>
</field>
<field x="1" y="7" type="Testo" width="18" pattern="1" text="Centro di Costo:" />
<field x="20" y="7" type="Stringa" width="23" pattern="1">
<field x="1" y="7" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="18" codval="" id="" pattern="1" hide_zero="" text="Centro di Costo:" />
<field x="44" y="7" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,CDC,CODCOSTO=#101,DESCRIZ</prescript>
</field>
<field x="1" y="8.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="9" codval="" id="" pattern="1" hide_zero="" text="Commessa:" />
<field x="44" y="8.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#102,DESCRIZ</prescript>
</field>
<field x="1" y="10" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="1" hide_zero="" text="Fase:" />
<field x="44" y="10" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,FASI,CODFASE=#103,DESCRIZ</prescript>
</field>
<field x="1" y="11.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="18" codval="" id="" pattern="1" hide_zero="" text="Contabilit&#E0; separata:" />
<field x="44" y="11.25" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<prescript description="">MESSAGE TABLEREAD,&#26;NPENT,#104,S0</prescript>
</field>
<field border="2" x="1" y="12.75" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="167" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="20" y="7" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="101" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#COSTO</source>
<prescript description="H1.0 PRESCRIPT">CA_FORMAT_COSTO</prescript>
<prescript description="H1.101 PRESCRIPT">CA_FORMAT_COSTO</prescript>
</field>
<field x="44" y="7" type="Stringa" width="50" pattern="1">
<font face="Arial" bold="1" size="9" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,CDC,CODCOSTO=RMOVANA.CODCCOSTO,DESCRIZ</prescript>
</field>
<field x="1" y="8.5" type="Testo" width="9" pattern="1" text="Commessa:" />
<field x="20" y="8.5" type="Stringa" width="23" pattern="1">
<field x="20" y="8.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="102" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#COMMESSA</source>
<prescript description="H1.0 PRESCRIPT">CA_FORMAT_COMMESSA</prescript>
<prescript description="H1.102 PRESCRIPT">CA_FORMAT_COMMESSA</prescript>
</field>
<field x="44" y="8.5" type="Stringa" width="50" pattern="1">
<font face="Arial" bold="1" size="9" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=RMOVANA.CODCMS,DESCRIZ</prescript>
</field>
<field x="1" y="10" type="Testo" width="5" pattern="1" text="Fase:" />
<field x="20" y="10" type="Stringa" width="13" pattern="1">
<field x="20" y="10" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="103" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#FASE</source>
<prescript description="H1.0 PRESCRIPT">CA_FORMAT_FASE</prescript>
<prescript description="H1.103 PRESCRIPT">CA_FORMAT_FASE</prescript>
</field>
<field x="44" y="10" type="Stringa" width="50" pattern="1">
<field x="20" y="11.25" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="104" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,FASI,CODFASE=RMOVANA.CODFASE,DESCRIZ</prescript>
<source>#CONTSEP</source>
</field>
<field border="2" x="1" y="11.5" type="Linea" width="167" height="0" pattern="1" />
</section>
<section repeat="1" type="Head" level="2" height="5" pattern="1">
<section repeat="1" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="2" hidden="" height="5" page_break="" can_break="" pattern="1">
<groupby>CODCONTO</groupby>
<font italic="1" face="Arial" size="8" />
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2.101
@ -60,38 +69,38 @@ MESSAGE RESET,F2.102
MESSAGE RESET,F2.201
MESSAGE RESET,F2.202
</prescript>
<field y="0.5" type="Testo" width="6" pattern="1" text="Conto:">
<field y="0.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="Conto:">
<font italic="1" face="Arial" bold="1" size="8" />
</field>
<field x="7" y="0.5" type="Stringa" width="23" pattern="1">
<field x="7" y="0.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="" pattern="1" hide_zero="" text="">
<font italic="1" face="Arial" bold="1" size="8" />
<source>CODCONTO</source>
<prescript description="H2.0 PRESCRIPT">CA_FORMAT_CONTO</prescript>
</field>
<field x="31" y="0.5" type="Stringa" width="50" pattern="1">
<field x="31" y="0.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font italic="1" face="Arial" bold="1" size="8" />
<source>CODCONTO</source>
<prescript description="H2.0 PRESCRIPT">CA_FORMAT_CONTO_DESCR</prescript>
</field>
<field x="10" y="2" type="Testo" align="center" width="10" pattern="1" text="N.Reg. &#2F; Riga" />
<field x="22" y="2" type="Testo" width="11" pattern="1" text="Descrizione" />
<field x="41" y="2" type="Testo" width="8" pattern="1" text="N.Reg.CG" />
<field x="50" y="2" type="Testo" align="center" width="10" pattern="1" text="Data Doc." />
<field x="61" y="2" type="Testo" align="center" width="6" pattern="1" text="N.Doc." />
<field x="68" y="2" type="Testo" width="7" pattern="1" text="Causale" />
<field x="102" y="2" type="Testo" align="right" width="4" pattern="1" text="Dare" />
<field x="115" y="2" type="Testo" align="right" width="5" pattern="1" text="Avere" />
<field x="120" y="2" type="Testo" align="right" width="14" pattern="1" text="Saldo" />
<field x="137" y="2" type="Testo" width="30" pattern="1" text="Tipo&#2F;Codice&#2F;Ragsoc. Cli.&#2F;Forn." />
<field border="1" x="1" y="3" type="Linea" width="168" height="0" pattern="1" />
<field x="66" y="3.5" type="Testo" width="25" pattern="1" text="Progressivo precedente" />
<field x="1" y="2" type="Testo" align="center" width="10" id="121" pattern="1" text="Data" />
<field x="91" y="3.5" type="Valuta" align="right" width="13" id="201" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="10" y="2" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="N.Reg. Riga" />
<field x="22" y="2" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="1" hide_zero="" text="Descrizione" />
<field x="41" y="2" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="8" codval="" id="" pattern="1" hide_zero="" text="N.Reg.CG" />
<field x="50" y="2" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Data Doc." />
<field x="61" y="2" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="N.Doc." />
<field x="68" y="2" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="Causale" />
<field x="102" y="2" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="1" hide_zero="" text="Dare" />
<field x="115" y="2" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="1" hide_zero="" text="Avere" />
<field x="120" y="2" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="" pattern="1" hide_zero="" text="Saldo" />
<field x="137" y="2" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="30" codval="" id="" pattern="1" hide_zero="" text="Tipo&#2F;Codice&#2F;Ragsoc. Cli.&#2F;Forn." />
<field border="1" x="1" y="3" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="168" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="66" y="3.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="25" codval="" id="" pattern="1" hide_zero="" text="Progressivo precedente" />
<field x="1" y="2" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="10" codval="" id="121" pattern="1" hide_zero="" text="Data" />
<field x="91" y="3.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="201" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDOINI:DARE</source>
<postscript description="H2.201 POSTSCRIPT">MESSAGE COPY,B1.103
</postscript>
</field>
<field x="107" y="3.5" type="Valuta" align="right" width="13" id="202" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="107" y="3.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="202" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDOINI:AVERE</source>
<prescript description="H2.202 PRESCRIPT">#THIS @
DUP
@ -103,46 +112,45 @@ ELSE
THEN</prescript>
</field>
</section>
<section type="Head" level="3" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="3" hidden="" page_break="" can_break="" pattern="1">
<groupby>DATACOMP</groupby>
<prescript description="H3 PRESCRIPT">MESSAGE RESET,F3.103</prescript>
</section>
<section type="Body" pattern="1" />
<section type="Body" level="1" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="" hidden="" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="1" hidden="" height="2" page_break="" can_break="" pattern="1">
<condition>NUMREG != 0</condition>
<font face="Arial" size="8" />
<field x="1" type="Data" width="10" pattern="1">
<field x="1" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<source>DATACOMP</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE COPY,F3.131</postscript>
</field>
<field x="11.5" type="Numero" align="right" link="107.NUMREG" width="6" pattern="1">
<field x="11.5" deactivated="" type="Numero" hidden="" align="right" link="107.NUMREG" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="">
<source>NUMREG</source>
</field>
<field x="17.5" type="Testo" align="center" width="1" pattern="1" text="&#2F;" />
<field x="18.5" type="Numero" align="right" width="3" pattern="1">
<field x="18.5" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="">
<source>NUMRIG</source>
</field>
<field x="22" type="Stringa" dynamic_height="1" width="20" height="2" pattern="1">
<field x="22" deactivated="" type="Stringa" hidden="" link="" dynamic_height="1" shade_offset="" width="20" codval="" height="2" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" size="8" />
<source>DESCR</source>
</field>
<field x="43" type="Numero" align="right" link="23.NUMREG" width="6" pattern="1">
<field x="43" deactivated="" type="Numero" hidden="" align="right" link="23.NUMREG" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.NUMREGCG</source>
</field>
<field x="50" type="Data" width="10" pattern="1">
<field x="50" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.DATADOC</source>
</field>
<field x="61" type="Stringa" align="right" width="6" pattern="1">
<field x="61" deactivated="" type="Stringa" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.NUMDOC</source>
</field>
<field x="68" type="Stringa" width="3" pattern="1">
<field x="68" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="">
<source>MOVANA.CODCAUS</source>
</field>
<field x="72" type="Stringa" dynamic_height="1" width="20" height="2" pattern="1">
<field x="72" deactivated="" type="Stringa" hidden="" link="" dynamic_height="1" shade_offset="" width="20" codval="" height="2" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" size="8" />
<prescript description="B1.0 PRESCRIPT">MESSAGE ISAMREAD,CAUS,CODCAUS=MOVANA.CODCAUS,DESCR</prescript>
</field>
<field x="93" type="Valuta" align="right" width="13" id="101" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="93" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="101" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>IMPORTO</source>
<prescript description="B1.101 PRESCRIPT">"RMOVANA.SEZIONE" @
"A" =
@ -158,7 +166,7 @@ THEN
<postscript description="B1.101 POSTSCRIPT">MESSAGE ADD,F2.101
</postscript>
</field>
<field x="107" type="Valuta" align="right" width="13" id="102" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="107" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="102" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>IMPORTO</source>
<prescript description="B1.102 PRESCRIPT">"RMOVANA.SEZIONE" @
"D" =
@ -174,83 +182,108 @@ THEN
<postscript description="B1.102 POSTSCRIPT">MESSAGE ADD,F2.102
</postscript>
</field>
<field x="121" type="Valuta" align="right" width="13" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="121" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<postscript description="B1.103 POSTSCRIPT">MESSAGE COPY,F3.103</postscript>
</field>
<field x="136.5" type="Stringa" width="1" id="104" pattern="1">
<field x="136.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="1" codval="" id="104" pattern="1" hide_zero="" text="">
<source>MOV.TIPO</source>
</field>
<field x="137.5" type="Numero" align="right" width="6" id="105" pattern="1" hide_zero="1">
<field x="137.5" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="6" codval="" id="105" pattern="1" hide_zero="1" text="">
<source>MOV.CODCF</source>
</field>
<field x="144" type="Stringa" dynamic_height="1" width="20" height="2" id="106" pattern="1">
<field x="144" deactivated="" type="Stringa" hidden="" link="" dynamic_height="1" shade_offset="" width="20" codval="" height="2" id="106" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" size="8" />
<prescript description="B1.106 PRESCRIPT">MESSAGE ISAMREAD,CLIFO,TIPOCF=#104!CODCF=#105,RAGSOC</prescript>
</field>
<field x="166" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="23" codval="" id="201" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#COSTO</source>
<prescript description="">CA_FORMAT_COSTO</prescript>
</field>
<field x="190" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="23" codval="" id="202" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#COMMESSA</source>
<prescript description="">CA_FORMAT_COMMESSA</prescript>
</field>
<field x="214" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="13" codval="" id="203" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#FASE</source>
<prescript description="">CA_FORMAT_FASE</prescript>
</field>
<field x="228" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="13" codval="" id="204" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<modules>NP</modules>
<source>#CONTSEP</source>
</field>
<field x="242" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="23" codval="" id="205" pattern="1" hide_zero="" text="">
<font italic="1" face="Arial" bold="1" size="8" />
<source>CODCONTO</source>
<prescript description="B1.205 PRESCRIPT">CA_FORMAT_CONTO</prescript>
</field>
</section>
<section type="Foot" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="" hidden="" page_break="" can_break="" pattern="1">
<font face="Arial" size="8" />
<field border="2" x="1" y="0.5" type="Linea" width="167" height="0" pattern="1" />
<field x="143" y="1" type="Testo" width="5" pattern="1" text="Pag." />
<field x="149" y="1" type="Numero" align="right" width="3" pattern="1">
<field border="2" x="1" y="0.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="167" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="143" y="1" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="1" hide_zero="" text="Pag." />
<field x="149" y="1" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="">
<source>#REPORT.PAGE</source>
</field>
</section>
<section type="Foot" level="1" pattern="1">
<field border="1" x="1" y="0.5" type="Linea" width="168" height="0" pattern="1" />
<field x="74" y="1" type="Testo" width="20" pattern="1" text="TOTALI COMMESSA">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="1" hidden="" page_break="" can_break="" pattern="1">
<field border="1" x="1" y="0.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="168" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="74" y="1" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="TOTALI COMMESSA">
<font face="Arial" bold="1" size="9" />
</field>
<field x="92" y="1" type="Valuta" align="right" width="14" id="101" pattern="1" text="###.###.###,@@">
<field x="92" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="101" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Arial" bold="1" size="9" />
</field>
<field x="106" y="1" type="Valuta" align="right" width="14" id="102" pattern="1" text="###.###.###,@@">
<field x="106" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="102" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Arial" bold="1" size="9" />
</field>
<field x="120" y="1" type="Valuta" align="right" width="14" id="103" pattern="1" text="###.###.###,@@">
<field x="120" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="103" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Arial" bold="1" size="9" />
<source>#101-#102</source>
</field>
</section>
<section type="Foot" level="2" height="3.5" pattern="1">
<field border="1" x="1" y="0.25" type="Linea" width="168" height="0" pattern="1" />
<field x="72" y="0.5" type="Testo" width="22" pattern="1" text="Totali periodo:">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="2" hidden="" height="3.5" page_break="" can_break="" pattern="1">
<field border="1" x="1" y="0.25" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="168" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="72" y="0.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="22" codval="" id="" pattern="1" hide_zero="" text="Totali periodo:">
<font face="Arial" bold="1" size="8" />
</field>
<field x="72" y="1.75" type="Testo" width="22" pattern="1" text="Totali progressivi:">
<field x="72" y="1.75" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="22" codval="" id="" pattern="1" hide_zero="" text="Totali progressivi:">
<font face="Arial" bold="1" size="8" />
</field>
<field x="93" y="0.5" type="Valuta" align="right" width="13" id="101" pattern="1" text="###.###.###,@@">
<field x="93" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="101" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Arial" bold="1" size="8" />
<postscript description="F2.101 POSTSCRIPT">MESSAGE ADD,F1.101</postscript>
</field>
<field x="107" y="0.5" type="Valuta" align="right" width="13" id="102" pattern="1" text="###.###.###,@@">
<field x="107" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="102" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Arial" bold="1" size="8" />
<postscript description="F2.102 POSTSCRIPT">MESSAGE ADD,F1.102</postscript>
</field>
<field x="93" y="1.75" type="Valuta" align="right" width="13" id="201" pattern="1" text="###.###.###,@@">
<field x="93" y="1.75" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="201" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Arial" bold="1" size="8" />
<source>#101+#H2.201</source>
</field>
<field x="107" y="1.75" type="Valuta" align="right" width="13" id="202" pattern="1" text="###.###.###,@@">
<field x="107" y="1.75" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="202" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Arial" bold="1" size="8" />
<source>#102+#H2.202</source>
</field>
<field x="121" y="1.75" type="Valuta" align="right" width="13" id="203" pattern="1" text="###.###.###,@@">
<field x="121" y="1.75" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="203" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Arial" bold="1" size="8" />
<source>#201-#202</source>
</field>
</section>
<section type="Foot" level="3" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="3" hidden="" page_break="" can_break="" pattern="1">
<condition>#103 != 0</condition>
<font italic="1" face="Arial" size="8" />
<field x="135" y="0.5" type="Testo" width="2" pattern="1" text="al">
<field x="135" y="0.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="2" codval="" id="" pattern="1" hide_zero="" text="al">
<font italic="1" face="Arial Black" size="7" />
</field>
<field x="119" y="0.5" type="Valuta" align="right" width="15" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="119" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<font italic="1" face="Arial" bold="1" size="8" />
</field>
<field x="137" y="0.5" type="Data" valign="center" width="11" id="131" pattern="1">
<field x="137" y="0.5" deactivated="" type="Data" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="11" codval="" id="131" pattern="1" hide_zero="" text="">
<font italic="1" face="Arial" size="7" />
</field>
</section>

View File

@ -1,7 +1,7 @@
#include <defmask.h>
#include <execp.h>
#include <progind.h>
#include <reprint.h>
#include <repapp.h>
#include <pconti.h>
#include "cdc.h"
@ -26,53 +26,26 @@ class TPrint_bilancio_ca_mask : public TAnal_report_mask
{
protected:
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
const TString& get_report_class() const;
bool test_compatible_report();
bool esistono_riclassificazioni() const;
public:
const TString& get_report_class() const;
TPrint_bilancio_ca_mask();
virtual ~TPrint_bilancio_ca_mask() {}
};
const TString& TPrint_bilancio_ca_mask::get_report_class() const
{
TString& lib = get_tmp_string();
lib = "ca3300";
TString classe;
const char bil = get(F_BILANCIO)[0]; // Verifica o sezioni Contrapposte
const char stp = get(F_TIPOSTAMPA)[0]; // Raffronto o No?
if (bil == 'V')
lib << (stp == 'R' ? 'a' : 'b'); // Verifica
classe = TAnal_report_mask::get_report_class();
classe.cut(6);
if (get(F_BILANCIO) == "V") // Verifica o sezioni Contrapposte
classe << (get(F_TIPOSTAMPA) == "R" ? 'a' : 'b'); // Verifica - Raffronto o No
else
lib << (stp == 'R' ? 'c' : 'd'); // Sezioni contrapposte
return lib;
}
bool TPrint_bilancio_ca_mask::test_compatible_report()
{
const TString& cls = get_report_class();
const TString& name = get(F_REPORT);
bool ok = name.full();
if (ok && name != cls)
{
TReport rep;
ok = rep.load(name);
if (ok)
{
const TString& classe = rep.get_class();
ok = classe == cls;
}
}
if (!ok)
{
set(F_REPORT, cls);
TFilename path = cls;
path.ext("rep");
ok = path.custom_path();
}
return ok;
classe << (get(F_TIPOSTAMPA) == "R" ? 'c' : 'd'); // Sezioni contrapposte - Raffronto o No
return get_tmp_string() = classe;
}
bool TPrint_bilancio_ca_mask::esistono_riclassificazioni() const
@ -85,28 +58,13 @@ bool TPrint_bilancio_ca_mask::on_field_event(TOperable_field& o, TField_event e,
{
switch (o.dlg())
{
case DLG_PRINT:
if (e == fe_button)
{
main_app().print();
return false;
}
break;
case DLG_PREVIEW:
if (e == fe_button)
{
main_app().preview();
return false;
}
break;
case F_ANNO:
case F_BILANCIO:
case F_STAMPA:
case F_TIPOSTAMPA:
if (e == fe_modify || (e == fe_init && o.dlg() == F_ANNO))
{
test_compatible_report();
set_report_class();
bool enable_from = false, enable_to = false;
if (get_int(F_STAMPA) == 1) // Stampa per data limite
@ -153,24 +111,6 @@ bool TPrint_bilancio_ca_mask::on_field_event(TOperable_field& o, TField_event e,
}
}
break;
case F_REPORT:
if (e == fe_button)
{
const TString8 lib = get_report_class();
TFilename path = o.get();
if (select_custom_file(path, "rep", lib))
{
path = path.name();
path.ext("");
o.set(path);
}
} else
if (e == fe_close)
{
if (!test_compatible_report())
return error_box("Impossibile trovare un report compatibile");
}
break;
case F_PRE1:
case F_PRE2:
case F_PRE3:
@ -288,10 +228,12 @@ class TReport_bilancio_verifica : public TAnal_report
{
protected:
virtual bool set_recordset(const TString& sql);
virtual const char * get_excel_header_section() { return "H0|H1"; }
virtual void set_dbase_fixed_fields(bool on);
public:
void set_filter(const TMask& msk, int row);
TReport_bilancio_verifica(const char* name);
TReport_bilancio_verifica() { }
};
bool TReport_bilancio_verifica::set_recordset(const TString& /* sql */)
@ -300,6 +242,15 @@ bool TReport_bilancio_verifica::set_recordset(const TString& /* sql */)
return TReport::set_recordset(rset);
}
void TReport_bilancio_verifica::set_dbase_fixed_fields(bool on)
{
field("B1.501")->show(on);
field("B1.502")->show(on);
field("B1.503")->show(on);
field("B1.504")->show(on);
}
void TReport_bilancio_verifica::set_filter(const TMask& m, int row)
{
TString da_conto, a_conto, costo, commessa, fase;
@ -373,13 +324,10 @@ void TReport_bilancio_verifica::set_filter(const TMask& m, int row)
fase = rel.curr().get(RMOVANA_CODFASE);
TPconana_recordset* rset = (TPconana_recordset*)recordset();
if (rset != NULL)
rset->set_filter(tc, da_conto, a_conto, costo, commessa, fase, dal, al, tipimov, movimentati, nonnulli);
}
const TString & contsep = m.get(F_CONTSEP);
TReport_bilancio_verifica::TReport_bilancio_verifica(const char* name)
{
load(name);
if (rset != nullptr)
rset->set_filter(tc, da_conto, a_conto, costo, commessa, fase, contsep, dal, al, tipimov, movimentati, nonnulli);
}
////////////////////////////////////////////////////////
@ -418,7 +366,7 @@ class TRecordset_sezioni_contrapposte : public TRecordset
TDate _da_data, _a_data;
word _tipimov;
bool _movimentati, _nonnulli;
TString _daconto, _aconto;
TString _daconto, _aconto, _contsep;
TString4 _tipostampa;
bool _print_ap;
@ -449,7 +397,7 @@ public:
virtual const TVariant& get(unsigned int column) const { return NULL_VARIANT; }
virtual const TVariant& get(const char* field) const;
void set_filter(char piano, const char* costo, const char* commessa, const char* fase,
void set_filter(char piano, const char* costo, const char* commessa, const char* fase, const char * contsep,
const TDate& dal, const TDate& al, word tipimov, bool movimentati, bool nonnulli,
bool print_ap, const TString& daconto, const TString& aconto);
char tipo_piano() const { return _tipo_piano; }
@ -473,7 +421,7 @@ bool TRecordset_sezioni_contrapposte::move_to(TRecnotype pos)
return _pos < items();
}
void TRecordset_sezioni_contrapposte::set_filter(char piano, const char* costo, const char* commessa, const char* fase,
void TRecordset_sezioni_contrapposte::set_filter(char piano, const char* costo, const char* commessa, const char* fase, const char * contsep,
const TDate& dal, const TDate& al, word tipimov, bool movimentati,
bool nonnulli, bool print_ap, const TString& daconto, const TString& aconto)
{
@ -505,6 +453,7 @@ void TRecordset_sezioni_contrapposte::set_filter(char piano, const char* costo,
_daconto = daconto;
_aconto = aconto;
_contsep = contsep;
}
TArray& TRecordset_sezioni_contrapposte::conti(int indbil)
@ -536,7 +485,7 @@ void TRecordset_sezioni_contrapposte::add_conto(const TString& b,
a.insert(sc, n);
}
void TRecordset_sezioni_contrapposte::add_conto(int indbil, const TString& b)
void TRecordset_sezioni_contrapposte::add_conto(int indbil, const TString& b) // qui
{
if (indbil >= 1 && indbil <= 4)
{
@ -605,6 +554,9 @@ void TRecordset_sezioni_contrapposte::add_conto(int indbil, const TString& b)
}
select << (select.full() ? "&&" : "") << "(TRIM(" << SALDANA_FASE << "[1," << len << "])==\"" << _filter.fase() << "\") ";
}
if (_contsep.full())
select << (select.full() ? "&&" : "") << "(" << SALDANA_CONTSEP << _contsep << "\") ";
if (select.full())
query << "SELECT " << select;
query << "\nFROM " << SALDANA_CONTO << "='" << b << "' ";
@ -646,8 +598,8 @@ void TRecordset_sezioni_contrapposte::add_conto(int indbil, const TString& b)
bill.set_fase(c.blank() ? "~" : c);
const TSaldanal& wsp = ca_saldo(bill, _da_data, _a_data, _saldanal_preventivi);
const TSaldanal& wsc = ca_saldo(bill, _da_data, _a_data, _saldanal_consuntivo);
const TSaldanal& wsp = ca_saldo(bill, _contsep, _da_data, _a_data, _saldanal_preventivi);
const TSaldanal& wsc = ca_saldo(bill, _contsep, _da_data, _a_data, _saldanal_consuntivo);
sp += wsp;
sc += wsc;
@ -675,7 +627,7 @@ void TRecordset_sezioni_contrapposte::add_conto(int indbil, const TString& b)
c = code.get();
bill.set_fase(c.blank() ? "~" : c);
const TSaldanal& wsa = ca_saldo(bill, _da_data, _a_data, _tipimov);
const TSaldanal& wsa = ca_saldo(bill, _contsep, _da_data, _a_data, _tipimov);
sa += wsa;
}
@ -691,8 +643,8 @@ void TRecordset_sezioni_contrapposte::add_conto(int indbil, const TString& b)
{
if ((_tipimov & _saldanal_qualsiasi) == _saldanal_qualsiasi) // Bilancio a sezioni contrapposte di raffronto
{
const TSaldanal sp = ca_saldo(bill, _da_data, _a_data, _saldanal_preventivi);
const TSaldanal sc = ca_saldo(bill, _da_data, _a_data, _saldanal_consuntivo);
const TSaldanal sp = ca_saldo(bill, _contsep, _da_data, _a_data, _saldanal_preventivi);
const TSaldanal sc = ca_saldo(bill, _contsep, _da_data, _a_data, _saldanal_consuntivo);
if (!sp._fin.is_zero() || !sc._fin.is_zero())
{
@ -704,7 +656,7 @@ void TRecordset_sezioni_contrapposte::add_conto(int indbil, const TString& b)
}
else
{
const TSaldanal sa = ca_saldo(bill, _da_data, _a_data, _tipimov);
const TSaldanal sa = ca_saldo(bill, _contsep, _da_data, _a_data, _tipimov);
if (!sa._fin.is_zero())
{
@ -771,6 +723,7 @@ void TRecordset_sezioni_contrapposte::requery()
{
// Crea recordset del piano dei conti appropriato
TString query = "USE PCON";
if (_tipo_piano == 'A')
{
query << "ANA";
@ -961,11 +914,13 @@ const TVariant& TRecordset_sezioni_contrapposte::get_fld(const TArray& a, int r,
const TVariant& TRecordset_sezioni_contrapposte::get(const char* field) const
{
const TFixed_string fld(field);
if (*field == '#')
{
if (fld == "#CMSCDC")
{
const TMultilevel_code_info& info = ca_multilevel_code_info(LF_FASI);
switch (info.parent())
{
case LF_CDC : return get_tmp_var() = _filter.costo();
@ -973,21 +928,32 @@ const TVariant& TRecordset_sezioni_contrapposte::get(const char* field) const
default : return NULL_VARIANT;
}
}
else
if (fld == "#COSTO")
return get_tmp_var() = _filter.costo();
else
if (fld == "#COMMESSA")
return get_tmp_var() = _filter.commessa();
else
if (fld == "#FASE")
return get_tmp_var() = _filter.fase();
else
if (fld == "#CONTSEP")
return get_tmp_var() = _contsep;
else
if (fld == "#DATA_INIZIALE")
return get_tmp_var() = _da_data;
else
if (fld == "#DATA_FINALE")
return get_tmp_var() = _a_data;
else
if (fld == "#TIPOPIANO")
{
TString4 tp; tp << tipo_piano();
return get_tmp_var() = tp;
}
else
if (fld == "#TIPOSTAMPA")
return get_tmp_var() = _tipostampa;
}
@ -1000,6 +966,7 @@ const TVariant& TRecordset_sezioni_contrapposte::get(const char* field) const
}
const bool left = fld.starts_with("LEFT:");
if (_pos < items_cr())
{
if (left)
@ -1032,10 +999,12 @@ class TReport_bilancio_sezioni_contrapposte : public TAnal_report
protected:
virtual bool set_recordset(const TString& sql);
virtual void msg_format_conto(TVariant_stack& stack);
virtual const char * get_excel_header_section() { return "H0|H1|H2"; }
virtual void set_dbase_fixed_fields(bool on);
public:
void set_filter(const TMask& msk, int row);
TReport_bilancio_sezioni_contrapposte(const char* name) { load(name); }
TReport_bilancio_sezioni_contrapposte() { }
};
bool TReport_bilancio_sezioni_contrapposte::set_recordset(const TString& /* sql */)
@ -1044,6 +1013,14 @@ bool TReport_bilancio_sezioni_contrapposte::set_recordset(const TString& /* sql
return TReport::set_recordset(rset);
}
void TReport_bilancio_sezioni_contrapposte::set_dbase_fixed_fields(bool on)
{
field("B1.501")->show(on);
field("B1.502")->show(on);
field("B1.503")->show(on);
field("B1.504")->show(on);
}
void TReport_bilancio_sezioni_contrapposte::msg_format_conto(TVariant_stack& stack)
{
const TRecordset_sezioni_contrapposte* rset = (TRecordset_sezioni_contrapposte*)recordset();
@ -1109,7 +1086,9 @@ void TReport_bilancio_sezioni_contrapposte::set_filter(const TMask& m, int row)
}
TRecordset_sezioni_contrapposte* recset = new TRecordset_sezioni_contrapposte(tipo);
recset->set_filter(tipo, costo, commessa, fase, dal, al, tipimov, movimentati, nonnulli, print_ap, daconto, aconto);
const TString & contsep = m.get(F_CONTSEP);
recset->set_filter(tipo, costo, commessa, fase, contsep, dal, al, tipimov, movimentati, nonnulli, print_ap, daconto, aconto);
TAnal_report::set_recordset(recset);
};
@ -1117,9 +1096,10 @@ void TReport_bilancio_sezioni_contrapposte::set_filter(const TMask& m, int row)
// APPLICAZIONE
////////////////////////////////////////////////////////
class TPrint_bilancio_ca : public TSkeleton_application
class TPrint_bilancio_ca : public TReport_application
{
TPrint_bilancio_ca_mask * _mask;
TArray _reps;
protected:
virtual const char * extra_modules() const {return "cm";} //funziona anche con autorizzazione CM
@ -1127,70 +1107,136 @@ protected:
bool commessa_buona(const TRectype& cms, const TDate& dadata, const TDate& adata) const;
bool buon_cdc(const TRectype& cdc, const TDate& dadata, const TDate& adata) const;
void fill_sheet(int livello);
void bilancio_a_sezioni_contrapposte(const bool stampa);
void bilancio_di_verifica(const bool stampa);
void bilancio_a_sezioni_contrapposte(TReport_book & book, TReport & rep, export_type type);
void bilancio_di_verifica(TReport_book & book, TReport & rep, export_type type);
// @cmember ritorna la maschera
virtual TAutomask & get_mask();
virtual TTrec * get_dbase_recdesc(TReport & rep, const TAutomask & mask);
// @cmember Ritorna il report
virtual TReport & get_report(const TAutomask & m);
virtual void execute_print(TReport_book & book, TAutomask & mask, TReport & rep, export_type type = _export_printer);
virtual const char * output_name(const TAutomask & mask, const TReport & rep) const { return "bilancio"; }
virtual bool user_destroy();
void print_or_preview(const bool stampa);
virtual void print();
virtual void preview();
virtual void main_loop();
public:
TPrint_bilancio_ca() : _mask(nullptr) {}
~TPrint_bilancio_ca() {}
};
void TPrint_bilancio_ca::bilancio_a_sezioni_contrapposte(const bool stampa)
TReport & TPrint_bilancio_ca::get_report(const TAutomask & m)
{
TReport_bilancio_sezioni_contrapposte rep(_mask->get(F_REPORT));
TReport * r = nullptr;
const int rows = _mask->sfield(F_RIGHE).items();
TProgind* pi = rows > 1 ? new TProgind(rows, TR("Bilancio a sezioni contrapposte")) : NULL;
TReport_book book;
for (int i = 0; i < rows; i++)
if (m.get(F_BILANCIO) == "C")
{
if (pi && !pi->addstatus(1))
break;
rep.set_filter(*_mask, i);
book.add(rep);
if (_reps.objptr(0) == nullptr)
_reps.add(new TReport_bilancio_sezioni_contrapposte, 0);
r = (TReport_bilancio_sezioni_contrapposte *) _reps.objptr(0);
}
if (pi) delete pi;
if (stampa)
book.print(); //stampa il book dei report
else
book.preview(); //anteprima
{
if (_reps.objptr(1) == nullptr)
_reps.add(new TReport_bilancio_verifica, 1);
r = (TReport_bilancio_verifica *)_reps.objptr(1);
}
r->load(_mask->get(DLG_REPORT));
return *r;
}
void TPrint_bilancio_ca::bilancio_di_verifica(const bool stampa)
TAutomask & TPrint_bilancio_ca::get_mask()
{
TReport_bilancio_verifica rep(_mask->get(F_REPORT));
const int rows = _mask->sfield(F_RIGHE).items();
TProgind* pi = rows > 1 ? new TProgind(rows, TR("Bilancio di verifica")) : NULL;
TReport_book book;
for (int i = 0; i < rows; i++)
{
if (pi && !pi->addstatus(1))
break;
rep.set_filter(*_mask, i);
book.add(rep);
if (_mask == nullptr)
_mask = new TPrint_bilancio_ca_mask;
return *_mask;
}
if (pi) delete pi;
if (stampa)
book.print(); //stampa il book dei report
TTrec * TPrint_bilancio_ca::get_dbase_recdesc(TReport & rep, const TAutomask & mask)
{
TTrec * desc = new TTrec;
TToken_string def;
TRectype cms(LF_COMMESSE);
TRectype fasi(LF_FASI);
TRectype cdc(LF_CDC);
TRectype rmovana(LF_RMOVANA);
TRectype movana(LF_MOVANA);
const bool sezioni_contrapposte = mask.get(F_BILANCIO) == "C";
desc->add_fielddef(rmovana.rec_des(), RMOVANA_CODCONTO);
desc->add_fielddef(rmovana.rec_des(), RMOVANA_DESCR);
if (sezioni_contrapposte)
{
desc->add_fielddef("SALDO", _realfld, 18, 2);
desc->add_fielddef("SEZIONE", _alfafld, 1);
desc->add_fielddef(rmovana.rec_des(), RMOVANA_CODCONTO);
desc->set_name("CODCONTO1");
desc->add_fielddef(rmovana.rec_des(), RMOVANA_DESCR);
desc->set_name("DESCR1");
desc->add_fielddef("SALDO1", _realfld, 18, 2);
desc->add_fielddef("SEZIONE1", _alfafld, 1);
if (mask.get(F_TIPOSTAMPA) == "R")
{
desc->add_fielddef(rmovana.rec_des(), RMOVANA_CODCONTO);
desc->set_name("CODCONTO2");
desc->add_fielddef(rmovana.rec_des(), RMOVANA_DESCR);
desc->set_name("DESCR2");
desc->add_fielddef("SALDO2", _realfld, 18, 2);
desc->add_fielddef("SEZIONE2", _alfafld, 1);
desc->add_fielddef(rmovana.rec_des(), RMOVANA_CODCONTO);
desc->set_name("CODCONTO3");
desc->add_fielddef(rmovana.rec_des(), RMOVANA_DESCR);
desc->set_name("DESCR3");
desc->add_fielddef("SALDO3", _realfld, 18, 2);
desc->add_fielddef("SEZIONE3", _alfafld, 1);
}
}
else
book.preview(); //anteprima
{
desc->add_fielddef("DAREI", _realfld, 18, 2);
desc->add_fielddef("AVEREI", _realfld, 18, 2);
desc->add_fielddef("PDARE", _realfld, 18, 2);
desc->add_fielddef("PAVERE", _realfld, 18, 2);
desc->add_fielddef("DAREF", _realfld, 18, 2);
desc->add_fielddef("AVEREF", _realfld, 18, 2);
}
desc->add_fielddef(cdc.rec_des(), CDC_CODCOSTO);
desc->add_fielddef(cms.rec_des(), COMMESSE_CODCMS);
desc->add_fielddef(fasi.rec_des(), FASI_CODFASE);
desc->add_fielddef(movana.rec_des(), MOVANA_CONTSEP);
TToken_string keydef(CDC_CODCOSTO, '+');
keydef.add(COMMESSE_CODCMS);
keydef.add(FASI_CODFASE);
keydef.add(RMOVANA_CODCONTO);
desc->add_keydef(keydef, true);
return desc;
}
void TPrint_bilancio_ca::print()
void TPrint_bilancio_ca::bilancio_a_sezioni_contrapposte(TReport_book & book, TReport & rep, export_type type)
{
print_or_preview(true);
const int rows = _mask->sfield(F_RIGHE).items();
TProgress_monitor pi(rows, TR("Bilancio a sezioni contrapposte"));
for (int i = 0; pi.add_status() && i < rows; i++)
{
((TReport_bilancio_sezioni_contrapposte &)rep).set_filter(*_mask, i);
book.add(rep, type);
}
}
void TPrint_bilancio_ca::preview()
void TPrint_bilancio_ca::bilancio_di_verifica(TReport_book & book, TReport & rep, export_type type)
{
print_or_preview(false);
const int rows = _mask->sfield(F_RIGHE).items();
TProgress_monitor pi(rows, TR("Bilancio di verifica"));
for (int i = 0; pi.add_status() && i < rows; i++)
{
((TReport_bilancio_verifica &)rep).set_filter(*_mask, i);
book.add(rep, type);
}
}
// Anche l'occhio vuole la sua parte
@ -1297,7 +1343,7 @@ void TPrint_bilancio_ca::fill_sheet(int livello)
}
}
void TPrint_bilancio_ca::print_or_preview(const bool stampa)
void TPrint_bilancio_ca::execute_print(TReport_book & book, TAutomask & mask, TReport & rep, export_type type)
{
TSheet_field& sf = _mask->sfield(F_RIGHE);
@ -1311,22 +1357,20 @@ void TPrint_bilancio_ca::print_or_preview(const bool stampa)
}
else
fill_sheet(completa);
rep.set_export_sections(type);
if (_mask->get(F_BILANCIO) == "C")
bilancio_a_sezioni_contrapposte(stampa);
bilancio_a_sezioni_contrapposte(book, rep, type);
else
bilancio_di_verifica(stampa);
bilancio_di_verifica(book, rep, type);
rep.reset_export_sections();
if (empty_sheet)
sf.destroy();
}
void TPrint_bilancio_ca::main_loop()
bool TPrint_bilancio_ca::user_destroy()
{
_mask = new TPrint_bilancio_ca_mask;
_mask->run();
delete _mask;
_mask = NULL;
safe_delete(_mask);
return TReport_application::user_destroy();
}
int ca3300(int argc, char* argv[])

View File

@ -15,6 +15,8 @@
#define F_TIPOSTAMPA 314
#define F_PRINT_CONTO_ECON 315
#define F_COMPLETA 316
#define F_CONTSEP 317
#define F_DESCONTSEP 318
//campi generati dai piani dei conti
#define F_PIANO 319
@ -53,7 +55,6 @@
#define F_PANDES4_FIN 368
#define F_SELECT 394
#define F_REPORT 395
//sheet di pagina 2
#define F_RIGHE 400

View File

@ -1,24 +1,14 @@
#include "ca3300.h"
#define ALL_EXPORT
#define CLASS_NAME "ca3300a"
TOOLBAR "topbar" 0 0 0 2
#include <aprintbar.h>
ENDPAGE
TOOLBAR "bottombar" 0 -2 0 1
STRING F_REPORT 256 66
BEGIN
PROMPT 1 -2 "Report "
FLAGS "B"
CHECKTYPE REQUIRED
END
STRING DLG_PROFILE 50
BEGIN
PROMPT 1 -1 "Profilo "
PSELECT
END
TOOLBAR "bottombar" 0 -3 0 1
#include <bprintbar.h>
ENDPAGE
PAGE "Stampa bilancio" 0 0 0 2
@ -132,9 +122,35 @@ BEGIN
PROMPT 2 9 "Stampa situazione conto economico"
END
STRING F_CONTSEP 6
BEGIN
PROMPT 1 10 "Cont. separata "
USE &NPENT
INPUT CODTAB F_CONTSEP
DISPLAY "Codice@6" CODTAB
DISPLAY "Descrizione@50" S0
OUTPUT F_CONTSEP CODTAB
OUTPUT F_DESCONTSEP S0
CHECKTYPE NORMAL
FIELD CONTSEP
MODULE NP
END
STRING F_DESCONTSEP 50 48
BEGIN
PROMPT 26 10 ""
USE &NPENT KEY 2
INPUT S0 F_DESCONTSEP
DISPLAY "Descrizione@50" S0
DISPLAY "Codice@6" CODTAB
COPY OUTPUT F_CONTSEP
CHECKTYPE NORMAL
MODULE NP
END
SPREADSHEET F_RIGHE -1 -1
BEGIN
PROMPT 0 11 ""
PROMPT 0 12 ""
ITEM "Cdc 1"
ITEM "Cdc 2"
ITEM "Cdc 3"

View File

@ -1,85 +1,97 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report name="ca3300a" orientation="2" lpi="8" command="ca3 -2" class="ca3300a">
<report libraries="" page_merge="" save_printer="" name="ca3300a" use_printer_font="" orientation="2" page_split="" lpi="8" command="ca3 -2" class="ca3300a">
<description>Bilancio normale di verifica (raffronto)</description>
<font face="Courier New" size="8" />
<section type="Head">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="" hidden="" page_break="" can_break="" pattern="1">
<font face="Arial" bold="1" size="8" />
<field border="1" x="1" y="0.25" type="Linea" width="168" height="0" pattern="1" />
<field x="84.5" y="0.5" type="Testo" align="center" width="25" pattern="1" text="SALDO INIZIALE" />
<field x="112" y="0.5" type="Testo" align="center" width="27" pattern="1" text="MOVIMENTI DEL PERIODO" />
<field x="142" y="0.5" type="Testo" align="center" width="25" pattern="1" text="SALDO FINALE" />
<field x="1" y="1.25" type="Testo" width="10" pattern="1" text="Conto" />
<field x="31" y="1.25" type="Testo" width="15" pattern="1" text="Descrizione" />
<field x="78" y="1.75" type="Testo" align="right" width="13" pattern="1" text="Dare" />
<field x="92" y="1.75" type="Testo" align="right" width="13" pattern="1" text="Avere" />
<field x="107" y="1.75" type="Testo" align="right" width="13" pattern="1" text="Dare" />
<field x="121" y="1.75" type="Testo" align="right" width="13" pattern="1" text="Avere" />
<field x="136" y="1.75" type="Testo" align="right" width="13" pattern="1" text="Dare" />
<field x="150" y="1.75" type="Testo" align="right" width="13" pattern="1" text="Avere" />
<field border="1" x="1" y="2.75" type="Linea" width="168" height="0" pattern="1" />
<field border="1" x="1" y="0.25" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="168" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="84.5" y="0.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="25" codval="" id="" pattern="1" hide_zero="" text="SALDO INIZIALE" />
<field x="112" y="0.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="27" codval="" id="" pattern="1" hide_zero="" text="MOVIMENTI DEL PERIODO" />
<field x="142" y="0.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="25" codval="" id="" pattern="1" hide_zero="" text="SALDO FINALE" />
<field x="1" y="1.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Conto" />
<field x="31" y="1.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Descrizione" />
<field x="78" y="1.75" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="Dare" />
<field x="92" y="1.75" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="Avere" />
<field x="107" y="1.75" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="Dare" />
<field x="121" y="1.75" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="Avere" />
<field x="136" y="1.75" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="Dare" />
<field x="150" y="1.75" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="Avere" />
<field border="1" x="1" y="2.75" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="168" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
</section>
<section type="Head" level="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="1" hidden="" page_break="" can_break="" pattern="1">
<font face="Arial" bold="1" size="9" />
<prescript description="H1 PRESCRIPT">"F1" AZZERA_TOTALI</prescript>
<field border="1" radius="100" x="40.34" y="0.66" type="Rettangolo" shade_offset="25" width="80" height="3.5" />
<field x="53.5" y="1.5" type="Testo" valign="center" width="35" height="2" pattern="1" text="BILANCIO DI VERIFICA">
<field border="1" radius="100" x="40.34" y="0.66" deactivated="" type="Rettangolo" hidden="" link="" dynamic_height="" shade_offset="25" width="80" codval="" height="3.5" id="" pattern="2" hide_zero="" text="" />
<field x="53.5" y="1.5" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="35" codval="" height="2" id="" pattern="1" hide_zero="" text="BILANCIO DI VERIFICA">
<font face="Arial" bold="1" size="14" />
</field>
<field x="88.5" y="1.5" type="Testo" valign="center" width="20" height="2" pattern="1" text="RAFFRONTO">
<field x="88.5" y="1.5" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" height="2" id="" pattern="1" hide_zero="" text="RAFFRONTO">
<font face="Arial" bold="1" size="14" />
<source>#TIPOSTAMPA</source>
</field>
<field x="1" y="4.75" type="Stringa" width="50" height="1.25" pattern="1">
<field x="1" y="4.75" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" height="1.25" id="" pattern="1" hide_zero="" text="">
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="71" y="5" type="Testo" width="20" height="1.25" pattern="1" text="Data di stampa:">
<field x="71" y="5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" height="1.25" id="" pattern="1" hide_zero="" text="Data di stampa:">
<font face="Arial" size="9" />
</field>
<field x="91" y="5" type="Data" width="15" height="1.25" pattern="1">
<field x="91" y="5" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" height="1.25" id="" pattern="1" hide_zero="" text="">
<source>#SYSTEM.DATE</source>
</field>
<field x="1" y="6.25" type="Testo" width="20" pattern="1" text="Movimenti dal:">
<field x="1" y="6.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="Movimenti dal:">
<font face="Arial" size="9" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DESCRIZ</prescript>
</field>
<field x="21.19" y="6.25" type="Data" width="15" pattern="1">
<field x="21.19" y="6.25" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="">
<source>#DATA_INIZIALE</source>
</field>
<field x="38.19" y="6.25" type="Testo" width="4" pattern="1" text="al:">
<field x="38.19" y="6.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="1" hide_zero="" text="al:">
<font face="Arial" size="9" />
</field>
<field x="43.19" y="6.25" type="Data" width="15" pattern="1">
<field x="43.19" y="6.25" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="">
<source>#DATA_FINALE</source>
</field>
<field x="1.19" y="7.5" type="Testo" width="20" pattern="1" text="Centro di costo:">
<field x="1.19" y="7.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="Centro di costo:">
<font face="Arial" size="9" />
</field>
<field x="21.19" y="7.5" type="Stringa" width="24" pattern="1">
<field x="46.19" y="7.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="70" codval="" id="" pattern="1" hide_zero="" text="">
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,CDC,CODCOSTO=#101,DESCRIZ</prescript>
</field>
<field x="1.19" y="8.75" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="Commessa:">
<font face="Arial" size="9" />
</field>
<field x="46.19" y="8.75" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="70" codval="" id="" pattern="1" hide_zero="" text="">
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#102,DESCRIZ</prescript>
</field>
<field x="1.19" y="10" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="Fase:">
<font face="Arial" size="9" />
</field>
<field x="46.19" y="10" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="70" codval="" id="" pattern="1" hide_zero="" text="">
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,FASI,CODCMSFAS=#CMSCDC!CODFASE=#103,DESCRIZ</prescript>
</field>
<field x="1" y="11.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="Contabilit&#E0; separata:">
<font face="Arial" size="9" />
<modules>NP</modules>
</field>
<field x="46.19" y="11.25" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="70" codval="" id="" pattern="1" hide_zero="" text="">
<modules>NP</modules>
<prescript description="H1.0 PRESCRIPT">MESSAGE TABLEREAD,&#26;NPENT,#104,S0</prescript>
</field>
<field x="21.19" y="7.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="24" codval="" id="101" pattern="1" hide_zero="" text="">
<source>#COSTO</source>
</field>
<field x="46.19" y="7.5" type="Stringa" width="70" pattern="1">
<prescript>MESSAGE ISAMREAD,CDC,CODCOSTO=#COSTO,DESCRIZ</prescript>
</field>
<field x="1.19" y="8.75" type="Testo" width="20" pattern="1" text="Commessa:">
<font face="Arial" size="9" />
</field>
<field x="21.19" y="8.75" type="Stringa" width="24" pattern="1">
<field x="21.19" y="8.75" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="24" codval="" id="102" pattern="1" hide_zero="" text="">
<source>#COMMESSA</source>
</field>
<field x="46.19" y="8.75" type="Stringa" width="70" pattern="1">
<prescript>MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DESCRIZ</prescript>
</field>
<field x="1.19" y="10" type="Testo" width="20" pattern="1" text="Fase:">
<font face="Arial" size="9" />
</field>
<field x="21.19" y="10" type="Stringa" width="13" pattern="1">
<field x="21.19" y="10" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="103" pattern="1" hide_zero="" text="">
<source>#FASE</source>
</field>
<field x="46.19" y="10" type="Stringa" width="70" pattern="1">
<prescript>MESSAGE ISAMREAD,FASI,CODCMSFAS=#CMSCDC!CODFASE=#FASE,DESCRIZ</prescript>
<field x="21" y="11.25" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="104" pattern="1" hide_zero="" text="">
<modules>NP</modules>
<source>#CONTSEP</source>
</field>
</section>
<section type="Head" level="2">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="2" hidden="" page_break="" can_break="" pattern="1">
<condition>CODCONTO:2!=""</condition>
<groupby>CODCONTO:1</groupby>
<prescript description="H2 PRESCRIPT">"CODCONTO:1" @
@ -90,7 +102,7 @@
"F2" AZZERA_TOTALI
</prescript>
</section>
<section type="Head" level="3">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="3" hidden="" page_break="" can_break="" pattern="1">
<condition>CODCONTO:3!=""</condition>
<groupby>CODCONTO:2</groupby>
<prescript description="H3 PRESCRIPT">"CODCONTO:2" @
@ -100,7 +112,7 @@
"F3" AZZERA_TOTALI</prescript>
</section>
<section type="Head" level="4">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="4" hidden="" page_break="" can_break="" pattern="1">
<condition>CODCONTO:4 != ""</condition>
<groupby>CODCONTO:3</groupby>
<prescript description="H4 PRESCRIPT">"CODCONTO:3" @
@ -110,217 +122,237 @@
"F4" AZZERA_TOTALI</prescript>
</section>
<section type="Body" />
<section type="Body" level="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="" hidden="" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="1" hidden="" page_break="" can_break="" pattern="1">
<font face="Arial" size="8" />
<field type="Stringa" width="24" id="101" pattern="1">
<field deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="24" codval="" id="101" pattern="1" hide_zero="" text="">
<source>CODCONTO</source>
<prescript description="B1.101 PRESCRIPT">CA_FORMAT_CONTO</prescript>
</field>
<field x="25" type="Stringa" width="50" id="102" pattern="1">
<field x="25" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="102" pattern="1" hide_zero="" text="">
<source>DESCR</source>
</field>
<field x="78" type="Valuta" align="right" width="13" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="78" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:INI_DAREP</source>
<postscript description="B1.103 POSTSCRIPT">MESSAGE ADD,F2.103|ADD,F3.103|ADD,F4.103
</postscript>
</field>
<field x="92" type="Valuta" align="right" width="13" id="104" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="92" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="104" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:INI_AVEREP</source>
<postscript description="B1.104 POSTSCRIPT">MESSAGE ADD,F2.104|ADD,F3.104|ADD,F4.104</postscript>
</field>
<field x="107" type="Valuta" align="right" width="13" id="105" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="107" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="105" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:MOV_DAREP</source>
<postscript description="B1.105 POSTSCRIPT">MESSAGE ADD,F2.105|ADD,F3.105|ADD,F4.105</postscript>
</field>
<field x="121" type="Valuta" align="right" width="13" id="106" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="121" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="106" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:MOV_AVEREP</source>
<postscript description="B1.106 POSTSCRIPT">MESSAGE ADD,F2.106|ADD,F3.106|ADD,F4.106</postscript>
</field>
<field x="136" type="Valuta" align="right" width="13" id="107" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="136" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="107" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:FIN_DAREP</source>
<postscript description="B1.107 POSTSCRIPT">MESSAGE ADD,F2.107|ADD,F3.107|ADD,F4.107</postscript>
</field>
<field x="150" type="Valuta" align="right" width="13" id="108" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="150" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="108" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:FIN_AVEREP</source>
<postscript description="B1.108 POSTSCRIPT">MESSAGE ADD,F2.108|ADD,F3.108|ADD,F4.108</postscript>
</field>
<field x="78" y="1" type="Valuta" align="right" width="13" id="203" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="78" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="203" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:INI_DAREC</source>
<postscript description="B1.203 POSTSCRIPT">MESSAGE ADD,F2.103|ADD,F3.103|ADD,F4.103
</postscript>
</field>
<field x="92" y="1" type="Valuta" align="right" width="13" id="204" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="92" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="204" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:INI_AVEREC</source>
<postscript description="B1.204 POSTSCRIPT">MESSAGE ADD,F2.104|ADD,F3.104|ADD,F4.104</postscript>
</field>
<field x="107" y="1" type="Valuta" align="right" width="13" id="205" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="107" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="205" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:MOV_DAREC</source>
<postscript description="B1.205 POSTSCRIPT">MESSAGE ADD,F2.105|ADD,F3.105|ADD,F4.105</postscript>
</field>
<field x="121" y="1" type="Valuta" align="right" width="13" id="206" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="121" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="206" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:MOV_AVEREC</source>
<postscript description="B1.206 POSTSCRIPT">MESSAGE ADD,F2.106|ADD,F3.106|ADD,F4.106</postscript>
</field>
<field x="136" y="1" type="Valuta" align="right" width="13" id="207" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="136" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="207" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:FIN_DAREC</source>
<postscript description="B1.207 POSTSCRIPT">MESSAGE ADD,F2.107|ADD,F3.107|ADD,F4.107</postscript>
</field>
<field x="150" y="1" type="Valuta" align="right" width="13" id="208" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="150" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="208" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:FIN_AVEREC</source>
<postscript description="B1.208 POSTSCRIPT">MESSAGE ADD,F2.108|ADD,F3.108|ADD,F4.108</postscript>
</field>
<field x="78" y="2" type="Valuta" align="right" width="13" id="303" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="78" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="303" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>#103 + #203</source>
<prescript description="B1.303 PRESCRIPT">303 DARE_AVERE</prescript>
<postscript description="B1.303 POSTSCRIPT">MESSAGE ADD,F2.303|ADD,F3.303|ADD,F4.303
</postscript>
</field>
<field x="92" y="2" type="Valuta" align="right" width="13" id="304" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="92" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="304" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>#104 + #204</source>
<postscript description="B1.304 POSTSCRIPT">MESSAGE ADD,F2.304|ADD,F3.304|ADD,F4.304</postscript>
</field>
<field x="107" y="2" type="Valuta" align="right" width="13" id="305" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="107" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="305" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>#105 + #205</source>
<prescript description="B1.305 PRESCRIPT">305 DARE_AVERE</prescript>
<postscript description="B1.305 POSTSCRIPT">MESSAGE ADD,F2.305|ADD,F3.305|ADD,F4.305</postscript>
</field>
<field x="121" y="2" type="Valuta" align="right" width="13" id="306" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="121" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="306" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>#106 + #206</source>
<postscript description="B1.306 POSTSCRIPT">MESSAGE ADD,F2.306|ADD,F3.306|ADD,F4.306</postscript>
</field>
<field x="136" y="2" type="Valuta" align="right" width="13" id="307" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="136" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="307" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>#107 + #207</source>
<prescript description="B1.307 PRESCRIPT">307 DARE_AVERE</prescript>
<postscript description="B1.307 POSTSCRIPT">MESSAGE ADD,F2.307|ADD,F3.307|ADD,F4.307</postscript>
</field>
<field x="150" y="2" type="Valuta" align="right" width="13" id="308" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="150" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="308" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>#108 + #208</source>
<postscript description="B1.308 POSTSCRIPT">MESSAGE ADD,F2.308|ADD,F3.308|ADD,F4.308</postscript>
</field>
<field x="166" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="23" codval="" id="501" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#COSTO</source>
<prescript description="B1.501 PRESCRIPT">CA_FORMAT_COSTO</prescript>
</field>
<field x="190" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="23" codval="" id="502" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#COMMESSA</source>
<prescript description="B1.502 PRESCRIPT">CA_FORMAT_COMMESSA</prescript>
</field>
<field x="214" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="13" codval="" id="503" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#FASE</source>
<prescript description="B1.503 PRESCRIPT">CA_FORMAT_FASE</prescript>
</field>
<field x="228" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="13" codval="" id="504" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<modules>NP</modules>
<source>#CONTSEP</source>
</field>
</section>
<section type="Foot">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="" hidden="" page_break="" can_break="" pattern="1">
<font face="Arial" size="8" />
<field border="1" x="1" y="0.5" type="Linea" width="167" height="0" pattern="1" />
<field x="140" y="1.25" type="Testo" width="5" pattern="1" text="Pag." />
<field x="145.19" y="1.25" type="Numero" align="right" width="4" pattern="1">
<field border="1" x="1" y="0.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="167" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="140" y="1.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="1" hide_zero="" text="Pag." />
<field x="145.19" y="1.25" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="1" hide_zero="" text="">
<source>#REPORT.PAGE</source>
</field>
</section>
<section type="Foot" level="1" />
<section type="Foot" level="2">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="1" hidden="" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="2" hidden="" page_break="" can_break="" pattern="1">
<condition>#101 != ""</condition>
<font face="Arial" bold="1" size="8" />
<field type="Stringa" width="23" id="101" pattern="1">
<field deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="101" pattern="1" hide_zero="" text="">
<prescript description="F2.101 PRESCRIPT">CA_FORMAT_CONTO</prescript>
</field>
<field x="25" type="Stringa" width="50" id="102" pattern="1" />
<field x="78" type="Valuta" align="right" width="13" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript>103 DARE_AVERE</prescript>
<field x="25" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="102" pattern="1" hide_zero="" text="" />
<field x="78" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="">103 DARE_AVERE</prescript>
</field>
<field x="92" type="Valuta" align="right" width="13" id="104" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" type="Valuta" align="right" width="13" id="105" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" type="Valuta" align="right" width="13" id="106" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" type="Valuta" align="right" width="13" id="107" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript>107 DARE_AVERE</prescript>
<field x="92" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="104" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="105" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="106" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="107" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="">107 DARE_AVERE</prescript>
</field>
<field x="150" type="Valuta" align="right" width="13" id="108" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="78" y="1" type="Valuta" align="right" width="13" id="203" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript>103 DARE_AVERE</prescript>
<field x="150" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="108" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="78" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="203" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="">103 DARE_AVERE</prescript>
</field>
<field x="92" y="1" type="Valuta" align="right" width="13" id="204" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="1" type="Valuta" align="right" width="13" id="205" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="1" type="Valuta" align="right" width="13" id="206" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="1" type="Valuta" align="right" width="13" id="207" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript>107 DARE_AVERE</prescript>
<field x="92" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="204" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="205" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="206" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="207" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="">107 DARE_AVERE</prescript>
</field>
<field x="150" y="1" type="Valuta" align="right" width="13" id="208" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="78" y="2" type="Valuta" align="right" width="13" id="303" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript>103 DARE_AVERE</prescript>
<field x="150" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="208" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="78" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="303" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="">103 DARE_AVERE</prescript>
</field>
<field x="92" y="2" type="Valuta" align="right" width="13" id="304" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="2" type="Valuta" align="right" width="13" id="305" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="2" type="Valuta" align="right" width="13" id="306" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="2" type="Valuta" align="right" width="13" id="307" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript>107 DARE_AVERE</prescript>
<field x="92" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="304" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="305" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="306" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="307" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="">107 DARE_AVERE</prescript>
</field>
<field x="150" y="2" type="Valuta" align="right" width="13" id="308" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="150" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="308" pattern="1" hide_zero="1" text="###.###.###,@@" />
</section>
<section type="Foot" level="3">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="3" hidden="" page_break="" can_break="" pattern="1">
<condition>#101 != ""</condition>
<font face="Arial" bold="1" size="8" />
<field type="Stringa" width="23" id="101" pattern="1">
<field deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="101" pattern="1" hide_zero="" text="">
<prescript description="F3.101 PRESCRIPT">CA_FORMAT_CONTO</prescript>
</field>
<field x="25" type="Stringa" width="50" id="102" pattern="1" />
<field x="78" type="Valuta" align="right" width="13" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript>103 DARE_AVERE</prescript>
<field x="25" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="102" pattern="1" hide_zero="" text="" />
<field x="78" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="">103 DARE_AVERE</prescript>
</field>
<field x="92" type="Valuta" align="right" width="13" id="104" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" type="Valuta" align="right" width="13" id="105" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" type="Valuta" align="right" width="13" id="106" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" type="Valuta" align="right" width="13" id="107" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript>107 DARE_AVERE</prescript>
<field x="92" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="104" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="105" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="106" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="107" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="">107 DARE_AVERE</prescript>
</field>
<field x="150" type="Valuta" align="right" width="13" id="108" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="78" y="1" type="Valuta" align="right" width="13" id="203" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript>103 DARE_AVERE</prescript>
<field x="150" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="108" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="78" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="203" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="">103 DARE_AVERE</prescript>
</field>
<field x="92" y="1" type="Valuta" align="right" width="13" id="204" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="1" type="Valuta" align="right" width="13" id="205" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="1" type="Valuta" align="right" width="13" id="206" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="1" type="Valuta" align="right" width="13" id="207" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript>107 DARE_AVERE</prescript>
<field x="92" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="204" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="205" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="206" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="207" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="">107 DARE_AVERE</prescript>
</field>
<field x="150" y="1" type="Valuta" align="right" width="13" id="208" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="78" y="2" type="Valuta" align="right" width="13" id="303" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript>103 DARE_AVERE</prescript>
<field x="150" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="208" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="78" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="303" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="">103 DARE_AVERE</prescript>
</field>
<field x="92" y="2" type="Valuta" align="right" width="13" id="304" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="2" type="Valuta" align="right" width="13" id="305" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="2" type="Valuta" align="right" width="13" id="306" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="2" type="Valuta" align="right" width="13" id="307" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript>107 DARE_AVERE</prescript>
<field x="92" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="304" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="305" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="306" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="307" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="">107 DARE_AVERE</prescript>
</field>
<field x="150" y="2" type="Valuta" align="right" width="13" id="308" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="150" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="308" pattern="1" hide_zero="1" text="###.###.###,@@" />
</section>
<section type="Foot" level="4">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="4" hidden="" page_break="" can_break="" pattern="1">
<condition>#101 != ""</condition>
<font face="Arial" bold="1" size="8" />
<field type="Stringa" width="23" id="101" pattern="1">
<field deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="101" pattern="1" hide_zero="" text="">
<prescript description="F4.101 PRESCRIPT">CA_FORMAT_CONTO</prescript>
</field>
<field x="25" type="Stringa" width="50" id="102" pattern="1" />
<field x="78" type="Valuta" align="right" width="13" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="25" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="102" pattern="1" hide_zero="" text="" />
<field x="78" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F4.103 PRESCRIPT">103 DARE_AVERE</prescript>
</field>
<field x="92" type="Valuta" align="right" width="13" id="104" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" type="Valuta" align="right" width="13" id="105" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" type="Valuta" align="right" width="13" id="106" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" type="Valuta" align="right" width="13" id="107" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="92" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="104" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="105" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="106" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="107" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F4.107 PRESCRIPT">107 DARE_AVERE</prescript>
</field>
<field x="150" type="Valuta" align="right" width="13" id="108" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="78" y="1" type="Valuta" align="right" width="13" id="203" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="150" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="108" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="78" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="203" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F4.203 PRESCRIPT">103 DARE_AVERE</prescript>
</field>
<field x="92" y="1" type="Valuta" align="right" width="13" id="204" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="1" type="Valuta" align="right" width="13" id="205" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="1" type="Valuta" align="right" width="13" id="206" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="1" type="Valuta" align="right" width="13" id="207" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="92" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="204" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="205" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="206" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="207" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F4.207 PRESCRIPT">107 DARE_AVERE</prescript>
</field>
<field x="150" y="1" type="Valuta" align="right" width="13" id="208" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="78" y="2" type="Valuta" align="right" width="13" id="303" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="150" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="208" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="78" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="303" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F4.303 PRESCRIPT">103 DARE_AVERE</prescript>
</field>
<field x="92" y="2" type="Valuta" align="right" width="13" id="304" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="2" type="Valuta" align="right" width="13" id="305" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="2" type="Valuta" align="right" width="13" id="306" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="2" type="Valuta" align="right" width="13" id="307" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="92" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="304" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="305" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="306" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="307" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F4.307 PRESCRIPT">107 DARE_AVERE</prescript>
</field>
<field x="150" y="2" type="Valuta" align="right" width="13" id="308" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="150" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="308" pattern="1" hide_zero="1" text="###.###.###,@@" />
</section>
<sql>USE PCONANA</sql>
<prescript description="PRESCRIPT">: AZZERA_TOTALI ( ID_SEC - )

View File

@ -1,79 +1,91 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report name="ca3300b" orientation="2" lpi="8" command="ca3 -2" class="ca3300b">
<report libraries="" page_merge="" save_printer="" name="ca3300b" use_printer_font="" orientation="2" page_split="" lpi="8" command="ca3 -2" class="ca3300b">
<description>Bilancio di verifica (cons - prev)</description>
<font face="Courier New" size="8" />
<section type="Head">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="" hidden="" page_break="" can_break="" pattern="1">
<font face="Arial" bold="1" size="8" />
<field border="1" y="0.25" type="Linea" width="167" height="0" pattern="1" />
<field x="141" y="0.5" type="Testo" align="center" width="25" height="1.5" pattern="1" text="SALDO FINALE" />
<field x="83.56" y="0.66" type="Testo" align="center" width="25" pattern="1" text="SALDO INIZIALE" />
<field x="111.06" y="0.66" type="Testo" align="center" width="27" pattern="1" text="MOVIMENTI DEL PERIODO" />
<field x="0.06" y="1.16" type="Testo" width="10" pattern="1" text="Conto" />
<field x="30.06" y="1.16" type="Testo" width="15" pattern="1" text="Descrizione" />
<field x="78" y="1.66" type="Testo" align="right" width="13" pattern="1" text="Dare" />
<field x="92" y="1.66" type="Testo" align="right" width="13" pattern="1" text="Avere" />
<field x="107" y="1.66" type="Testo" align="right" width="13" pattern="1" text="Dare" />
<field x="121" y="1.66" type="Testo" align="right" width="13" pattern="1" text="Avere" />
<field x="136" y="1.66" type="Testo" align="right" width="13" pattern="1" text="Dare" />
<field x="150" y="1.66" type="Testo" align="right" width="13" pattern="1" text="Avere" />
<field border="1" y="2.75" type="Linea" width="167" height="0" pattern="1" />
<field border="1" y="0.25" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="167" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="141" y="0.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="25" codval="" height="1.5" id="" pattern="1" hide_zero="" text="SALDO FINALE" />
<field x="83.56" y="0.66" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="25" codval="" id="" pattern="1" hide_zero="" text="SALDO INIZIALE" />
<field x="111.06" y="0.66" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="27" codval="" id="" pattern="1" hide_zero="" text="MOVIMENTI DEL PERIODO" />
<field x="0.06" y="1.16" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Conto" />
<field x="30.06" y="1.16" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Descrizione" />
<field x="78" y="1.66" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="Dare" />
<field x="92" y="1.66" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="Avere" />
<field x="107" y="1.66" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="Dare" />
<field x="121" y="1.66" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="Avere" />
<field x="136" y="1.66" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="Dare" />
<field x="150" y="1.66" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="Avere" />
<field border="1" y="2.75" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="167" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
</section>
<section type="Head" level="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="1" hidden="" page_break="" can_break="" pattern="1">
<font face="Arial" bold="1" size="9" />
<prescript description="H1 PRESCRIPT">"F1" AZZERA_TOTALI</prescript>
<field border="1" radius="100" x="40.34" y="0.66" type="Rettangolo" shade_offset="25" width="80" height="3.5" />
<field x="62.5" y="1.5" type="Testo" valign="center" align="center" width="35" height="2" pattern="1" text="BILANCIO DI VERIFICA">
<field border="1" radius="100" x="40.34" y="0.66" deactivated="" type="Rettangolo" hidden="" link="" dynamic_height="" shade_offset="25" width="80" codval="" height="3.5" id="" pattern="2" hide_zero="" text="" />
<field x="62.5" y="1.5" deactivated="" type="Testo" valign="center" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="35" codval="" height="2" id="" pattern="1" hide_zero="" text="BILANCIO DI VERIFICA">
<font face="Arial" bold="1" size="14" />
</field>
<field x="0.75" y="5.5" type="Stringa" width="60" height="1.25" pattern="1">
<field x="0.75" y="5.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="60" codval="" height="1.25" id="" pattern="1" hide_zero="" text="">
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="70.75" y="5.5" type="Testo" width="20" height="1.25" pattern="1" text="Data di stampa:">
<field x="70.75" y="5.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" height="1.25" id="" pattern="1" hide_zero="" text="Data di stampa:">
<font face="Arial" size="9" />
</field>
<field x="90.75" y="5.5" type="Data" width="15" height="1.25" pattern="1">
<field x="90.75" y="5.5" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" height="1.25" id="" pattern="1" hide_zero="" text="">
<source>#SYSTEM.DATE</source>
</field>
<field x="0.75" y="7.08" type="Testo" width="20" pattern="1" text="Movimenti dal:">
<field x="0.75" y="7.08" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="Movimenti dal:">
<font face="Arial" size="9" />
<prescript>MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DESCRIZ</prescript>
<prescript description="">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DESCRIZ</prescript>
</field>
<field x="20.75" y="7.08" type="Data" width="15" pattern="1">
<field x="20.75" y="7.08" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="">
<source>#DATA_INIZIALE</source>
</field>
<field x="37.75" y="7.08" type="Testo" width="4" pattern="1" text="al:" />
<field x="42.75" y="7.08" type="Data" width="15" pattern="1">
<field x="37.75" y="7.08" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="1" hide_zero="" text="al:" />
<field x="42.75" y="7.08" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="">
<source>#DATA_FINALE</source>
</field>
<field x="0.75" y="8.33" type="Testo" width="20" pattern="1" text="Centro di costo:">
<field x="0.75" y="8.33" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="Centro di costo:">
<font face="Arial" size="9" />
</field>
<field x="20.75" y="8.33" type="Stringa" width="24" pattern="1">
<field x="45.75" y="8.33" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="70" codval="" id="" pattern="1" hide_zero="" text="">
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,CDC,CODCOSTO=#101,DESCRIZ</prescript>
</field>
<field x="0.75" y="9.58" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="Commessa:">
<font face="Arial" size="9" />
</field>
<field x="45.75" y="9.58" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="70" codval="" id="" pattern="1" hide_zero="" text="">
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#102,DESCRIZ</prescript>
</field>
<field x="0.75" y="10.83" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="Fase:">
<font face="Arial" size="9" />
</field>
<field x="45.75" y="10.83" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="70" codval="" id="" pattern="1" hide_zero="" text="">
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,FASI,CODCMSFAS=#CMSCDC!CODFASE=#103,DESCRIZ</prescript>
</field>
<field x="0.5" y="12" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="Contabilit&#E0; separata:">
<font face="Arial" size="9" />
<modules>NP</modules>
</field>
<field x="45.69" y="12" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="70" codval="" id="" pattern="1" hide_zero="" text="">
<modules>NP</modules>
<prescript description="H1.0 PRESCRIPT">MESSAGE TABLEREAD,&#26;NPENT,#104,S0</prescript>
</field>
<field x="20.75" y="8.33" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="24" codval="" id="101" pattern="1" hide_zero="" text="">
<source>#COSTO</source>
</field>
<field x="45.75" y="8.33" type="Stringa" width="70" pattern="1">
<prescript>MESSAGE ISAMREAD,CDC,CODCOSTO=#COSTO,DESCRIZ</prescript>
</field>
<field x="0.75" y="9.58" type="Testo" width="20" pattern="1" text="Commessa:">
<font face="Arial" size="9" />
</field>
<field x="20.75" y="9.58" type="Stringa" width="24" pattern="1">
<field x="20.75" y="9.58" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="24" codval="" id="102" pattern="1" hide_zero="" text="">
<source>#COMMESSA</source>
</field>
<field x="45.75" y="9.58" type="Stringa" width="70" pattern="1">
<prescript>MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DESCRIZ</prescript>
</field>
<field x="0.75" y="10.83" type="Testo" width="20" pattern="1" text="Fase:">
<font face="Arial" size="9" />
</field>
<field x="20.75" y="10.83" type="Stringa" width="13" pattern="1">
<field x="20.75" y="10.83" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="103" pattern="1" hide_zero="" text="">
<source>#FASE</source>
</field>
<field x="45.75" y="10.83" type="Stringa" width="70" pattern="1">
<prescript>MESSAGE ISAMREAD,FASI,CODCMSFAS=#CMSCDC!CODFASE=#FASE,DESCRIZ</prescript>
<field x="20.5" y="12" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="104" pattern="1" hide_zero="" text="">
<modules>NP</modules>
<source>#CONTSEP</source>
</field>
</section>
<section type="Head" level="2">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="2" hidden="" page_break="" can_break="" pattern="1">
<condition>CODCONTO:2!=""</condition>
<groupby>CODCONTO:1</groupby>
<prescript description="H2 PRESCRIPT">"CODCONTO:1" @
@ -82,7 +94,7 @@
"F2" AZZERA_TOTALI
</prescript>
</section>
<section type="Head" level="3">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="3" hidden="" page_break="" can_break="" pattern="1">
<condition>CODCONTO:3!=""</condition>
<groupby>CODCONTO:2</groupby>
<prescript description="H3 PRESCRIPT">"CODCONTO:2" @
@ -90,7 +102,7 @@
"F3" AZZERA_TOTALI</prescript>
</section>
<section type="Head" level="4">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="4" hidden="" page_break="" can_break="" pattern="1">
<condition>CODCONTO:4 != ""</condition>
<groupby>CODCONTO:3</groupby>
<prescript description="H4 PRESCRIPT">"CODCONTO:3" @
@ -98,130 +110,150 @@
"F4" AZZERA_TOTALI</prescript>
</section>
<section type="Body" />
<section type="Body" level="1" bg_color="#C0C0C0">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="" hidden="" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="1" hidden="" bg_color="#C0C0C0" page_break="" can_break="" pattern="1">
<font face="Arial" size="8" />
<field x="78" type="Valuta" align="right" width="13" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="78" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:INI_DARE</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.103|ADD,F2.103|ADD,F3.103|ADD,F4.103
</postscript>
</field>
<field x="92" type="Valuta" align="right" width="13" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="92" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:INI_AVERE</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.104|ADD,F2.104|ADD,F3.104|ADD,F4.104</postscript>
</field>
<field x="107" type="Valuta" align="right" width="13" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="107" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:MOV_DARE</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.105|ADD,F2.105|ADD,F3.105|ADD,F4.105</postscript>
</field>
<field x="121" type="Valuta" align="right" width="13" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="121" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:MOV_AVERE</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.106|ADD,F2.106|ADD,F3.106|ADD,F4.106</postscript>
</field>
<field x="136" type="Valuta" align="right" width="13" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="136" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:FIN_DARE</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.107|ADD,F2.107|ADD,F3.107|ADD,F4.107</postscript>
</field>
<field x="150" type="Valuta" align="right" width="13" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="150" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO:FIN_AVERE</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.108|ADD,F2.108|ADD,F3.108|ADD,F4.108</postscript>
</field>
<field type="Stringa" width="24" id="101" pattern="1">
<field deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="24" codval="" id="101" pattern="1" hide_zero="" text="">
<source>CODCONTO</source>
<prescript description="B1.101 PRESCRIPT">CA_FORMAT_CONTO</prescript>
</field>
<field x="25" type="Stringa" width="50" id="102" pattern="1">
<field x="25" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="102" pattern="1" hide_zero="" text="">
<source>DESCR</source>
</field>
</section>
<section type="Foot">
<field x="165" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="23" codval="" id="501" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<field border="1" x="1" y="0.5" type="Linea" width="164" height="0" pattern="1" />
<field x="150" y="0.75" type="Testo" width="6" pattern="1" text="Pag." />
<field x="156" y="0.75" type="Numero" align="right" width="4" pattern="1">
<source>#COSTO</source>
<prescript description="B1.501 PRESCRIPT">CA_FORMAT_COSTO</prescript>
</field>
<field x="189" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="23" codval="" id="502" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#COMMESSA</source>
<prescript description="B1.502 PRESCRIPT">CA_FORMAT_COMMESSA</prescript>
</field>
<field x="213" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="13" codval="" id="503" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#FASE</source>
<prescript description="B1.503 PRESCRIPT">CA_FORMAT_FASE</prescript>
</field>
<field x="227" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="13" codval="" id="504" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<modules>NP</modules>
<source>#CONTSEP</source>
</field>
</section>
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="" hidden="" page_break="" can_break="" pattern="1">
<font face="Arial" bold="1" size="9" />
<field border="1" x="1" y="0.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="164" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="150" y="0.75" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="Pag." />
<field x="156" y="0.75" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="1" hide_zero="" text="">
<source>#REPORT.PAGE</source>
</field>
</section>
<section type="Foot" level="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="1" hidden="" page_break="" can_break="" pattern="1">
<font face="Arial" bold="1" size="9" />
<field border="2" y="0.5" type="Linea" width="167" height="0" pattern="1" />
<field x="25" y="1" type="Testo" width="50" id="102" pattern="1" text="Totale">
<field border="2" y="0.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="167" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="25" y="1" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="102" pattern="1" hide_zero="" text="Totale">
<prescript description="F1.102 PRESCRIPT">MESSAGE ISAMREAD,PCONANA,CODCONTO=#102,DESCR</prescript>
</field>
<field x="78" y="1" type="Valuta" align="right" width="13" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript>103 DARE_AVERE</prescript>
<field x="78" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="">103 DARE_AVERE</prescript>
</field>
<field x="92" y="1" type="Valuta" align="right" width="13" id="104" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="1" type="Valuta" align="right" width="13" id="105" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="1" type="Valuta" align="right" width="13" id="106" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="1" type="Valuta" align="right" width="13" id="107" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript>107 DARE_AVERE</prescript>
<field x="92" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="104" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="105" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="106" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="107" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="">107 DARE_AVERE</prescript>
</field>
<field x="150" y="1" type="Valuta" align="right" width="13" id="108" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="150" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="108" pattern="1" hide_zero="1" text="###.###.###,@@" />
</section>
<section type="Foot" level="2" height="2">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="2" hidden="" height="2" page_break="" can_break="" pattern="1">
<condition>#101 != ""</condition>
<font italic="1" face="Arial" bold="1" size="8" />
<field border="1" y="2" type="Linea" width="167" height="0" pattern="1" />
<field y="0.5" type="Stringa" width="23" id="101" pattern="1">
<field border="1" y="2" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="167" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field y="0.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="101" pattern="1" hide_zero="" text="">
<prescript description="F2.101 PRESCRIPT">#THIS @ #102 !
CA_FORMAT_CONTO</prescript>
</field>
<field x="25" y="0.5" type="Stringa" width="50" id="102" pattern="1">
<field x="25" y="0.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="102" pattern="1" hide_zero="" text="">
<prescript description="F2.102 PRESCRIPT">CA_FORMAT_CONTO_DESCR</prescript>
</field>
<field x="78" y="0.5" type="Valuta" align="right" width="13" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="78" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F2.103 PRESCRIPT">103 DARE_AVERE</prescript>
</field>
<field x="92" y="0.5" type="Valuta" align="right" width="13" id="104" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="0.5" type="Valuta" align="right" width="13" id="105" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="0.5" type="Valuta" align="right" width="13" id="106" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="0.5" type="Valuta" align="right" width="13" id="107" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="92" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="104" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="105" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="106" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="107" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F2.107 PRESCRIPT">107 DARE_AVERE</prescript>
</field>
<field x="150" y="0.5" type="Valuta" align="right" width="13" id="108" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="150" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="108" pattern="1" hide_zero="1" text="###.###.###,@@" />
</section>
<section type="Foot" level="3" height="1.5">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="3" hidden="" height="1.5" page_break="" can_break="" pattern="1">
<condition>#101 != ""</condition>
<font face="Arial" bold="1" size="8" />
<field y="0.5" type="Stringa" width="23" id="101" pattern="1">
<field y="0.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="101" pattern="1" hide_zero="" text="">
<prescript description="F3.101 PRESCRIPT">#THIS @ #102 !
CA_FORMAT_CONTO</prescript>
</field>
<field x="25" y="0.5" type="Stringa" width="50" id="102" pattern="1">
<field x="25" y="0.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="102" pattern="1" hide_zero="" text="">
<prescript description="F3.102 PRESCRIPT">CA_FORMAT_CONTO_DESCR</prescript>
</field>
<field x="78" y="0.5" type="Valuta" align="right" width="13" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="78" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F3.103 PRESCRIPT">103 DARE_AVERE</prescript>
</field>
<field x="92" y="0.5" type="Valuta" align="right" width="13" id="104" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="0.5" type="Valuta" align="right" width="13" id="105" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="0.5" type="Valuta" align="right" width="13" id="106" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="0.5" type="Valuta" align="right" width="13" id="107" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="92" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="104" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="105" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="106" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="107" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F3.107 PRESCRIPT">107 DARE_AVERE</prescript>
</field>
<field x="150" y="0.5" type="Valuta" align="right" width="13" id="108" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="150" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="108" pattern="1" hide_zero="1" text="###.###.###,@@" />
</section>
<section type="Foot" level="4" height="1.5">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="4" hidden="" height="1.5" page_break="" can_break="" pattern="1">
<condition>#101 != ""</condition>
<font face="Arial" bold="1" size="8" />
<field y="0.5" type="Stringa" width="23" id="101" pattern="1">
<field y="0.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="101" pattern="1" hide_zero="" text="">
<prescript description="F4.101 PRESCRIPT">#THIS @ #102 !
CA_FORMAT_CONTO</prescript>
</field>
<field x="25" y="0.5" type="Stringa" width="50" id="102" pattern="1">
<field x="25" y="0.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="102" pattern="1" hide_zero="" text="">
<prescript description="F4.102 PRESCRIPT">CA_FORMAT_CONTO_DESCR</prescript>
</field>
<field x="78" y="0.5" type="Valuta" align="right" width="13" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="78" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="103" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F4.103 PRESCRIPT">103 DARE_AVERE</prescript>
</field>
<field x="92" y="0.5" type="Valuta" align="right" width="13" id="104" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="0.5" type="Valuta" align="right" width="13" id="105" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="0.5" type="Valuta" align="right" width="13" id="106" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="0.5" type="Valuta" align="right" width="13" id="107" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="92" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="104" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="107" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="105" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="121" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="106" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="136" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="107" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F4.107 PRESCRIPT">107 DARE_AVERE</prescript>
</field>
<field x="150" y="0.5" type="Valuta" align="right" width="13" id="108" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="150" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="108" pattern="1" hide_zero="1" text="###.###.###,@@" />
</section>
<sql>USE PCONANA</sql>
<prescript description="PRESCRIPT">: AZZERA_TOTALI ( ID_SEC - )

View File

@ -1,27 +1,27 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report name="ca3300c" orientation="2" lpi="8" command="ca3 -2" class="ca3300c">
<report libraries="" page_merge="" save_printer="" name="ca3300c" use_printer_font="" orientation="2" page_split="" lpi="8" command="ca3 -2" class="ca3300c">
<description>Bilancio a sezioni contrapposte (raffronto)</description>
<font face="Courier New" size="8" />
<section type="Head">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="" hidden="" page_break="" can_break="" pattern="1">
<font face="Arial" bold="1" size="8" />
<field x="41" type="Testo" align="right" width="12" text="Preventivo" />
<field x="55" type="Testo" align="right" width="12" text="Consuntivo" />
<field x="69" type="Testo" align="right" width="12" text="Differenza" />
<field x="86" type="Testo" width="6" text="Conto" />
<field x="100" type="Testo" width="12" text="Descrizione" />
<field x="125" type="Testo" align="right" width="12" text="Preventivo" />
<field x="139" type="Testo" align="right" width="12" text="Consuntivo" />
<field x="153" type="Testo" align="right" width="12" text="Differenza" />
<field x="2" y="0.25" type="Testo" width="6" text="Conto" />
<field x="16" y="0.25" type="Testo" width="12" text="Descrizione" />
<field border="1" x="1" y="1.25" type="Linea" width="164" height="0" />
<field x="41" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="2" hide_zero="" text="Preventivo" />
<field x="55" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="2" hide_zero="" text="Consuntivo" />
<field x="69" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="2" hide_zero="" text="Differenza" />
<field x="86" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="2" hide_zero="" text="Conto" />
<field x="100" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="2" hide_zero="" text="Descrizione" />
<field x="125" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="2" hide_zero="" text="Preventivo" />
<field x="139" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="2" hide_zero="" text="Consuntivo" />
<field x="153" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="2" hide_zero="" text="Differenza" />
<field x="2" y="0.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="2" hide_zero="" text="Conto" />
<field x="16" y="0.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="2" hide_zero="" text="Descrizione" />
<field border="1" x="1" y="1.25" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="164" codval="" height="0" id="" pattern="2" hide_zero="" text="" />
</section>
<section type="Head" level="1">
<field border="1" radius="100" x="8.21" y="0.91" type="Rettangolo" shade_offset="25" width="150" height="3.5" pattern="2" />
<field x="35" y="1.5" type="Testo" valign="center" width="70" height="2" text="SITUAZIONE CONTI A SEZIONI CONTRAPPOSTE:">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="1" hidden="" page_break="" can_break="" pattern="1">
<field border="1" radius="100" x="8.21" y="0.91" deactivated="" type="Rettangolo" hidden="" link="" dynamic_height="" shade_offset="25" width="150" codval="" height="3.5" id="" pattern="2" hide_zero="" text="" />
<field x="35" y="1.5" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="70" codval="" height="2" id="" pattern="2" hide_zero="" text="SITUAZIONE CONTI A SEZIONI CONTRAPPOSTE:">
<font face="Arial" bold="1" size="14" />
</field>
<field x="108" y="1.5" type="Array" valign="center" width="20" height="2">
<field x="108" y="1.5" deactivated="" type="Array" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" height="2" id="" pattern="2" hide_zero="" text="">
<font face="Arial" bold="1" size="14" />
<source>#TIPOSTAMPA</source>
<list>
@ -30,174 +30,207 @@
<li Value="RAFFRONTO" Code="R" />
</list>
</field>
<field x="2" y="5.16" type="Stringa" width="50">
<field x="2" y="5.16" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="2" hide_zero="" text="">
<font face="Arial" bold="1" size="8" />
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="72.15" y="5.16" type="Testo" width="20" text="Data di stampa:">
<field x="72.15" y="5.16" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="2" hide_zero="" text="Data di stampa:">
<font face="Arial" size="9" />
</field>
<field x="92.15" y="5.16" type="Data" width="15">
<field x="92.15" y="5.16" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="2" hide_zero="" text="">
<font face="Arial" bold="1" size="8" />
<source>#SYSTEM.DATE</source>
</field>
<field x="2" y="6.41" type="Testo" width="20" text="Movimenti dal:">
<field x="2" y="6.41" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="2" hide_zero="" text="Movimenti dal:">
<font face="Arial" size="9" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DESCRIZ</prescript>
</field>
<field x="22" y="6.41" type="Data" width="15">
<field x="22" y="6.41" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="2" hide_zero="" text="">
<font face="Arial" bold="1" size="8" />
<source>#DATA_INIZIALE</source>
</field>
<field x="39.4" y="6.41" type="Testo" width="4" text="al:">
<field x="39.4" y="6.41" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="2" hide_zero="" text="al:">
<font face="Arial" size="9" />
</field>
<field x="44.15" y="6.41" type="Data" width="15">
<field x="44.15" y="6.41" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="2" hide_zero="" text="">
<font face="Arial" bold="1" size="8" />
<source>#DATA_FINALE</source>
</field>
<field x="2" y="7.66" type="Testo" width="20" text="Centro di costo:">
<field x="2" y="7.66" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="2" hide_zero="" text="Centro di costo:">
<font face="Arial" size="9" />
</field>
<field x="22" y="7.66" type="Stringa" width="24">
<field x="47.15" y="7.66" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="70" codval="" id="" pattern="2" hide_zero="" text="">
<font face="Arial" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,CDC,CODCOSTO=#101,DESCRIZ</prescript>
</field>
<field x="2" y="8.91" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="2" hide_zero="" text="Commessa:">
<font face="Arial" size="9" />
</field>
<field x="47.15" y="8.91" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="70" codval="" id="" pattern="2" hide_zero="" text="">
<font face="Arial" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#102,DESCRIZ</prescript>
</field>
<field x="2" y="10.16" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="2" hide_zero="" text="Fase:">
<font face="Arial" size="9" />
</field>
<field x="47.15" y="10.16" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="70" codval="" id="" pattern="2" hide_zero="" text="">
<font face="Arial" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,FASI,CODCMSFAS=#CMSCDC!CODFASE=#103,DESCRIZ</prescript>
</field>
<field x="2" y="11.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="Contabilit&#E0; separata:">
<font face="Arial" size="9" />
<modules>NP</modules>
</field>
<field x="47.19" y="11.25" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="70" codval="" id="" pattern="1" hide_zero="" text="">
<modules>NP</modules>
<prescript description="H1.0 PRESCRIPT">MESSAGE TABLEREAD,&#26;NPENT,#104,S0</prescript>
</field>
<field border="1" x="2" y="12.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="164" codval="" height="0" id="" pattern="2" hide_zero="" text="" />
<field x="22" y="7.66" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="24" codval="" id="101" pattern="2" hide_zero="" text="">
<font face="Arial" bold="1" size="8" />
<source>#COSTO</source>
</field>
<field x="47.15" y="7.66" type="Stringa" width="70">
<font face="Arial" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,CDC,CODCOSTO=#COSTO,DESCRIZ</prescript>
</field>
<field x="2" y="8.91" type="Testo" width="20" text="Commessa:">
<font face="Arial" size="9" />
</field>
<field x="22" y="8.91" type="Stringa" width="24">
<field x="22" y="8.91" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="24" codval="" id="102" pattern="2" hide_zero="" text="">
<font face="Arial" bold="1" size="8" />
<source>#COMMESSA</source>
</field>
<field x="47.15" y="8.91" type="Stringa" width="70">
<font face="Arial" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DESCRIZ</prescript>
</field>
<field x="2" y="10.16" type="Testo" width="20" text="Fase:">
<font face="Arial" size="9" />
</field>
<field x="22" y="10.16" type="Stringa" width="13">
<field x="22" y="10.16" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="103" pattern="2" hide_zero="" text="">
<font face="Arial" bold="1" size="8" />
<source>#FASE</source>
</field>
<field x="47.15" y="10.16" type="Stringa" width="70">
<field x="22" y="11.25" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="104" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,FASI,CODCMSFAS=#CMSCDC!CODFASE=#FASE,DESCRIZ</prescript>
<modules>NP</modules>
<source>#CONTSEP</source>
</field>
<field border="1" x="2" y="11.5" type="Linea" width="164" height="0" />
</section>
<section repeat="1" type="Head" level="2" page_break="1">
<section repeat="1" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="2" hidden="" page_break="1" can_break="" pattern="1">
<groupby>SEZIONE</groupby>
<font face="Arial" bold="1" size="9" />
<field x="67" y="0.5" type="Stringa" align="center" width="35" height="1.25">
<field x="67" y="0.5" deactivated="" type="Stringa" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="35" codval="" height="1.25" id="" pattern="2" hide_zero="" text="">
<source>IF(SEZIONE=="AP","SITUAZIONE CONTO ECONOMICO","SITUAZIONE CONTI PATRIMONIALI")</source>
</field>
<field x="26" y="1.75" type="Stringa" width="12">
<field x="26" y="1.75" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="2" hide_zero="" text="">
<source>IF(SEZIONE=="AP","ATTIVITA'","COSTI")</source>
</field>
<field x="122" y="1.75" type="Stringa" width="12">
<field x="122" y="1.75" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="2" hide_zero="" text="">
<source>IF(SEZIONE=="AP","PASSIVITA'","RICAVI")</source>
</field>
<field border="1" x="1" y="3.25" type="Linea" width="164" height="0" />
<field border="1" x="1" y="3.25" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="164" codval="" height="0" id="" pattern="2" hide_zero="" text="" />
</section>
<section type="Body" />
<section type="Body" level="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="" hidden="" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="1" hidden="" page_break="" can_break="" pattern="1">
<font face="Arial" size="8" />
<field border="1" x="83" type="Linea" />
<field type="Stringa" hidden="1" width="1" id="101">
<field border="1" x="83" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" codval="" id="" pattern="2" hide_zero="" text="" />
<field deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="1" codval="" id="101" pattern="2" hide_zero="" text="">
<source>LEFT:LIVELLO</source>
<prescript description="B1.101 PRESCRIPT">"LEFT:BACKCOLOR" @ "1@" SET_BACK_COLOR
"LEFT:TEXTCOLOR" @ "1@" SET_TEXT_COLOR
</prescript>
</field>
<field x="1" type="Stringa" width="14" id="102" pattern="2">
<field x="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="14" codval="" id="102" pattern="2" hide_zero="" text="">
<groups>1</groups>
<source>LEFT:CONTO</source>
<prescript description="B1.102 PRESCRIPT">CA_FORMAT_CONTO</prescript>
</field>
<field x="15" type="Stringa" width="25" id="103" pattern="2">
<field x="15" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="25" codval="" id="103" pattern="2" hide_zero="" text="">
<font face="Arial Narrow" size="8" />
<groups>1</groups>
<source>LEFT:DESCR</source>
</field>
<field x="40" type="Valuta" align="right" width="12" id="104" pattern="2" hide_zero="1" text="###.###.###,@@">
<field x="40" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="12" codval="" id="104" pattern="2" hide_zero="1" text="###.###.###,@@">
<groups>1</groups>
<source>LEFT:SALDOP</source>
</field>
<field x="52" type="Stringa" align="center" width="2" id="105" pattern="2">
<field x="52" deactivated="" type="Stringa" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="2" codval="" id="105" pattern="2" hide_zero="" text="">
<groups>1</groups>
<source>LEFT:SEZIONEP</source>
</field>
<field x="54" type="Valuta" align="right" width="12" id="204" pattern="2" hide_zero="1" text="###.###.###,@@">
<field x="54" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="12" codval="" id="204" pattern="2" hide_zero="1" text="###.###.###,@@">
<groups>1</groups>
<source>LEFT:SALDOC</source>
</field>
<field x="66" type="Stringa" align="center" width="2" id="205" pattern="2">
<field x="66" deactivated="" type="Stringa" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="2" codval="" id="205" pattern="2" hide_zero="" text="">
<groups>1</groups>
<source>LEFT:SEZIONEC</source>
</field>
<field x="84" type="Stringa" hidden="1" width="1" id="301">
<field x="84" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="1" codval="" id="301" pattern="2" hide_zero="" text="">
<source>RIGHT:LIVELLO</source>
<prescript description="B1.301 PRESCRIPT">"RIGHT:BACKCOLOR" @ "2@" SET_BACK_COLOR
"RIGHT:TEXTCOLOR" @ "2@" SET_TEXT_COLOR
</prescript>
</field>
<field x="85" type="Stringa" width="14" id="302" pattern="2">
<field x="85" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="14" codval="" id="302" pattern="2" hide_zero="" text="">
<groups>2</groups>
<source>RIGHT:CONTO</source>
<prescript description="B1.302 PRESCRIPT">CA_FORMAT_CONTO</prescript>
</field>
<field x="99" type="Stringa" width="25" id="303" pattern="2">
<field x="99" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="25" codval="" id="303" pattern="2" hide_zero="" text="">
<font face="Arial Narrow" size="8" />
<groups>2</groups>
<source>RIGHT:DESCR</source>
</field>
<field x="68" type="Valuta" align="right" width="12" id="304" pattern="2" hide_zero="1" text="###.###.###,@@">
<field x="68" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="12" codval="" id="304" pattern="2" hide_zero="1" text="###.###.###,@@">
<groups>1</groups>
<source>LEFT:SALDO</source>
</field>
<field x="124" type="Valuta" align="right" width="12" id="304" pattern="2" hide_zero="1" text="###.###.###,@@">
<field x="124" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="12" codval="" id="304" pattern="2" hide_zero="1" text="###.###.###,@@">
<groups>2</groups>
<source>RIGHT:SALDOP</source>
</field>
<field x="80" type="Stringa" align="center" width="2.5" id="305" pattern="2">
<field x="80" deactivated="" type="Stringa" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="2.5" codval="" id="305" pattern="2" hide_zero="" text="">
<groups>1</groups>
<source>LEFT:SEZIONE</source>
</field>
<field x="136" type="Stringa" width="2" id="305" pattern="2">
<field x="136" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="2" codval="" id="305" pattern="2" hide_zero="" text="">
<groups>2</groups>
<source>RIGHT:SEZIONEP</source>
</field>
<field x="138" type="Valuta" align="right" width="12" id="404" pattern="2" hide_zero="1" text="###.###.###,@@">
<field x="138" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="12" codval="" id="404" pattern="2" hide_zero="1" text="###.###.###,@@">
<groups>2</groups>
<source>RIGHT:SALDOC</source>
</field>
<field x="150" type="Stringa" width="2" id="405" pattern="2">
<field x="150" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="2" codval="" id="405" pattern="2" hide_zero="" text="">
<groups>2</groups>
<source>RIGHT:SEZIONEC</source>
</field>
<field x="152" type="Valuta" align="right" width="12" id="504" pattern="2" hide_zero="1" text="###.###.###,@@">
<field x="167" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="23" codval="" id="501" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#COSTO</source>
<prescript description="">CA_FORMAT_COSTO</prescript>
</field>
<field x="191" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="23" codval="" id="502" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#COMMESSA</source>
<prescript description="">CA_FORMAT_COMMESSA</prescript>
</field>
<field x="215" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="13" codval="" id="503" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#FASE</source>
<prescript description="">CA_FORMAT_FASE</prescript>
</field>
<field x="152" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="12" codval="" id="504" pattern="2" hide_zero="1" text="###.###.###,@@">
<groups>2</groups>
<source>RIGHT:SALDO</source>
</field>
<field x="164" type="Stringa" width="2" id="505" pattern="2">
<field x="229" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="13" codval="" id="504" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<modules>NP</modules>
<source>#CONTSEP</source>
</field>
<field x="164" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="2" codval="" id="505" pattern="2" hide_zero="" text="">
<groups>2</groups>
<source>RIGHT:SEZIONE</source>
</field>
</section>
<section type="Foot">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="" hidden="" page_break="" can_break="" pattern="1">
<font face="Arial" bold="1" size="8" />
<field border="1" y="0.5" type="Linea" width="162" height="0" />
<field x="145" y="1" type="Testo" width="5" text="Pag." />
<field x="150" y="1" type="Numero" align="right" width="4">
<field border="1" y="0.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="162" codval="" height="0" id="" pattern="2" hide_zero="" text="" />
<field x="145" y="1" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="2" hide_zero="" text="Pag." />
<field x="150" y="1" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="2" hide_zero="" text="">
<source>#REPORT.PAGE</source>
</field>
</section>
<section type="Foot" level="1" />
<section type="Foot" level="2" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="1" hidden="" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="2" hidden="" page_break="" can_break="" pattern="1" />
</report>

View File

@ -1,24 +1,24 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report name="ca3300d" orientation="2" lpi="8" command="ca3 -2" class="ca3300d">
<report libraries="" page_merge="" save_printer="" name="ca3300d" use_printer_font="" orientation="2" page_split="" lpi="8" command="ca3 -2" class="ca3300d">
<description>Bilancio a sezioni contrapposte (cons - prev)</description>
<font face="Courier New" size="8" />
<section type="Head">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="" hidden="" page_break="" can_break="" pattern="1">
<font face="Arial" bold="1" size="8" />
<field x="1" y="0.25" type="Testo" width="8" text="Conto" />
<field x="16" y="0.25" type="Testo" width="12" text="Descrizione" />
<field x="72" y="0.25" type="Testo" align="right" width="8" text="Saldo" />
<field x="82" y="0.25" type="Testo" width="8" text="Conto" />
<field x="97" y="0.25" type="Testo" width="12" text="Descrizione" />
<field x="153" y="0.25" type="Testo" align="right" width="8" text="Saldo" />
<field border="1" x="1" y="1.5" type="Linea" width="164" height="0" />
<field x="1" y="0.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="8" codval="" id="" pattern="2" hide_zero="" text="Conto" />
<field x="16" y="0.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="2" hide_zero="" text="Descrizione" />
<field x="72" y="0.25" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="8" codval="" id="" pattern="2" hide_zero="" text="Saldo" />
<field x="82" y="0.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="8" codval="" id="" pattern="2" hide_zero="" text="Conto" />
<field x="97" y="0.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="2" hide_zero="" text="Descrizione" />
<field x="153" y="0.25" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="8" codval="" id="" pattern="2" hide_zero="" text="Saldo" />
<field border="1" x="1" y="1.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="164" codval="" height="0" id="" pattern="2" hide_zero="" text="" />
</section>
<section type="Head" level="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="1" hidden="" page_break="" can_break="" pattern="1">
<font face="Arial" size="9" />
<field border="1" radius="100" x="7.5" y="1" type="Rettangolo" shade_offset="25" width="150" height="3.5" pattern="2" />
<field x="28" y="1.75" type="Testo" valign="center" width="75" height="2" text="SITUAZIONE CONTI A SEZIONI CONTRAPPOSTE:">
<field border="1" radius="100" x="7.5" y="1" deactivated="" type="Rettangolo" hidden="" link="" dynamic_height="" shade_offset="25" width="150" codval="" height="3.5" id="" pattern="2" hide_zero="" text="" />
<field x="28" y="1.75" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="75" codval="" height="2" id="" pattern="2" hide_zero="" text="SITUAZIONE CONTI A SEZIONI CONTRAPPOSTE:">
<font face="Arial" bold="1" size="14" />
</field>
<field x="103" y="1.75" type="Array" valign="center" width="20" height="2">
<field x="103" y="1.75" deactivated="" type="Array" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" height="2" id="" pattern="2" hide_zero="" text="">
<font face="Arial" bold="1" size="14" />
<source>#TIPOSTAMPA</source>
<list>
@ -27,95 +27,105 @@
<li Value="RAFFRONTO" Code="R" />
</list>
</field>
<field x="1.9" y="6" type="Stringa" width="50">
<field x="1.9" y="6" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="2" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="72" y="6" type="Testo" width="20" text="Data di stampa:" />
<field x="92" y="6" type="Data" width="15">
<field x="72" y="6" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="2" hide_zero="" text="Data di stampa:" />
<field x="92" y="6" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="2" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#SYSTEM.DATE</source>
</field>
<field x="1.9" y="7.25" type="Testo" width="20" text="Movimenti dal:">
<field x="1.9" y="7.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="2" hide_zero="" text="Movimenti dal:">
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DESCRIZ</prescript>
</field>
<field x="21.9" y="7.25" type="Data" width="15">
<field x="21.9" y="7.25" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="2" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#DATA_INIZIALE</source>
</field>
<field x="38.4" y="7.25" type="Testo" width="4" text="al:" />
<field x="42.9" y="7.25" type="Data" width="15">
<field x="38.4" y="7.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="2" hide_zero="" text="al:" />
<field x="42.9" y="7.25" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="2" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#DATA_FINALE</source>
</field>
<field x="1.9" y="8.5" type="Testo" width="20" text="Centro di costo:" />
<field x="21.9" y="8.5" type="Stringa" width="24">
<field x="1.9" y="8.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="2" hide_zero="" text="Centro di costo:" />
<field x="46.9" y="8.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="70" codval="" id="" pattern="2" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,CDC,CODCOSTO=#101,DESCRIZ</prescript>
</field>
<field x="1.9" y="9.75" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="2" hide_zero="" text="Commessa:" />
<field x="46.9" y="9.75" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="70" codval="" id="" pattern="2" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#102,DESCRIZ</prescript>
</field>
<field x="1.9" y="11" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="2" hide_zero="" text="Fase:" />
<field x="46.9" y="11" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="70" codval="" id="" pattern="2" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,FASI,CODCMSFAS=#CMSCDC!CODFASE=#103,DESCRIZ</prescript>
</field>
<field x="2" y="12.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="Contabilit&#E0; separata:">
<modules>NP</modules>
</field>
<field x="47" y="12.25" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="70" codval="" id="" pattern="1" hide_zero="" text="">
<modules>NP</modules>
<prescript description="H1.0 PRESCRIPT">MESSAGE TABLEREAD,&#26;NPENT,#104,S0</prescript>
</field>
<field x="21.9" y="8.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="24" codval="" id="101" pattern="2" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#COSTO</source>
</field>
<field x="46.9" y="8.5" type="Stringa" width="70">
<font face="Arial" bold="1" size="9" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,CDC,CODCOSTO=#COSTO,DESCRIZ</prescript>
</field>
<field x="1.9" y="9.75" type="Testo" width="20" text="Commessa:" />
<field x="21.9" y="9.75" type="Stringa" width="24">
<field x="21.9" y="9.75" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="24" codval="" id="102" pattern="2" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#COMMESSA</source>
</field>
<field x="46.9" y="9.75" type="Stringa" width="70">
<font face="Arial" bold="1" size="9" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DESCRIZ</prescript>
</field>
<field x="1.9" y="11" type="Testo" width="20" text="Fase:" />
<field x="21.9" y="11" type="Stringa" width="13">
<field x="21.9" y="11" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="103" pattern="2" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#FASE</source>
</field>
<field x="46.9" y="11" type="Stringa" width="70">
<font face="Arial" bold="1" size="9" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,FASI,CODCMSFAS=#CMSCDC!CODFASE=#FASE,DESCRIZ</prescript>
<field x="22" y="12.25" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="104" pattern="1" hide_zero="" text="">
<modules>NP</modules>
<source>#CONTSEP</source>
</field>
<field border="1" x="1" y="12.5" type="Linea" width="164" height="0" />
</section>
<section repeat="1" type="Head" level="2" page_break="1">
<section repeat="1" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="2" hidden="" page_break="1" can_break="" pattern="1">
<groupby>SEZIONE</groupby>
<font face="Arial" bold="1" size="9" />
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2</prescript>
<field x="62" y="0.75" type="Stringa" align="center" width="35" height="1.25">
<field x="62" y="0.75" deactivated="" type="Stringa" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="35" codval="" height="1.25" id="" pattern="2" hide_zero="" text="">
<source>IF(SEZIONE=="AP","SITUAZIONE CONTO ECONOMICO","SITUAZIONE CONTI PATRIMONIALI")</source>
</field>
<field x="1" y="1" type="Stringa" hidden="1" width="2">
<field x="1" y="1" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="2" codval="" id="" pattern="2" hide_zero="" text="">
<source>SEZIONE</source>
<prescript description="H2.0 PRESCRIPT">MESSAGE COPY,F2.101</prescript>
</field>
<field x="26" y="1.75" type="Stringa" width="12">
<field x="26" y="1.75" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="2" hide_zero="" text="">
<source>IF(SEZIONE=="AP","ATTIVITA'","COSTI")</source>
</field>
<field x="122" y="1.75" type="Stringa" width="12">
<field x="122" y="1.75" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="2" hide_zero="" text="">
<source>IF(SEZIONE=="AP","PASSIVITA'","RICAVI")</source>
</field>
<field border="1" x="1" y="3.25" type="Linea" width="164" height="0" />
<field border="1" x="1" y="3.25" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="164" codval="" height="0" id="" pattern="2" hide_zero="" text="" />
</section>
<section type="Body" />
<section type="Body" level="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="" hidden="" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="1" hidden="" page_break="" can_break="" pattern="1">
<font face="Arial" size="8" />
<field border="1" x="82" type="Linea" />
<field type="Numero" hidden="1" align="right" width="1" id="101">
<field border="1" x="82" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" codval="" id="" pattern="2" hide_zero="" text="" />
<field deactivated="" type="Numero" hidden="1" align="right" link="" dynamic_height="" shade_offset="" width="1" codval="" id="101" pattern="2" hide_zero="" text="">
<source>LEFT:LIVELLO</source>
<prescript description="B1.101 PRESCRIPT">"LEFT:BACKCOLOR" @ "1@" SET_BACK_COLOR
"LEFT:TEXTCOLOR" @ "1@" SET_TEXT_COLOR
</prescript>
</field>
<field x="1" type="Stringa" width="14" id="102" pattern="2">
<field x="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="14" codval="" id="102" pattern="2" hide_zero="" text="">
<groups>1</groups>
<source>LEFT:CONTO</source>
<prescript description="B1.102 PRESCRIPT">CA_FORMAT_CONTO</prescript>
</field>
<field x="15" type="Stringa" width="48" id="103" pattern="2">
<field x="15" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="48" codval="" id="103" pattern="2" hide_zero="" text="">
<groups>1</groups>
<source>LEFT:DESCR</source>
</field>
<field x="63" type="Valuta" align="right" width="16" id="104" pattern="2" hide_zero="1" text="###.###.###,@@">
<field x="63" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="16" codval="" id="104" pattern="2" hide_zero="1" text="###.###.###,@@">
<groups>1</groups>
<source>LEFT:SALDO</source>
<postscript description="B1.104 POSTSCRIPT">#101 @
@ -124,7 +134,7 @@
"F2.104" +!
THEN</postscript>
</field>
<field x="79" type="Stringa" align="center" width="2.5" id="105" pattern="2">
<field x="79" deactivated="" type="Stringa" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="2.5" codval="" id="105" pattern="2" hide_zero="" text="">
<groups>1</groups>
<source>LEFT:SEZIONE</source>
<postscript description="B1.105 POSTSCRIPT">#101 @
@ -133,22 +143,22 @@ THEN</postscript>
"F2.105" !
THEN</postscript>
</field>
<field x="81.5" type="Numero" hidden="1" align="right" width="1" id="201">
<field x="81.5" deactivated="" type="Numero" hidden="1" align="right" link="" dynamic_height="" shade_offset="" width="1" codval="" id="201" pattern="2" hide_zero="" text="">
<source>RIGHT:LIVELLO</source>
<prescript description="B1.201 PRESCRIPT">"RIGHT:BACKCOLOR" @ "2@" SET_BACK_COLOR
"RIGHT:TEXTCOLOR" @ "2@" SET_TEXT_COLOR
</prescript>
</field>
<field x="82.5" type="Stringa" width="14" id="202" pattern="2">
<field x="82.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="14" codval="" id="202" pattern="2" hide_zero="" text="">
<groups>2</groups>
<source>RIGHT:CONTO</source>
<prescript description="B1.202 PRESCRIPT">CA_FORMAT_CONTO</prescript>
</field>
<field x="96.5" type="Stringa" width="48" id="203" pattern="2">
<field x="96.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="48" codval="" id="203" pattern="2" hide_zero="" text="">
<groups>2</groups>
<source>RIGHT:DESCR</source>
</field>
<field x="144.5" type="Valuta" align="right" width="16" id="204" pattern="2" hide_zero="1" text="###.###.###,@@">
<field x="144.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="16" codval="" id="204" pattern="2" hide_zero="1" text="###.###.###,@@">
<groups>2</groups>
<source>RIGHT:SALDO</source>
<postscript description="B1.204 POSTSCRIPT">#201 @
@ -157,7 +167,7 @@ THEN</postscript>
"F2.204" +!
THEN</postscript>
</field>
<field x="160.5" type="Stringa" align="center" width="2.5" id="205" pattern="2">
<field x="160.5" deactivated="" type="Stringa" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="2.5" codval="" id="205" pattern="2" hide_zero="" text="">
<groups>2</groups>
<source>RIGHT:SEZIONE</source>
<postscript description="B1.205 POSTSCRIPT">#201 @
@ -166,27 +176,47 @@ THEN</postscript>
"F2.205" !
THEN</postscript>
</field>
<field x="164" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="23" codval="" id="501" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#COSTO</source>
<prescript description="">CA_FORMAT_COSTO</prescript>
</field>
<field x="188" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="23" codval="" id="502" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#COMMESSA</source>
<prescript description="">CA_FORMAT_COMMESSA</prescript>
</field>
<field x="212" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="13" codval="" id="503" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#FASE</source>
<prescript description="">CA_FORMAT_FASE</prescript>
</field>
<field x="226" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="13" codval="" id="504" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<modules>NP</modules>
<source>#CONTSEP</source>
</field>
</section>
<section type="Foot">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="" hidden="" page_break="" can_break="" pattern="1">
<font face="Arial" size="8" />
<field border="1" y="0.25" type="Linea" width="166" height="0" />
<field x="150" y="1" type="Testo" width="6" text="Pag." />
<field x="156" y="1" type="Numero" align="right" width="4">
<field border="1" y="0.25" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="166" codval="" height="0" id="" pattern="2" hide_zero="" text="" />
<field x="150" y="1" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="2" hide_zero="" text="Pag." />
<field x="156" y="1" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="2" hide_zero="" text="">
<source>#REPORT.PAGE</source>
</field>
</section>
<section type="Foot" level="1" />
<section type="Foot" level="2">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="1" hidden="" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="2" hidden="" page_break="" can_break="" pattern="1">
<font face="Arial" bold="1" size="8" />
<field border="1" x="1" y="1" type="Linea" width="164" height="0" />
<field x="46" y="2" type="Testo" width="10" text="TOTALE" />
<field x="127" y="2" type="Testo" width="10" text="TOTALE" />
<field x="8" y="3" type="Stringa" hidden="1" width="2" id="101" />
<field x="63" y="2" type="Valuta" align="right" width="16" id="104" hide_zero="1" text="###.###.###,@@" />
<field x="79" y="2" type="Stringa" align="center" width="2.5" id="105" />
<field x="144" y="2" type="Valuta" align="right" width="16" id="204" hide_zero="1" text="###.###.###,@@" />
<field x="160" y="2" type="Stringa" align="center" width="2.5" id="205" />
<field x="14" y="3" type="Valuta" hidden="1" align="right" width="16" id="304" text="###.###.###,@@">
<field border="1" x="1" y="1" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="164" codval="" height="0" id="" pattern="2" hide_zero="" text="" />
<field x="46" y="2" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="2" hide_zero="" text="TOTALE" />
<field x="127" y="2" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="2" hide_zero="" text="TOTALE" />
<field x="8" y="3" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="2" codval="" id="101" pattern="2" hide_zero="" text="" />
<field x="63" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="16" codval="" id="104" pattern="2" hide_zero="1" text="###.###.###,@@" />
<field x="79" y="2" deactivated="" type="Stringa" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="2.5" codval="" id="105" pattern="2" hide_zero="" text="" />
<field x="144" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="16" codval="" id="204" pattern="2" hide_zero="1" text="###.###.###,@@" />
<field x="160" y="2" deactivated="" type="Stringa" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="2.5" codval="" id="205" pattern="2" hide_zero="" text="" />
<field x="14" y="3" deactivated="" type="Valuta" hidden="1" align="right" link="" dynamic_height="" shade_offset="" width="16" codval="" id="304" pattern="2" hide_zero="" text="###.###.###,@@">
<source>IF(#105==#205,#104-#204,#104+#204)</source>
<prescript description="F2.304 PRESCRIPT">#THIS @
0 &#3C; IF
@ -203,51 +233,51 @@ ELSE
THEN
</prescript>
</field>
<field x="46" y="3" type="Testo" width="10" id="405" text="SBILANCIO">
<field x="46" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="405" pattern="2" hide_zero="" text="SBILANCIO">
<groups>1</groups>
</field>
<field x="63" y="3" type="Valuta" align="right" width="16" id="406" hide_zero="1" text="###.###.###,@@">
<field x="63" y="3" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="16" codval="" id="406" pattern="2" hide_zero="1" text="###.###.###,@@">
<groups>1</groups>
</field>
<field x="79" y="3" type="Stringa" align="center" width="2.5" id="407">
<field x="79" y="3" deactivated="" type="Stringa" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="2.5" codval="" id="407" pattern="2" hide_zero="" text="">
<groups>1</groups>
<source>#105</source>
</field>
<field x="127" y="3" type="Testo" width="10" id="408" text="SBILANCIO">
<field x="127" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="408" pattern="2" hide_zero="" text="SBILANCIO">
<groups>2</groups>
</field>
<field x="144" y="3" type="Valuta" align="right" width="16" id="409" hide_zero="1" text="###.###.###,@@">
<field x="144" y="3" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="16" codval="" id="409" pattern="2" hide_zero="1" text="###.###.###,@@">
<groups>2</groups>
</field>
<field x="160" y="3" type="Stringa" align="center" width="2.5" id="410">
<field x="160" y="3" deactivated="" type="Stringa" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="2.5" codval="" id="410" pattern="2" hide_zero="" text="">
<groups>2</groups>
<source>#205</source>
</field>
<field x="46" y="4" type="Testo" width="15" id="411" text="TOT A PAREGGIO">
<field x="46" y="4" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="411" pattern="2" hide_zero="" text="TOT A PAREGGIO">
<groups>1</groups>
</field>
<field x="63" y="4" type="Valuta" align="right" width="16" id="412" hide_zero="1" text="###.###.###,@@">
<field x="63" y="4" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="16" codval="" id="412" pattern="2" hide_zero="1" text="###.###.###,@@">
<groups>1</groups>
<prescript description="F2.412 PRESCRIPT">#104 @
#406 @
+
#THIS !</prescript>
</field>
<field x="79" y="4" type="Stringa" align="center" width="2.5" id="413">
<field x="79" y="4" deactivated="" type="Stringa" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="2.5" codval="" id="413" pattern="2" hide_zero="" text="">
<groups>1</groups>
<source>#105</source>
</field>
<field x="127" y="4" type="Testo" width="15" id="414" text="TOT A PAREGGIO">
<field x="127" y="4" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="414" pattern="2" hide_zero="" text="TOT A PAREGGIO">
<groups>2</groups>
</field>
<field x="144" y="4" type="Valuta" align="right" width="16" id="415" hide_zero="1" text="###.###.###,@@">
<field x="144" y="4" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="16" codval="" id="415" pattern="2" hide_zero="1" text="###.###.###,@@">
<groups>2</groups>
<prescript description="F2.415 PRESCRIPT">#204 @
#409 @
+
#THIS !</prescript>
</field>
<field x="160" y="4" type="Stringa" align="center" width="2.5" id="416">
<field x="160" y="4" deactivated="" type="Stringa" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="2.5" codval="" id="416" pattern="2" hide_zero="" text="">
<groups>2</groups>
<source>#205</source>
</field>

View File

@ -2,7 +2,8 @@
#include <defmask.h>
#include <execp.h>
#include <progind.h>
#include <reprint.h>
#include <recarray.h>
#include <repapp.h>
#include <clifo.h>
#include <mov.h>
@ -14,6 +15,9 @@
#include "..\cg\cglib.h"
#include "pconana.h"
#include "commesse.h"
#include "cdc.h"
#include "fasi.h"
#include "movana.h"
#include "rmovana.h"
@ -33,10 +37,6 @@ class TPag_per_cms_mask: public TAnal_report_mask
{
protected:
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
const TString& get_report_class() const;
bool test_compatible_report();
//pagina di configurazione
void config_loader(TSheet_field& sf, const char* paragrafo);
void config_setter(TSheet_field& sf, const char* paragrafo);
@ -46,74 +46,10 @@ public:
};
const TString& TPag_per_cms_mask::get_report_class() const
{
TString& classe = get_tmp_string();
classe = "ca3600a";
return classe;
}
bool TPag_per_cms_mask::test_compatible_report()
{
const TString& cls = get_report_class();
const TString& name = get(F_REPORT);
bool ok = name.not_empty();
if (ok)
{
TReport rep;
ok = rep.load(name);
if (ok)
{
const TString& classe = rep.get_class();
ok = classe == cls;
}
}
if (!ok)
{
set(F_REPORT, cls);
TFilename path = cls;
path.ext("rep");
ok = path.custom_path();
}
return ok;
}
bool TPag_per_cms_mask::on_field_event(TOperable_field& o, TField_event e, long jolly)
{
switch (o.dlg())
{
case DLG_PRINT:
if (e == fe_button)
{
main_app().print();
return false;
}
break;
case DLG_PREVIEW:
if (e == fe_button)
{
main_app().preview();
return false;
}
break;
case F_REPORT:
if (e == fe_button)
{
const TString8 lib = get_report_class();
TFilename path = o.get();
if (select_custom_file(path, "rep", lib))
{
path = path.name();
path.ext("");
o.set(path);
}
} else
if (e == fe_close)
{
if (!test_compatible_report())
return error_box(TR("Impossibile trovare un report compatibile"));
}
break;
case DLG_SAVEREC:
if (e == fe_button)
{
@ -188,7 +124,7 @@ protected:
TDate _dadata, _adata;
long _dacodfor, _acodfor;
TString16 _campodata;
TString _codcosto, _codcms, _codfas;
TString _codcosto, _codcms, _codfas, _contsep;
TAssoc_array _costi,_pagamenti,_fiscali,_sociali; //array che contengono i conti letti dal .ini
@ -258,7 +194,6 @@ void TPag_per_cms_recordset::set_custom_filter(TCursor& cur) const
f.format("(ANSI(%s)<=\"%s\")", (const char*)_campodata, _adata.string(ANSI));
filtro << f;
}
cur.setregion(darec, arec);
cur.setfilter(filtro);
@ -272,23 +207,16 @@ const TVariant& TPag_per_cms_recordset::get(const char* column_name) const
if (*column_name == '#')
{
if (strcmp(column_name, "#COSTO") == 0)
{
TVariant& var = get_tmp_var();
var = _codcosto;
return var;
}
return get_tmp_var() = _codcosto;
else
if (strcmp(column_name, "#COMMESSA") == 0)
{
TVariant& var = get_tmp_var();
var = _codcms;
return var;
}
return get_tmp_var() = _codcms;
else
if (strcmp(column_name, "#FASE") == 0)
{
TVariant& var = get_tmp_var();
var = _codfas;
return var;
}
return get_tmp_var() = _codfas;
else
if (strcmp(column_name, "#CONTSEP") == 0)
return get_tmp_var() = _contsep;
}
return TISAM_recordset::get(column_name);
}
@ -661,7 +589,13 @@ bool TPag_per_cms_recordset::check_cms_cdc_fsc(const TRectype& rec_analriga)
return false;
if (_codfas.not_empty() && _codfas != rec_analriga.get(RMOVANA_CODFASE))
return false;
if (_contsep.not_empty())
{
const TRectype & movana = cache().get(LF_MOVANA, rec_analriga.get_long(RMOVANA_NUMREG));
if (_contsep != movana.get(MOVANA_CONTSEP))
return false;
}
return true;
}
@ -1040,7 +974,7 @@ void TPag_per_cms_recordset::set_filter(const TPag_per_cms_mask& msk, const int
//crea il file .trr in base ai parametri del metodo
crea_trr(trr);
//svuota la memoria dal vecchio file temporaneo
if (_tmp != NULL)
if (_tmp != nullptr)
delete _tmp;
//crea in memoria il nuovo file temporaneo e lo azzera (non si sa mai..)
@ -1066,6 +1000,7 @@ void TPag_per_cms_recordset::set_filter(const TPag_per_cms_mask& msk, const int
_dadata = msk.get_date(F_DATAINI);
_adata = msk.get_date(F_DATAFIN);
_contsep = msk.get(F_CONTSEP);
//carica i conti memorizzati nel ca3600.ini,registrandoli negli assoc_array _costi ecc...
lettura_conti(_costi, 'C');
@ -1090,6 +1025,7 @@ class TPag_per_cms_rep : public TAnal_report
protected:
virtual bool set_recordset(const TString& sql);
virtual bool get_usr_val(const TString& name, TVariant& var) const;
virtual void set_dbase_fixed_fields(bool on = true);
public:
void set_filter(const TPag_per_cms_mask& msk, const int cms_row, const long dacodfor, const long acodfor, const TString& campodata);
@ -1101,6 +1037,14 @@ bool TPag_per_cms_rep::get_usr_val(const TString& name, TVariant& var) const
return TAnal_report::get_usr_val(name, var);
}
void TPag_per_cms_rep::set_dbase_fixed_fields(bool on)
{
field("B1.201")->show(on);
field("B1.202")->show(on);
field("B1.203")->show(on);
field("B1.204")->show(on);
field("B1.205")->show(on);
}
bool TPag_per_cms_rep::set_recordset(const TString& sql)
{
@ -1127,16 +1071,19 @@ void TPag_per_cms_rep::set_filter(const TPag_per_cms_mask& msk, const int cms_ro
// APPLICAZIONE
////////////////////////////////////////////////////////
class TPag_per_cms : public TSkeleton_application
class TPag_per_cms : public TReport_application
{
TPag_per_cms_mask* _mask;
TPag_per_cms_rep * _rep;
protected:
virtual void print();
virtual void preview();
void print_or_preview(const bool stampa);
virtual void main_loop();
virtual TReport & get_report(const TAutomask & m);
virtual TTrec * get_dbase_recdesc(TReport & rep, const TAutomask & mask);
virtual TAutomask & get_mask();
virtual void execute_print(TReport_book & book, TAutomask & mask, TReport & rep, export_type type = _export_printer);
virtual const char * output_name(const TAutomask & mask, const TReport & rep) const { return "pagcms"; }
// @cmember Distruzione dei dati dell'utente
virtual bool user_destroy();
public:
void stampa_per_commessa(const TPag_per_cms_mask& mask, TReport_book& book,
@ -1144,14 +1091,69 @@ public:
const TString& campodata);
const TMultilevel_code_info& get_level_one() const;
TPag_per_cms() : _mask(nullptr), _rep(nullptr) {}
~TPag_per_cms() {}
};
TReport & TPag_per_cms::get_report(const TAutomask & m)
{
if (_rep == nullptr)
_rep = new TPag_per_cms_rep;
_rep->load(_mask->get(DLG_REPORT));
return *_rep;
}
TAutomask & TPag_per_cms::get_mask()
{
if (_mask == nullptr)
_mask = new TPag_per_cms_mask;
return *_mask;
}
TTrec * TPag_per_cms::get_dbase_recdesc(TReport & rep, const TAutomask & mask)
{
TTrec * desc = new TTrec;
TToken_string def;
TRectype cms(LF_COMMESSE);
TRectype fasi(LF_FASI);
TRectype cdc(LF_CDC);
TRectype rmovana(LF_RMOVANA);
TRectype movana(LF_MOVANA);
desc->add_fielddef(movana.rec_des(), MOVANA_NUMREG);
desc->add_fielddef(movana.rec_des(), MOVANA_DATAREG);
desc->add_fielddef(movana.rec_des(), MOVANA_DATAREG);
desc->set_name("DATAPAG");
desc->add_fielddef(movana.rec_des(), MOVANA_DESCR);
desc->add_fielddef(movana.rec_des(), MOVANA_NUMDOC);
desc->add_fielddef(movana.rec_des(), MOVANA_DATADOC);
desc->add_fielddef("PROT", _longfld, 6);
desc->add_fielddef("TOTDOC", _realfld, 18, 2);
desc->add_fielddef("TOTPAG", _realfld, 18, 2);
desc->add_fielddef(cdc.rec_des(), CDC_CODCOSTO);
desc->add_fielddef(cms.rec_des(), COMMESSE_CODCMS);
desc->add_fielddef(fasi.rec_des(), FASI_CODFASE);
desc->add_fielddef(movana.rec_des(), MOVANA_CONTSEP);
TToken_string keydef(CDC_CODCOSTO, '+');
keydef.add(COMMESSE_CODCMS);
keydef.add(FASI_CODFASE);
keydef.add(MOVANA_NUMREG);
desc->add_keydef(keydef, true);
return desc;
}
//metodo per accattarsi o' primo livello della configurazione CA
const TMultilevel_code_info& TPag_per_cms::get_level_one() const
{
TConfig& cfg = ca_config();
const TString& first_lev = cfg.get("Level(1)");
const int logic = first_lev == "CDC" ? LF_CDC : LF_COMMESSE;
return ca_multilevel_code_info(logic);
}
@ -1161,21 +1163,18 @@ void TPag_per_cms::stampa_per_commessa(const TPag_per_cms_mask& mask, TReport_bo
{
TSheet_field& sheet = mask.sfield(F_RIGHE);
TString video_string; //stringa che compare nella progind
if (sheet.empty()) //se non ci sono righe sullo sheet (selezione su tutte le cms/cdc)...
{
TToken_string& row = sheet.row(-1); //crea la prima riga dello sheet
const TMultilevel_code_info& liv1 = get_level_one(); //stabilisce quale è il primo livello (tra CDC e CMS)..
TISAM_recordset set(liv1.logic() == LF_CDC ? "USE CDC" : "USE COMMESSE"); //..e di conseguenza scrive la use giusta
TProgress_monitor pi(set.items(), video_string, true);
TProgind pi(set.items(), video_string, true, true);
for (int i = 0; set.move_to(i); i++) //fighissimo metodo per scandire un file in 1 riga!
for (int i = 0; pi.add_status() && set.move_to(i); i++) //fighissimo metodo per scandire un file in 1 riga!
{
pi.addstatus(1);
if (pi.iscancelled())
break;
row = set.get((unsigned int)0).as_string(); //prende il valore del primo campo del file (CDC o CMS code)
video_string = TR("Scansione");
video_string << " " << row; //completa la stringa da visualizzare sulla progind
pi.set_text(video_string);
@ -1199,17 +1198,7 @@ void TPag_per_cms::stampa_per_commessa(const TPag_per_cms_mask& mask, TReport_bo
}
}
void TPag_per_cms::print()
{
print_or_preview(true);
}
void TPag_per_cms::preview()
{
print_or_preview(false);
}
void TPag_per_cms::print_or_preview(const bool stampa)
void TPag_per_cms::execute_print(TReport_book & book, TAutomask & mask, TReport & rep, export_type type)
{
//il programma si puo' usare SOLO se in contabilita' analitica si usa il piano dei conti contabile
TConfig& cfg = ca_config();
@ -1220,18 +1209,11 @@ void TPag_per_cms::print_or_preview(const bool stampa)
return;
}
//report e book dei report
TReport_book book;
TString path = _mask->get(F_REPORT);
if (path.empty())
path = "ca3600a";
TPag_per_cms_rep rep;
rep.load(path);
//scelta tipo data di estrazione (registrazione, documento, pagamento)
//viene presa qui perche' serve subito alla set_filter del report prima che venga..
//..utilizzata nel recordset
TString16 campodata = PART_DATAREG;
switch(_mask->get_int(F_TIPODATA))
{
case 1: campodata = PART_DATADOC; break;
@ -1245,21 +1227,16 @@ void TPag_per_cms::print_or_preview(const bool stampa)
const long dacodfor = _mask->get_long(F_DACODFOR);
const long acodfor = _mask->get_long(F_ACODFOR);
stampa_per_commessa(*_mask, book, rep, dacodfor, acodfor, campodata); //se non si specifica alcun clifo...
if (stampa)
book.print(); //stampa il book dei report
else
book.preview(); //anteprima
rep.set_export_sections(type);
stampa_per_commessa(*_mask, book, (TPag_per_cms_rep &) rep, dacodfor, acodfor, campodata); //se non si specifica alcun clifo...
rep.reset_export_sections();
}
void TPag_per_cms::main_loop()
bool TPag_per_cms::user_destroy()
{
_mask = new TPag_per_cms_mask;
_mask->run();
delete _mask;
_mask = NULL;
safe_delete(_mask);
safe_delete(_rep);
return TReport_application::user_destroy();
}
int ca3600(int argc, char* argv[])

View File

@ -9,7 +9,8 @@
#define F_DADESFOR 204
#define F_ACODFOR 205
#define F_ADESFOR 206
#define F_REPORT 207
#define F_CONTSEP 207
#define F_DESCONTSEP 208
//sheet commesse e righe relative
#define F_RIGHE 260

View File

@ -1,32 +1,22 @@
#include "ca3600.h"
#include "camask.h"
#define ALL_EXPORT
#define CLASS_NAME "ca3600"
TOOLBAR "topbar" 0 0 0 2
#include <aprintbar.h>
ENDPAGE
TOOLBAR "bottombar" 0 -2 0 1
STRING F_REPORT 256 64
BEGIN
PROMPT 2 -2 "Report "
FLAGS "B"
CHECKTYPE REQUIRED
END
STRING DLG_PROFILE 50
BEGIN
PROMPT 2 -1 "Profilo "
PSELECT
END
TOOLBAR "bottombar" 0 -3 0 1
#include <bprintbar.h>
ENDPAGE
PAGE "Stampa pagato" 0 0 0 2
SPREADSHEET F_RIGHE -1 8
BEGIN
PROMPT 1 1 "Centro di Costo / Commessa / Fase"
PROMPT 0 1 "Centro di Costo / Commessa / Fase"
ITEM "Cdc1"
ITEM "Cdc2"
ITEM "Cdc3"
@ -124,6 +114,32 @@ BEGIN
CHECKTYPE NORMAL
END
STRING F_CONTSEP 6
BEGIN
PROMPT 1 18 "Cont. separata "
USE &NPENT
INPUT CODTAB F_CONTSEP
DISPLAY "Codice@6" CODTAB
DISPLAY "Descrizione@50" S0
OUTPUT F_CONTSEP CODTAB
OUTPUT F_DESCONTSEP S0
CHECKTYPE NORMAL
FIELD CONTSEP
MODULE NP
END
STRING F_DESCONTSEP 50 48
BEGIN
PROMPT 26 18 ""
USE &NPENT KEY 2
INPUT S0 F_DESCONTSEP
DISPLAY "Descrizione@50" S0
DISPLAY "Codice@6" CODTAB
COPY OUTPUT F_CONTSEP
CHECKTYPE NORMAL
MODULE NP
END
ENDPAGE
//-------------- pagina con configurazione conti ---------------------

View File

@ -1,184 +1,197 @@
<report libraries="ve1300" name="ca3600a" orientation="2" lpi="8" class="ca3600a">
<?xml version="1.0" encoding="UTF-8" ?>
<report libraries="ve1300" page_merge="" save_printer="" name="ca3600a" use_printer_font="" orientation="2" page_split="" lpi="8" command="" class="ca3600">
<description>Pagato CA</description>
<font face="Courier New" size="8" />
<section type="Head" height="5">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="" hidden="" height="5" page_break="" can_break="" pattern="1">
<font italic="1" face="Courier New" bold="1" size="8" />
<field x="1" type="Stringa" width="50" pattern="1">
<field x="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font italic="1" face="Courier New" bold="1" size="10" />
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="80" type="Data" width="10" pattern="1">
<field x="80" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<source>#SYSTEM.DATE</source>
</field>
<field x="155" type="Numero" align="right" width="3" pattern="1">
<field x="155" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="">
<source>#REPORT.PAGE</source>
</field>
<field border="2" x="1" y="2" type="Linea" width="160" height="0" pattern="1" />
<field x="1" y="3.5" type="Testo" align="right" width="7" pattern="1" text="N. Reg." />
<field x="10" y="3.5" type="Testo" align="center" width="11" pattern="1" text="Data reg." />
<field x="21" y="3.5" type="Testo" align="center" width="11" pattern="1" text="Data pag." />
<field x="33" y="3.5" type="Testo" width="25" pattern="1" text="Descrizione pagamento" />
<field x="79" y="3.5" type="Testo" align="center" width="7" pattern="1" text="N. doc." />
<field x="94" y="3.5" type="Testo" align="center" width="10" pattern="1" text="Data doc." />
<field x="107.5" y="3.5" type="Testo" width="5" pattern="1" text="Prot." />
<field x="114" y="3.5" type="Testo" align="right" width="15" pattern="1" text="Tot. documento" />
<field x="130" y="3.5" type="Testo" align="right" width="15" pattern="1" text="Tot. pagamento" />
<field x="146" y="3.5" type="Testo" align="right" width="15" pattern="1" text="Tot. residuo" />
<field border="1" x="1" y="4.5" type="Linea" width="160" height="0" pattern="1" />
<field border="2" x="1" y="2" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="160" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="1" y="3.5" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="N. Reg." />
<field x="10" y="3.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="1" hide_zero="" text="Data reg." />
<field x="21" y="3.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="1" hide_zero="" text="Data pag." />
<field x="33" y="3.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="25" codval="" id="" pattern="1" hide_zero="" text="Descrizione pagamento" />
<field x="79" y="3.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="N. doc." />
<field x="94" y="3.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Data doc." />
<field x="107.5" y="3.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="1" hide_zero="" text="Prot." />
<field x="114" y="3.5" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Tot. documento" />
<field x="130" y="3.5" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Tot. pagamento" />
<field x="146" y="3.5" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Tot. residuo" />
<field border="1" x="1" y="4.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="160" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
</section>
<section type="Head" level="1" height="9">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="1" hidden="" page_break="" can_break="" pattern="1">
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1.101
MESSAGE RESET,F1.102</prescript>
<field border="1" radius="100" x="1" type="Testo" valign="center" align="center" shade_offset="25" width="158" height="2.5" text="PAGATO PER COMMESSA &#2F; FORNITORE">
<field border="1" radius="100" x="1" deactivated="" type="Testo" valign="center" hidden="" align="center" link="" dynamic_height="" shade_offset="25" width="158" codval="" height="2.5" id="" pattern="2" hide_zero="" text="PAGATO PER COMMESSA &#2F; FORNITORE">
<font face="Courier New" bold="1" size="16" />
</field>
<field x="1" y="3" type="Testo" width="18" pattern="1" text="Centro di Costo:" />
<field x="14" y="3" type="Stringa" width="23" pattern="1">
<field x="1" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="18" codval="" id="" pattern="1" hide_zero="" text="Centro di Costo:" />
<field x="38" y="3" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#COSTO</source>
<prescript description="H1.0 PRESCRIPT">CA_FORMAT_COSTO</prescript>
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,CDC,CODCOSTO=#103,DESCRIZ</prescript>
</field>
<field x="38" y="3" type="Stringa" width="50" pattern="1">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,CDC,CODCOSTO=#COSTO,DESCRIZ</prescript>
</field>
<field x="110" y="3" type="Testo" width="14" pattern="1" text="Anno:" />
<field x="126" y="3" type="Stringa" width="4" pattern="1">
<field x="110" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="14" codval="" id="" pattern="1" hide_zero="" text="Anno:" />
<field x="126" y="3" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,ANNO</prescript>
</field>
<field x="140" y="3" type="Testo" width="17" pattern="1" text="Regime IVA:" />
<field x="157" y="3" type="Stringa" width="2" pattern="1">
<field x="140" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="17" codval="" id="" pattern="1" hide_zero="" text="Regime IVA:" />
<field x="157" y="3" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="2" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,REGIVA</prescript>
</field>
<field x="14" y="4.5" type="Stringa" width="23" pattern="1">
<field x="38" y="4.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#COMMESSA</source>
<prescript description="H1.0 PRESCRIPT">CA_FORMAT_COMMESSA</prescript>
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#104,DESCRIZ</prescript>
</field>
<field x="38" y="4.5" type="Stringa" width="50" pattern="1">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DESCRIZ</prescript>
</field>
<field x="110" y="4.5" type="Testo" width="14" pattern="1" text="Data inizio:" />
<field x="126" y="4.5" type="Data" width="10" pattern="1">
<field x="110" y="4.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="14" codval="" id="" pattern="1" hide_zero="" text="Data inizio:" />
<field x="126" y="4.5" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DATAINIZIO</prescript>
</field>
<field x="140" y="4.5" type="Testo" width="17" pattern="1" text="Da rendicontare:" />
<field x="157" y="4.5" type="Stringa" width="1" pattern="1">
<field x="140" y="4.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="17" codval="" id="" pattern="1" hide_zero="" text="Da rendicontare:" />
<field x="157" y="4.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="1" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,RENDIC</prescript>
</field>
<field x="1" y="4.58" type="Testo" width="9" pattern="1" text="Commessa:" />
<field x="14" y="6" type="Stringa" width="13" pattern="1">
<field x="1" y="4.58" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="9" codval="" id="" pattern="1" hide_zero="" text="Commessa:" />
<field x="38" y="6" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#FASE</source>
<prescript description="H1.0 PRESCRIPT">CA_FORMAT_FASE</prescript>
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,FASI,CODFASE=#105,DESCRIZ</prescript>
</field>
<field x="38" y="6" type="Stringa" width="50" pattern="1">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,FASI,CODFASE=#FASE,DESCRIZ</prescript>
</field>
<field x="110" y="6" type="Testo" width="14" pattern="1" text="Fine prevista:" />
<field x="126" y="6" type="Data" width="10" pattern="1">
<field x="110" y="6" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="14" codval="" id="" pattern="1" hide_zero="" text="Fine prevista:" />
<field x="126" y="6" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DATAFINE</prescript>
</field>
<field x="140" y="6" type="Testo" width="17" pattern="1" text="Chiusa:" />
<field x="157" y="6" type="Stringa" width="1" pattern="1">
<field x="140" y="6" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="17" codval="" id="" pattern="1" hide_zero="" text="Chiusa:" />
<field x="157" y="6" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="1" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,CHIUSA</prescript>
</field>
<field x="1" y="6.08" type="Testo" width="5" pattern="1" text="Fase:" />
<field x="1" y="7.5" type="Testo" width="18" pattern="1" text="Cliente principale:" />
<field x="110" y="7.5" type="Testo" width="14" pattern="1" text="Fine proroga:" />
<field x="126" y="7.5" type="Data" width="10" pattern="1">
<field x="1" y="6.08" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="1" hide_zero="" text="Fase:" />
<field x="38" y="7.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<modules>NP</modules>
<prescript description="H1.0 PRESCRIPT">MESSAGE TABLEREAD,&#26;NPENT,#106,S0</prescript>
</field>
<field x="110" y="7.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="14" codval="" id="" pattern="1" hide_zero="" text="Fine proroga:" />
<field x="126" y="7.5" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DATAPROR</prescript>
</field>
<field x="140" y="7.5" type="Testo" width="17" pattern="1" text="Prorogata:" />
<field x="157" y="7.5" type="Stringa" width="1" pattern="1">
<field x="140" y="7.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="17" codval="" id="" pattern="1" hide_zero="" text="Prorogata:" />
<field x="157" y="7.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="1" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,PROROGA</prescript>
</field>
<field border="2" x="1" y="9" type="Linea" width="159" height="0" pattern="1" />
<field x="20" y="7.5" type="Stringa" width="6" id="101" pattern="1">
<field x="1" y="7.58" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Cont.sep.:">
<modules>NP</modules>
</field>
<field x="1" y="9" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="18" codval="" id="" pattern="1" hide_zero="" text="Cliente principale:" />
<field border="2" x="1" y="10" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="159" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="20" y="9" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="6" codval="" id="101" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.101 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,CODCF</prescript>
</field>
<field x="30" y="7.5" type="Stringa" width="50" id="102" pattern="1">
<field x="30" y="9" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="102" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.102 PRESCRIPT">MESSAGE ISAMREAD,CLIFO,TIPOCF=C!CODCF=#101,RAGSOC</prescript>
</field>
<field x="14" y="3" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="103" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#COSTO</source>
<prescript description="H1.103 PRESCRIPT">CA_FORMAT_COSTO</prescript>
</field>
<field x="14" y="4.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="104" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#COMMESSA</source>
<prescript description="H1.104 PRESCRIPT">CA_FORMAT_COMMESSA</prescript>
</field>
<field x="14" y="6" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="105" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#FASE</source>
<prescript description="H1.105 PRESCRIPT">CA_FORMAT_FASE</prescript>
</field>
<field x="14" y="7.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="106" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<modules>NP</modules>
<source>#CONTSEP</source>
</field>
</section>
<section repeat="1" type="Head" level="2" height="2">
<section repeat="1" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="2" hidden="" height="2" page_break="" can_break="" pattern="1">
<groupby>CODFORN</groupby>
<font italic="1" face="Courier New" size="8" />
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2.101
MESSAGE RESET,F2.102
MESSAGE RESET,F2.103</prescript>
<field x="1" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="7" hide_zero="1">
<field x="1" y="0.5" deactivated="" type="Numero" hidden="" align="right" link="" bg_color="#C0C0C0" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="2" hide_zero="1" text="">
<font italic="1" face="Courier New" bold="1" size="8" />
<source>CODFORN</source>
</field>
<field x="8" y="0.5" type="Stringa" bg_color="#C0C0C0" width="50">
<field x="8" y="0.5" deactivated="" type="Stringa" hidden="" link="" bg_color="#C0C0C0" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="2" hide_zero="" text="">
<font italic="1" face="Courier New" bold="1" size="8" />
<source>DESFORN</source>
</field>
</section>
<section type="Head" level="3">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="3" hidden="" page_break="" can_break="" pattern="1">
<groupby>FSC</groupby>
<font italic="1" face="Courier New" bold="1" size="8" />
<prescript description="H3 PRESCRIPT">MESSAGE RESET,F3.101
MESSAGE RESET,F3.102
MESSAGE RESET,F3.103</prescript>
<field x="1" type="Stringa" width="10" pattern="1">
<field x="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<source>FSC</source>
<prescript description="H3.0 PRESCRIPT">MESSAGE RESET,F3.101
MESSAGE RESET,F3.102
MESSAGE RESET,F3.103</prescript>
</field>
</section>
<section type="Body" />
<section type="Body" level="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="" hidden="" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="1" hidden="" page_break="" can_break="" pattern="1">
<condition>HIDDEN!='X'</condition>
<field x="9" type="Data" width="10" pattern="1">
<field x="9" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<source>DATAREG</source>
</field>
<field x="21" type="Data" width="10" pattern="1">
<field x="21" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<source>DATAPAG</source>
</field>
<field x="33" type="Stringa" width="50" pattern="1">
<field x="33" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<source>DESCRPAG</source>
</field>
<field x="84" type="Stringa" width="7" pattern="1">
<field x="84" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="">
<source>NDOC</source>
</field>
<field x="94" type="Data" width="10" pattern="1">
<field x="94" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<source>DATADOC</source>
</field>
<field x="107" type="Numero" align="right" width="5" pattern="1">
<field x="107" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="1" hide_zero="" text="">
<source>PROT</source>
</field>
<field x="114" type="Valuta" align="right" width="15" pattern="1" text="###.###.###,@@">
<field x="114" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="###.###.###,@@">
<source>TOTDOC</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F2.101
MESSAGE ADD,F3.101</postscript>
</field>
<field x="130" type="Valuta" align="right" width="15" pattern="1" text="###.###.###,@@">
<field x="130" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="###.###.###,@@">
<source>TOTPAG</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F2.102
MESSAGE ADD,F3.102</postscript>
</field>
<field x="146" type="Valuta" align="right" width="15" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="146" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>TOTRES</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F2.103
MESSAGE ADD,F3.103</postscript>
</field>
<field type="Numero" hidden="1" align="right" width="1" id="100" pattern="1">
<field deactivated="" type="Numero" hidden="1" align="right" link="" dynamic_height="" shade_offset="" width="1" codval="" id="100" pattern="1" hide_zero="" text="">
<prescript description="B1.100 PRESCRIPT">#THIS @
0 &#3E;
IF
@ -198,56 +211,76 @@ MESSAGE ADD,F3.103</postscript>
1 +
#THIS !</prescript>
</field>
<field x="1" type="Stringa" align="right" width="7" id="105" pattern="1">
<field x="1" deactivated="" type="Stringa" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="7" codval="" id="105" pattern="1" hide_zero="" text="">
<source>NREG</source>
</field>
<field x="162" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="23" codval="" id="201" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#COSTO</source>
<prescript description="">CA_FORMAT_COSTO</prescript>
</field>
<field x="186" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="23" codval="" id="202" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#COMMESSA</source>
<prescript description="">CA_FORMAT_COMMESSA</prescript>
</field>
<field x="210" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="13" codval="" id="203" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#FASE</source>
<prescript description="">CA_FORMAT_FASE</prescript>
</field>
<field x="224" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="13" codval="" id="204" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<modules>NP</modules>
<source>#CONTSEP</source>
</field>
</section>
<section type="Foot" />
<section type="Foot" level="1">
<field border="2" x="1" y="0.5" type="Linea" width="160" height="0" pattern="1" />
<field x="73" y="1" type="Testo" width="30" pattern="1" text="TOTALE PER COMMESSA:">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="" hidden="" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="1" hidden="" page_break="" can_break="" pattern="1">
<field border="2" x="1" y="0.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="160" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="73" y="1" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="30" codval="" id="" pattern="1" hide_zero="" text="TOTALE PER COMMESSA:">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="114" y="1" type="Valuta" align="right" width="15" id="101" pattern="1" text="###.###.###,@@">
<field x="114" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="101" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="130" y="1" type="Valuta" align="right" width="15" id="102" pattern="1" text="###.###.###,@@">
<field x="130" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="102" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="146" y="1" type="Valuta" align="right" width="15" id="103" pattern="1" text="###.###.###,@@">
<field x="146" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="103" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
</section>
<section type="Foot" level="2" height="2.5">
<field border="1" x="1" y="0.5" type="Linea" width="160" height="0" pattern="1" />
<field x="80" y="1" type="Testo" width="25" pattern="1" text="Totale per fornitore:">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="2" hidden="" height="2.5" page_break="" can_break="" pattern="1">
<field border="1" x="1" y="0.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="160" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="80" y="1" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="25" codval="" id="" pattern="1" hide_zero="" text="Totale per fornitore:">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="114" y="1" type="Valuta" align="right" width="15" id="101" pattern="1" text="###.###.###,@@">
<field x="114" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="101" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
<postscript description="F2.101 POSTSCRIPT">MESSAGE ADD,F1.101</postscript>
</field>
<field x="130" y="1" type="Valuta" align="right" width="15" id="102" pattern="1" text="###.###.###,@@">
<field x="130" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="102" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
<postscript description="F2.102 POSTSCRIPT">MESSAGE ADD,F1.102</postscript>
</field>
<field x="146" y="1" type="Valuta" align="right" width="15" id="103" pattern="1" text="###.###.###,@@">
<field x="146" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="103" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
<postscript description="F2.103 POSTSCRIPT">MESSAGE ADD,F1.103</postscript>
</field>
</section>
<section type="Foot" level="3">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="3" hidden="" page_break="" can_break="" pattern="1">
<prescript description="F3 PRESCRIPT">0 #B1.100 !</prescript>
<field x="80" y="0.5" type="Testo" width="20" pattern="1" text="Totale per fase:">
<field x="80" y="0.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="Totale per fase:">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="114" y="0.5" type="Valuta" align="right" width="15" id="101" pattern="1" text="###.###.###,@@">
<field x="114" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="101" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="130" y="0.5" type="Valuta" align="right" width="15" id="102" pattern="1" text="###.###.###,@@">
<field x="130" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="102" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="146" y="0.5" type="Valuta" align="right" width="15" id="103" pattern="1" text="###.###.###,@@">
<field x="146" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="15" codval="" id="103" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
</section>

View File

@ -2,8 +2,7 @@
#include <defmask.h>
#include <execp.h>
#include <progind.h>
#include <reprint.h>
#include <reputils.h>
#include <repapp.h>
#include <textset.h>
#include <utility.h>
#include <doc.h>
@ -15,6 +14,7 @@
#include "cdc.h"
#include "commesse.h"
#include "fasi.h"
#include "panapdc.h"
#include "pconana.h"
#include "movana.h"
@ -55,8 +55,6 @@ class TPrint_rendiconto_ca_mask : public TAnal_report_mask
protected:
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
const TString& get_report_class() const;
bool test_compatible_report();
public:
char print_mode() const { return _print_mode; }
@ -65,66 +63,14 @@ public:
virtual ~TPrint_rendiconto_ca_mask() {}
};
const TString& TPrint_rendiconto_ca_mask::get_report_class() const
{
TString& classe = get_tmp_string();
classe = "ca3700a";
return classe;
}
bool TPrint_rendiconto_ca_mask::test_compatible_report()
{
const TString& cls = get_report_class();
const TString& name = get(F_REPORT);
bool ok = name.not_empty();
if (ok)
{
TReport rep;
ok = rep.load(name);
if (ok)
{
const TString& classe = rep.get_class();
ok = classe == cls;
}
}
if (!ok)
{
set(F_REPORT, cls);
TFilename path = cls;
path.ext("rep");
ok = path.custom_path();
}
return ok;
}
bool TPrint_rendiconto_ca_mask::on_field_event(TOperable_field& o, TField_event e, long jolly)
{
switch (o.dlg())
{
case DLG_PREVIEW: //gestione del tasto anteprima!
if (e == fe_button)
{
stop_run('A');
}
case DLG_REPORT:
if (e == fe_init)
set_report_class();
break;
case DLG_EXPORT:
if (e == fe_button)
{
TString path = get(F_PATH);
if (path.empty())
return error_box(TR("Specificare una cartella dove creare il file rendiconto.xls!"));
}
break;
#ifndef DBG
case F_RIGHE:
if (e == fe_init) //azzera le righe dello sheet con le commesse ad inizio programma
{ //esplicita e bizzarra richiesta del CRPA
TSheet_field& s = (TSheet_field&)o;
s.destroy();
s.force_update();
}
break;
#endif
case F_DATAINI:
case F_DATAFIN:
if (e == fe_close)
@ -137,33 +83,8 @@ bool TPrint_rendiconto_ca_mask::on_field_event(TOperable_field& o, TField_event
if (!data.empty() && esc.date2esc(data) != anno)
return error_box(TR("La data deve appartenere all'anno selezionato"));
}
/* else //se l'esercizio è vuoto le date diventano obbligatorie!!
{
if (o.empty())
return error_box(TR("La data è obbligatoria in quanto manca l'esercizio"));
}*/
}
break;
case F_REPORT:
if (e == fe_button)
{
const TString8 lib = get_report_class();
TFilename path = o.get();
if (select_custom_file(path, "rep", lib))
{
path = path.name();
path.ext("");
o.set(path);
}
} else
if (e == fe_close)
{
if (!test_compatible_report())
return error_box(TR("Impossibile trovare un report compatibile"));
}
if (e == fe_init)
_print_mode = 'S';
break;
case F_PRE1:
case F_PRE2:
case F_PRE3:
@ -364,7 +285,7 @@ protected:
TDate _dadata, _adata;
bool _vitaintera;
long _danumreg, _anumreg;
TString _daconto, _aconto, _codcosto, _codcms, _codfas;
TString _daconto, _aconto, _codcosto, _codcms, _codfas, _contsep;
protected:
static bool mov_filter(const TRelation* rel);
@ -491,6 +412,12 @@ void TPrint_rendiconto_ca_recordset::set_custom_filter(TCursor& cur) const
filtro << "(BETWEEN(CONTO,\"" << _daconto << "\",\"" << _aconto << "~\"))";
}
if (_contsep.full())
{
if (filtro.not_empty())
filtro << "&&";
//filtro << "(" << MOVANA_CONTSEP << "==\"" << _contsep << "\")";
}
cur.setfilter(filtro);
}
@ -512,6 +439,9 @@ void TPrint_rendiconto_ca_recordset::get_budget_export(const TString& codcdc, co
query << "(COMMESSA='" << codcms << "')&&";
if (codfase.full())
query << "(FASE='" << codfase << "')&&";
if (_contsep.full())
query << "(" << MOVANA_CONTSEP << "='" << _contsep << "')&&";
if (query[query.len() - 1] == '&')
query.rtrim(2);
TISAM_recordset saldana(query);
@ -563,7 +493,7 @@ real TPrint_rendiconto_ca_recordset::get_budget_batch(const TString& codcdc, con
if (_riclassificato)
tipo_movimento |= _saldanal_riclassify;
//..ecco quindi il saldo..
const TSaldanal& saldo = ca_saldo(zio, null_date, null_date, tipo_movimento);
const TSaldanal& saldo = ca_saldo(zio, "", null_date, null_date, tipo_movimento); // qui
//..che deve essere normalizzato in base alla sua sezione ed all'indicatore di bilancio del conto
TImporto imp = saldo._fin;
switch (zio.indicatore_bilancio())
@ -601,7 +531,7 @@ real TPrint_rendiconto_ca_recordset::get_budget_print(const TString& conto, char
if (_riclassificato)
tipo_movimento |= _saldanal_riclassify;
//..ecco quindi il saldo..
const TSaldanal& saldo = ca_saldo(zio, null_date, null_date, tipo_movimento);
const TSaldanal& saldo = ca_saldo(zio, _contsep, null_date, null_date, tipo_movimento);
//..che deve essere normalizzato in base alla sua sezione ed all'indicatore di bilancio del conto
TImporto imp = saldo._fin;
switch (zio.indicatore_bilancio())
@ -625,25 +555,21 @@ const TVariant& TPrint_rendiconto_ca_recordset::get(const char* column_name) con
if (*column_name == '#')
{
if (strcmp(column_name, "#COSTO") == 0)
{
TVariant& var = get_tmp_var();
var = _codcosto;
return var;
}
if (strcmp(column_name, "#COMMESSA") == 0)
{
TVariant& var = get_tmp_var();
var = _codcms;
return var;
}
if (strcmp(column_name, "#FASE") == 0)
{
TVariant& var = get_tmp_var();
var = _codfas;
return var;
}
if (strcmp(column_name, "#PIANO") == 0)
const TString fld(column_name);
if (fld == "#COSTO")
return get_tmp_var() = _codcosto;
else
if (fld == "#COMMESSA")
return get_tmp_var() = _codcms;
else
if (fld == "#FASE")
return get_tmp_var() = _codfas;
else
if (fld == "#CONTSEP")
return get_tmp_var() = _contsep;
else
if (fld == "#PIANO")
{
TVariant& var = get_tmp_var();
if (_piano == "A")
@ -652,35 +578,32 @@ const TVariant& TPrint_rendiconto_ca_recordset::get(const char* column_name) con
var = "Contabile";
return var;
}
if (strcmp(column_name, "#DACONTO") == 0)
{
TVariant& var = get_tmp_var();
var = _daconto;
return var;
}
if (strcmp(column_name, "#ACONTO") == 0)
{
TVariant& var = get_tmp_var();
var = _aconto;
return var;
}
else
if (fld == "#DACONTO")
return get_tmp_var() = _daconto;
else
if (fld == "#ACONTO")
return get_tmp_var() = _aconto;
//cerca l'indicatore di bilancio del conto;utilizzato per stabilire il campo ove sommare..
//..i budget nella coda report
if (strcmp(column_name, "#INDBIL") == 0)
else
if (fld == "#INDBIL")
{
const TString& conto = TISAM_recordset::get("CONTO").as_string();
TAnal_bill zio(conto);
return get_tmp_var() = (long)zio.indicatore_bilancio();
}
else
//calcola il valore e la sezione del campo budget di un conto basandosi sull'indicatore di..
//..bilancio ed il saldo del conto (movimenti analitici di tipo preventivo)
if (strcmp(column_name, "#PREVENTIVO") == 0)
if (fld == "#PREVENTIVO")
{
//stessa cosa del precedente ma per movimenti di tipo variazione preventivo
const TString& conto = TISAM_recordset::get("CONTO").as_string();
return get_tmp_var() = get_budget_print(conto, 'P');
}
if (strcmp(column_name, "#VARIAZIONE") == 0)
else
if (fld == "#VARIAZIONE")
{
//prende il conto
const TString& conto = TISAM_recordset::get("CONTO").as_string();
@ -1389,7 +1312,6 @@ F=IMF*/
}
//compila i campi del file temporaneo che sara' poi stampato per i documenti speciali..
//..quali le fatture da emettere e ricevere, la cui lista e' nel ca_config
void TPrint_rendiconto_ca_recordset::scrive_riga_speciale(TLocalisamfile& tmp, const TDocumento* doc, const TString_array& special_docs)
@ -1808,6 +1730,12 @@ void TPrint_rendiconto_ca_recordset::crea_righe_da_rdoc(TLocalisamfile& tmp, con
filtro << "&&";
filtro << "(" << RDOC_FASCMS << "==\"" << _codfas << "\")";
}
if (_contsep.not_empty()) //questo in ogni modo, anche con chiave 6 o 7 (oltre che 3)
{
if (filtro.not_empty())
filtro << "&&";
filtro << "(" << FIELD_NAME(LF_DOC, DOC_CONTSEP) << "==\"" << _contsep << "\")";
}
//il filtro è completo;può eseguire la scansione
TCursor cur_rdoc(&rel_rdoc, "", cur_key, &da_rdoc, &a_rdoc);
@ -1883,7 +1811,8 @@ void TPrint_rendiconto_ca_recordset::crea_righe_da_rdoc(TLocalisamfile& tmp, con
key << doc.get(DOC_TIPOCF) << '|' << doc.get(DOC_CODCF);
const TString clifo = cache().get(LF_CLIFO, key, CLI_RAGSOC);
mov.put(MOVANA_DESCR, clifo);
if (_contsep.not_empty() && mov.get(MOVANA_CONTSEP) != _contsep)
continue;
for (int j = 1; j <= mov.rows(); j++)
{
//controlla che la riga in esame abbia realmente la cms/cdc/fas indicata nel filtro;
@ -1897,7 +1826,6 @@ void TPrint_rendiconto_ca_recordset::crea_righe_da_rdoc(TLocalisamfile& tmp, con
continue;
if (_codfas.not_empty() && rmov.get(RMOVANA_CODFASE) != _codfas)
continue;
scrive_riga(tmp, rmov, mov, &doc, log); //documenti "normali"
} //for int j...
}
@ -1931,7 +1859,7 @@ void TPrint_rendiconto_ca_recordset::crea_trr(const TFilename& trr) const
{
ofstream of(trr);
of << 1000 << endl;
of << 23 << endl;
of << 24 << endl;
of << "ORDCONT|1|1|0|Ordinatore in base a indicatore di bilancio" << endl;
of << "CONTO|1|20|0|Conto analitico" << endl;
of << "DATA|5|8|0|Data movimento o documento" << endl;
@ -1941,6 +1869,7 @@ void TPrint_rendiconto_ca_recordset::crea_trr(const TFilename& trr) const
of << "CODCMS|1|20|0|Codice commessa" << endl;
of << "CODCOSTO|1|20|0|Codice centro di costo" << endl;
of << "CODFASE|1|20|0|Codice fase (eventualmente legato a CODCMS)" << endl;
of << "CONTSEP|1|6|0|Codice contabilità separata" << endl;
of << "NUMREG|3|7|0|Numero registrazione del movimento analitico" << endl;
of << "NUMREGCG|3|7|Numero registrazione contabile" << endl;
of << "ANNO|9|4|0|Anno" << endl;
@ -1992,6 +1921,7 @@ void TPrint_rendiconto_ca_recordset::set_filter(const TPrint_rendiconto_ca_mask&
_codcms = rel.curr().get(RMOVANA_CODCMS);
_codfas = rel.curr().get(RMOVANA_CODFASE);
}
_contsep = msk.get(F_CONTSEP);
const char tc = msk.get(F_PIANO)[0]; // Piano dei conti Contabile o Analitico?
const short dlg_da = tc == 'C' ? F_PDC1_INI : F_PAN1_INI;
@ -2063,6 +1993,7 @@ class TPrint_rendiconto_ca_rep : public TAnal_report
protected:
virtual bool set_recordset(const TString& sql);
virtual bool get_usr_val(const TString& name, TVariant& var) const;
virtual void set_dbase_fixed_fields(bool on = true);
public:
void set_filter(const TPrint_rendiconto_ca_mask& msk, int cms_row, const int recset_key, TLog_report& log);
@ -2073,6 +2004,17 @@ bool TPrint_rendiconto_ca_rep::get_usr_val(const TString& name, TVariant& var) c
return TAnal_report::get_usr_val(name, var);
}
void TPrint_rendiconto_ca_rep::set_dbase_fixed_fields(bool on)
{
field("B1.201")->show(on);
field("B1.202")->show(on);
field("B1.203")->show(on);
field("B1.204")->show(on);
field("B1.100")->show(!on);
field("B1.102")->show(!on); // perchè non va '
field("B1.104")->show(!on);
}
bool TPrint_rendiconto_ca_rep::set_recordset(const TString& sql)
{
TPrint_rendiconto_ca_recordset* rs = new TPrint_rendiconto_ca_recordset(sql);
@ -2096,28 +2038,92 @@ void TPrint_rendiconto_ca_rep::set_filter(const TPrint_rendiconto_ca_mask& msk,
////////////////////////////////////////////////////////
// APPLICAZIONE
////////////////////////////////////////////////////////
class TPrint_rendiconto_ca : public TSkeleton_application
class TPrint_rendiconto_ca : public TReport_application
{
TPrint_rendiconto_ca_mask* _msk;
TPrint_rendiconto_ca_rep * _rep;
protected:
virtual void print();
void esporta_csv_row(ostream& file_to_date, const int first_level, const TString& cod_cms_cdc,
const real importi[5][4], real importi_totali[5][4]);
void esporta_csv(TPrint_rendiconto_ca_recordset& rendy, const int r, TReport_book book, bool reset);
void incrementa(TToken_string& riga, const int col, const real& valore) const;
void crea_trr(const TFilename& trr) const;
void export_rendiconto();
virtual void export_pdf(TFilename & name, TReport_book & book, TAutomask & mask, TReport & rep);
virtual TReport & get_report(const TAutomask & m);
virtual TTrec * get_dbase_recdesc(TReport & rep, const TAutomask & mask);
virtual TAutomask & get_mask();
virtual void execute_print(TReport_book & book, TAutomask & mask, TReport & rep, export_type type = _export_printer);
virtual const char * output_name(const TAutomask & mask, const TReport & rep) const { return "rend"; }
// @cmember Distruzione dei dati dell'utente
virtual bool user_destroy();
public:
const TMultilevel_code_info& get_first_level() const;
virtual void main_loop();
TPrint_rendiconto_ca() : _msk(nullptr), _rep(nullptr) {}
~TPrint_rendiconto_ca() {}
};
void TPrint_rendiconto_ca::print()
TReport & TPrint_rendiconto_ca::get_report(const TAutomask & m)
{
if (_msk != NULL)
_msk->send_key(K_SPACE, DLG_PRINT);
if (_rep == nullptr)
_rep = new TPrint_rendiconto_ca_rep;
_rep->load(_msk->get(DLG_REPORT));
return *_rep;
}
TAutomask & TPrint_rendiconto_ca::get_mask()
{
if (_msk == nullptr)
_msk = new TPrint_rendiconto_ca_mask;
return *_msk;
}
TTrec * TPrint_rendiconto_ca::get_dbase_recdesc(TReport & rep, const TAutomask & mask)
{
TTrec * desc = new TTrec;
TToken_string def;
TRectype cms(LF_COMMESSE);
TRectype fasi(LF_FASI);
TRectype cdc(LF_CDC);
TRectype rmovana(LF_RMOVANA);
TRectype movana(LF_MOVANA);
desc->add_fielddef("NUM", _alfafld, 4);
desc->add_fielddef("F1", _alfafld, 1);
desc->add_fielddef("ANNO", _intfld, 4);
desc->add_fielddef("NUMDOC", _longfld, 6);
desc->add_fielddef(movana.rec_des(), MOVANA_NUMREG);
desc->add_fielddef(movana.rec_des(), MOVANA_NUMREGCG);
desc->add_fielddef(movana.rec_des(), MOVANA_DATAREG);
desc->add_fielddef(movana.rec_des(), MOVANA_DATADOC);
desc->add_fielddef(movana.rec_des(), MOVANA_DESCR);
desc->add_fielddef(rmovana.rec_des(), RMOVANA_NUMRIG);
desc->add_fielddef(rmovana.rec_des(), RMOVANA_DESCR);
desc->set_name("ROWDESC"),
desc->add_fielddef("DOCRIF", _alfafld, 20);
desc->add_fielddef("PAGATO", _realfld, 18, 2);
desc->add_fielddef("FATTURATO", _realfld, 18, 2);
desc->add_fielddef("MATURATO", _realfld, 18, 2);
desc->add_fielddef("IMPEGNATO", _realfld, 18, 2);
desc->add_fielddef(cdc.rec_des(), CDC_CODCOSTO);
desc->add_fielddef(cms.rec_des(), COMMESSE_CODCMS);
desc->add_fielddef(fasi.rec_des(), FASI_CODFASE);
desc->add_fielddef(movana.rec_des(), MOVANA_CONTSEP);
TToken_string keydef(CDC_CODCOSTO, '+');
keydef.add(COMMESSE_CODCMS);
keydef.add(FASI_CODFASE);
keydef.add(RMOVANA_NUMREG);
keydef.add(RMOVANA_NUMRIG);
desc->add_keydef(keydef, true);
return desc;
}
void TPrint_rendiconto_ca::incrementa(TToken_string& riga, const int col, const real& valore) const
@ -2336,6 +2342,7 @@ void TPrint_rendiconto_ca::crea_trr(const TFilename& trr) const
of << "CODCMS|1|20|0|Codice commessa" << endl;
of << "CODCOSTO|1|20|0|Codice centro di costo" << endl;
of << "CODFASE|1|20|0|Codice fase (eventualmente legato a CODCMS)" << endl;
of << "CONTSEP|1|6|0|Contabilità sepatata" << endl;
of << "ORDCONT|1|1|0|Ordinatore in base a indicatore di bilancio" << endl;
of << "CODCONTO|1|20|0|Conto analitico" << endl;
of << "DATA|5|8|0|Data" << endl;
@ -2350,45 +2357,41 @@ void TPrint_rendiconto_ca::crea_trr(const TFilename& trr) const
}
void TPrint_rendiconto_ca::export_rendiconto()
void TPrint_rendiconto_ca::export_pdf(TFilename & name, TReport_book & book, TAutomask & mask, TReport & rep)
{
TFilename dir(argv(2) + 2);
TFilename pubdir(argv(3) + 2);
TDate oggi(TODAY);
const TString arg(argv(2));
const bool batch = arg.starts_with("-b");
if (batch)
{
TFilename dir(argv(4)); // controllare
const long firm = atol(argv(5));
const long oldfirm = prefix().get_codditta();
dir = dir.path();
if (firm > 0L)
prefix().set_codditta(firm);
dir.add(format("%04d", oggi.year()));
dir.add(format("%04d", today.year()));
if (!dir.exist())
make_dir(dir);
dir.add(format("%02d", oggi.month()));
dir.add(format("%02d", today.month()));
if (!dir.exist())
make_dir(dir);
dir.add(format("%02d", oggi.day()));
dir.add(format("%02d", today.day()));
if (!dir.exist())
make_dir(dir);
int profile = atoi(argv(4));
const int profile = mask.get_int(mask.get_int(DLG_PROFILE));
_msk->load_profile(profile);
dir.add(format("%03d", profile));
if (!dir.exist())
make_dir(dir);
TSheet_field& sheet = _msk->sfield(F_RIGHE); sheet.destroy();
TSheet_field& sheet = mask.sfield(F_RIGHE);
/* forse non serve
sheet.destroy();
TToken_string& row = sheet.row(-1); //crea la prima riga dello sheet
TString repname = _msk->get(F_REPORT);
if (repname.empty())
repname = "ca3700a";
TPrint_rendiconto_ca_rep rep;
rep.load(repname);
//log report con segnalazioni su errori (tipo conti inesistenti o robaccia simile..)
TLog_report log(TR("Errori rilevati"));
log.kill_duplicates();
*/
TLog_report log(TR("Errori rilevati")); //log report con segnalazioni su errori (tipo conti inesistenti o robaccia simile..)
TString video_string; //stringa che compare nella progind
TEsercizi_contabili esc;
TDate dataini, datafin;
@ -2396,7 +2399,11 @@ void TPrint_rendiconto_ca::export_rendiconto()
int recset_key = 1;
const bool attive = _msk->get_bool(F_ATTIVA);
log.kill_duplicates();
FOR_EACH_SHEET_ROW_LOOP(sheet, r)
{
if (anno > 0) //se non è stata specificata alcuna dataini, ma è stato specificato un anno di esercizio...
esc.code2range(anno, dataini, datafin);
if (!_msk->field(F_DATAINI).empty())
dataini = _msk->get_date(F_DATAINI);
@ -2417,20 +2424,22 @@ void TPrint_rendiconto_ca::export_rendiconto()
TExternisamfile riep(riepname, trr, true);
riep.zap();
TProgind pi(set.items(), video_string, true, true);
for (int i = 0; set.move_to(i); i++) //fighissimo metodo per scandire un file in 1 riga!
TProgress_monitor pi(set.items(), video_string, true);
for (int i = 0; pi.add_status() && set.move_to(i); i++) //fighissimo metodo per scandire un file in 1 riga!
{
if (!pi.addstatus(1))
break;
TReport_book * book = new TReport_book();
TReport_book row_book("Rendiconto");
//Filtro sulle date
//DATE VALIDE STRETTAMENTE PER COMMESSE
//per prima cosa controlla se veramente la commessa rientri nei parametri temporali impostati sulla maschera
//Se infatti è completamente al di fuori di tale intervallo, che cavolo la controlla a fare
row = set.get((unsigned int)0).as_string(); //prende il valore del primo campo del file (CDC o CMS code)
TString code =set.get((unsigned int)0).as_string();
for (int l = liv1.levels() - 2; l >= 0; l--) //se la struttura è a più livelli costruisce la tokenstring
code.insert("|", liv1.total_len(l));
video_string = TR("Scansione ");
video_string << code; //prende il valore del primo campo del file (CDC o CMS code)
pi.set_text(video_string);
if (is_cms)
{
if (attive)
@ -2450,20 +2459,9 @@ void TPrint_rendiconto_ca::export_rendiconto()
continue;
}
}
((TPrint_rendiconto_ca_rep &) rep).set_filter((TPrint_rendiconto_ca_mask &) mask, r, recset_key, log); //fa la set filter sulla prima riga (che è quella usata)
video_string = TR("Scansione");
video_string << " " << row; //completa la stringa da visualizzare sulla progind
pi.set_text(video_string);
for (int l = liv1.levels()-2; l >= 0; l--) //se la struttura è a più livelli costruisce la tokenstring
row.insert("|", liv1.total_len(l));
rep.set_filter(*_msk, 0, recset_key, log); //fa la set filter sulla prima riga (che è quella usata)
//se stampa o anteprima..
book->add(rep);
TPrint_rendiconto_ca_recordset & recset = (TPrint_rendiconto_ca_recordset &) *rep.recordset();
TString80 codcms;
TString80 codcosto;
@ -2481,7 +2479,7 @@ void TPrint_rendiconto_ca::export_rendiconto()
riep.put(RIEP_CODCOSTO, codcosto);
riep.put(RIEP_CODFASE, codfase);
riep.put(RIEP_CODCONTO, codconto);
riep.put(RIEP_DATA, oggi);
riep.put(RIEP_DATA, today);
if (riep.read() != NOERR)
{
@ -2490,7 +2488,7 @@ void TPrint_rendiconto_ca::export_rendiconto()
riep.put(RIEP_CODCOSTO, codcosto);
riep.put(RIEP_CODFASE, codfase);
riep.put(RIEP_CODCONTO, codconto);
riep.put(RIEP_DATA, oggi);
riep.put(RIEP_DATA, today);
riep.put(RIEP_DESCONTO, cache().get(LF_PCONANA, codconto, PCONANA_DESCR));
riep.put(RIEP_ORDCONT, recset.get(REND_ORDCONT).as_int());
@ -2507,39 +2505,28 @@ void TPrint_rendiconto_ca::export_rendiconto()
riep.rewrite();
}
TFilename filename(dir);
TFilename rowname(dir);
TString codice(set.get(COMMESSE_CODCMS).as_string());
codice.replace('.', '_');
codice.replace('\\', '_');
codice.replace('/', '_');
filename.add(codice);
filename.ext("pdf");
book->export_pdf(filename, false);
delete book;
book = NULL;
if (filename.exist())
{
TFilename dest(pubdir);
dest.add(codice);
dest.ext("pdf");
fcopy(filename, dest, false, true);
rowname.add(codice);
//se stampa o anteprima..
row_book.add(rep);
row_book.export_pdf(rowname);
}
}
if (firm > 0L)
prefix().set_codditta(oldfirm);
// if (oggi.is_end_month())
{
TDate del(oggi);
TDate del(today);
del.addmonth(-1);
del.set_end_month();
const int last = del.day();
TFilename base(argv(2) + 2);
TFilename base(dir); // da sistemare
base.add(format("%04d", del.year()));
base.add(format("%02d", del.month()));
@ -2588,35 +2575,30 @@ void TPrint_rendiconto_ca::export_rendiconto()
}
}
}
else
TReport_application::export_pdf(name, book, mask, rep);
}
void TPrint_rendiconto_ca::main_loop()
void TPrint_rendiconto_ca::execute_print(TReport_book & book, TAutomask & mask, TReport & rep, export_type type)
{
_msk = new TPrint_rendiconto_ca_mask;
TPrint_rendiconto_ca_mask& mask = *_msk;
TPrint_rendiconto_ca_rep & ca_rep = (TPrint_rendiconto_ca_rep &)rep;
TPrint_rendiconto_ca_mask & ca_mask = (TPrint_rendiconto_ca_mask &)mask;
const int first_level = get_first_level().logic(); //primo livello nella configurazione CA
TString arg(argv(2));
// TString arg(argv(2));
TEsercizi_contabili esc;
arg.lower();
/* arg.lower();
if (arg.starts_with("-b"))
{
export_rendiconto();
return;
}
while (true)
{
//il programma deve cominciare l'eleaborazione solo nel caso di Stampa/Anteprima (K_ENTER) o Esportazione CSV (K_F6)
KEY key = mask.run();
if (key == K_QUIT)
break;
} */
//chiave di ordinamento del recordset; di base è 1 (utilizzato per la stampa); va lasciata qui per essere resettata..
//..ad ogni giro, in modo da sistemarsi quando si passa da esportazione a stampa e viceversa!
int recset_key = 1;
//resetta e prepara le intestazioni del file rendiconto.xls
if (key == K_F6)
/* i< (key == K_F6)
{
TFilename file_xls = mask.get(F_PATH);
file_xls.lower();
@ -2681,17 +2663,11 @@ void TPrint_rendiconto_ca::main_loop()
}
file_to_date << intestazione_2 << endl;
} //if(key==K_F6)
//report e book dei report
TReport_book book;
TString path = mask.get(F_REPORT);
if (path.empty())
path = "ca3700a";
TPrint_rendiconto_ca_rep rep;
rep.load(path);
*/
//log report con segnalazioni su errori (tipo conti inesistenti o robaccia simile..)
TLog_report log(TR("Errori rilevati"));
log.kill_duplicates();
TSheet_field& sheet = mask.sfield(F_RIGHE);
@ -2720,12 +2696,9 @@ void TPrint_rendiconto_ca::main_loop()
const bool is_cms = liv1.logic() == LF_COMMESSE;
TISAM_recordset set(is_cms ? "USE COMMESSE" : "USE CDC"); //..e di conseguenza scrive la use giusta
TProgind pi(set.items(), video_string, true, true);
for (int i = 0; set.move_to(i); i++) //fighissimo metodo per scandire un file in 1 riga!
TProgress_monitor pi(set.items(), video_string, true);
for (int i = 0; pi.add_status() && set.move_to(i); i++) //fighissimo metodo per scandire un file in 1 riga!
{
if (!pi.addstatus(1))
break;
//Filtro sulle date
//DATE VALIDE STRETTAMENTE PER COMMESSE
//per prima cosa controlla se veramente la commessa rientri nei parametri temporali impostati sulla maschera
@ -2759,13 +2732,15 @@ void TPrint_rendiconto_ca::main_loop()
for (int l = liv1.levels() - 2; l >= 0; l--) //se la struttura è a più livelli costruisce la tokenstring
row.insert("|", liv1.total_len(l));
rep.set_filter(mask, 0, recset_key, log); //fa la set filter sulla prima riga (che è quella usata)
ca_rep.set_filter(ca_mask, 0, recset_key, log); //fa la set filter sulla prima riga (che è quella usata)
//se stampa o anteprima..
if (key == K_F6)
/* if (key == K_F6)
esporta_csv((TPrint_rendiconto_ca_recordset&)*rep.recordset(), 0, book, i == 0); //esportazione in excel
else
else */
rep.set_export_sections(type);
book.add(rep);
rep.reset_export_sections();
}
sheet.destroy(); //cancella le commesse aggiunte in automatico sullo sheet
}
@ -2773,20 +2748,22 @@ void TPrint_rendiconto_ca::main_loop()
{
FOR_EACH_SHEET_ROW(sheet, r, row) //per ogni cdc/cms che appare nello sheet di pag.1 della msk..
{
rep.set_filter(mask, r, recset_key, log); //..chiama il metodone globale che crea e compila il file..
ca_rep.set_filter(ca_mask, r, recset_key, log); //..chiama il metodone globale che crea e compila il file..
//..temporaneo i cui dati riempiranno il report
//se stampa o anteprima
if (key == K_F6) //esportazione in excel
/*if (key == K_F6) //esportazione in excel
esporta_csv((TPrint_rendiconto_ca_recordset&)*rep.recordset(), r, book, r == 0); //il recordset è del tipo TPrint_rendiconto
else
else */
rep.set_export_sections(type);
book.add(rep); //aggiunge il report relativo alla cdc/cms corrente al book
rep.reset_export_sections();
}
}
//anteprima report degli errori rilevati
if (log.recordset()->items() > 0)
log.preview();
TReport rep_xls;
/* TReport rep_xls;
path = "ca3700b";
rep_xls.load(path);
@ -2832,17 +2809,14 @@ void TPrint_rendiconto_ca::main_loop()
}
rep_xls.TReport::set_recordset(xls_dest);
book.add(rep_xls);
} */
}
if (key == K_ENTER)
book.print(); //stampa il book dei report
else
book.preview(); //anteprima del book dei report
} //while(true)...
delete _msk;
_msk = NULL;
bool TPrint_rendiconto_ca::user_destroy()
{
safe_delete(_msk);
safe_delete(_rep);
return TReport_application::user_destroy();
}
int ca3700(int argc, char* argv[])

View File

@ -6,7 +6,6 @@
#define F_RAGSOC 252
#define F_DATASTAMPA 253
#define F_ANNO 254
#define F_REPORT 255
#define F_DATAINI 256
#define F_DATAFIN 257
#define F_REV_COSRIC 258
@ -14,6 +13,8 @@
#define F_VITAINTERA 261
#define F_PATH 262
#define F_ATTIVA 263
#define F_CONTSEP 264
#define F_DESCONTSEP 265
//campi generati dai piani dei conti
#define F_PIANO 319

View File

@ -1,33 +1,21 @@
#include "ca3700.h"
#include "camask.h"
#define ALL_EXPORT
#define CLASS_NAME "ca3700"
TOOLBAR "topbar" 0 0 0 2
#include <aprintbar.h>
BUTTON DLG_EXPORT 2 2
/*BUTTON DLG_EXPORT 2 2
BEGIN
PROMPT 1 1 "~Esporta XLS"
MESSAGE EXIT,K_F6
PICTURE TOOL_EXCEL
END
END*/
ENDPAGE
TOOLBAR "bottombar" 0 -2 0 1
STRING F_REPORT 256 64
BEGIN
PROMPT 2 -2 "Report "
FLAGS "B"
CHECKTYPE REQUIRED
END
STRING DLG_PROFILE 50
BEGIN
PROMPT 2 -1 "Profilo "
PSELECT
END
TOOLBAR "bottombar" 0 -3 0 1
#include <bprintbar.h>
ENDPAGE
PAGE "CdC/Cms/Fasi / Date" 0 2 0 0
@ -71,7 +59,7 @@ BEGIN
ADD NONE
END
GROUPBOX DLG_NULL 76 6
GROUPBOX DLG_NULL 76 9
BEGIN
PROMPT 1 3 "@bParametri stampa"
END
@ -88,38 +76,58 @@ END
BOOLEAN F_VITAINTERA
BEGIN
PROMPT 2 6 "Includere movimenti e documenti al di fuori della durata della commessa (vita intera commessa)"
END
DATE F_DATAINI
BEGIN
PROMPT 2 9 "Dalla data "
END
DATE F_DATAFIN
BEGIN
PROMPT 36 9 "Alla data "
END
BOOLEAN F_ATTIVA
BEGIN
PROMPT 60 9 "Solo commesse attive"
PROMPT 2 6 "Includere movimenti e documenti al di fuori della durata della commessa"
END
TEXT DLG_NULL
BEGIN
PROMPT 2 10 "Digitare o selezionare attraverso la ricerca la cartella in cui creare il file rendiconto.xls. E' necessario indicare l'intero percorso!"
PROMPT 5 7 "(vita intera commessa)"
END
STRING F_PATH 256 25
DATE F_DATAINI
BEGIN
PROMPT 2 11 "Cartella dove esportare il file rendiconto.xls "
DSELECT
PROMPT 2 8 "Dalla data "
END
DATE F_DATAFIN
BEGIN
PROMPT 30 8 "Alla data "
END
BOOLEAN F_ATTIVA
BEGIN
PROMPT 54 8 "Solo commesse attive"
END
STRING F_CONTSEP 6
BEGIN
PROMPT 2 9 "Cont. separata "
USE &NPENT
INPUT CODTAB F_CONTSEP
DISPLAY "Codice@6" CODTAB
DISPLAY "Descrizione@50" S0
OUTPUT F_CONTSEP CODTAB
OUTPUT F_DESCONTSEP S0
CHECKTYPE NORMAL
FIELD CONTSEP
MODULE NP
END
STRING F_DESCONTSEP 50 48
BEGIN
PROMPT 26 9 ""
USE &NPENT KEY 2
INPUT S0 F_DESCONTSEP
DISPLAY "Descrizione@50" S0
DISPLAY "Codice@6" CODTAB
COPY OUTPUT F_CONTSEP
CHECKTYPE NORMAL
MODULE NP
END
SPREADSHEET F_RIGHE -1 -2
BEGIN
PROMPT 0 14 "Centro di Costo / Commessa / Fase"
PROMPT 0 12 "Centro di Costo / Commessa / Fase"
ITEM "Cdc1"
ITEM "Cdc2"
ITEM "Cdc3"

View File

@ -1,168 +1,181 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report libraries="ve1300" name="ca3700a" orientation="2" lpi="9" class="ca3700a">
<report libraries="ve1300" page_merge="" save_printer="" name="ca3700a" use_printer_font="" orientation="2" page_split="" lpi="9" command="" class="ca3700">
<description>Rendiconto CA</description>
<font face="Courier New" size="7" />
<section type="Head" height="5" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="" hidden="" height="5" page_break="" can_break="" pattern="1">
<font italic="1" face="Courier New" bold="1" size="8" />
<field x="1" type="Stringa" width="50" height="1.2" pattern="1">
<field x="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" height="1.2" id="" pattern="1" hide_zero="" text="">
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="67" type="Testo" width="15" height="1.2" pattern="1" text="Data stampa">
<field x="67" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" height="1.2" id="" pattern="1" hide_zero="" text="Data stampa">
<font italic="1" face="Courier New" size="8" />
</field>
<field x="82" type="Data" width="15" height="1.2" pattern="1">
<field x="82" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" height="1.2" id="" pattern="1" hide_zero="" text="">
<source>#SYSTEM.DATE</source>
</field>
<field x="157" type="Testo" width="4" height="1.2" pattern="1" text="Pag.">
<field x="157" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="4" codval="" height="1.2" id="" pattern="1" hide_zero="" text="Pag.">
<font italic="1" face="Courier New" size="8" />
</field>
<field x="161" type="Numero" align="right" width="3" height="1.2" pattern="1">
<field x="161" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" height="1.2" id="" pattern="1" hide_zero="" text="">
<source>#REPORT.PAGE</source>
</field>
<field border="2" x="1" y="2" type="Linea" width="169" height="0" pattern="1" />
<field x="44" y="2.5" type="Testo" width="23" pattern="1" text="Doc. cliente&#2F;fornitore" />
<field x="102.5" y="2.5" type="Testo" align="center" width="12" pattern="1" text="Riferimento" />
<field x="141" y="2.5" type="Testo" width="25" pattern="1" text="Avanzamento costi&#2F;ricavi" />
<field x="20" y="3.5" type="Testo" width="7" pattern="1" text="N.Reg." />
<field x="27" y="3.5" type="Testo" width="8" pattern="1" text="N.Reg.CG" />
<field x="35" y="3.5" type="Testo" align="center" width="10" pattern="1" text="Data" />
<field x="47" y="3.5" type="Testo" align="center" width="6" pattern="1" text="Numero" />
<field x="53" y="3.5" type="Testo" align="center" width="10" pattern="1" text="Data" />
<field x="64.5" y="3.5" type="Testo" width="16" pattern="1" text="Descrizione testata" />
<field x="82" y="3.5" type="Testo" width="4" pattern="1" text="Riga" />
<field x="86" y="3.5" type="Testo" width="15" pattern="1" text="Descrizione riga" />
<field x="102.5" y="3.5" type="Testo" align="center" width="12" pattern="1" text="Ordine&#2F;Bolla" />
<field x="118" y="3.5" type="Testo" align="right" width="13" pattern="1" text="Pagato" />
<field x="131" y="3.5" type="Testo" align="right" width="13" pattern="1" text="Fatturato" />
<field x="144" y="3.5" type="Testo" align="right" width="13" pattern="1" text="Maturato" />
<field x="157" y="3.5" type="Testo" align="right" width="13" pattern="1" text="Impegnato" />
<field border="1" x="1" y="4.5" type="Linea" width="169" height="0" pattern="1" />
<field x="1" y="3.5" type="Testo" width="15" id="121" pattern="1" text="Rif. Contabile" />
<field border="2" x="1" y="2" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="169" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="44" y="2.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="" pattern="1" hide_zero="" text="Doc. cliente&#2F;fornitore" />
<field x="102.5" y="2.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="1" hide_zero="" text="Riferimento" />
<field x="141" y="2.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="25" codval="" id="" pattern="1" hide_zero="" text="Avanzamento costi&#2F;ricavi" />
<field x="20" y="3.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="N.Reg." />
<field x="27" y="3.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="8" codval="" id="" pattern="1" hide_zero="" text="N.Reg.CG" />
<field x="35" y="3.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Data" />
<field x="47" y="3.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="Numero" />
<field x="53" y="3.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Data" />
<field x="64.5" y="3.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="16" codval="" id="" pattern="1" hide_zero="" text="Descrizione testata" />
<field x="82" y="3.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="1" hide_zero="" text="Riga" />
<field x="86" y="3.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Descrizione riga" />
<field x="102.5" y="3.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="1" hide_zero="" text="Ordine&#2F;Bolla" />
<field x="118" y="3.5" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="Pagato" />
<field x="131" y="3.5" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="Fatturato" />
<field x="144" y="3.5" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="Maturato" />
<field x="157" y="3.5" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="Impegnato" />
<field border="1" x="1" y="4.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="169" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="1" y="3.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="121" pattern="1" hide_zero="" text="Rif. Contabile" />
</section>
<section type="Head" level="1" height="11" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="1" hidden="" page_break="" can_break="" pattern="1">
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
<field border="1" radius="100" x="1" type="Testo" valign="center" align="center" shade_offset="25" width="167" height="2.5" pattern="2" text="RENDICONTO">
<field border="1" radius="100" x="1" deactivated="" type="Testo" valign="center" hidden="" align="center" link="" dynamic_height="" shade_offset="25" width="167" codval="" height="2.5" id="" pattern="2" hide_zero="" text="RENDICONTO">
<font face="Courier New" bold="1" size="16" />
</field>
<field x="1" y="3" type="Testo" width="18" pattern="1" text="Centro di Costo:" />
<field x="19" y="3" type="Stringa" width="18" pattern="1">
<field x="1" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="18" codval="" id="" pattern="1" hide_zero="" text="Centro di Costo:" />
<field x="38" y="3" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#COSTO</source>
<prescript description="H1.0 PRESCRIPT">CA_FORMAT_COSTO</prescript>
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,CDC,CODCOSTO=#103,DESCRIZ</prescript>
</field>
<field x="38" y="3" type="Stringa" width="50" pattern="1">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,CDC,CODCOSTO=#COSTO,DESCRIZ</prescript>
</field>
<field x="110" y="3" type="Testo" width="14" pattern="1" text="Anno:" />
<field x="125" y="3" type="Stringa" width="6" height="1.25" pattern="1">
<field x="110" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="14" codval="" id="" pattern="1" hide_zero="" text="Anno:" />
<field x="125" y="3" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="6" codval="" height="1.25" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,ANNO</prescript>
</field>
<field x="140" y="3" type="Testo" width="17" pattern="1" text="Regime IVA:" />
<field x="157" y="3" type="Stringa" width="2" pattern="1">
<field x="140" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="17" codval="" id="" pattern="1" hide_zero="" text="Regime IVA:" />
<field x="157" y="3" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="2" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,REGIVA</prescript>
</field>
<field x="14" y="4.5" type="Stringa" width="23" pattern="1">
<field x="38" y="4.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#COMMESSA</source>
<prescript description="H1.0 PRESCRIPT">CA_FORMAT_COMMESSA</prescript>
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#104,DESCRIZ</prescript>
</field>
<field x="38" y="4.5" type="Stringa" width="50" pattern="1">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DESCRIZ</prescript>
</field>
<field x="110" y="4.5" type="Testo" width="14" pattern="1" text="Data inizio:" />
<field x="125" y="4.5" type="Data" width="14" height="1.25" pattern="1">
<field x="110" y="4.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="14" codval="" id="" pattern="1" hide_zero="" text="Data inizio:" />
<field x="125" y="4.5" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="14" codval="" height="1.25" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DATAINIZIO</prescript>
</field>
<field x="140" y="4.5" type="Testo" width="17" pattern="1" text="Da rendicontare:" />
<field x="157" y="4.5" type="Stringa" width="1" pattern="1">
<field x="140" y="4.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="17" codval="" id="" pattern="1" hide_zero="" text="Da rendicontare:" />
<field x="157" y="4.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="1" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,RENDIC</prescript>
</field>
<field x="1" y="4.58" type="Testo" width="9" pattern="1" text="Commessa:" />
<field x="14" y="6" type="Stringa" width="13" pattern="1">
<field x="1" y="4.58" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="9" codval="" id="" pattern="1" hide_zero="" text="Commessa:" />
<field x="38" y="6" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#FASE</source>
<prescript description="H1.0 PRESCRIPT">CA_FORMAT_FASE</prescript>
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,FASI,CODFASE=#105,DESCRIZ</prescript>
</field>
<field x="38" y="6" type="Stringa" width="50" pattern="1">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,FASI,CODFASE=#FASE,DESCRIZ</prescript>
</field>
<field x="110" y="6" type="Testo" width="14" pattern="1" text="Fine prevista:" />
<field x="125" y="6" type="Data" width="14" height="1.25" pattern="1">
<field x="110" y="6" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="14" codval="" id="" pattern="1" hide_zero="" text="Fine prevista:" />
<field x="125" y="6" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="14" codval="" height="1.25" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DATAFINE</prescript>
</field>
<field x="140" y="6" type="Testo" width="17" pattern="1" text="Chiusa:" />
<field x="157" y="6" type="Stringa" width="1" pattern="1">
<field x="140" y="6" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="17" codval="" id="" pattern="1" hide_zero="" text="Chiusa:" />
<field x="157" y="6" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="1" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,CHIUSA</prescript>
</field>
<field x="1" y="6.08" type="Testo" width="5" pattern="1" text="Fase:" />
<field x="1" y="7.5" type="Testo" width="15" pattern="1" text="Piano dei conti:" />
<field x="17" y="7.5" type="Stringa" width="12" pattern="1">
<field x="1" y="6.08" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="1" hide_zero="" text="Fase:" />
<field x="38" y="7.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<modules>NP</modules>
<prescript description="H1.0 PRESCRIPT">MESSAGE TABLEREAD,&#26;NPENT,#106,S0</prescript>
</field>
<field x="110" y="7.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="14" codval="" id="" pattern="1" hide_zero="" text="Fine proroga:" />
<field x="125" y="7.5" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="14" codval="" height="1.25" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DATAPROR</prescript>
</field>
<field x="140" y="7.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="17" codval="" id="" pattern="1" hide_zero="" text="Prorogata:" />
<field x="157" y="7.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="1" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,PROROGA</prescript>
</field>
<field x="1" y="7.58" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Cont.sep.:">
<modules>NP</modules>
</field>
<field x="1" y="9" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Piano dei conti:" />
<field x="17" y="9" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#PIANO</source>
</field>
<field x="30" y="7.5" type="Testo" width="10" pattern="1" text="Da conto:" />
<field x="43" y="7.5" type="Stringa" width="23" pattern="1">
<field x="30" y="9" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Da conto:" />
<field x="43" y="9" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#DACONTO</source>
<prescript description="H1.0 PRESCRIPT">CA_FORMAT_CONTO</prescript>
</field>
<field x="69" y="7.5" type="Testo" width="10" pattern="1" text="A conto:" />
<field x="79" y="7.5" type="Stringa" width="23" pattern="1">
<field x="69" y="9" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="A conto:" />
<field x="79" y="9" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#ACONTO</source>
<prescript description="H1.0 PRESCRIPT">CA_FORMAT_CONTO</prescript>
</field>
<field x="110" y="7.5" type="Testo" width="14" pattern="1" text="Fine proroga:" />
<field x="125" y="7.5" type="Data" width="14" height="1.25" pattern="1">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,DATAPROR</prescript>
</field>
<field x="140" y="7.5" type="Testo" width="17" pattern="1" text="Prorogata:" />
<field x="157" y="7.5" type="Stringa" width="1" pattern="1">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.0 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,PROROGA</prescript>
</field>
<field x="1" y="9" type="Testo" width="18" pattern="1" text="Cliente principale:" />
<field border="2" x="1" y="10.5" type="Linea" width="169" height="0" pattern="1" />
<field x="20" y="9" type="Stringa" width="6" id="101" pattern="1">
<field x="1" y="10.75" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="18" codval="" id="" pattern="1" hide_zero="" text="Cliente principale:" />
<field border="2" x="1" y="12" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="169" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="20" y="10.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="6" codval="" id="101" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.101 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#COMMESSA,CODCF</prescript>
</field>
<field x="30" y="9" type="Stringa" width="50" id="102" pattern="1">
<field x="30" y="10.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="102" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<prescript description="H1.102 PRESCRIPT">MESSAGE ISAMREAD,CLIFO,TIPOCF=C!CODCF=#101,RAGSOC</prescript>
</field>
<field x="19" y="3" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="18" codval="" id="103" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#COSTO</source>
<prescript description="H1.103 PRESCRIPT">CA_FORMAT_COSTO</prescript>
</field>
<field x="14" y="4.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="23" codval="" id="104" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#COMMESSA</source>
<prescript description="H1.104 PRESCRIPT">CA_FORMAT_COMMESSA</prescript>
</field>
<field x="14" y="6" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="105" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#FASE</source>
<prescript description="H1.105 PRESCRIPT">CA_FORMAT_FASE</prescript>
</field>
<field x="14" y="7.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="106" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<modules>NP</modules>
<source>#CONTSEP</source>
</field>
</section>
<section type="Head" level="2" height="2" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="2" hidden="" height="2" page_break="" can_break="" pattern="1">
<groupby>ORDCONT+CONTO</groupby>
<font italic="1" face="Courier New" size="8" />
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2</prescript>
<field x="1" y="0.5" type="Stringa" bg_color="#C0C0C0" width="23" pattern="2">
<field x="1" y="0.5" deactivated="" type="Stringa" hidden="" link="" bg_color="#C0C0C0" dynamic_height="" shade_offset="" width="23" codval="" id="" pattern="2" hide_zero="" text="">
<font italic="1" face="Courier New" bold="1" size="8" />
<source>CONTO</source>
<prescript description="H2.0 PRESCRIPT">CA_FORMAT_CONTO</prescript>
</field>
<field x="24" y="0.5" type="Stringa" bg_color="#C0C0C0" width="50" pattern="2">
<field x="24" y="0.5" deactivated="" type="Stringa" hidden="" link="" bg_color="#C0C0C0" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="2" hide_zero="" text="">
<font italic="1" face="Courier New" bold="1" size="8" />
<source>CONTO</source>
<prescript description="H2.0 PRESCRIPT">CA_FORMAT_CONTO_DESCR</prescript>
</field>
<field x="74" y="0.5" type="Testo" align="right" bg_color="#C0C0C0" width="66" pattern="2" text="Budget &#3E;&#3E;&#3E;">
<field x="74" y="0.5" deactivated="" type="Testo" hidden="" align="right" link="" bg_color="#C0C0C0" dynamic_height="" shade_offset="" width="66" codval="" id="" pattern="2" hide_zero="" text="Budget &#3E;&#3E;&#3E;">
<font face="Courier New" bold="1" size="8" />
</field>
<field y="0.5" type="Numero" hidden="1" align="right" width="1" id="100" pattern="1">
<field y="0.5" deactivated="" type="Numero" hidden="1" align="right" link="" dynamic_height="" shade_offset="" width="1" codval="" id="100" pattern="1" hide_zero="" text="">
<source>#INDBIL</source>
</field>
<field x="140" y="0.5" type="Valuta" align="right" bg_color="#C0C0C0" width="15" id="700" pattern="2" hide_zero="1" text="###.###.###,@@">
<field x="140" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" bg_color="#C0C0C0" dynamic_height="" shade_offset="" width="15" codval="" id="700" pattern="2" hide_zero="1" text="###.###.###,@@">
<font italic="1" face="Courier New" bold="1" size="8" />
<source>#VARIAZIONE</source>
<postscript description="H2.700 POSTSCRIPT">#THIS @ \ prende il proprio valore
@ -174,7 +187,7 @@
+! \ esegue la ADD sul campo di destinazione
</postscript>
</field>
<field x="155" y="0.5" type="Valuta" align="right" bg_color="#C0C0C0" width="15" id="800" pattern="2" hide_zero="1" text="###.###.###,@@">
<field x="155" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" bg_color="#C0C0C0" dynamic_height="" shade_offset="" width="15" codval="" id="800" pattern="2" hide_zero="1" text="###.###.###,@@">
<font italic="1" face="Courier New" bold="1" size="8" />
<source>#PREVENTIVO</source>
<postscript description="H2.800 POSTSCRIPT">#THIS @ \ prende il proprio valore
@ -187,66 +200,66 @@
</postscript>
</field>
</section>
<section type="Head" level="3" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="3" hidden="" page_break="" can_break="" pattern="1">
<groupby>CODNUM+ANNO+NUMRD</groupby>
<field x="1" type="Stringa" hidden="1" align="right" width="4" pattern="1">
<field x="1" deactivated="" type="Stringa" hidden="1" align="right" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="1" hide_zero="" text="">
<source>CODNUM</source>
</field>
<field x="6" type="Numero" hidden="1" align="right" width="4" pattern="1">
<field x="6" deactivated="" type="Numero" hidden="1" align="right" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="1" hide_zero="" text="">
<source>ANNO</source>
</field>
<field x="11" type="Stringa" hidden="1" width="7" pattern="1">
<field x="11" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="">
<source>NUMRD</source>
</field>
</section>
<section type="Body" pattern="1" />
<section type="Body" level="1" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="" hidden="" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="1" hidden="" page_break="" can_break="" pattern="1">
<condition>HIDDEN!='X'</condition>
<field x="19" y="0.5" type="Numero" align="right" width="7" pattern="1" hide_zero="1">
<field x="19" y="0.5" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="1" text="">
<source>NUMREG</source>
</field>
<field x="27" y="0.5" type="Numero" align="right" width="7" pattern="1" hide_zero="1">
<field x="27" y="0.5" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="1" text="">
<source>NUMREGCG</source>
</field>
<field x="35" y="0.5" type="Data" width="10" pattern="1">
<field x="35" y="0.5" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<source>DATA</source>
</field>
<field x="46" y="0.5" type="Stringa" width="7" pattern="1">
<field x="46" y="0.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="">
<source>NUMDOCRIF</source>
</field>
<field x="54" y="0.5" type="Data" width="10" pattern="1">
<field x="54" y="0.5" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<source>DATADOCRIF</source>
</field>
<field x="64.5" y="0.5" type="Stringa" dynamic_height="1" width="17" height="4" pattern="1">
<field x="64.5" y="0.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="1" shade_offset="" width="17" codval="" height="4" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" size="8" />
<source>DESC</source>
</field>
<field x="82" y="0.5" type="Numero" align="right" width="3" pattern="1">
<field x="82" y="0.5" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="">
<source>NRIGA</source>
</field>
<field x="86" y="0.5" type="Stringa" dynamic_height="1" width="16" height="4" pattern="1">
<field x="86" y="0.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="1" shade_offset="" width="16" codval="" height="4" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" size="8" />
<source>DESCRIGA</source>
</field>
<field x="102.5" y="0.5" type="Stringa" align="right" dynamic_height="1" width="15" height="20" pattern="1">
<field x="102.5" y="0.5" deactivated="" type="Stringa" hidden="" align="right" link="" dynamic_height="1" shade_offset="" width="15" codval="" height="20" id="" pattern="1" hide_zero="" text="">
<source>DOCORIG</source>
</field>
<field x="118" y="0.5" type="Valuta" align="right" width="13" pattern="1" text="###.###.###,@@">
<field x="118" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="###.###.###,@@">
<source>PAGATO</source>
</field>
<field x="131" y="0.5" type="Valuta" align="right" width="13" pattern="1" text="###.###.###,@@">
<field x="131" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="###.###.###,@@">
<source>FATTURATO</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="144" y="0.5" type="Valuta" align="right" width="13" pattern="1" text="###.###.###,@@">
<field x="144" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="###.###.###,@@">
<source>MATURATO</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F2.600</postscript>
</field>
<field x="157" y="0.5" type="Valuta" align="right" width="13" pattern="1" text="###.###.###,@@">
<field x="157" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="###.###.###,@@">
<source>IMPEGNATO</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F2.800</postscript>
</field>
<field y="0.5" type="Numero" hidden="1" align="right" width="1" id="100" pattern="1">
<field y="0.5" deactivated="" type="Numero" hidden="1" align="right" link="" dynamic_height="" shade_offset="" width="1" codval="" id="100" pattern="1" hide_zero="" text="">
<prescript description="B1.100 PRESCRIPT">#THIS @
0 &#3E;
IF
@ -262,195 +275,215 @@
1 +
#THIS !</prescript>
</field>
<field x="1" y="0.5" type="Stringa" align="right" width="4" id="101" pattern="1">
<field x="1" y="0.5" deactivated="" type="Stringa" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="4" codval="" id="101" pattern="1" hide_zero="" text="">
<source>CODNUM</source>
</field>
<field x="5" y="0.5" type="Testo" width="1" id="102" pattern="1" text="-" />
<field x="6" y="0.5" type="Numero" align="right" width="4" id="103" pattern="1">
<field x="5" y="0.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="1" codval="" id="102" pattern="1" hide_zero="" text="-" />
<field x="6" y="0.5" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="4" codval="" id="103" pattern="1" hide_zero="" text="">
<source>ANNO</source>
</field>
<field x="10" y="0.5" type="Testo" width="1" id="104" pattern="1" text="-" />
<field x="11" y="0.5" type="Stringa" width="7" id="105" pattern="1">
<field x="10" y="0.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="1" codval="" id="104" pattern="1" hide_zero="" text="-" />
<field x="11" y="0.5" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="7" codval="" id="105" pattern="1" hide_zero="" text="">
<source>NUMRD</source>
</field>
<field x="171" y="0.5" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="23" codval="" id="201" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#COSTO</source>
<prescript description="">CA_FORMAT_COSTO</prescript>
</field>
<field x="195" y="0.5" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="23" codval="" id="202" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#COMMESSA</source>
<prescript description="">CA_FORMAT_COMMESSA</prescript>
</field>
<field x="219" y="0.5" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="13" codval="" id="203" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<source>#FASE</source>
<prescript description="">CA_FORMAT_FASE</prescript>
</field>
<field x="233" y="0.5" deactivated="" type="Stringa" hidden="1" link="" dynamic_height="" shade_offset="" width="13" codval="" id="204" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="9" />
<modules>NP</modules>
<source>#CONTSEP</source>
</field>
</section>
<section type="Foot" pattern="1">
<field border="1" x="1" y="0.25" type="Linea" width="169" height="0" pattern="1" />
<field x="1" y="0.75" type="Testo" width="10" pattern="1" text="Commessa" />
<field x="11" y="0.75" type="Stringa" width="20" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="" hidden="" page_break="" can_break="" pattern="1">
<field border="1" x="1" y="0.25" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="169" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="1" y="0.75" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Commessa" />
<field x="11" y="0.75" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#COMMESSA</source>
<prescript description="F0.0 PRESCRIPT">CA_FORMAT_COMMESSA</prescript>
</field>
<field x="33" y="0.75" type="Testo" width="18" pattern="1" text="Centro di Costo:" />
<field x="51" y="0.75" type="Stringa" width="18" pattern="1">
<field x="33" y="0.75" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="18" codval="" id="" pattern="1" hide_zero="" text="Centro di Costo:" />
<field x="51" y="0.75" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="18" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#COSTO</source>
<prescript description="F0.0 PRESCRIPT">CA_FORMAT_COSTO</prescript>
</field>
<field x="71" y="0.75" type="Testo" width="5" pattern="1" text="Fase:" />
<field x="77" y="0.75" type="Stringa" width="13" pattern="1">
<field x="71" y="0.75" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="1" hide_zero="" text="Fase:" />
<field x="77" y="0.75" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="8" />
<source>#FASE</source>
<prescript description="F0.0 PRESCRIPT">CA_FORMAT_FASE</prescript>
</field>
</section>
<section type="Foot" level="1" pattern="1">
<field border="2" x="1" y="0.5" type="Linea" width="169" height="0" pattern="1" />
<field x="90" y="1" type="Testo" width="15" pattern="1" text="ATTIVITA'">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="1" hidden="" page_break="" can_break="" pattern="1">
<field border="2" x="1" y="0.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="169" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="90" y="1" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="ATTIVITA'">
<font italic="1" face="Courier New" bold="1" size="9" />
</field>
<field x="143" y="1" type="Testo" width="15" pattern="1" text="BUDGET &#3E;&#3E;&#3E;">
<field x="143" y="1" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="BUDGET &#3E;&#3E;&#3E;">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="90" y="2.5" type="Testo" width="42" pattern="1" text="TOTALE FATTURATO, MATURATO, IMPEGNATO &#3E;&#3E;&#3E;">
<field x="90" y="2.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="42" codval="" id="" pattern="1" hide_zero="" text="TOTALE FATTURATO, MATURATO, IMPEGNATO &#3E;&#3E;&#3E;">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="90" y="4" type="Testo" width="42" pattern="1" text="TOTALE DA FATTURARE, MATURARE, IMPEGNARE &#3E;&#3E;&#3E;">
<field x="90" y="4" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="42" codval="" id="" pattern="1" hide_zero="" text="TOTALE DA FATTURARE, MATURARE, IMPEGNARE &#3E;&#3E;&#3E;">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="142" y="6.5" type="Testo" width="15" pattern="1" text="BUDGET &#3E;&#3E;&#3E;">
<field x="142" y="6.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="BUDGET &#3E;&#3E;&#3E;">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="90.37" y="6.75" type="Testo" width="15" pattern="1" text="PASSIVITA'">
<field x="90.37" y="6.75" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="PASSIVITA'">
<font italic="1" face="Courier New" bold="1" size="9" />
</field>
<field x="90.03" y="7.93" type="Testo" width="42" pattern="1" text="TOTALE FATTURATO, MATURATO, IMPEGNATO &#3E;&#3E;&#3E;">
<field x="90.03" y="7.93" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="42" codval="" id="" pattern="1" hide_zero="" text="TOTALE FATTURATO, MATURATO, IMPEGNATO &#3E;&#3E;&#3E;">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="90.03" y="9.43" type="Testo" width="42" pattern="1" text="TOTALE DA FATTURARE, MATURARE, IMPEGNARE &#3E;&#3E;&#3E;">
<field x="90.03" y="9.43" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="42" codval="" id="" pattern="1" hide_zero="" text="TOTALE DA FATTURARE, MATURARE, IMPEGNARE &#3E;&#3E;&#3E;">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="142" y="12" type="Testo" width="15" pattern="1" text="BUDGET &#3E;&#3E;&#3E;">
<field x="142" y="12" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="BUDGET &#3E;&#3E;&#3E;">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="89.9" y="12.4" type="Testo" width="15" pattern="1" text="COSTI">
<field x="89.9" y="12.4" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="COSTI">
<font italic="1" face="Courier New" bold="1" size="9" />
</field>
<field x="90.4" y="13.53" type="Testo" width="42" pattern="1" text="TOTALE FATTURATO, MATURATO, IMPEGNATO &#3E;&#3E;&#3E;">
<field x="90.4" y="13.53" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="42" codval="" id="" pattern="1" hide_zero="" text="TOTALE FATTURATO, MATURATO, IMPEGNATO &#3E;&#3E;&#3E;">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="90.4" y="15.03" type="Testo" width="42" pattern="1" text="TOTALE DA FATTURARE, MATURARE, IMPEGNARE &#3E;&#3E;&#3E;">
<field x="90.4" y="15.03" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="42" codval="" id="" pattern="1" hide_zero="" text="TOTALE DA FATTURARE, MATURARE, IMPEGNARE &#3E;&#3E;&#3E;">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="142" y="17.75" type="Testo" width="15" pattern="1" text="BUDGET &#3E;&#3E;&#3E;">
<field x="142" y="17.75" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="BUDGET &#3E;&#3E;&#3E;">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="90.03" y="18.09" type="Testo" width="15" pattern="1" text="RICAVI">
<field x="90.03" y="18.09" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="RICAVI">
<font italic="1" face="Courier New" bold="1" size="9" />
</field>
<field x="90" y="19.25" type="Testo" width="42" pattern="1" text="TOTALE FATTURATO, MATURATO, IMPEGNATO &#3E;&#3E;&#3E;">
<field x="90" y="19.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="42" codval="" id="" pattern="1" hide_zero="" text="TOTALE FATTURATO, MATURATO, IMPEGNATO &#3E;&#3E;&#3E;">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="90" y="20.75" type="Testo" width="42" pattern="1" text="TOTALE DA FATTURARE, MATURARE, IMPEGNARE &#3E;&#3E;&#3E;">
<field x="90" y="20.75" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="42" codval="" id="" pattern="1" hide_zero="" text="TOTALE DA FATTURARE, MATURARE, IMPEGNARE &#3E;&#3E;&#3E;">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="157" y="1" type="Valuta" align="right" width="13" id="301" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="157" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="301" pattern="1" hide_zero="1" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="157" y="6.5" type="Valuta" align="right" width="13" id="302" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="157" y="6.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="302" pattern="1" hide_zero="1" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="157" y="12" type="Valuta" align="right" width="13" id="303" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="157" y="12" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="303" pattern="1" hide_zero="1" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="157" y="17.75" type="Valuta" align="right" width="13" id="304" pattern="1" hide_zero="1" text="###.###.###,@@">
<field x="157" y="17.75" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="304" pattern="1" hide_zero="1" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="131" y="2.5" type="Valuta" align="right" width="13" id="401" pattern="1" text="###.###.###,@@">
<field x="131" y="2.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="401" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="131" y="8" type="Valuta" align="right" width="13" id="402" pattern="1" text="###.###.###,@@">
<field x="131" y="8" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="402" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="131" y="13.5" type="Valuta" align="right" width="13" id="403" pattern="1" text="###.###.###,@@">
<field x="131" y="13.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="403" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="131" y="19.25" type="Valuta" align="right" width="13" id="404" pattern="1" text="###.###.###,@@">
<field x="131" y="19.25" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="404" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="131" y="4" type="Valuta" align="right" width="13" id="501" pattern="1" text="###.###.###,@@">
<field x="131" y="4" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="501" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
<source>#801-#401</source>
</field>
<field x="131" y="9.5" type="Valuta" align="right" width="13" id="502" pattern="1" text="###.###.###,@@">
<field x="131" y="9.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="502" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
<source>#802-#402</source>
</field>
<field x="131" y="15" type="Valuta" align="right" width="13" id="503" pattern="1" text="###.###.###,@@">
<field x="131" y="15" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="503" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
<source>#803-#403</source>
</field>
<field x="131" y="20.75" type="Valuta" align="right" width="13" id="504" pattern="1" text="###.###.###,@@">
<field x="131" y="20.75" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="504" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
<source>#804-#404</source>
</field>
<field x="144" y="2.5" type="Valuta" align="right" width="13" id="601" pattern="1" text="###.###.###,@@">
<field x="144" y="2.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="601" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="144" y="8" type="Valuta" align="right" width="13" id="602" pattern="1" text="###.###.###,@@">
<field x="144" y="8" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="602" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="144" y="13.5" type="Valuta" align="right" width="13" id="603" pattern="1" text="###.###.###,@@">
<field x="144" y="13.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="603" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="144" y="19.25" type="Valuta" align="right" width="13" id="604" pattern="1" text="###.###.###,@@">
<field x="144" y="19.25" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="604" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="144" y="4" type="Valuta" align="right" width="13" id="701" pattern="1" text="###.###.###,@@">
<field x="144" y="4" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="701" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
<source>#801-#601</source>
</field>
<field x="144" y="9.5" type="Valuta" align="right" width="13" id="702" pattern="1" text="###.###.###,@@">
<field x="144" y="9.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="702" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
<source>#802-#602</source>
</field>
<field x="144" y="15" type="Valuta" align="right" width="13" id="703" pattern="1" text="###.###.###,@@">
<field x="144" y="15" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="703" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
<source>#803-#603</source>
</field>
<field x="144" y="20.75" type="Valuta" align="right" width="13" id="704" pattern="1" text="###.###.###,@@">
<field x="144" y="20.75" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="704" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
<source>#804-#604</source>
</field>
<field x="157" y="2.5" type="Valuta" align="right" width="13" id="801" pattern="1" text="###.###.###,@@">
<field x="157" y="2.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="801" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="157" y="8" type="Valuta" align="right" width="13" id="802" pattern="1" text="###.###.###,@@">
<field x="157" y="8" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="802" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="157" y="13.5" type="Valuta" align="right" width="13" id="803" pattern="1" text="###.###.###,@@">
<field x="157" y="13.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="803" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="157" y="19.25" type="Valuta" align="right" width="13" id="804" pattern="1" text="###.###.###,@@">
<field x="157" y="19.25" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="804" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="157" y="4" type="Valuta" align="right" width="13" id="901" pattern="1" text="###.###.###,@@">
<field x="157" y="4" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="901" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
<source>#301-#801</source>
</field>
<field x="157.03" y="9.43" type="Valuta" align="right" width="13" id="902" pattern="1" text="###.###.###,@@">
<field x="157.03" y="9.43" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="902" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
<source>#302-#802</source>
</field>
<field x="157" y="15" type="Valuta" align="right" width="13" id="903" pattern="1" text="###.###.###,@@">
<field x="157" y="15" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="903" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
<source>#303-#803</source>
</field>
<field x="157" y="20.75" type="Valuta" align="right" width="13" id="904" pattern="1" text="###.###.###,@@">
<field x="157" y="20.75" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="904" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
<source>#304-#804</source>
</field>
</section>
<section type="Foot" level="2" height="4" pattern="1">
<field border="1" x="1" y="0.5" type="Linea" width="169" height="0" pattern="1" />
<field x="90" y="1" type="Testo" width="42" pattern="1" text="Totale fatturato, maturato, impegnato &#3E;&#3E;&#3E;">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="2" hidden="" height="4" page_break="" can_break="" pattern="1">
<field border="1" x="1" y="0.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="169" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="90" y="1" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="42" codval="" id="" pattern="1" hide_zero="" text="Totale fatturato, maturato, impegnato &#3E;&#3E;&#3E;">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="90" y="2.5" type="Testo" width="42" pattern="1" text="Da fatturare, maturare, impegnare &#3E;&#3E;&#3E;">
<field x="90" y="2.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="42" codval="" id="" pattern="1" hide_zero="" text="Da fatturare, maturare, impegnare &#3E;&#3E;&#3E;">
<font face="Courier New" bold="1" size="8" />
</field>
<field x="131" y="1" type="Valuta" align="right" width="13" id="400" pattern="1" text="###.###.###,@@">
<field x="131" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="400" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
<postscript description="F2.400 POSTSCRIPT">#THIS @ \ prende il proprio valore
"F1." \ decide il campo destinazione in base al valore di INDBIL,che gli viene passato dal programma..
@ -461,11 +494,11 @@
+! \ esegue la ADD sul campo di destinazione
</postscript>
</field>
<field x="131" y="2.5" type="Valuta" align="right" width="13" id="500" pattern="1" text="###.###.###,@@">
<field x="131" y="2.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="500" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
<source>#800-#400</source>
</field>
<field x="144" y="1" type="Valuta" align="right" width="13" id="600" pattern="1" text="###.###.###,@@">
<field x="144" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="600" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
<postscript description="F2.600 POSTSCRIPT">#THIS @
"F1."
@ -475,11 +508,11 @@
+
+!</postscript>
</field>
<field x="144" y="2.5" type="Valuta" align="right" width="13" id="700" pattern="1" text="###.###.###,@@">
<field x="144" y="2.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="700" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
<source>#800-#600</source>
</field>
<field x="157" y="1" type="Valuta" align="right" width="13" id="800" pattern="1" text="###.###.###,@@">
<field x="157" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="800" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
<postscript description="F2.800 POSTSCRIPT">#THIS @
"F1."
@ -489,12 +522,12 @@
+
+!</postscript>
</field>
<field x="157" y="2.5" type="Valuta" align="right" width="13" id="900" pattern="1" text="###.###.###,@@">
<field x="157" y="2.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="13" codval="" id="900" pattern="1" hide_zero="" text="###.###.###,@@">
<font face="Courier New" bold="1" size="8" />
<source>#H2.700+#H2.800-#800</source>
</field>
</section>
<section type="Foot" level="3" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="3" hidden="" page_break="" can_break="" pattern="1">
<prescript description="F3 PRESCRIPT">0 #B1.100 !</prescript>
</section>
</report>

View File

@ -1,57 +1,66 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report libraries="ve1300" name="ca3700b" orientation="2" lpi="6" class="ca3700a">
<report libraries="ve1300" page_merge="" save_printer="" name="ca3700b" use_printer_font="" orientation="2" page_split="" lpi="6" command="" class="ca3700a">
<description>Rendiconto CA per esportazione excel</description>
<font face="Arial Narrow" size="7" />
<section type="Head" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="" hidden="" page_break="" can_break="" pattern="1">
<font italic="1" face="Arial Narrow" bold="1" size="7" />
<field x="1" type="Testo" valign="center" align="center" width="192" height="2.5" pattern="1" text="Riepilogo Entrate e Costi Esterni">
<font face="Arial Narrow" bold="1" size="16" />
</field>
<field x="1" type="Stringa" width="50" pattern="1">
<field x="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="70" type="Testo" width="10" pattern="1" text="Data stampa">
<field x="2" deactivated="" type="Testo" valign="center" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="192" codval="" height="2.5" id="" pattern="1" hide_zero="" text="Riepilogo Entrate e Costi Esterni">
<font face="Arial Narrow" bold="1" size="16" />
</field>
<field x="70" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Data stampa">
<font italic="1" face="Arial Narrow" size="7" />
</field>
<field x="82" type="Data" width="10" pattern="1">
<field x="82" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<source>#SYSTEM.DATE</source>
</field>
<field x="186" type="Testo" width="4" pattern="1" text="Pag.">
<field x="117" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="25" codval="" height="2.5" id="" pattern="1" hide_zero="" text="Contabilit&#E0; separata">
<font face="Arial Narrow" bold="1" size="16" />
<modules>NP</modules>
</field>
<field x="146" deactivated="" type="Stringa" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="18" codval="" height="2.5" id="" pattern="1" hide_zero="" text="">
<font face="Courier New" bold="1" size="16" />
<modules>NP</modules>
<source>#CONTSEP</source>
</field>
<field x="186" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="1" hide_zero="" text="Pag.">
<font italic="1" face="Arial Narrow" size="7" />
</field>
<field x="190" type="Numero" align="right" width="3" pattern="1">
<field x="190" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="">
<source>#REPORT.PAGE</source>
</field>
<field border="2" x="1" y="2.5" type="Linea" width="193" height="0" pattern="1" />
<field x="80" y="2.5" type="Testo" align="right" width="10" pattern="1" text="Ricavi" />
<field x="142.5" y="2.5" type="Testo" align="right" width="10" pattern="1" text="Costi" />
<field x="12" y="3" type="Testo" width="25" pattern="1" text="Dscrizione" />
<field x="49" y="4" type="Testo" align="right" width="10" pattern="1" text="Budget" />
<field x="59.5" y="4" type="Testo" align="right" width="10" pattern="1" text="Impegnato" />
<field x="70" y="4" type="Testo" align="right" width="10" pattern="1" text="Maturato" />
<field x="80.5" y="4" type="Testo" align="right" width="10" pattern="1" text="Fatturato" />
<field x="91" y="4" type="Testo" align="right" width="10" pattern="1" text="Da Impegnare" />
<field x="101" y="4" type="Testo" align="right" width="10" pattern="1" text="Da Maturare" />
<field x="111.5" y="4" type="Testo" align="right" width="10" pattern="1" text="Da Fatturare" />
<field x="121.5" y="4" type="Testo" align="right" width="10" pattern="1" text="Budget" />
<field x="132" y="4" type="Testo" align="right" width="10" pattern="1" text="Impegnato" />
<field x="142.5" y="4" type="Testo" align="right" width="10" pattern="1" text="Maturato" />
<field x="153" y="4" type="Testo" align="right" width="10" pattern="1" text="Fatturato" />
<field x="163" y="4" type="Testo" align="right" width="10" pattern="1" text="Da Impegnare" />
<field x="173.5" y="4" type="Testo" align="right" width="10" pattern="1" text="Da Maturare" />
<field x="184" y="4" type="Testo" align="right" width="10" pattern="1" text="Da Fatturare" />
<field x="47.5" y="5" type="Testo" align="center" width="10" pattern="1" text="Data Inizio" />
<field x="59" y="5" type="Testo" align="center" width="10" pattern="1" text="Data Fine" />
<field x="71" y="5" type="Testo" align="center" width="10" pattern="1" text="Data Proroga" />
<field border="1" x="1" y="6.25" type="Linea" width="193" height="0" pattern="1" />
<field x="1" y="3" type="Testo" width="10" id="121" pattern="1" text="Commessa" />
<field border="2" x="1" y="2.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="193" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="80" y="2.5" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Ricavi" />
<field x="142.5" y="2.5" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Costi" />
<field x="12" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="25" codval="" id="" pattern="1" hide_zero="" text="Dscrizione" />
<field x="49" y="4" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Budget" />
<field x="59.5" y="4" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Impegnato" />
<field x="70" y="4" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Maturato" />
<field x="80.5" y="4" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Fatturato" />
<field x="91" y="4" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Da Impegnare" />
<field x="101" y="4" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Da Maturare" />
<field x="111.5" y="4" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Da Fatturare" />
<field x="121.5" y="4" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Budget" />
<field x="132" y="4" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Impegnato" />
<field x="142.5" y="4" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Maturato" />
<field x="153" y="4" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Fatturato" />
<field x="163" y="4" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Da Impegnare" />
<field x="173.5" y="4" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Da Maturare" />
<field x="184" y="4" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Da Fatturare" />
<field x="47.5" y="5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Data Inizio" />
<field x="59" y="5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Data Fine" />
<field x="71" y="5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Data Proroga" />
<field border="1" x="1" y="6.25" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="193" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="1" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="121" pattern="1" hide_zero="" text="Commessa" />
</section>
<section type="Head" level="1" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="1" hidden="" page_break="" can_break="" pattern="1">
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
</section>
<section type="Body" pattern="1" />
<section type="Body" level="1" pattern="1">
<field x="1" type="Stringa" width="10" height="2" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="" hidden="" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="1" hidden="" page_break="" can_break="" pattern="1">
<field x="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" height="2" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" bold="1" size="7" />
<source>A</source>
<postscript description="B1.0 POSTSCRIPT">#THIS @
@ -65,163 +74,163 @@ ELSE
SHOW
THEN</postscript>
</field>
<field x="48" type="Valuta" align="right" width="10" pattern="1" hide_zero="1" text="#########,@@">
<field x="48" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="1" text="#########,@@">
<source>M</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.102</postscript>
</field>
<field x="58.5" type="Valuta" align="right" width="10" pattern="1" hide_zero="1" text="#########,@@">
<field x="58.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="1" text="#########,@@">
<source>N</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.104</postscript>
</field>
<field x="69" type="Valuta" align="right" width="10" pattern="1" hide_zero="1" text="#########,@@">
<field x="69" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="1" text="#########,@@">
<source>O</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.106</postscript>
</field>
<field x="80" type="Valuta" align="right" width="10" pattern="1" hide_zero="1" text="#########,@@">
<field x="80" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="1" text="#########,@@">
<source>P</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.108</postscript>
</field>
<field x="90" type="Valuta" align="right" width="10" pattern="1" hide_zero="1" text="#########,@@">
<field x="90" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="1" text="#########,@@">
<source>Q</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.110</postscript>
</field>
<field x="100" type="Valuta" align="right" width="10" pattern="1" hide_zero="1" text="#########,@@">
<field x="100" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="1" text="#########,@@">
<source>R</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.112</postscript>
</field>
<field x="110" type="Valuta" align="right" width="10" pattern="1" hide_zero="1" text="#########,@@">
<field x="110" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="1" text="#########,@@">
<source>T</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.114</postscript>
</field>
<field x="121" type="Valuta" align="right" width="10" pattern="1" hide_zero="1" text="#########,@@">
<field x="121" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="1" text="#########,@@">
<source>F</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.101</postscript>
</field>
<field x="131.5" type="Valuta" align="right" width="10" pattern="1" hide_zero="1" text="#########,@@">
<field x="131.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="1" text="#########,@@">
<source>G</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.103</postscript>
</field>
<field x="142" type="Valuta" align="right" width="10" pattern="1" hide_zero="1" text="#########,@@">
<field x="142" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="1" text="#########,@@">
<source>H</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.105</postscript>
</field>
<field x="153" type="Valuta" align="right" width="10" pattern="1" hide_zero="1" text="#########,@@">
<field x="153" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="1" text="#########,@@">
<source>I</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.107</postscript>
</field>
<field x="163" type="Valuta" align="right" width="10" pattern="1" hide_zero="1" text="#########,@@">
<field x="163" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="1" text="#########,@@">
<source>J</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.109</postscript>
</field>
<field x="173" type="Valuta" align="right" width="10" pattern="1" hide_zero="1" text="#########,@@">
<field x="173" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="1" text="#########,@@">
<source>K</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.111</postscript>
</field>
<field x="183" type="Valuta" align="right" width="10" pattern="1" hide_zero="1" text="#########,@@">
<field x="183" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="1" text="#########,@@">
<source>L</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.113</postscript>
</field>
<field x="48" y="1" type="Data" width="10" pattern="1">
<field x="48" y="1" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<source>C</source>
</field>
<field x="58.5" y="1" type="Data" width="10" pattern="1">
<field x="58.5" y="1" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<source>D</source>
</field>
<field x="69" y="1" type="Data" width="10" pattern="1">
<field x="69" y="1" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<source>E</source>
</field>
<field x="12" type="Stringa" dynamic_height="1" width="25" height="2" id="102" pattern="1">
<field x="12" deactivated="" type="Stringa" hidden="" link="" dynamic_height="1" shade_offset="" width="25" codval="" height="2" id="102" pattern="1" hide_zero="" text="">
<source>B</source>
</field>
</section>
<section type="Foot" pattern="1" />
<section type="Foot" level="1" pattern="1">
<field border="1" x="1.5" y="0.5" type="Linea" width="193" height="0" pattern="1" />
<field x="12" y="1" type="Testo" width="25" pattern="1" text="TOTALI">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="" hidden="" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="1" hidden="" page_break="" can_break="" pattern="1">
<field border="1" x="1.5" y="0.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="193" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="12" y="1" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="25" codval="" id="" pattern="1" hide_zero="" text="TOTALI">
<font face="Arial Narrow" bold="1" size="7" />
</field>
<field x="48" y="1" type="Valuta" align="right" width="10" id="101" pattern="1" hide_zero="1" text="#########,@@">
<field x="48" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="101" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.101 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="48" y="2" type="Valuta" align="right" width="10" id="102" pattern="1" hide_zero="1" text="#########,@@">
<field x="48" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="102" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.102 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="58.5" y="1" type="Valuta" align="right" width="10" id="103" pattern="1" hide_zero="1" text="#########,@@">
<field x="58.5" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="103" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.103 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="58.5" y="2" type="Valuta" align="right" width="10" id="104" pattern="1" hide_zero="1" text="#########,@@">
<field x="58.5" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="104" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.104 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="69" y="1" type="Valuta" align="right" width="10" id="105" pattern="1" hide_zero="1" text="#########,@@">
<field x="69" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="105" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.105 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="69" y="2" type="Valuta" align="right" width="10" id="106" pattern="1" hide_zero="1" text="#########,@@">
<field x="69" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="106" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.106 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="80" y="1" type="Valuta" align="right" width="10" id="107" pattern="1" hide_zero="1" text="#########,@@">
<field x="80" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="107" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.107 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="80" y="2" type="Valuta" align="right" width="10" id="108" pattern="1" hide_zero="1" text="#########,@@">
<field x="80" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="108" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.108 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="90" y="1" type="Valuta" align="right" width="10" id="109" pattern="1" hide_zero="1" text="#########,@@">
<field x="90" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="109" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.109 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="90" y="2" type="Valuta" align="right" width="10" id="110" pattern="1" hide_zero="1" text="#########,@@">
<field x="90" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="110" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.110 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="100" y="1" type="Valuta" align="right" width="10" id="111" pattern="1" hide_zero="1" text="#########,@@">
<field x="100" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="111" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.111 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="100" y="2" type="Valuta" align="right" width="10" id="112" pattern="1" hide_zero="1" text="#########,@@">
<field x="100" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="112" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.112 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="110" y="1" type="Valuta" align="right" width="10" id="113" pattern="1" hide_zero="1" text="#########,@@">
<field x="110" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="113" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.113 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="110" y="2" type="Valuta" align="right" width="10" id="114" pattern="1" hide_zero="1" text="#########,@@">
<field x="110" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="114" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.114 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="121" y="1" type="Valuta" align="right" width="10" id="115" pattern="1" hide_zero="1" text="#########,@@">
<field x="121" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="115" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.115 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="121" y="2" type="Valuta" align="right" width="10" id="116" pattern="1" hide_zero="1" text="#########,@@">
<field x="121" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="116" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.116 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="131.5" y="1" type="Valuta" align="right" width="10" id="117" pattern="1" hide_zero="1" text="#########,@@">
<field x="131.5" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="117" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.117 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="131.5" y="2" type="Valuta" align="right" width="10" id="118" pattern="1" hide_zero="1" text="#########,@@">
<field x="131.5" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="118" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.118 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="142" y="1" type="Valuta" align="right" width="10" id="119" pattern="1" hide_zero="1" text="#########,@@">
<field x="142" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="119" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.119 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="142" y="2" type="Valuta" align="right" width="10" id="120" pattern="1" hide_zero="1" text="#########,@@">
<field x="142" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="120" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.120 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="153" y="1" type="Valuta" align="right" width="10" id="121" pattern="1" hide_zero="1" text="#########,@@">
<field x="153" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="121" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.121 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="153" y="2" type="Valuta" align="right" width="10" id="122" pattern="1" hide_zero="1" text="#########,@@">
<field x="153" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="122" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.122 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="163" y="1" type="Valuta" align="right" width="10" id="123" pattern="1" hide_zero="1" text="#########,@@">
<field x="163" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="123" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.123 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="163" y="2" type="Valuta" align="right" width="10" id="124" pattern="1" hide_zero="1" text="#########,@@">
<field x="163" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="124" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.124 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="173" y="1" type="Valuta" align="right" width="10" id="125" pattern="1" hide_zero="1" text="#########,@@">
<field x="173" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="125" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.125 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="173" y="2" type="Valuta" align="right" width="10" id="126" pattern="1" hide_zero="1" text="#########,@@">
<field x="173" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="126" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.126 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="183" y="1" type="Valuta" align="right" width="10" id="127" pattern="1" hide_zero="1" text="#########,@@">
<field x="183" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="127" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.127 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
<field x="183" y="2" type="Valuta" align="right" width="10" id="128" pattern="1" hide_zero="1" text="#########,@@">
<field x="183" y="2" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="10" codval="" id="128" pattern="1" hide_zero="1" text="#########,@@">
<postscript description="F1.128 POSTSCRIPT">MESSAGE ADD,F2.400</postscript>
</field>
</section>

View File

@ -1,4 +1,4 @@
#include <applicat.h>
#include <repapp.h>
#include <defmask.h>
#include "../cg/cglib.h"
@ -7,6 +7,7 @@
#include "ca3883a.h"
#include "calib01.h"
#include "calib02.h"
#include "commesse.h"
#include "pconana.h"
#include "cdc.h"
#include "fasi.h"
@ -19,10 +20,11 @@ class TPrint_bilancio_cms_mask : public TAnal_report_mask
{
protected:
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
bool test_compatible_report();
public:
const TString& get_report_class() const;
void execute_print(TReport_book & book, TAutomask & mask, TReport & rep, export_type type);
TPrint_bilancio_cms_mask();
virtual ~TPrint_bilancio_cms_mask() {}
};
@ -44,68 +46,10 @@ const TString& TPrint_bilancio_cms_mask::get_report_class() const
return classe;
}
bool TPrint_bilancio_cms_mask::test_compatible_report()
{
const TString& cls = get_report_class();
const TString& name = get(F_REPORT);
bool ok = name.not_empty();
if (ok)
{
TReport rep;
ok = rep.load(name);
if (ok)
{
const TString& classe = rep.get_class();
ok = classe == cls;
}
}
if (!ok)
{
set(F_REPORT, cls);
TFilename path = cls;
path.ext("rep");
ok = path.custom_path();
}
return ok;
}
bool TPrint_bilancio_cms_mask::on_field_event(TOperable_field& o, TField_event e, long jolly)
{
switch (o.dlg())
{
case DLG_PRINT:
if (e == fe_button)
{
main_app().print();
return false;
}
break;
case DLG_PREVIEW:
if (e == fe_button)
{
main_app().preview();
return false;
}
break;
case F_REPORT:
if (e == fe_button)
{
const TString8 lib = get_report_class();
TFilename path = o.get();
if (select_custom_file(path, "rep", lib))
{
path = path.name();
path.ext("");
o.set(path);
}
} else
if (e == fe_close)
{
if (!test_compatible_report())
return error_box(TR("Impossibile trovare un report compatibile"));
}
break;
case F_ESERCIZIO:
case F_FINE_ES:
if (e == fe_init || e == fe_modify || e == fe_close)
@ -131,7 +75,6 @@ bool TPrint_bilancio_cms_mask::on_field_event(TOperable_field& o, TField_event e
return TAnal_report_mask::on_field_event(o, e, jolly);
}
TPrint_bilancio_cms_mask::TPrint_bilancio_cms_mask()
:TAnal_report_mask("ca3800")
{
@ -251,36 +194,37 @@ TPrint_bilancio_cms_rep::TPrint_bilancio_cms_rep(const char* rep_name, const TSt
const bool intestazione_minima)
:TCRPA_report(rep_name, prefix, depth, show_fasi, show_cdc, show_cms_descr, show_cms_date, sintetica, intestazione_minima)
{
}
////////////////////////////////////////////////////////
// APPLICAZIONE
////////////////////////////////////////////////////////
class TPrint_bilancio_cms : public TSkeleton_application
class TPrint_bilancio_cms : public TReport_application
{
TPrint_bilancio_cms_mask * _mask;
TReport * _rep;
protected:
void build_lista_fasi(TString_array & lista_fasi, const TString & fase);
void build_lista_cdc(TString_array & lista_cdc, const TString & cdc);
void print_or_preview(const bool stampa);
virtual void print();
virtual void preview();
// @cmember Ritorna il report
virtual TReport & get_report(const TAutomask & m);
// @cmember ritorna la maschera
virtual TAutomask & get_mask();
virtual void execute_print(TReport_book & book,TAutomask & mask, TReport & rep, export_type type = _export_printer);
virtual void main_loop();
public:
virtual const char * title() const { return TR("Stampa bilancio di commessa"); }
virtual const char * output_name(const TAutomask & mask, const TReport & rep) const { return "bilcms"; }
virtual TTrec * get_dbase_recdesc(TReport & rep, const TAutomask & mask);
bool user_destroy();
// @cmember Costruttore
TPrint_bilancio_cms() : _mask(nullptr), _rep(nullptr) { }
// @cmember Distruttore
virtual ~TPrint_bilancio_cms() { }
};
void TPrint_bilancio_cms::print()
{
print_or_preview(true);
}
void TPrint_bilancio_cms::preview()
{
print_or_preview(false);
}
void TPrint_bilancio_cms::build_lista_fasi(TString_array & lista_fasi, const TString & fase)
{
TString query("USE FASI");
@ -331,25 +275,14 @@ void TPrint_bilancio_cms::build_lista_cdc(TString_array & lista_cdc, const TStri
}
}
void TPrint_bilancio_cms::print_or_preview(const bool stampa)
void TPrint_bilancio_cms::execute_print(TReport_book & book, TAutomask & mask, TReport & rep, export_type type)
{
//report e book dei report
TReport_book book;
TString80 prefix;
for (short id = F_PRE1; id <= F_PRE3 && _mask->id2pos(id) > 0; id++)
prefix << _mask->get(id);
const int depth = _mask->get_int(F_DEPTH);
TString path = _mask->get(F_REPORT);
const int tipostampa = _mask->get_int(F_TIPOSTAMPA);
//fasi
const bool dett_fasi = (tipostampa == 1) || (tipostampa == 3);
const TString& fase = _mask->get(F_FASE);
const bool group_fasi = tipostampa == 4;
const bool show_fasi = dett_fasi && fase.empty();
const bool sintetica = _mask->get_bool(F_STAMPA_SINTETICA);
const bool intestazione_minima = _mask->get_bool(F_INTESTAZIONE_MINIMA);
//cdc
@ -363,12 +296,6 @@ void TPrint_bilancio_cms::print_or_preview(const bool stampa)
const bool show_cms_descr = _mask->get_bool(F_SHOW_CMS_DESCR);
const bool show_cms_date = _mask->get_bool(F_SHOW_CMS_DATE);
if (path.empty())
path = _mask->get_report_class();
//crea il report in base ai parametri (tipo report,struttura,profondita' di stampa)
TPrint_bilancio_cms_rep rep(path, prefix, depth, show_fasi, show_cdc, show_cms_descr, show_cms_date, sintetica, intestazione_minima);
//se e' una stampa di tipo fasi riassunte (crpa special edition) deve fare lo scanning di tutte le fasi..
//..singolarmente e stampare un report per ogni fase.Senno' stampa un solo report
@ -379,12 +306,8 @@ void TPrint_bilancio_cms::print_or_preview(const bool stampa)
if (fase.blank() && cdc.blank())
{
rep.set_filter(*_mask);
book.add(rep);
if (stampa)
book.print();
else
book.preview();
((TPrint_bilancio_cms_rep & ) rep).set_filter(*_mask);
book.add(rep, type);
}
else
{
@ -401,8 +324,8 @@ void TPrint_bilancio_cms::print_or_preview(const bool stampa)
{
const TString& cdc = lista_cdc.row(j);
rep.set_filter(*_mask, fase, cdc);
book.add(rep);
((TPrint_bilancio_cms_rep &)rep).set_filter(*_mask, fase, cdc);
book.add(rep, type);
if (rep.page() > 0)
{
if (intestazione_minima)
@ -413,10 +336,6 @@ void TPrint_bilancio_cms::print_or_preview(const bool stampa)
}
}
}
if (stampa)
book.print();
else
book.preview();
}
}
} //if(group_fasi...
@ -434,8 +353,8 @@ void TPrint_bilancio_cms::print_or_preview(const bool stampa)
{
TString16 fase = lista_fasi.row(i);
rep.set_filter(*_mask, fase);
book.add(rep);
((TPrint_bilancio_cms_rep &)rep).set_filter(*_mask, fase);
book.add(rep, type);
if (rep.page() > 0)
{
if (intestazione_minima)
@ -445,13 +364,7 @@ void TPrint_bilancio_cms::print_or_preview(const bool stampa)
}
}
}
if (stampa)
book.print();
else
book.preview();
}
} //if(group_fasi...
else
if (group_cdc || dett_cdc)
@ -465,8 +378,8 @@ void TPrint_bilancio_cms::print_or_preview(const bool stampa)
{
const TString& cdc = lista_cdc.row(j);
rep.set_filter(*_mask, fase, cdc);
book.add(rep);
((TPrint_bilancio_cms_rep &)rep).set_filter(*_mask, fase, cdc);
book.add(rep, type);
if (rep.page() > 0)
{
if (intestazione_minima)
@ -477,35 +390,123 @@ void TPrint_bilancio_cms::print_or_preview(const bool stampa)
}
}
}
if (stampa)
book.print();
else
book.preview();
} //if(group_cdc...
else //...senno' stampa standard in un giro solo
{
rep.set_filter(*_mask);
((TPrint_bilancio_cms_rep &)rep).set_filter(*_mask);
rep.set_export_sections(type);
book.add(rep);
if (stampa)
book.print();
else
book.preview();
rep.reset_export_sections();
}
}
void TPrint_bilancio_cms::main_loop()
TReport & TPrint_bilancio_cms::get_report(const TAutomask & m)
{
TString80 prefix;
for (short id = F_PRE1; id <= F_PRE3 && m.id2pos(id) > 0; id++)
prefix << m.get(id);
const int depth = m.get_int(F_DEPTH);
TString path = m.get(DLG_REPORT);
const int tipostampa = m.get_int(F_TIPOSTAMPA);
//fasi
const bool dett_fasi = (tipostampa == 1) || (tipostampa == 3);
const TString& fase = m.get(F_FASE);
const bool group_fasi = tipostampa == 4;
const bool show_fasi = dett_fasi && fase.empty();
const bool sintetica = m.get_bool(F_STAMPA_SINTETICA);
const bool intestazione_minima = m.get_bool(F_INTESTAZIONE_MINIMA);
//cdc
const bool dett_cdc = (tipostampa == 2) || (tipostampa == 3);
const TString& cdc = m.get(F_CDC);
const bool group_cdc = tipostampa == 8;
const bool show_cdc = dett_cdc && cdc.empty();
//descrizioni
const bool show_cms_descr = m.get_bool(F_SHOW_CMS_DESCR);
const bool show_cms_date = m.get_bool(F_SHOW_CMS_DATE);
if (path.empty())
path = ((TPrint_bilancio_cms_mask &)m).get_report_class();
//crea il report in base ai parametri (tipo report,struttura,profondita' di stampa)
safe_delete(_rep);
_rep = new TPrint_bilancio_cms_rep(path, prefix, depth, show_fasi, show_cdc, show_cms_descr, show_cms_date, sintetica, intestazione_minima);
return *_rep;
}
TAutomask & TPrint_bilancio_cms::get_mask()
{
if (_mask == nullptr)
_mask = new TPrint_bilancio_cms_mask;
_mask->run();
delete _mask;
_mask = NULL;
return *_mask;
}
TTrec * TPrint_bilancio_cms::get_dbase_recdesc(TReport & rep, const TAutomask & mask)
{
TTrec * desc = new TTrec;
TToken_string def;
TRectype cms(LF_COMMESSE);
TRectype fasi(LF_FASI);
TRectype cdc(LF_CDC);
const int tipostampa = mask.get_int(F_TIPOSTAMPA);
const bool show_cms_descr = mask.get_bool(F_SHOW_CMS_DESCR);
const bool show_cms_date = mask.get_bool(F_SHOW_CMS_DATE);
const bool dett_fasi = (tipostampa == 1) || (tipostampa == 3);
const bool dett_cdc = (tipostampa == 2) || (tipostampa == 3);
desc->add_fielddef(cms.rec_des(), COMMESSE_CODCMS);
if (show_cms_descr)
desc->add_fielddef(cms.rec_des(), COMMESSE_DESCRIZ);
if (show_cms_date)
{
desc->add_fielddef("INIZIO", _datefld);
desc->add_fielddef("FINE", _datefld);
}
if (dett_fasi)
desc->add_fielddef(fasi.rec_des(), FASI_CODFASE);
if (dett_cdc)
desc->add_fielddef(cdc.rec_des(), CDC_CODCOSTO);
desc->add_fielddef("AVRIC", _realfld, 6, 2);
desc->add_fielddef("RICAVI", _realfld, 18, 2);
desc->add_fielddef("INCAR", _realfld, 18, 2);
desc->add_fielddef("CONSUL", _realfld, 18, 2);
desc->add_fielddef("ALTRI", _realfld, 18, 2);
desc->add_fielddef("MATER", _realfld, 18, 2);
desc->add_fielddef("INDIST", _realfld, 18, 2);
desc->add_fielddef("DIPEND", _realfld, 18, 2);
desc->add_fielddef("COSTI", _realfld, 18, 2);
desc->add_fielddef("DIFF", _realfld, 18, 2);
desc->add_fielddef("DIFFPERC", _realfld, 6, 2);
TString keydef = COMMESSE_CODCMS;
if (dett_fasi)
keydef << '+' << FASI_CODFASE;
if (dett_cdc)
keydef << '+' << CDC_CODCOSTO;
desc->add_keydef(keydef, true);
if (show_cms_descr)
desc->add_keydef(COMMESSE_DESCRIZ, true);
return desc;
}
bool TPrint_bilancio_cms::user_destroy()
{
safe_delete(_mask);
safe_delete(_rep);
return TReport_application::user_destroy();
}
int ca3800(int argc, char* argv[])
{
TPrint_bilancio_cms a;
a.run(argc, argv, TR("Stampa bilancio di commessa"));
a.run(argc, argv, a.title());
return 0;
}

View File

@ -1,9 +1,16 @@
#include "ca3883a.h"
#define ALL_EXPORT
#define CLASS_NAME "ca3800"
TOOLBAR "topbar" 0 0 0 2
#include <aprintbar.h>
ENDPAGE
TOOLBAR "bottombar" 0 -3 0 1
#include <bprintbar.h>
ENDPAGE
PAGE "Stampa bilancio commessa" 0 2 0 0
GROUPBOX DLG_NULL 76 5
@ -71,18 +78,12 @@ END
LISTBOX F_TIPOSTAMPA 1 30
BEGIN
PROMPT 1 8 "Stampa "
ITEM "0|Normale"
MESSAGE CLEAR,F_FASE|CLEAR,F_CDC
ITEM "1|Dettaglia per Fase"
MESSAGE ENABLE,F_FASE|CLEAR,F_CDC
ITEM "2|Dettaglia per CdC"
MESSAGE CLEAR,F_FASE|ENABLE,F_CDC
ITEM "3|Dettaglia per Fase e CdC"
MESSAGE ENABLE,F_FASE|ENABLE,F_CDC
ITEM "4|Riassuntiva per Fase"
MESSAGE CLEAR,F_FASE|CLEAR,F_CDC
ITEM "8|Riassuntiva per CdC"
MESSAGE CLEAR,F_FASE|CLEAR,F_CDC
ITEM "0|Normale" MESSAGE CLEAR,F_FASE|CLEAR,F_CDC
ITEM "1|Dettaglia per Fase" MESSAGE ENABLE,F_FASE|CLEAR,F_CDC
ITEM "2|Dettaglia per CdC" MESSAGE CLEAR,F_FASE|ENABLE,F_CDC
ITEM "3|Dettaglia per Fase e CdC" MESSAGE ENABLE,F_FASE|ENABLE,F_CDC
ITEM "4|Riassuntiva per Fase" MESSAGE CLEAR,F_FASE|CLEAR,F_CDC
ITEM "8|Riassuntiva per CdC" MESSAGE CLEAR,F_FASE|CLEAR,F_CDC
END
BOOLEAN F_STAMPA_SINTETICA
@ -115,12 +116,9 @@ END
LISTBOX F_TIPOSTIMA 1 30
BEGIN
PROMPT 1 11 "Tipo di stima Costi\Ricavi"
ITEM "T|C prev.\R prev. (Tempo)"
MESSAGE SHOW,F_DETR_CONS|ENABLE,F_DETR_CONS|CLEAR,F_INCLUDE_DOCUMENTI
ITEM "C|C cons.\R prev."
MESSAGE SHOW,F_DETR_CONS|ENABLE,F_DETR_CONS|ENABLE,F_INCLUDE_DOCUMENTI
ITEM "R|C cons.\R cons."
MESSAGE CLEAR,F_DETR_CONS|HIDE,F_DETR_CONS|ENABLE,F_INCLUDE_DOCUMENTI
ITEM "T|C prev.\R prev. (Tempo)" MESSAGE SHOW,F_DETR_CONS|ENABLE,F_DETR_CONS|CLEAR,F_INCLUDE_DOCUMENTI
ITEM "C|C cons.\R prev." MESSAGE SHOW,F_DETR_CONS|ENABLE,F_DETR_CONS|ENABLE,F_INCLUDE_DOCUMENTI
ITEM "R|C cons.\R cons." MESSAGE CLEAR,F_DETR_CONS|HIDE,F_DETR_CONS|ENABLE,F_INCLUDE_DOCUMENTI
END
BOOLEAN F_DETR_CONS
@ -134,25 +132,39 @@ BEGIN
GROUP 6
END
STRING F_CONTSEP 6
BEGIN
PROMPT 1 19 "Cont.separata "
USE &NPENT
INPUT CODTAB F_CONTSEP
DISPLAY "Codice@6" CODTAB
DISPLAY "Descrizione@50" S0
OUTPUT F_CONTSEP CODTAB
OUTPUT F_DESCONTSEP S0
CHECKTYPE NORMAL
FIELD CONTSEP
MODULE NP
END
STRING F_DESCONTSEP 50 48
BEGIN
PROMPT 25 19 ""
USE &NPENT KEY 2
INPUT S0 F_DESCONTSEP
DISPLAY "Descrizione@50" S0
DISPLAY "Codice@6" CODTAB
COPY OUTPUT F_CONTSEP
CHECKTYPE SEARCH
MODULE NP
END
LISTBOX F_DEPTH 1 20
BEGIN
PROMPT 1 19 "Profondita' del piano dei conti da considerare "
PROMPT 1 20 "Profondita' del piano dei conti da considerare "
ITEM "1|Gruppo"
ITEM "2|Conto"
END
STRING F_REPORT 256 64
BEGIN
PROMPT 1 20 "Report "
FLAGS "B"
END
STRING DLG_PROFILE 50
BEGIN
PROMPT 1 -1 "Profilo "
PSELECT
END
ENDPAGE
PAGE "Istruzioni" -1 -1 78 20

View File

@ -68,10 +68,10 @@
<li Value="COSTI Consuntivi \ RICAVI Consuntivi" Code="R" />
</list>
</field>
<field x="149" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="Detrazioni calcolate come">
<field x="139.5" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="Detrazioni calcolate come">
<font italic="1" face="Arial Narrow" size="9" />
</field>
<field x="168.5" y="3" deactivated="" type="Array" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<field x="159" y="3" deactivated="" type="Array" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" bold="1" size="9" />
<source>DETRCONS</source>
<list>
@ -79,6 +79,21 @@
<li Value="Consuntivi" Code="X" />
</list>
</field>
<field x="169" y="3" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Cont.separata">
<font face="Arial Narrow" bold="1" size="9" />
<modules>NP</modules>
</field>
<field x="190" y="3" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" bold="1" size="9" />
<modules>NP</modules>
<source>#CONTSEP</source>
<prescript description="H1.0 PRESCRIPT">"MOVANA.SEZIONE" @
"D" =
IF
0 #THIS !
THEN
</prescript>
</field>
<field x="2" y="4.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="Include esercizi successivi">
<font italic="1" face="Arial Narrow" size="9" />
</field>
@ -115,10 +130,10 @@
<font face="Arial Narrow" bold="1" size="9" />
<source>CDCSPEC</source>
</field>
<field x="149" y="4.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="25" codval="" id="" pattern="1" hide_zero="" text="Profondita' della struttura in esame">
<field x="139.5" y="4.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="25" codval="" id="" pattern="1" hide_zero="" text="Profondita' della struttura in esame">
<font italic="1" face="Arial Narrow" size="9" />
</field>
<field x="175.5" y="4.25" deactivated="" type="Array" hidden="" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="">
<field x="166" y="4.25" deactivated="" type="Array" hidden="" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" bold="1" size="9" />
<source>DEPTH</source>
<list>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report libraries="ve1300" page_merge="" save_printer="" name="ca3800as" use_printer_font="" orientation="2" page_split="" lpi="6" command="" class="ca3800as">
<report libraries="ve1300" page_merge="" save_printer="" name="ca3800as" use_printer_font="" orientation="2" page_split="" lpi="6" command="" class="ca3800">
<description>Bilancio commessa CA</description>
<font face="Arial Narrow" size="7" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="" hidden="" page_break="" can_break="" pattern="1">
@ -121,6 +121,21 @@
<field x="75.5" y="4" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="68" codval="" id="" pattern="1" hide_zero="" text="CCAC - Commesse che terminano oltre l'esercizio corrente e avviate nell'esercizio corrente">
<font face="Arial Narrow" size="8" />
</field>
<field x="143" y="4" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Cont.separata">
<font italic="1" face="Arial Narrow" size="9" />
<modules>NP</modules>
</field>
<field x="164" y="4" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" bold="1" size="9" />
<modules>NP</modules>
<source>#CONTSEP</source>
<prescript description="H1.0 PRESCRIPT">"MOVANA.SEZIONE" @
"D" =
IF
0 #THIS !
THEN
</prescript>
</field>
</section>
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="" hidden="" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="1" hidden="" page_break="" can_break="" pattern="1">

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report libraries="ve1300" page_merge="" save_printer="" name="ca3800b" use_printer_font="" orientation="2" page_split="" lpi="6" command="" class="ca3800b">
<report libraries="ve1300" page_merge="" save_printer="" name="ca3800b" use_printer_font="" orientation="2" page_split="" lpi="6" command="" class="ca3800">
<description>Bilancio commessa CA riassuntivo per fasi</description>
<font face="Arial Narrow" size="8" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="" hidden="" page_break="" can_break="" pattern="1">
@ -56,10 +56,10 @@
<li Value="COSTI Consuntivi \ RICAVI Consuntivi" Code="R" />
</list>
</field>
<field x="134" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="Detrazioni calcolate come">
<field x="115.5" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="Detrazioni calcolate come">
<font italic="1" face="Arial Narrow" size="9" />
</field>
<field x="159" y="3" deactivated="" type="Array" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<field x="140.5" y="3" deactivated="" type="Array" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" bold="1" size="9" />
<source>DETRCONS</source>
<list>
@ -67,10 +67,25 @@
<li Value="Consuntivi" Code="X" />
</list>
</field>
<field x="134" y="4" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="25" codval="" id="" pattern="1" hide_zero="" text="Profondita' della struttura in esame">
<field x="149.5" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Cont.separata">
<font face="Arial Narrow" bold="1" size="9" />
<modules>NP</modules>
</field>
<field x="164" y="3" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" bold="1" size="9" />
<modules>NP</modules>
<source>#CONTSEP</source>
<prescript description="H1.0 PRESCRIPT">"MOVANA.SEZIONE" @
"D" =
IF
0 #THIS !
THEN
</prescript>
</field>
<field x="115.5" y="4" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="25" codval="" id="" pattern="1" hide_zero="" text="Profondita' della struttura in esame">
<font italic="1" face="Arial Narrow" size="9" />
</field>
<field x="159" y="4" deactivated="" type="Array" hidden="" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="">
<field x="140.5" y="4" deactivated="" type="Array" hidden="" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" bold="1" size="9" />
<source>DEPTH</source>
<list>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report libraries="ve1300" page_merge="" save_printer="" name="ca3800bs" use_printer_font="" orientation="2" page_split="" lpi="6" command="" class="ca3800bs">
<report libraries="ve1300" page_merge="" save_printer="" name="ca3800bs" use_printer_font="" orientation="2" page_split="" lpi="6" command="" class="ca3800">
<description>Bilancio commessa CA riassuntivo per fasi</description>
<font face="Arial Narrow" size="8" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="" hidden="" page_break="" can_break="" pattern="1">
@ -105,6 +105,21 @@
<field x="142" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="35" codval="" id="" pattern="1" hide_zero="" text="CTGG - Commesse di servizio" />
<field x="10" y="4" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="65" codval="" id="" pattern="1" hide_zero="" text="CTAC - Commesse Terminano oltre l'esercizio corrente e avviate in esecizi precedenti" />
<field x="74.5" y="4" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="68" codval="" id="" pattern="1" hide_zero="" text="CCAC - Commesse che terminano oltre l'esercizio corrente e avviate nell'esercizio corrente" />
<field x="149.5" y="4" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Cont.separata">
<font italic="1" face="Arial Narrow" size="9" />
<modules>NP</modules>
</field>
<field x="163.5" y="4" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" bold="1" size="9" />
<modules>NP</modules>
<source>#CONTSEP</source>
<prescript description="H1.0 PRESCRIPT">"MOVANA.SEZIONE" @
"D" =
IF
0 #THIS !
THEN
</prescript>
</field>
<field x="82.5" y="2" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="1" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" bold="1" size="9" />
<source>FASESPEC</source>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report libraries="ve1300" page_merge="" save_printer="" name="ca3800c" use_printer_font="" orientation="2" page_split="" lpi="6" command="" class="ca3800c">
<report libraries="ve1300" page_merge="" save_printer="" name="ca3800c" use_printer_font="" orientation="2" page_split="" lpi="6" command="" class="ca3800">
<description>Bilancio commessa CA riassuntivo per CdC</description>
<font face="Arial Narrow" size="8" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="" hidden="" page_break="" can_break="" pattern="1">
@ -56,10 +56,10 @@
<li Value="COSTI Consuntivi \ RICAVI Consuntivi" Code="R" />
</list>
</field>
<field x="134" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="Detrazioni calcolate come">
<field x="134.5" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="Detrazioni calcolate come">
<font italic="1" face="Arial Narrow" size="9" />
</field>
<field x="159" y="3" deactivated="" type="Array" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<field x="159.5" y="3" deactivated="" type="Array" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" bold="1" size="9" />
<source>DETRCONS</source>
<list>
@ -67,10 +67,10 @@
<li Value="Consuntivi" Code="X" />
</list>
</field>
<field x="134" y="4" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="25" codval="" id="" pattern="1" hide_zero="" text="Profondita' della struttura in esame">
<field x="134.5" y="4" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="25" codval="" id="" pattern="1" hide_zero="" text="Profondita' della struttura in esame">
<font italic="1" face="Arial Narrow" size="9" />
</field>
<field x="159" y="4" deactivated="" type="Array" hidden="" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="">
<field x="159.5" y="4" deactivated="" type="Array" hidden="" link="" dynamic_height="" shade_offset="" width="7" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" bold="1" size="9" />
<source>DEPTH</source>
<list>
@ -103,6 +103,21 @@
<field x="63.5" y="4.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Centro di Costo">
<font italic="1" face="Arial Narrow" size="9" />
</field>
<field x="95" y="4.25" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Cont.separata">
<font italic="1" face="Arial Narrow" size="9" />
<modules>NP</modules>
</field>
<field x="116" y="4.25" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" bold="1" size="9" />
<modules>NP</modules>
<source>#CONTSEP</source>
<prescript description="">"MOVANA.SEZIONE" @
"D" =
IF
0 #THIS !
THEN
</prescript>
</field>
<field border="2" x="1" y="5.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="169" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="83.5" y="4.25" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="1" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" bold="1" size="9" />

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report libraries="ve1300" page_merge="" save_printer="" name="ca3800cs" use_printer_font="" orientation="2" page_split="" lpi="6" command="" class="ca3800cs">
<report libraries="ve1300" page_merge="" save_printer="" name="ca3800cs" use_printer_font="" orientation="2" page_split="" lpi="6" command="" class="ca3800">
<description>Bilancio commessa CA riassuntivo per CdC</description>
<font face="Arial Narrow" size="8" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="" hidden="" page_break="" can_break="" pattern="1">
@ -105,6 +105,21 @@
<field x="142" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="35" codval="" id="" pattern="1" hide_zero="" text="CTGG - Commesse di servizio" />
<field x="10" y="4" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="65" codval="" id="" pattern="1" hide_zero="" text="CTAC - Commesse Terminano oltre l'esercizio corrente e avviate in esecizi precedenti" />
<field x="74.5" y="4" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="68" codval="" id="" pattern="1" hide_zero="" text="CCAC - Commesse che terminano oltre l'esercizio corrente e avviate nell'esercizio corrente" />
<field x="143.5" y="4" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Cont.separata">
<font italic="1" face="Arial Narrow" size="9" />
<modules>NP</modules>
</field>
<field x="164.5" y="4" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" bold="1" size="9" />
<modules>NP</modules>
<source>#CONTSEP</source>
<prescript description="">"MOVANA.SEZIONE" @
"D" =
IF
0 #THIS !
THEN
</prescript>
</field>
<field x="87.5" y="2" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="1" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" bold="1" size="9" />
<source>CDCSPEC</source>

View File

@ -609,7 +609,13 @@ const TString& TPrint_saldana_recordset::crea_select(const int logicnum)
}
break;
}
if (_contsep.full())
{
TString clause = SALDANA_CONTSEP;
clause << "=\"" << _contsep << "\"";
ca_append_and(select, clause);
}
return get_tmp_string() = select;
}
@ -877,8 +883,8 @@ void TPrint_saldana_recordset::elabora_rmovana(TAssoc_array* cms, const TDate& d
const TRectype& rec_commesse = cache().get(LF_COMMESSE, codcms);
const int indice = ricava_sezione_di_stampa(rec_commesse, datainiesc, datafinesc);
//solo le righe con commessa buona (indice >= 0) vengono considerate
if (indice >= 0)
//solo le righe con commessa buona (indice >= 0) vengono considerate ed eventualmente i movimenti con un codice di contabilità separata specifico
if (indice >= 0 && (movana.get(MOVANA_CONTSEP) == _contsep))
{
//ci sono filtri o raggruppamenti per fase o centro di costo?
const TString& fase = rmovana.get(RMOVANA_CODFASE);
@ -969,11 +975,13 @@ void TPrint_saldana_recordset::elabora_rmovana(TAssoc_array* cms, const TDate& d
rec_commesse.get_date(COMMESSE_PROROGA));
TRectype saldana(LF_SALDANA);
saldana.put(SALDANA_ANNO, _anno);
saldana.put(SALDANA_CONTO, conto_anale);
saldana.put(SALDANA_COSTO, cdc);
saldana.put(SALDANA_COMMESSA, codcms);
saldana.put(SALDANA_FASE, fase);
saldana.put(SALDANA_CONTSEP, _contsep);
switch(tipomov)
{
@ -1460,13 +1468,15 @@ const TVariant& TPrint_saldana_recordset::get(const char* column_name) const
if (*column_name == '#')
column_name++;
const TFixed_string fld(column_name);
TVariant& var = get_tmp_var();
if (strcmp(column_name, "ANNO") == 0)
if (fld == "ANNO")
{
var.set(_anno);
}
else
if (strcmp(column_name, "TIPOSTIMA") == 0)
if (fld == "TIPOSTIMA")
{
switch (_tipostima)
{
@ -1484,28 +1494,28 @@ const TVariant& TPrint_saldana_recordset::get(const char* column_name) const
}
}
else
if (strcmp(column_name, "DEPTH") == 0)
if (fld == "DEPTH")
var.set(_depth);
else
if (strcmp(column_name, "DETRCONS") == 0)
if (fld == "DETRCONS")
var.set(_detrazioni_consuntive == true ? "X" : "");
else
if (strcmp(column_name, "VITAINTERA") == 0)
if (fld == "VITAINTERA")
var.set(_vitaintera == true ? "SI" : "NO");
else
if (strcmp(column_name, "INCLUDE_DOCUMENTI") == 0)
if (fld == "INCLUDE_DOCUMENTI")
var.set(_include_documenti == true ? "SI" : "NO");
else
if (strcmp(column_name, "DAL") == 0)
if (fld == "DAL")
var.set(_dal);
else
if (strcmp(column_name, "AL") == 0)
if (fld == "AL")
var.set(_al);
else
if (strcmp(column_name, "STAMPAFASI") == 0)
if (fld == "STAMPAFASI")
var.set((_tipostampa == 1 || _tipostampa == 3) ? "X" : "");
else
if (strcmp(column_name, "FASESPEC") == 0)
if (fld == "FASESPEC")
{
if (_tipostampa == 1 || _tipostampa == 3 || _tipostampa == 4)
var.set(_fase);
@ -1513,10 +1523,10 @@ const TVariant& TPrint_saldana_recordset::get(const char* column_name) const
var.set(EMPTY_STRING);
}
else
if (strcmp(column_name, "STAMPACDC") == 0)
if (fld == "STAMPACDC")
var.set((_tipostampa == 2 || _tipostampa == 3) ? "X" : "");
else
if (strcmp(column_name, "CDCSPEC") == 0)
if (fld == "CDCSPEC")
{
if (_tipostampa == 2 || _tipostampa == 3 || _tipostampa == 8)
var.set(_cdc);
@ -1524,14 +1534,14 @@ const TVariant& TPrint_saldana_recordset::get(const char* column_name) const
var.set(EMPTY_STRING);
}
else
if (strcmp(column_name, "DATAINI") == 0)
if (fld == "DATAINI")
{
const TString& codcms = get("CODCMS").as_string();
const TRectype& rec_commesse = cache().get(LF_COMMESSE, codcms);
var.set(rec_commesse.get(COMMESSE_DATAINIZIO));
}
else
if (strcmp(column_name, "DATAFINE") == 0)
if (fld == "DATAFINE")
{
const TString& codcms = get("CODCMS").as_string();
const TRectype& rec_commesse = cache().get(LF_COMMESSE, codcms);
@ -1541,7 +1551,7 @@ const TVariant& TPrint_saldana_recordset::get(const char* column_name) const
var.set(datafine);
}
else
if (strcmp(column_name, "AVANZAMENTO") == 0)
if (fld == "AVANZAMENTO")
{
//RICAVI
//------
@ -1579,15 +1589,20 @@ const TVariant& TPrint_saldana_recordset::get(const char* column_name) const
avanzamento = CENTO;
var.set(avanzamento);
}
else //if(strcmp(column_name,AVANZAMENTO...
else
if (fld == "CONTSEP")
{
TAssoc_array& riga = (TAssoc_array&)_righe[_curr];
return get_tmp_var() = _contsep;//if(strcmp(column_name,AVANZAMENTO...
}
else
{
TAssoc_array& riga = (TAssoc_array&)_righe[_curr]; //if(strcmp(column_name,AVANZAMENTO...
if (strncmp(column_name, "RECORD.", 7) == 0)
column_name += 7;
//COSTI
//-----
if (strcmp(column_name, "COS_PERC") == 0)
if (fld == "COS_PERC")
{
const int indice = get("LEVEL").as_int();
//la % dei costi, in caso si forzi il maturato (considerare finite le commesse che terminano nell'esercizio selezionato)..
@ -1712,4 +1727,11 @@ void TPrint_saldana_recordset::set_filter(const TMask& msk, const char * curr_fa
break;
} */
}
TEdit_field * csep = (TEdit_field *)msk.find_by_id(F_CONTSEP);
if (csep != nullptr)
_contsep = csep->get();
else
_contsep = "";
}

View File

@ -72,6 +72,7 @@ class TPrint_saldana_recordset : public TRecordset
TDate _datacalcolo;
TString16 _fase;
TString80 _cdc;
TString16 _contsep;
int _tipo;
int _anno;
@ -140,7 +141,7 @@ protected:
public:
virtual void set_filter(const TMask& msk, const char * curr_fase = "", const char * curr_cdc ="");
TPrint_saldana_recordset(int tipo) : _tipo(tipo) { }
TPrint_saldana_recordset(int tipo, const char * curr_contsep = "") : _tipo(tipo), _contsep(curr_contsep) { }
};
#endif

View File

@ -5,7 +5,6 @@
#define F_RAGSOC 102
#define F_DATASTAMPA 103
#define F_ESERCIZIO 104
#define F_REPORT 105
#define F_INIZIO_ES 106
#define F_FINE_ES 107
#define F_TIPOSTIMA 108
@ -23,6 +22,9 @@
#define F_STAMPA_SINTETICA 119
#define F_INTESTAZIONE_MINIMA 120
#define F_CONTSEP 122
#define F_DESCONTSEP 123
/* campi per la generazione automatica
#define F_FASE1 112
#define F_FASE2 113

View File

@ -1,5 +1,6 @@
#include <applicat.h>
#include <defmask.h>
#include <repapp.h>
#include "ca3.h"
#include "ca3883.h"
@ -7,6 +8,7 @@
#include "calib01.h"
#include "calib02.h"
#include "pconana.h"
#include "commesse.h"
////////////////////////////////////////////////////////
@ -16,81 +18,21 @@ class TPrint_stima_ricavi_mask : public TAnal_report_mask
{
protected:
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
const TString& get_report_class() const;
bool test_compatible_report();
public:
TPrint_stima_ricavi_mask();
virtual ~TPrint_stima_ricavi_mask() {}
};
const TString& TPrint_stima_ricavi_mask::get_report_class() const
{
TString& classe = get_tmp_string();
classe = "ca3900a";
return classe;
}
bool TPrint_stima_ricavi_mask::test_compatible_report()
{
const TString& cls = get_report_class();
const TString& name = get(F_REPORT);
bool ok = name.not_empty();
if (ok)
{
TReport rep;
ok = rep.load(name);
if (ok)
{
const TString& classe = rep.get_class();
ok = classe == cls;
}
}
if (!ok)
{
set(F_REPORT, cls);
TFilename path = cls;
path.ext("rep");
ok = path.custom_path();
}
return ok;
}
bool TPrint_stima_ricavi_mask::on_field_event(TOperable_field& o, TField_event e, long jolly)
{
switch (o.dlg())
{
case DLG_PRINT:
if (e == fe_button)
{
main_app().print();
return false;
}
break;
case DLG_PREVIEW:
if (e == fe_button)
{
main_app().preview();
return false;
}
break;
case F_REPORT:
if (e == fe_button)
{
const TString8 lib = get_report_class();
TFilename path = o.get();
if (select_custom_file(path, "rep", lib))
{
path = path.name();
path.ext("");
o.set(path);
}
} else
if (e == fe_close)
{
if (!test_compatible_report())
return error_box(TR("Impossibile trovare un report compatibile"));
}
case DLG_REPORT:
if (e == fe_init)
set_report_class();
break;
default:
break;
@ -162,7 +104,7 @@ class TPrint_stima_ricavi_rep : public TAnal_report
{
protected:
virtual bool set_recordset();
// virtual bool set_recordset();
virtual bool get_usr_val(const TString& name, TVariant& var) const;
public:
@ -174,12 +116,6 @@ bool TPrint_stima_ricavi_rep::get_usr_val(const TString& name, TVariant& var) co
return TAnal_report::get_usr_val(name, var);
}
bool TPrint_stima_ricavi_rep::set_recordset()
{
TPrint_stima_ricavi_recordset* rs = new TPrint_stima_ricavi_recordset();
return TAnal_report::set_recordset(rs);
}
void TPrint_stima_ricavi_rep::set_filter(const TPrint_stima_ricavi_mask& msk)
{
TPrint_stima_ricavi_recordset* recset = new TPrint_stima_ricavi_recordset();
@ -191,53 +127,82 @@ void TPrint_stima_ricavi_rep::set_filter(const TPrint_stima_ricavi_mask& msk)
////////////////////////////////////////////////////////
// APPLICAZIONE
////////////////////////////////////////////////////////
class TPrint_stima_ricavi : public TSkeleton_application
class TPrint_stima_ricavi : public TReport_application
{
TPrint_stima_ricavi_mask* _mask;
TPrint_stima_ricavi_rep* _rep;
protected:
void print_or_preview(const bool stampa);
virtual void print();
virtual void preview();
virtual TReport & get_report(const TAutomask & m);
virtual TTrec * get_dbase_recdesc(TReport & rep, const TAutomask & mask);
virtual TAutomask & get_mask();
virtual void execute_print(TReport_book & book, TAutomask & mask, TReport & rep, export_type type = _export_printer);
virtual const char * output_name(const TAutomask & mask, const TReport & rep) const { return "stimaric"; }
virtual bool user_destroy();
virtual void main_loop();
public:
TPrint_stima_ricavi() : _mask(nullptr), _rep(nullptr) {}
~TPrint_stima_ricavi() {}
public:
};
void TPrint_stima_ricavi::print()
TReport & TPrint_stima_ricavi::get_report(const TAutomask & m)
{
print_or_preview(true);
if (_rep == nullptr)
_rep = new TPrint_stima_ricavi_rep;
_rep->load(_mask->get(DLG_REPORT));
return *_rep;
}
void TPrint_stima_ricavi::preview()
{
print_or_preview(false);
}
void TPrint_stima_ricavi::print_or_preview(const bool stampa)
{
//report e book dei report
TReport_book book;
TString path = _mask->get(F_REPORT);
if (path.empty())
path = "ca3900a";
TPrint_stima_ricavi_rep rep;
rep.load(path);
rep.set_filter(*_mask);
book.add(rep);
if (stampa)
book.print();
else
book.preview();
}
void TPrint_stima_ricavi::main_loop()
TAutomask & TPrint_stima_ricavi::get_mask()
{
if (_mask == nullptr)
_mask = new TPrint_stima_ricavi_mask;
_mask->run();
delete _mask;
_mask = NULL;
return *_mask;
}
TTrec * TPrint_stima_ricavi::get_dbase_recdesc(TReport & rep, const TAutomask & mask)
{
TTrec * desc = new TTrec;
TToken_string def;
TRectype cms(LF_COMMESSE);
TRectype fasi(LF_FASI);
TRectype cdc(LF_CDC);
desc->add_fielddef(cms.rec_des(), COMMESSE_CODCMS);
desc->add_fielddef(cms.rec_des(), COMMESSE_DESCRIZ);
desc->add_fielddef(cms.rec_des(), COMMESSE_DATAINIZIO);
desc->add_fielddef(cms.rec_des(), COMMESSE_DATAFINE);
desc->add_fielddef("BUDGETC", _realfld, 18, 2);
desc->add_fielddef("MATURATOC", _realfld, 18, 2);
desc->add_fielddef("AVANZC", _realfld, 6, 2);
desc->add_fielddef("FILLER", _alfafld, 1);
desc->add_fielddef("BUDGETR", _realfld, 18, 2);
desc->add_fielddef("MATURATOR", _realfld, 18, 2);
desc->add_fielddef("ACCERT", _realfld, 18, 2);
desc->add_fielddef("INTEG5", _realfld, 18, 2);
desc->add_fielddef("MARGINE", _realfld, 18, 2);
desc->add_fielddef("AVANZ", _realfld, 6, 2);
desc->add_fielddef("FILLER1", _alfafld, 1);
desc->add_fielddef(cms.rec_des(), COMMESSE_CONTSEP);
TString keydef(COMMESSE_CODCMS);
desc->add_keydef(keydef, true);
return desc;
}
void TPrint_stima_ricavi::execute_print(TReport_book & book, TAutomask & mask, TReport & rep, export_type type)
{
((TPrint_stima_ricavi_rep &)rep).set_filter((TPrint_stima_ricavi_mask &)mask);
rep.set_export_sections(type);
book.add(rep);
rep.reset_export_sections();
}
bool TPrint_stima_ricavi::user_destroy()
{
safe_delete(_mask);
safe_delete(_rep);
return TReport_application::user_destroy();
}
int ca3900(int argc, char* argv[])

View File

@ -1,9 +1,16 @@
#include "ca3883a.h"
#define ALL_EXPORT
#define CLASS_NAME "ca3900"
TOOLBAR "topbar" 0 0 0 2
#include <aprintbar.h>
ENDPAGE
TOOLBAR "bottombar" 0 -3 0 1
#include <bprintbar.h>
ENDPAGE
PAGE "Stima ricavi di competenza" -1 -1 0 -3
GROUPBOX DLG_NULL 76 4
@ -90,7 +97,7 @@ END
STRING F_CDC 20
BEGIN
PROMPT 56 8 "CdC"
PROMPT 53 8 "CdC"
USE LF_CDC
INPUT CODCOSTO F_CDC
DISPLAY "Codice centro di costo" CODCOSTO
@ -98,18 +105,37 @@ BEGIN
OUTPUT F_CDC CODCOSTO
END
STRING F_CONTSEP 6
BEGIN
PROMPT 2 9 "Cont. separata "
USE &NPENT
INPUT CODTAB F_CONTSEP
DISPLAY "Codice@6" CODTAB
DISPLAY "Descrizione@50" S0
OUTPUT F_CONTSEP CODTAB
OUTPUT F_DESCONTSEP S0
CHECKTYPE NORMAL
FIELD CONTSEP
MODULE NP
END
STRING F_DESCONTSEP 50 48
BEGIN
PROMPT 26 9 ""
USE &NPENT KEY 2
INPUT S0 F_DESCONTSEP
DISPLAY "Descrizione@50" S0
DISPLAY "Codice@6" CODTAB
COPY OUTPUT F_CONTSEP
CHECKTYPE NORMAL
MODULE NP
END
GROUPBOX F_PRE0 76 5
BEGIN
PROMPT 0 12 "@bPrefisso del piano dei conti analitico:"
PROMPT 0 10 "@bPrefisso del piano dei conti analitico:"
GROUP 6
END
STRING F_REPORT 256 64
BEGIN
PROMPT 1 20 "Report "
FLAGS "B"
END
ENDPAGE
ENDMASK

View File

@ -1,33 +1,33 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report libraries="ve1300" name="ca3900a" orientation="2" lpi="6" class="ca3900a">
<report libraries="ve1300" page_merge="" save_printer="" name="ca3900a" use_printer_font="" orientation="2" page_split="" lpi="6" command="" class="ca3900">
<description>Stima ricavi di competenza CA</description>
<font face="Arial Narrow" size="7" />
<section type="Head" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="" hidden="" page_break="" can_break="" pattern="1">
<font italic="1" face="Arial Narrow" bold="1" size="8" />
<field x="1" type="Testo" width="10" pattern="1" text="Data stampa">
<field x="1" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="Data stampa">
<font italic="1" face="Arial Narrow" size="8" />
</field>
<field x="11" type="Data" width="12" pattern="1">
<field x="11" deactivated="" type="Data" hidden="" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="1" hide_zero="" text="">
<source>#SYSTEM.DATE</source>
</field>
<field x="62" type="Stringa" width="50" pattern="1">
<field x="62" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="50" codval="" id="" pattern="1" hide_zero="" text="">
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="150" type="Testo" width="4" pattern="1" text="Pag.">
<field x="150" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="1" hide_zero="" text="Pag.">
<font italic="1" face="Arial Narrow" size="8" />
</field>
<field x="154" type="Numero" align="right" width="3" pattern="1">
<field x="154" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="">
<source>#REPORT.PAGE</source>
</field>
<field border="2" x="1" y="1.5" type="Linea" width="174" height="0" pattern="1" />
<field x="1" y="1.75" type="Testo" width="12" pattern="1" text="Include inevasi">
<field border="2" x="1" y="1.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="174" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="1" y="1.75" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="1" hide_zero="" text="Include inevasi">
<font italic="1" face="Arial Narrow" size="9" />
</field>
<field x="13.5" y="1.75" type="Stringa" width="3" pattern="1">
<field x="13.5" y="1.75" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" bold="1" size="9" />
<source>INCLUDE_DOCUMENTI</source>
</field>
<field x="19" y="1.75" type="Testo" width="15" pattern="1" text="Fase specificata">
<field x="19" y="1.75" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Fase specificata">
<font italic="1" face="Arial Narrow" size="9" />
<prescript description="H0.0 PRESCRIPT">#FASESPEC @
EMPTY= IF
@ -37,7 +37,7 @@ ELSE
THEN
</prescript>
</field>
<field x="34" y="1.75" type="Stringa" width="10" pattern="1">
<field x="34" y="1.75" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" bold="1" size="9" />
<source>FASESPEC</source>
<prescript description="H0.0 PRESCRIPT">#FASESPEC @
@ -48,7 +48,7 @@ ELSE
THEN
</prescript>
</field>
<field x="43" y="1.75" type="Testo" width="15" pattern="1" text="CdC specificato">
<field x="43" y="1.75" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="CdC specificato">
<font italic="1" face="Arial Narrow" size="9" />
<prescript description="H0.0 PRESCRIPT">#CDCSPEC @
EMPTY= IF
@ -58,7 +58,7 @@ ELSE
THEN
</prescript>
</field>
<field x="55" y="1.75" type="Stringa" width="20" pattern="1">
<field x="55" y="1.75" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" bold="1" size="9" />
<source>CDCSPEC</source>
<prescript description="H0.0 PRESCRIPT">#CDCSPEC @
@ -69,21 +69,36 @@ ELSE
THEN
</prescript>
</field>
<field x="78.5" y="2" type="Testo" align="center" width="8" pattern="1" text="COSTI" />
<field x="119" y="2" type="Testo" align="center" width="20" pattern="1" text="RICAVI" />
<field x="164" y="2.25" type="Testo" align="right" width="8" pattern="1" text="Margine" />
<field x="43" y="3" type="Testo" width="8" pattern="1" text="Inizio" />
<field x="51" y="3" type="Testo" width="8" pattern="1" text="Fine" />
<field x="64" y="3" type="Testo" align="right" width="8" pattern="1" text="Budget" />
<field x="73" y="3" type="Testo" align="right" width="12" pattern="1" text="Maturati" />
<field x="87" y="3" type="Testo" align="right" width="12" pattern="1" text="Avanzamento" />
<field x="100" y="3" type="Testo" align="right" width="12" pattern="1" text="Budget" />
<field x="113" y="3" type="Testo" align="right" width="12" pattern="1" text="Competenza" />
<field x="127" y="3" type="Testo" align="right" width="12" pattern="1" text="Accertato" />
<field x="140" y="3" type="Testo" align="right" width="12" pattern="1" text="Integrazione" />
<field x="160" y="3" type="Testo" align="right" width="12" pattern="1" text=" Contribuz. " />
<field border="1" x="1" y="5" type="Linea" width="174" height="0" pattern="1" />
<field x="1" y="4" type="Testo" align="center" width="6" id="5" pattern="1" text="Fase">
<field x="78.5" y="2" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="8" codval="" id="" pattern="1" hide_zero="" text="COSTI" />
<field x="119" y="2" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="RICAVI" />
<field x="164" y="2.25" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="8" codval="" id="" pattern="1" hide_zero="" text="Margine" />
<field x="43" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="8" codval="" id="" pattern="1" hide_zero="" text="Inizio" />
<field x="51" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="8" codval="" id="" pattern="1" hide_zero="" text="Fine" />
<field x="64" y="3" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="8" codval="" id="" pattern="1" hide_zero="" text="Budget" />
<field x="73" y="3" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="1" hide_zero="" text="Maturati" />
<field x="87" y="3" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="1" hide_zero="" text="Avanzamento" />
<field x="100" y="3" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="1" hide_zero="" text="Budget" />
<field x="113" y="3" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="1" hide_zero="" text="Competenza" />
<field x="127" y="3" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="1" hide_zero="" text="Accertato" />
<field x="140" y="3" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="1" hide_zero="" text="Integrazione" />
<field x="160" y="3" deactivated="" type="Testo" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="12" codval="" id="" pattern="1" hide_zero="" text=" Contribuz. " />
<field x="153" y="4" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Cont.separata">
<font face="Arial Narrow" bold="1" size="8" />
<modules>NP</modules>
</field>
<field x="169" y="4" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="6" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" bold="1" size="8" />
<modules>NP</modules>
<source>#CONTSEP</source>
<prescript description="H0.0 PRESCRIPT">"MOVANA.SEZIONE" @
"D" =
IF
0 #THIS !
THEN
</prescript>
</field>
<field border="1" x="1" y="5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="174" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="1" y="4" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="6" codval="" id="5" pattern="1" hide_zero="" text="Fase">
<prescript description="H0.5 PRESCRIPT">#STAMPAFASI @
EMPTY= IF
#THIS HIDE
@ -92,7 +107,7 @@ ELSE
THEN
</prescript>
</field>
<field x="10" y="4" type="Testo" align="center" width="3" id="6" pattern="1" text="CdC">
<field x="10" y="4" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="3" codval="" id="6" pattern="1" hide_zero="" text="CdC">
<prescript description="H0.6 PRESCRIPT">#STAMPACDC @
EMPTY= IF
#THIS HIDE
@ -101,30 +116,30 @@ ELSE
THEN
</prescript>
</field>
<field x="1" y="3" type="Testo" width="15" id="121" pattern="1" text="Commessa" />
<field x="1" y="3" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="121" pattern="1" hide_zero="" text="Commessa" />
</section>
<section type="Head" level="1" height="4" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="1" hidden="" height="4" page_break="" can_break="" pattern="1">
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1
</prescript>
<field border="1" radius="100" x="2" type="Testo" valign="center" align="center" shade_offset="25" width="172" height="2.5" pattern="2" text="STIMA RICAVI DI COMPETENZA">
<field border="1" radius="100" x="2" deactivated="" type="Testo" valign="center" hidden="" align="center" link="" dynamic_height="" shade_offset="25" width="172" codval="" height="2.5" id="" pattern="2" hide_zero="" text="STIMA RICAVI DI COMPETENZA">
<font face="Courier New" bold="1" size="16" />
</field>
<field border="2" x="1" y="3.5" type="Linea" width="174" height="0" pattern="1" />
<field x="0.96" y="3" type="Numero" hidden="1" align="right" width="4" id="2" pattern="1">
<field border="2" x="1" y="3.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="174" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="0.96" y="3" deactivated="" type="Numero" hidden="1" align="right" link="" dynamic_height="" shade_offset="" width="4" codval="" id="2" pattern="1" hide_zero="" text="">
<source>ANNO</source>
</field>
</section>
<section type="Head" level="2" height="1.5" page_break="1" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="2" hidden="" height="1.5" page_break="1" can_break="" pattern="1">
<groupby>(LEVEL&#3C;2)||(LEVEL=4)</groupby>
<font italic="1" face="Arial Narrow" bold="1" size="8" />
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2
</prescript>
<field border="1" x="1" y="1.25" type="Linea" width="174" height="0" pattern="1" />
<field type="Numero" hidden="1" align="right" width="1" id="97" pattern="1">
<field border="1" x="1" y="1.25" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="174" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field deactivated="" type="Numero" hidden="1" align="right" link="" dynamic_height="" shade_offset="" width="1" codval="" id="97" pattern="1" hide_zero="" text="">
<source>LEVEL</source>
<postscript description="H2.97 POSTSCRIPT">MESSAGE COPY,F2.97</postscript>
</field>
<field x="1" type="Array" bg_color="#C0C0C0" width="22" id="98" pattern="2">
<field x="1" deactivated="" type="Array" hidden="" link="" bg_color="#C0C0C0" dynamic_height="" shade_offset="" width="22" codval="" id="98" pattern="2" hide_zero="" text="">
<source>LEVEL</source>
<list>
<li Value="Commesse terminate nel" Code="0" />
@ -134,20 +149,20 @@ THEN
<li Value="Commesse di supporto del" Code="4" />
</list>
</field>
<field x="23" type="Numero" align="right" bg_color="#C0C0C0" width="6" id="99" pattern="2">
<field x="23" deactivated="" type="Numero" hidden="" align="right" link="" bg_color="#C0C0C0" dynamic_height="" shade_offset="" width="6" codval="" id="99" pattern="2" hide_zero="" text="">
<source>ANNO</source>
</field>
</section>
<section type="Head" level="3" height="1.5" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="3" hidden="" height="1.5" page_break="" can_break="" pattern="1">
<groupby>LEVEL</groupby>
<font italic="1" face="Arial Narrow" bold="1" size="8" />
<prescript description="H3 PRESCRIPT">MESSAGE RESET,F3</prescript>
<field border="1" x="2" y="1.25" type="Linea" width="174" height="0" pattern="1" />
<field type="Numero" hidden="1" align="right" width="1" id="97" pattern="1">
<field border="1" x="2" y="1.25" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="174" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field deactivated="" type="Numero" hidden="1" align="right" link="" dynamic_height="" shade_offset="" width="1" codval="" id="97" pattern="1" hide_zero="" text="">
<source>LEVEL</source>
<postscript description="H3.97 POSTSCRIPT">MESSAGE COPY,F3.97</postscript>
</field>
<field x="3" type="Array" bg_color="#C0C0C0" width="40" id="98" pattern="1">
<field x="3" deactivated="" type="Array" hidden="" link="" bg_color="#C0C0C0" dynamic_height="" shade_offset="" width="40" codval="" id="98" pattern="1" hide_zero="" text="">
<source>LEVEL</source>
<list>
<li Value="Commesse avviate in esercizi precedenti" Code="0" />
@ -158,23 +173,23 @@ THEN
</list>
</field>
</section>
<section type="Body" pattern="1" />
<section type="Body" level="1" pattern="1">
<field x="1" type="Stringa" width="17" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="" hidden="" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Body" level="1" hidden="" page_break="" can_break="" pattern="1">
<field x="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="17" codval="" id="" pattern="1" hide_zero="" text="">
<source>CODCMS</source>
</field>
<field x="43" type="Stringa" width="8" pattern="1">
<field x="43" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="8" codval="" id="" pattern="1" hide_zero="" text="">
<source>DATAINI</source>
</field>
<field x="51" type="Stringa" width="8" pattern="1">
<field x="51" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="8" codval="" id="" pattern="1" hide_zero="" text="">
<source>DATAFINE</source>
</field>
<field x="95" type="Testo" align="center" width="2" pattern="1" text="%" />
<field x="173.5" type="Testo" align="center" width="2" pattern="1" text="%" />
<field x="18" type="Stringa" dynamic_height="1" width="25" height="2" id="2" pattern="1">
<field x="95" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="2" codval="" id="" pattern="1" hide_zero="" text="%" />
<field x="173.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="2" codval="" id="" pattern="1" hide_zero="" text="%" />
<field x="18" deactivated="" type="Stringa" hidden="" link="" dynamic_height="1" shade_offset="" width="25" codval="" height="2" id="2" pattern="1" hide_zero="" text="">
<source>DESCRIZ</source>
</field>
<field x="1" y="1" type="Stringa" width="9" id="5" pattern="1">
<field x="1" y="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="9" codval="" id="5" pattern="1" hide_zero="" text="">
<source>FASE</source>
<prescript description="B1.5 PRESCRIPT">#STAMPAFASI @
EMPTY= IF
@ -184,7 +199,7 @@ ELSE
THEN
</prescript>
</field>
<field x="10" y="1" type="Stringa" width="8" id="6" pattern="1">
<field x="10" y="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="8" codval="" id="6" pattern="1" hide_zero="" text="">
<source>CDC</source>
<prescript description="B1.6 PRESCRIPT">#STAMPACDC @
EMPTY= IF
@ -194,22 +209,22 @@ ELSE
THEN
</prescript>
</field>
<field x="59" type="Valuta" align="right" width="14" id="101" pattern="1" text="###.###.###,@@">
<field x="59" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="101" pattern="1" hide_zero="" text="###.###.###,@@">
<source>#COS_BDG</source>
<postscript description="B1.101 POSTSCRIPT">MESSAGE ADD,F3.101</postscript>
</field>
<field x="73" type="Valuta" align="right" width="14" id="102" pattern="1" text="###.###.###,@@">
<field x="73" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="102" pattern="1" hide_zero="" text="###.###.###,@@">
<source>#COS_MAT</source>
<postscript description="B1.102 POSTSCRIPT">MESSAGE ADD,F3.102</postscript>
</field>
<field x="89" type="Numero" align="right" width="6" id="103" pattern="1" text="##@,@@">
<field x="89" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="6" codval="" id="103" pattern="1" hide_zero="" text="##@,@@">
<source>#COS_PERC</source>
</field>
<field x="97" type="Valuta" align="right" width="14" id="104" pattern="1" text="###.###.###,@@">
<field x="97" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="104" pattern="1" hide_zero="" text="###.###.###,@@">
<source>#RIC_BDG</source>
<postscript description="B1.104 POSTSCRIPT">MESSAGE ADD,F3.104</postscript>
</field>
<field x="111" type="Numero" align="right" width="14" id="105" pattern="1" text="###.###.###,@@">
<field x="111" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="105" pattern="1" hide_zero="" text="###.###.###,@@">
<prescript description="B1.105 PRESCRIPT">#103 @
#104 @
*
@ -218,18 +233,18 @@ THEN
#THIS !</prescript>
<postscript description="B1.105 POSTSCRIPT">MESSAGE ADD,F3.105</postscript>
</field>
<field x="125" type="Valuta" align="right" width="14" id="106" pattern="1" text="###.###.###,@@">
<field x="125" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="106" pattern="1" hide_zero="" text="###.###.###,@@">
<source>#RIC_MAT</source>
<postscript description="B1.106 POSTSCRIPT">MESSAGE ADD,F3.106</postscript>
</field>
<field x="139" type="Valuta" align="right" width="14" id="107" pattern="1" text="###.###.###,@@">
<field x="139" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="107" pattern="1" hide_zero="" text="###.###.###,@@">
<prescript description="B1.107 PRESCRIPT">#105 @
#106 @
-
#THIS !</prescript>
<postscript description="B1.107 POSTSCRIPT">MESSAGE ADD,F3.107</postscript>
</field>
<field x="153.5" type="Valuta" align="right" width="14" id="108" pattern="1" text="###.###.###,@@">
<field x="153.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="108" pattern="1" hide_zero="" text="###.###.###,@@">
<prescript description="B1.108 PRESCRIPT">#105 @
#102 @
-
@ -237,7 +252,7 @@ THEN
</prescript>
<postscript description="B1.108 POSTSCRIPT">MESSAGE ADD,F3.108</postscript>
</field>
<field x="168.5" type="Numero" align="right" width="5" id="109" pattern="1" text="##@,@@">
<field x="168.5" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="5" codval="" id="109" pattern="1" hide_zero="" text="##@,@@">
<font italic="1" face="Arial Narrow" size="8" />
<prescript description="B1.109 PRESCRIPT">#105 @
0
@ -256,25 +271,25 @@ THEN
#THIS !</prescript>
</field>
</section>
<section type="Foot" pattern="1">
<field border="1" x="1" y="0.25" type="Linea" width="174" height="0" pattern="1" />
<field x="2" y="0.5" type="Testo" width="20" pattern="1" text="Stima ricavi di competenza">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="" hidden="" page_break="" can_break="" pattern="1">
<field border="1" x="1" y="0.25" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="174" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="2" y="0.5" deactivated="" type="Testo" hidden="" link="" dynamic_height="" shade_offset="" width="20" codval="" id="" pattern="1" hide_zero="" text="Stima ricavi di competenza">
<font italic="1" face="Arial Narrow" bold="1" size="8" />
</field>
<field x="22" y="0.5" type="Numero" align="right" width="5" pattern="1">
<field x="22" y="0.5" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="1" hide_zero="" text="">
<font face="Arial Narrow" bold="1" size="8" />
<source>H1.2</source>
</field>
</section>
<section type="Foot" level="1" height="3" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="1" hidden="" height="3" page_break="" can_break="" pattern="1">
<font italic="1" face="Arial Narrow" bold="1" size="8" />
<field border="2" x="1" y="0.75" type="Linea" width="174" height="0" pattern="1" />
<field x="1" y="1.5" type="Testo" fg_color="#FFFFFF" bg_color="#000000" width="25" height="1.5" pattern="2" text="TOTALI GENERALI " />
<field x="95.5" y="1.5" type="Testo" align="center" width="2" pattern="1" text="%" />
<field x="173" y="1.5" type="Testo" align="center" width="2" pattern="1" text="%" />
<field x="58.5" y="1.5" type="Valuta" align="right" width="14" id="101" pattern="1" text="###.###.###,@@" />
<field x="72.5" y="1.5" type="Valuta" align="right" width="14" id="102" pattern="1" text="###.###.###,@@" />
<field x="89.5" y="1.5" type="Numero" align="right" width="6" id="103" pattern="1" text="##@,@@">
<field border="2" x="1" y="0.75" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="174" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="1" y="1.5" deactivated="" type="Testo" hidden="" link="" fg_color="#FFFFFF" bg_color="#000000" dynamic_height="" shade_offset="" width="25" codval="" height="1.5" id="" pattern="2" hide_zero="" text="TOTALI GENERALI " />
<field x="95.5" y="1.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="2" codval="" id="" pattern="1" hide_zero="" text="%" />
<field x="173" y="1.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="2" codval="" id="" pattern="1" hide_zero="" text="%" />
<field x="58.5" y="1.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="101" pattern="1" hide_zero="" text="###.###.###,@@" />
<field x="72.5" y="1.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="102" pattern="1" hide_zero="" text="###.###.###,@@" />
<field x="89.5" y="1.5" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="6" codval="" id="103" pattern="1" hide_zero="" text="##@,@@">
<prescript description="F1.103 PRESCRIPT">#101 @
0 = IF
100
@ -291,12 +306,12 @@ ELSE
THEN
#THIS !</prescript>
</field>
<field x="98" y="1.5" type="Valuta" align="right" width="14" id="104" pattern="1" text="###.###.###,@@" />
<field x="112" y="1.5" type="Valuta" align="right" width="14" id="105" pattern="1" text="###.###.###,@@" />
<field x="126" y="1.5" type="Valuta" align="right" width="14" id="106" pattern="1" text="###.###.###,@@" />
<field x="140" y="1.5" type="Valuta" align="right" width="14" id="107" pattern="1" text="###.###.###,@@" />
<field x="154.5" y="1.5" type="Valuta" align="right" width="14" id="108" pattern="1" text="###.###.###,@@" />
<field x="168.5" y="1.5" type="Numero" align="right" width="5" id="109" pattern="1">
<field x="98" y="1.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="104" pattern="1" hide_zero="" text="###.###.###,@@" />
<field x="112" y="1.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="105" pattern="1" hide_zero="" text="###.###.###,@@" />
<field x="126" y="1.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="106" pattern="1" hide_zero="" text="###.###.###,@@" />
<field x="140" y="1.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="107" pattern="1" hide_zero="" text="###.###.###,@@" />
<field x="154.5" y="1.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="108" pattern="1" hide_zero="" text="###.###.###,@@" />
<field x="168.5" y="1.5" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="5" codval="" id="109" pattern="1" hide_zero="" text="">
<prescript description="F1.109 PRESCRIPT">#105 @
0
=
@ -314,17 +329,17 @@ THEN
#THIS !</prescript>
</field>
</section>
<section type="Foot" level="2" height="2.5" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="2" hidden="" height="2.5" page_break="" can_break="" pattern="1">
<font italic="1" face="Courier New" bold="1" size="8" />
<field border="1" x="1" y="0.5" type="Linea" width="174" height="0" pattern="1" />
<field x="95" y="1" type="Testo" align="center" width="2" pattern="1" text="%">
<field border="1" x="1" y="0.5" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="174" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="95" y="1" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="2" codval="" id="" pattern="1" hide_zero="" text="%">
<font italic="1" face="Arial Narrow" bold="1" size="8" />
</field>
<field x="173.5" y="1" type="Testo" align="center" width="2" pattern="1" text="%">
<field x="173.5" y="1" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="2" codval="" id="" pattern="1" hide_zero="" text="%">
<font italic="1" face="Arial Narrow" bold="1" size="8" />
</field>
<field y="1" type="Numero" hidden="1" align="right" width="1" id="97" pattern="1" />
<field x="1" y="1" type="Array" bg_color="#C0C0C0" width="28" id="98" pattern="2">
<field y="1" deactivated="" type="Numero" hidden="1" align="right" link="" dynamic_height="" shade_offset="" width="1" codval="" id="97" pattern="1" hide_zero="" text="" />
<field x="1" y="1" deactivated="" type="Array" hidden="" link="" bg_color="#C0C0C0" dynamic_height="" shade_offset="" width="28" codval="" id="98" pattern="2" hide_zero="" text="">
<font italic="1" face="Arial Narrow" bold="1" size="8" />
<source>H2.98</source>
<list>
@ -335,19 +350,19 @@ THEN
<li Value="TOTALI Commesse di supporto del" Code="4" />
</list>
</field>
<field x="29" y="1" type="Numero" align="right" bg_color="#C0C0C0" width="6" id="99" pattern="2">
<field x="29" y="1" deactivated="" type="Numero" hidden="" align="right" link="" bg_color="#C0C0C0" dynamic_height="" shade_offset="" width="6" codval="" id="99" pattern="2" hide_zero="" text="">
<font italic="1" face="Arial Narrow" bold="1" size="8" />
<source>H2.99</source>
</field>
<field x="58.5" y="1" type="Valuta" align="right" width="14" id="101" pattern="1" text="###.###.###,@@">
<field x="58.5" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="101" pattern="1" hide_zero="" text="###.###.###,@@">
<font italic="1" face="Arial Narrow" bold="1" size="8" />
<postscript description="F2.101 POSTSCRIPT">MESSAGE ADD,F1.101</postscript>
</field>
<field x="72.5" y="1" type="Valuta" align="right" width="14" id="102" pattern="1" text="###.###.###,@@">
<field x="72.5" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="102" pattern="1" hide_zero="" text="###.###.###,@@">
<font italic="1" face="Arial Narrow" bold="1" size="8" />
<postscript description="F2.102 POSTSCRIPT">MESSAGE ADD,F1.102</postscript>
</field>
<field x="89" y="1" type="Numero" align="right" width="6" id="103" pattern="1" text="##@,@@">
<field x="89" y="1" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="6" codval="" id="103" pattern="1" hide_zero="" text="##@,@@">
<font italic="1" face="Arial Narrow" bold="1" size="8" />
<prescript description="F2.103 PRESCRIPT">#101 @
0 = IF
@ -365,27 +380,27 @@ ELSE
THEN
#THIS !</prescript>
</field>
<field x="97.5" y="1" type="Valuta" align="right" width="14" id="104" pattern="1" text="###.###.###,@@">
<field x="97.5" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="104" pattern="1" hide_zero="" text="###.###.###,@@">
<font italic="1" face="Arial Narrow" bold="1" size="8" />
<postscript description="F2.104 POSTSCRIPT">MESSAGE ADD,F1.104</postscript>
</field>
<field x="111.5" y="1" type="Valuta" align="right" width="14" id="105" pattern="1" text="###.###.###,@@">
<field x="111.5" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="105" pattern="1" hide_zero="" text="###.###.###,@@">
<font italic="1" face="Arial Narrow" bold="1" size="8" />
<postscript description="F2.105 POSTSCRIPT">MESSAGE ADD,F1.105</postscript>
</field>
<field x="125.5" y="1" type="Valuta" align="right" width="14" id="106" pattern="1" text="###.###.###,@@">
<field x="125.5" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="106" pattern="1" hide_zero="" text="###.###.###,@@">
<font italic="1" face="Arial Narrow" bold="1" size="8" />
<postscript description="F2.106 POSTSCRIPT">MESSAGE ADD,F1.106</postscript>
</field>
<field x="139" y="1" type="Valuta" align="right" width="14" id="107" pattern="1" text="###.###.###,@@">
<field x="139" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="107" pattern="1" hide_zero="" text="###.###.###,@@">
<font italic="1" face="Arial Narrow" bold="1" size="8" />
<postscript description="F2.107 POSTSCRIPT">MESSAGE ADD,F1.107</postscript>
</field>
<field x="154" y="1" type="Valuta" align="right" width="14" id="108" pattern="1" text="###.###.###,@@">
<field x="154" y="1" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="108" pattern="1" hide_zero="" text="###.###.###,@@">
<font italic="1" face="Arial Narrow" bold="1" size="8" />
<postscript description="F2.108 POSTSCRIPT">MESSAGE ADD,F1.108</postscript>
</field>
<field x="168.5" y="1" type="Numero" align="right" width="5" id="109" pattern="1">
<field x="168.5" y="1" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="5" codval="" id="109" pattern="1" hide_zero="" text="">
<font italic="1" face="Arial Narrow" bold="1" size="8" />
<prescript description="F2.109 PRESCRIPT">#105 @
0
@ -404,13 +419,13 @@ THEN
#THIS !</prescript>
</field>
</section>
<section type="Foot" level="3" height="2" pattern="1">
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="3" hidden="" height="2" page_break="" can_break="" pattern="1">
<font italic="1" face="Arial Narrow" bold="1" size="8" />
<field border="1" x="2" y="0.25" type="Linea" width="174" height="0" pattern="1" />
<field x="95.5" y="0.5" type="Testo" align="center" width="2" pattern="1" text="%" />
<field x="173.5" y="0.5" type="Testo" align="center" width="2" pattern="1" text="%" />
<field y="0.5" type="Numero" hidden="1" align="right" width="1" id="97" pattern="1" />
<field x="2" y="0.5" type="Array" bg_color="#C0C0C0" width="40" id="98" pattern="1">
<field border="1" x="2" y="0.25" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="174" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
<field x="95.5" y="0.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="2" codval="" id="" pattern="1" hide_zero="" text="%" />
<field x="173.5" y="0.5" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="2" codval="" id="" pattern="1" hide_zero="" text="%" />
<field y="0.5" deactivated="" type="Numero" hidden="1" align="right" link="" dynamic_height="" shade_offset="" width="1" codval="" id="97" pattern="1" hide_zero="" text="" />
<field x="2" y="0.5" deactivated="" type="Array" hidden="" link="" bg_color="#C0C0C0" dynamic_height="" shade_offset="" width="40" codval="" id="98" pattern="1" hide_zero="" text="">
<source>H3.98</source>
<list>
<li Value="TOTALI Commesse avviate in esercizi precedenti" Code="0" />
@ -420,14 +435,14 @@ THEN
<li Value="TOTALI Commesse di supporto" Code="4" />
</list>
</field>
<field x="58.5" y="0.5" type="Valuta" align="right" width="14" id="101" pattern="1" text="###.###.###,@@">
<field x="58.5" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="101" pattern="1" hide_zero="" text="###.###.###,@@">
<postscript description="F3.101 POSTSCRIPT">MESSAGE ADD,F2.101</postscript>
</field>
<field x="72.5" y="0.5" type="Valuta" align="right" width="14" id="102" pattern="1" text="###.###.###,@@">
<field x="72.5" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="102" pattern="1" hide_zero="" text="###.###.###,@@">
<postscript description="F3.102 POSTSCRIPT">MESSAGE ADD,F2.102
</postscript>
</field>
<field x="89.5" y="0.5" type="Numero" align="right" width="6" id="103" pattern="1" text="##@,@@">
<field x="89.5" y="0.5" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="6" codval="" id="103" pattern="1" hide_zero="" text="##@,@@">
<prescript description="F3.103 PRESCRIPT">#101 @
0 = IF
100
@ -444,22 +459,22 @@ ELSE
THEN
#THIS !</prescript>
</field>
<field x="97.5" y="0.5" type="Valuta" align="right" width="14" id="104" pattern="1" text="###.###.###,@@">
<field x="97.5" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="104" pattern="1" hide_zero="" text="###.###.###,@@">
<postscript description="F3.104 POSTSCRIPT">MESSAGE ADD,F2.104</postscript>
</field>
<field x="111.5" y="0.5" type="Valuta" align="right" width="14" id="105" pattern="1" text="###.###.###,@@">
<field x="111.5" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="105" pattern="1" hide_zero="" text="###.###.###,@@">
<postscript description="F3.105 POSTSCRIPT">MESSAGE ADD,F2.105</postscript>
</field>
<field x="125.5" y="0.5" type="Valuta" align="right" width="14" id="106" pattern="1" text="###.###.###,@@">
<field x="125.5" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="106" pattern="1" hide_zero="" text="###.###.###,@@">
<postscript description="F3.106 POSTSCRIPT">MESSAGE ADD,F2.106</postscript>
</field>
<field x="139" y="0.5" type="Valuta" align="right" width="14" id="107" pattern="1" text="###.###.###,@@">
<field x="139" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="107" pattern="1" hide_zero="" text="###.###.###,@@">
<postscript description="F3.107 POSTSCRIPT">MESSAGE ADD,F2.107</postscript>
</field>
<field x="154" y="0.5" type="Valuta" align="right" width="14" id="108" pattern="1" text="###.###.###,@@">
<field x="154" y="0.5" deactivated="" type="Valuta" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="14" codval="" id="108" pattern="1" hide_zero="" text="###.###.###,@@">
<postscript description="F3.108 POSTSCRIPT">MESSAGE ADD,F2.108</postscript>
</field>
<field x="168.5" y="0.5" type="Numero" align="right" width="5" id="109" pattern="1">
<field x="168.5" y="0.5" deactivated="" type="Numero" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="5" codval="" id="109" pattern="1" hide_zero="" text="">
<prescript description="F3.109 PRESCRIPT">#105 @
0
=

View File

@ -292,13 +292,13 @@ bool TConversione_cm2ca::convert_phases()
TRectype& fasi_rec = fasi.curr();
TProgind pi(nrectab, "Conversione tabella fasi");
TRelation* relazione = NULL;
TCursor* cursore = NULL;
TRelation* relazione = nullptr;
TCursor* cursore = nullptr;
for (curfsc = 0; curfsc.pos() < nrectab; ++curfsc)
{
pi.addstatus(1);
if (cursore == NULL)
if (cursore == nullptr)
{
fasi_rec.zero();
fasi_rec.put("CODFASE", fsc.get("CODTAB"));
@ -511,7 +511,7 @@ void TConversione_cm2ca::create_new_movana(long numreg_cg, bool definitiva, TAss
conto_cg.format("%03d|%03d|%06ld", rmov.get_int(RMV_GRUPPO), rmov.get_int(RMV_CONTO), rmov.get_long(RMV_SOTTOCONTO));
chiave.add(conto_cg);
TImporto_descritto* importo = (TImporto_descritto*)righe_cms.objptr(chiave);
if (importo == NULL) //la chiave non esisteva nell'assoc
if (importo == nullptr) //la chiave non esisteva nell'assoc
{
importo = new TImporto_descritto(rmov.get(RMV_DESCR)) ;
righe_cms.add(chiave, importo);
@ -521,7 +521,7 @@ void TConversione_cm2ca::create_new_movana(long numreg_cg, bool definitiva, TAss
*importo += TImporto(sezione, valore); //crea un importo e lo somma a quello dell'array
//aggiunge gr/co/sottoc all'assoc_array dei conti da trasformare in analitici sul piano dei conti
cg_lines_to_anal.add(conto_cg, NULL);
cg_lines_to_anal.add(conto_cg);
}
}

View File

@ -2276,7 +2276,7 @@ const char * TAnal_mov::row_code(int row) const
}
return get_tmp_string() = code;
}
void TAnal_mov::saldo_set_reset(const TRectype& row, bool reset)
void TAnal_mov::saldo_set_reset(const TRectype& row, const char * contsep, bool reset)
{
const int dec = TCurrency::get_firm_dec();
const TImporto imp_row(row.get_char(RMOVANA_SEZIONE), row.get_real(RMOVANA_IMPORTO));
@ -2288,6 +2288,8 @@ void TAnal_mov::saldo_set_reset(const TRectype& row, bool reset)
annies.add(esc_iniziale);
const char tipomov = get_char(MOVANA_TIPOMOV);
if (*contsep != '\0' && tipomov != '\0')
int i = 1;
// i movimenti analitici possono avere una data di scadenza come la mozzarella
const TDate datacomp = get_date(MOVANA_DATACOMP);
TDate datafcomp = get_date(MOVANA_DATAFCOMP);
@ -2315,12 +2317,14 @@ void TAnal_mov::saldo_set_reset(const TRectype& row, bool reset)
}
TToken_string key;
key.add(tipomov);
key.add(esc_iniziale);
key.add(row.get(RMOVANA_CODCCOSTO));
key.add(row.get(RMOVANA_CODCMS));
key.add(row.get(RMOVANA_CODFASE));
key.add(row.get(RMOVANA_CODCONTO));
key.add(contsep);
if (annies.items() > 1) //saldi spammati su piu' anni
{
@ -2418,10 +2422,14 @@ void TAnal_mov::load_saldi(bool reset)
}
const TRecord_array& a = body(LF_RMOVANA);
TString contsep = get(MOVANA_CONTSEP);
for (int i = a.last_row(); i > 0; i--)
{
const TRectype& row = a[i];
saldo_set_reset(row, reset); //aggiunge o toglie la riga corrente ai saldi in memoria
saldo_set_reset(row, "", reset); //aggiunge o toglie la riga corrente ai saldi in memoria
if (contsep.full())
saldo_set_reset(row, contsep, reset); //aggiunge o toglie la riga corrente ai saldi in memoria con contabilità separata
}
}
@ -2469,6 +2477,7 @@ bool TAnal_mov::save_saldi(const int annoes)
saldi.put(SALDANA_COMMESSA, key.get(3));
saldi.put(SALDANA_FASE, key.get(4));
saldi.put(SALDANA_CONTO, key.get(5));
saldi.put(SALDANA_CONTSEP, key.get(6));
int err = saldi.read(_isequal, _lock);
if (err != NOERR)
@ -2484,6 +2493,7 @@ bool TAnal_mov::save_saldi(const int annoes)
saldi.put(SALDANA_COMMESSA, key.get(3));
saldi.put(SALDANA_FASE, key.get(4));
saldi.put(SALDANA_CONTO, key.get(5));
saldi.put(SALDANA_CONTSEP, key.get(6));
err = saldi.write();
if (err != NOERR)
cantwrite_box(saldi.name());
@ -3068,7 +3078,7 @@ TObject* TCache_ripartizioni::key2obj(const char* key)
TRectype & rec = (*rip)[i];
const TAnal_bill bill(rec);
//calcola il saldo usando come parametri (cms/cdc/fsc/conto) quelli che trova sulla riga di ripartizione
const TSaldanal& s = ca_saldo(bill, _dal, _al, _saldanal_consuntivo);
const TSaldanal& s = ca_saldo(bill, "", _dal, _al, _saldanal_consuntivo); // qui
//in base a C/R stabilisce quali saldi considerare e in quale sezione normalizzare
real val;
if (sezione_di_riferimento == 'R') //in Ricavi normalizza in Avere

View File

@ -188,7 +188,7 @@ class TAnal_mov : public TMultiple_rectype
TAssoc_array _saldind;
protected:
void saldo_set_reset(const TRectype& row, bool reset);
void saldo_set_reset(const TRectype& row, const char * contsep, bool reset);
void load_saldi(bool reset);
void kill_saldi() { _saldi.destroy(); }
void update_saldi(bool kill);

View File

@ -71,6 +71,8 @@ const TVariant& TPconana_recordset::get(const char* field) const
return get_tmp_var() = _dal;
if (column_name == "#DATA_FINALE")
return get_tmp_var() = _al;
if (column_name == "#CONTSEP")
return get_tmp_var() = _contsep;
}
else
{
@ -163,7 +165,7 @@ const TVariant& TPconana_recordset::get(const char* field) const
}
((TAnal_bill&)_bill).set_conto(get(PCONANA_CODCONTO).as_string());
const TSaldanal& s = ca_saldo(_bill, _dal, _al, tipimov);
const TSaldanal& s = ca_saldo(_bill, _contsep, _dal, _al, tipimov);
TVariant& var = get_tmp_var();
if (sub_field == "INI_DARE")
@ -250,12 +252,15 @@ bool TPconana_recordset::valid_record(const TRelation& rel) const
conto = curr.get(PCONANA_CODCONTO);
if (conto.len() <= _conto_minlen)
return false;
if (_contsep.full() && _contsep != cache().get(LF_MOVANA, curr.get(RMOVANA_NUMREG), MOVANA_CONTSEP))
return false;
}
if (_movimentati || _nonnulli)
{
((TAnal_bill&)_bill).set_conto(conto);
const TSaldanal& s = ca_saldo(_bill, _dal, _al, _tipimov);
const TSaldanal& s = ca_saldo(_bill, _contsep, _dal, _al, _tipimov);
if (_movimentati && !s._movimentato)
return false;
if (_nonnulli && s._fin.is_zero())
@ -324,7 +329,7 @@ void TPconana_recordset::set_tipo(char tipo)
void TPconana_recordset::set_filter(char tipo, const char* da_conto, const char* a_conto,
const char* costo, const char* commessa, const char* fase,
const TDate& dal, const TDate& al,
const char * contsep, const TDate& dal, const TDate& al,
word tipimov, bool movimentati, bool nonnulli)
{
set_tipo(tipo);
@ -343,6 +348,7 @@ void TPconana_recordset::set_filter(char tipo, const char* da_conto, const char*
_bill.set_costo(costo);
_bill.set_commessa(commessa);
_bill.set_fase(fase);
_contsep = contsep;
}
TPconana_recordset::TPconana_recordset(char tipo) : TISAM_recordset("USE PCONANA")
@ -762,16 +768,16 @@ class TSaldi_cache : private TCache
protected:
virtual TObject* key2obj(const char* key);
bool int_saldo_annuale(const TAnal_bill& bill, int annoini, int annofin, word tipo, TImporto& dare, TImporto& avere) const;
bool int_saldo_movimenti(const TAnal_bill& bill, const TDate& dal, const TDate& al, word tipo, TSaldanal& s) const;
bool int_saldo_annuale(const TAnal_bill& bill, const TString & contsep, int annoini, int annofin, word tipo, TImporto& dare, TImporto& avere) const;
bool int_saldo_movimenti(const TAnal_bill& bill, const TString & contsep, const TDate& dal, const TDate& al, word tipo, TSaldanal& s) const;
protected:
bool saldo_annuale(const TAnal_bill& bill, int annoini, int annofin, word tipo, TImporto& dare, TImporto& avere);
bool saldo_movimenti(const TAnal_bill& bill, const TDate& dal, const TDate& al, word tipo, TSaldanal& s);
bool saldi(const TAnal_bill& bill, const TDate& dal, const TDate& al, word tipo, TSaldanal& s);
bool saldo_annuale(const TAnal_bill& bill, const TString & contsep, int annoini, int annofin, word tipo, TImporto& dare, TImporto& avere);
bool saldo_movimenti(const TAnal_bill& bill, const TString & contsep, const TDate& dal, const TDate& al, word tipo, TSaldanal& s);
bool saldi(const TAnal_bill& bill, const TString & contsep, const TDate& dal, const TDate& al, word tipo, TSaldanal& s);
public:
const TSaldanal& saldo(const TAnal_bill& bill, const TDate& dal, const TDate& al, word tipi = 0x1);
const TSaldanal& saldo(const TAnal_bill& bill, const char * contsep, const TDate& dal, const TDate& al, word tipi = 0x1);
TSaldi_cache();
};
@ -783,7 +789,7 @@ TImporto ca_get_imp(const TRecordset& rs, const char* sez, const char* imp)
}
// Calcolo saldo annuale di un conto reale NON riclassificato
bool TSaldi_cache::int_saldo_annuale(const TAnal_bill& b, int da_anno, int ad_anno, word tipo,
bool TSaldi_cache::int_saldo_annuale(const TAnal_bill& b, const TString & contsep, int da_anno, int ad_anno, word tipo,
TImporto& dare, TImporto& avere) const
{
bool movim = false;
@ -811,7 +817,11 @@ bool TSaldi_cache::int_saldo_annuale(const TAnal_bill& b, int da_anno, int ad_an
if (select.full()) select << "&&";
select << "(ANNO<=" << ad_anno << ")";
}
if (contsep.full())
{
if (select.full()) select << "&&";
select << "(CONTSEP=='" << contsep << "')";
}
query << "USE SALDANA KEY 2";
if (select.full())
query << " SELECT " << select;
@ -862,7 +872,6 @@ bool TSaldi_cache::int_saldo_annuale(const TAnal_bill& b, int da_anno, int ad_an
dare += imp;
else
avere += imp;
movim = true;
}
}
@ -870,7 +879,7 @@ bool TSaldi_cache::int_saldo_annuale(const TAnal_bill& b, int da_anno, int ad_an
return movim;
}
bool TSaldi_cache::saldo_annuale(const TAnal_bill& b, int da_anno, int ad_anno, word tipo,
bool TSaldi_cache::saldo_annuale(const TAnal_bill& b, const TString & contsep, int da_anno, int ad_anno, word tipo,
TImporto& dare, TImporto& avere)
{
bool movim = false;
@ -886,18 +895,17 @@ bool TSaldi_cache::saldo_annuale(const TAnal_bill& b, int da_anno, int ad_anno,
FOR_EACH_ARRAY_ROW(table, i, row)
{
c.set_conto(*row);
movim |= int_saldo_annuale(c, da_anno, ad_anno, tipo, dare, avere);
movim |= int_saldo_annuale(c, contsep, da_anno, ad_anno, tipo, dare, avere);
}
}
}
else
movim = int_saldo_annuale(b, da_anno, ad_anno, tipo, dare, avere);
movim = int_saldo_annuale(b, contsep, da_anno, ad_anno, tipo, dare, avere);
}
return movim;
}
bool TSaldi_cache::int_saldo_movimenti(const TAnal_bill& b,
const TDate& dal, const TDate& al,
bool TSaldi_cache::int_saldo_movimenti(const TAnal_bill& b, const TString & contsep, const TDate& dal, const TDate& al,
word tipo, TSaldanal& s) const
{
TDate dataini; //data da cui iniziare la scansione dei movimenti analitici (!=dal)
@ -947,8 +955,12 @@ bool TSaldi_cache::int_saldo_movimenti(const TAnal_bill& b,
select << "(BETWEEN(DATACOMP," << dataini.date2ansi() << "," << al.date2ansi() << "))";
}
}
if (contsep.full())
{
if (select.full())
select << "&&";
select << "("<< FIELD_NAME(LF_MOVANA, MOVANA_CONTSEP) << "=='" << contsep << "')";
}
query << "USE RMOVANA KEY 2\n";
if (select.full())
query << "SELECT " << select << "\n";
@ -956,7 +968,7 @@ bool TSaldi_cache::int_saldo_movimenti(const TAnal_bill& b,
// Faccio la join solo se mi serve il tipo movimento in testata
const bool filtra_tipo = (tipo & _saldanal_qualsiasi) != 0 &&
(tipo & _saldanal_qualsiasi) != _saldanal_qualsiasi;
if (filtra_tipo)
if (filtra_tipo || contsep.full())
query << "JOIN MOVANA INTO NUMREG==NUMREG\n";
//se il conto è buono, anzichè passare per la SELECT usa la chiave 2 con il FROM/TO
@ -979,8 +991,9 @@ bool TSaldi_cache::int_saldo_movimenti(const TAnal_bill& b,
// Controllo il tipo movimento solo se necessario
if (filtra_tipo)
{
const char tipomov = rmovana.get("107.TIPOMOV").as_string()[0];
const char tipomov = rmovana.get_string(FIELD_NAME(MOVANA, MOVANA_TIPOMOV))[0];
int ntipomov = 0;
if (tipomov == 'P')
ntipomov = _saldanal_preventivo; else
if (tipomov == 'V')
@ -990,6 +1003,8 @@ bool TSaldi_cache::int_saldo_movimenti(const TAnal_bill& b,
if ((ntipomov & tipo) == 0)
continue;
}
if (contsep.full() && contsep != rmovana.get_string(FIELD_NAME(MOVANA, MOVANA_CONTSEP)))
continue;
const TDate data = rmovana.get(RMOVANA_DATACOMP).as_date();
const TImporto imp(rmovana.get(RMOVANA_SEZIONE).as_string()[0],
@ -1019,8 +1034,7 @@ bool TSaldi_cache::int_saldo_movimenti(const TAnal_bill& b,
return s._movimentato;
}
bool TSaldi_cache::saldo_movimenti(const TAnal_bill& b,
const TDate& dal, const TDate& al,
bool TSaldi_cache::saldo_movimenti(const TAnal_bill& b, const TString & contsep, const TDate& dal, const TDate& al,
word tipo, TSaldanal& s)
{
bool movim = false;
@ -1034,16 +1048,16 @@ bool TSaldi_cache::saldo_movimenti(const TAnal_bill& b,
FOR_EACH_ARRAY_ROW(table, i, row)
{
c.set_conto(*row);
movim |= int_saldo_movimenti(c, dal, al, tipo, s);
movim |= int_saldo_movimenti(c, contsep, dal, al, tipo, s);
}
}
}
else
movim = int_saldo_movimenti(b, dal, al, tipo, s);
movim = int_saldo_movimenti(b, contsep, dal, al, tipo, s);
return movim;
}
bool TSaldi_cache::saldi(const TAnal_bill& bill, const TDate& dal, const TDate& al,
bool TSaldi_cache::saldi(const TAnal_bill& bill, const TString & contsep, const TDate& dal, const TDate& al,
word tipo, TSaldanal& s)
{
if (dal.ok() || al.ok())
@ -1051,6 +1065,7 @@ bool TSaldi_cache::saldi(const TAnal_bill& bill, const TDate& dal, const TDate&
// Calcolo i saldi fino all'anno scorso.
// In assemza di data iniziale mi torna 0
const int anno_prec = _esc.date2prevesc(dal);
if (anno_prec > 0 && bill.conto().full())
{
// Calcolo il saldo precedente solo per attivita' e passivita'
@ -1058,7 +1073,7 @@ bool TSaldi_cache::saldi(const TAnal_bill& bill, const TDate& dal, const TDate&
if (indbil == ib_attivita || indbil == ib_passivita)
{
TImporto dare, avere;
saldo_annuale(bill, 0, anno_prec, tipo, dare, avere);
saldo_annuale(bill, contsep, 0, anno_prec, tipo, dare, avere);
s._ini = dare;
s._ini += avere;
}
@ -1070,19 +1085,13 @@ bool TSaldi_cache::saldi(const TAnal_bill& bill, const TDate& dal, const TDate&
// In assemza di data iniziale somma tutti gli anni (fino al 9999)
const int anno_ini = _esc.date2esc(dal);
const int anno_fin = anno_ini > 0 ? anno_ini : 0;
s._movimentato = saldo_annuale(bill, anno_ini, anno_fin, tipo, s._dare, s._avere);
s._movimentato = saldo_annuale(bill, contsep, anno_ini, anno_fin, tipo, s._dare, s._avere);
}
else
{
saldo_movimenti(bill, dal, al, tipo, s);
}
saldo_movimenti(bill, contsep, dal, al, tipo, s);
}
else
{
// Se non viene specificata nessuna data voglio il saldo all'ultima immissione
s._movimentato = saldo_annuale(bill, 0, 0, tipo, s._dare, s._avere);
}
s._movimentato = saldo_annuale(bill, contsep , 0, 0, tipo, s._dare, s._avere); // Se non viene specificata nessuna data voglio il saldo all'ultima immissione
s._ini.normalize();
s._fin = s._ini;
s._fin += s._dare;
@ -1091,26 +1100,27 @@ bool TSaldi_cache::saldi(const TAnal_bill& bill, const TDate& dal, const TDate&
s._finind += s._dareind;
s._finind += s._avereind;
s._finind.normalize();
return s._movimentato;
}
TObject* TSaldi_cache::key2obj(const char* key)
{
TSaldanal* s = new TSaldanal;
TToken_string tok(key);
const TAnal_bill bill(tok.get(0), tok.get(1), tok.get(2), tok.get(3));
const TDate dal = tok.get(4); // Le get precedenti avvengono in ordine inverso!
const TDate al = tok.get();
const int tipo = tok.get_int();
saldi(bill, dal, al, tipo, *s);
const TDate al = tok.get(5);
const int tipo = tok.get_int(6);
const TString contsep = tok.get(7);
saldi(bill, contsep, dal, al, tipo, *s);
return s;
}
const TSaldanal& TSaldi_cache::saldo(const TAnal_bill& bill, const TDate& dal, const TDate& al, word tipi)
const TSaldanal& TSaldi_cache::saldo(const TAnal_bill& bill, const char * contsep, const TDate& dal, const TDate& al, word tipi)
{
TToken_string key;
key.add(bill.conto(), 0);
key.add(bill.costo(), 1);
key.add(bill.commessa(), 2);
@ -1118,6 +1128,7 @@ const TSaldanal& TSaldi_cache::saldo(const TAnal_bill& bill, const TDate& dal, c
key.add(dal, 4);
key.add(al, 5);
key.add(tipi, 6);
key.add(contsep, 7);
return *(const TSaldanal*)objptr(key);
}
@ -1125,7 +1136,7 @@ const TSaldanal& TSaldi_cache::saldo(const TAnal_bill& bill, const TDate& dal, c
TSaldi_cache::TSaldi_cache() : TCache(3881) // Numero primo
{ }
const TSaldanal& ca_saldo(const TAnal_bill& bill, const TDate& dal, const TDate& al, word tipi)
const TSaldanal& ca_saldo(const TAnal_bill& bill, const char * contsep, const TDate& dal, const TDate& al, word tipi)
{
static TSaldi_cache* cache = nullptr;
@ -1133,7 +1144,7 @@ const TSaldanal& ca_saldo(const TAnal_bill& bill, const TDate& dal, const TDate&
SAFE_DELETE(cache);
if (cache == nullptr)
cache = new TSaldi_cache;
return cache->saldo(bill, dal, al, tipi);
return cache->saldo(bill, contsep, dal, al, tipi);
}
@ -1247,6 +1258,21 @@ void TAnal_report_mask::create_sheet(short sheet_id)
}
}
const TString& TAnal_report_mask::get_report_class() const
{
TReport_select * rs = efield(DLG_REPORT).reportsel();
return rs->get_report_class();
}
void TAnal_report_mask::set_report_class() const
{
TReport_select * rs = efield(DLG_REPORT).reportsel();
if (rs != nullptr)
rs->set_report_class(get_report_class());
}
int TAnal_report_mask::get_row_bill(TSheet_field& sf, int r, TAnal_bill& bill)
{
int flag = 0;

View File

@ -91,7 +91,7 @@ public:
///////////////////////////////////////////////////////
// Metodi sciolti ma decisivi
///////////////////////////////////////////////////////
const TSaldanal& ca_saldo(const TAnal_bill& bill, const TDate& dal, const TDate& al, word tipi = _saldanal_consuntivo);
const TSaldanal& ca_saldo(const TAnal_bill& bill, const char * contsep, const TDate& dal, const TDate& al, word tipi = _saldanal_consuntivo);
TImporto ca_get_imp(const TRecordset& rs, const char* sez, const char* imp);
@ -103,7 +103,7 @@ class TPconana_recordset : public TISAM_recordset
{
char _tipo;
word _tipimov;
TString _da_conto, _a_conto;
TString _da_conto, _a_conto, _contsep;
int _conto_minlen;
TAnal_bill _bill;
TDate _dal, _al;
@ -124,7 +124,7 @@ public:
void set_tipo(char tipo);
void set_filter(char tipo, const char* da_conto, const char* a_conto,
const char* costo, const char* commessa, const char* fase,
const TDate& dal, const TDate& al,
const char * contsep, const TDate& dal, const TDate& al,
word tipimov, bool movimentati, bool nonnulli);
TPconana_recordset(char tipo = ' ');
};
@ -165,10 +165,12 @@ class TAnal_report_mask : public TAutomask
protected:
void create_sheet(short sheet_id);
int create_sheet_fields(short sheet_id, int lf, int& y, short& dlg);
virtual void set_report_class() const;
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
public:
virtual const TString& get_report_class() const;
int get_row_bill(TSheet_field& sf, int r, TAnal_bill& bill);
int set_row_bill(TSheet_field& sf, int r, const TAnal_bill& bill);
bool esistono_riclassificazioni() const;

View File

@ -1,3 +1,3 @@
151
0
$saldana|0|0|189|0|Saldi contabilita' analitica|||
$saldana|0|0|195|0|Saldi contabilita' analitica|||

View File

@ -1,10 +1,11 @@
151
17
18
ANNO|9|4|0|Codice esercizio
COSTO|1|20|0|Centro Di costo
COMMESSA|1|20|0|Commessa
FASE|1|10|0|Fase
CONTO|1|20|0|Conto
CONTSEP|1|6|0|Contabilità separata
SEZIONE|7|1|0|Sezione (Normale)
SALDO|4|18|3|Saldo (Normale)
SEZIONEP|7|1|0|Sezione (Preventivo)
@ -18,5 +19,5 @@ SALDOIV|4|18|3|Saldo Indiretto (Preventivo)
SEZIONEIP|7|1|0|Sezione Indiretto (Variazione Preventivo)
SALDOIP|4|18|3|Saldo Indiretto (Variazione Preventivo)
2
ANNO+CONTO+COSTO+COMMESSA+FASE|
CONTO+ANNO+COSTO+COMMESSA+FASE|
ANNO+CONTO+COSTO+COMMESSA+FASE+CONTSEP|
CONTO+ANNO+COSTO+COMMESSA+FASE+CONTSEP|X

View File

@ -6,6 +6,7 @@
#define SALDANA_COMMESSA "COMMESSA"
#define SALDANA_FASE "FASE"
#define SALDANA_CONTO "CONTO"
#define SALDANA_CONTSEP "CONTSEP"
#define SALDANA_SEZIONE "SEZIONE"
#define SALDANA_SALDO "SALDO"