Corrette stampe CIG e CUP

git-svn-id: svn://10.65.10.50/branches/R_10_00@22850 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2013-05-06 08:52:50 +00:00
parent 5f21b8706a
commit 3070c2a72c
4 changed files with 370 additions and 348 deletions

View File

@ -108,23 +108,27 @@ void TPrint_CUP::print_or_preview(const bool stampa)
{
long from_nreg = 0L;
long to_nreg = 0L;
TLocalisamfile mov(LF_MOV);
mov.setkey(2);
//se viene settata una data -> la usa per restringere il campo di ricerca dei numreg, visto che non esiste una..
//..chiave per data su RMOV
const TDate dataini = _mask->get_date(F_DADATA);
if (dataini.ok())
{
mov.put(MOV_DATAREG, dataini);
if (mov.read(_isgteq) == NOERR)
from_nreg = mov.get_long(MOV_NUMREG);
}
const TDate datafine = _mask->get_date(F_ADATA);
if (datafine.ok())
if (dataini.ok() || datafine.ok())
{
mov.put(MOV_DATAREG, datafine);
if (mov.read(_isgreat) == NOERR)
to_nreg = mov.get_long(MOV_NUMREG);
TLocalisamfile mov(LF_MOV);
mov.setkey(2);
mov.put(MOV_DATAREG, dataini);
for (int err = mov.read(_isgteq); err == NOERR; err = mov.read(_isnext))
{
const TDate date = mov.get(MOV_DATAREG);
if (date < dataini)
continue; // Should never happen
if (datafine.ok() && date > datafine)
break;
const long nreg = mov.get_long(MOV_NUMREG);
if (nreg < from_nreg || from_nreg <= 0)
from_nreg = nreg;
if (nreg > to_nreg)
to_nreg = nreg;
}
}
rep.recordset()->set_var("#DANUMREG", from_nreg);
rep.recordset()->set_var("#ANUMREG", to_nreg);

View File

@ -1,170 +1,179 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report name="ct0100m1" lpi="6">
<description>Movimenti per CUP - CIG</description>
<font face="Arial" size="8" />
<section type="Head" pattern="1">
<font italic="1" face="Arial" size="8" />
<field border="1" x="1" y="0.25" type="Linea" width="100" height="0" pattern="1" />
<field x="2" y="0.5" type="Testo" bg_color="#C0C0C0" width="10" pattern="2" text="CUP - CIG">
<font face="Arial" bold="1" size="8" />
</field>
<field x="4" y="2.5" type="Testo" align="right" width="8" pattern="1" text="Num.Reg." />
<field x="13" y="2.5" type="Testo" align="right" width="4" pattern="1" text="Riga" />
<field x="18" y="2.5" type="Testo" align="center" width="10" pattern="1" text="Data Reg." />
<field x="39.5" y="2.5" type="Testo" align="right" width="5" pattern="1" text="Dare" />
<field x="51.5" y="2.5" type="Testo" align="right" width="7" pattern="1" text="Avere" />
<field border="1" x="1" y="3.5" type="Linea" width="100" height="0" pattern="1" />
<field x="3" y="1.5" type="Array" bg_color="#C0C0C0" width="10" id="101" pattern="1">
<font face="Arial" bold="1" size="8" />
<source>TIPOC</source>
<list>
<li Value="Cliente" Code="C" />
<li Value="Fornitore" Code="F" />
</list>
</field>
</section>
<section type="Head" level="1" height="6" pattern="1">
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
<field border="1" radius="50" x="20" y="0.5" type="Testo" valign="center" align="center" shade_offset="50" width="70" height="3" pattern="2" text="Movimenti contabili per CUP - CIG">
<font face="Arial" bold="1" size="16" />
</field>
<field x="1" y="4.5" type="Testo" bg_color="#000000" txt_color="#FFFFFF" width="9" pattern="2" text="Stampa">
<font face="Arial" bold="1" size="10" />
</field>
<field x="10" y="4.5" type="Array" bg_color="#000000" txt_color="#FFFFFF" width="11" id="101" pattern="2">
<font face="Arial" bold="1" size="10" />
<source>TIPOC</source>
<postscript description="H1.101 POSTSCRIPT">MESSAGE COPY,F1.101</postscript>
<list>
<li Value="Clienti" Code="C" />
<li Value="Fornitori" Code="F" />
</list>
</field>
</section>
<section type="Head" level="2" height="1.5" page_break="1" pattern="1">
<groupby>CUP+CIG</groupby>
<font italic="1" face="Arial" bold="1" size="8" />
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2</prescript>
<field x="2" type="Testo" bg_color="#C0C0C0" width="5" pattern="2" text="CUP:">
<font face="Arial" bold="1" size="8" />
</field>
<field x="25" type="Testo" bg_color="#C0C0C0" width="5" pattern="2" />
<field x="30" type="Testo" bg_color="#C0C0C0" width="5" pattern="2" text="CIG:">
<font face="Arial" bold="1" size="8" />
</field>
<field x="47" type="Testo" bg_color="#C0C0C0" width="13" pattern="2" />
<field x="7" type="Stringa" bg_color="#C0C0C0" width="18" id="103" pattern="2">
<font face="Arial" bold="1" size="8" />
<source>CUP</source>
<postscript description="H2.103 POSTSCRIPT">MESSAGE COPY,F2.103</postscript>
</field>
<field x="35" type="Stringa" bg_color="#C0C0C0" width="12" id="104" pattern="2">
<font face="Arial" bold="1" size="8" />
<source>CIG</source>
<postscript description="H2.104 POSTSCRIPT">MESSAGE COPY,F2.104</postscript>
</field>
</section>
<section type="Head" level="3" pattern="1">
<groupby>TIPOC+SOTTOCONTO</groupby>
<font face="Arial" bold="1" size="8" />
<prescript description="H3 PRESCRIPT">MESSAGE RESET,F3 </prescript>
<field x="4" type="Numero" align="right" width="6" id="102" pattern="1">
<source>SOTTOCONTO</source>
</field>
<field x="12" type="Stringa" width="50" id="103" pattern="1">
<prescript description="H3.103 PRESCRIPT">MESSAGE ISAMREAD,20,TIPOCF=#H1.101!CODCF=#102,RAGSOC</prescript>
<postscript description="H3.103 POSTSCRIPT">MESSAGE COPY,F3.103</postscript>
</field>
</section>
<section type="Body" pattern="1" />
<section type="Body" level="1" pattern="1">
<field x="6" type="Numero" align="right" width="7" pattern="1">
<source>NUMREG</source>
</field>
<field x="14" type="Numero" align="right" width="3" pattern="1">
<source>NUMRIG</source>
</field>
<field x="18" type="Data" width="10" pattern="1">
<source>DATAREG</source>
</field>
<field x="29" type="Array" hidden="1" width="1" pattern="1">
<source>SEZIONE</source>
<list>
<li Value="Dare" Code="D">MESSAGE ENABLE,105|DISABLE,106</li>
<li Value="Avere" Code="A">MESSAGE DISABLE,105|ENABLE,106</li>
</list>
</field>
<field x="31" type="Valuta" align="right" width="14" id="105" pattern="1" text="###.###.###,@@">
<source>IMPORTO</source>
<postscript description="B1.105 POSTSCRIPT">MESSAGE ADD,F3.105</postscript>
</field>
<field x="46" type="Valuta" align="right" width="14" id="106" pattern="1" text="###.###.###,@@">
<source>IMPORTO</source>
<postscript description="B1.106 POSTSCRIPT">MESSAGE ADD,F3.106</postscript>
</field>
</section>
<section type="Foot" pattern="1">
<field border="1" x="0.5" y="0.25" type="Linea" width="100" height="0" pattern="1" />
<field x="92" y="0.75" type="Testo" width="4" pattern="1" text="Pag." />
<field x="96" y="0.75" type="Numero" align="right" width="3" pattern="1">
<source>#REPORT.PAGE</source>
</field>
</section>
<section type="Foot" level="1" pattern="1">
<font face="Arial" bold="1" size="10" />
<field border="2" x="1" y="0.25" type="Linea" width="100" height="0" pattern="1" />
<field x="1" y="0.75" type="Testo" bg_color="#000000" txt_color="#FFFFFF" width="10" pattern="2" text="Totale" />
<field x="11" y="0.75" type="Array" bg_color="#000000" txt_color="#FFFFFF" width="19" id="101" pattern="2">
<list>
<li Value="Clienti" Code="C" />
<li Value="Fornitori" Code="F" />
</list>
</field>
<field x="30" y="0.75" type="Valuta" align="right" bg_color="#000000" txt_color="#FFFFFF" width="15" id="105" pattern="2" hide_zero="1" text="###.###.###,@@">
<postscript description="F1.105 POSTSCRIPT">MESSAGE ADD,F1.105</postscript>
</field>
<field x="45" y="0.75" type="Valuta" align="right" bg_color="#000000" txt_color="#FFFFFF" width="15" id="106" pattern="2" hide_zero="1" text="###.###.###,@@">
<postscript description="F1.106 POSTSCRIPT">MESSAGE ADD,F1.106</postscript>
</field>
</section>
<section type="Foot" level="2" pattern="1">
<font italic="1" face="Arial" bold="1" size="8" />
<field border="2" x="1" y="0.25" type="Linea" width="100" height="0" pattern="1" />
<field x="2" y="0.5" type="Testo" bg_color="#C0C0C0" width="7" pattern="2" text="Totale">
<font face="Arial" bold="1" size="8" />
</field>
<field x="9" y="0.5" type="Stringa" bg_color="#C0C0C0" width="12" id="103" pattern="2">
<font face="Arial Narrow" bold="1" size="7" />
</field>
<field x="21" y="0.5" type="Stringa" bg_color="#C0C0C0" width="9" id="104" pattern="2">
<font face="Arial Narrow" bold="1" size="7" />
</field>
<field x="30" y="0.5" type="Valuta" align="right" bg_color="#C0C0C0" width="15" id="105" pattern="2" hide_zero="1" text="###.###.###,@@">
<font face="Arial" bold="1" size="8" />
<postscript description="F2.105 POSTSCRIPT">MESSAGE ADD,F1.105</postscript>
</field>
<field x="45" y="0.5" type="Valuta" align="right" bg_color="#C0C0C0" width="15" id="106" pattern="2" hide_zero="1" text="###.###.###,@@">
<font face="Arial" bold="1" size="8" />
<postscript description="F2.106 POSTSCRIPT">MESSAGE ADD,F1.106</postscript>
</field>
</section>
<section type="Foot" level="3" pattern="1">
<font face="Arial" bold="1" size="8" />
<field border="1" x="1" y="0.25" type="Linea" width="100" height="0" pattern="1" />
<field x="4" y="0.5" type="Testo" width="6" pattern="1" text="Totale" />
<field x="10" y="0.5" type="Stringa" width="20" id="103" pattern="1">
<font face="Arial Narrow" bold="1" size="7" />
</field>
<field x="31" y="0.5" type="Valuta" align="right" width="14" id="105" pattern="1" hide_zero="1" text="###.###.###,@@">
<postscript description="F3.105 POSTSCRIPT">MESSAGE ADD,F2.105</postscript>
</field>
<field x="46" y="0.5" type="Valuta" align="right" width="14" id="106" pattern="1" hide_zero="1" text="###.###.###,@@">
<postscript description="F3.106 POSTSCRIPT">MESSAGE ADD,F2.106</postscript>
</field>
</section>
<sql>USE RMOV
SELECT ((CUP!="")&#26;&#26;(BETWEEN(CUP,#CUP,#CUP)))&#26;&#26;((CIG!="")&#26;&#26;(BETWEEN(CIG,#CIG,#CIG)))&#26;&#26;(TIPOC=#TIPOCF)&#26;&#26;(BETWEEN(SOTTOCONTO,#CODCF,#CODCF))&#26;&#26;(BETWEEN(DATAREG,#DADATA,#ADATA))
BY CUP CIG SOTTOCONTO
FROM NUMREG=#DANUMREG
TO NUMREG=#ANUMREG</sql>
<?xml version="1.0" encoding="UTF-8" ?>
<report name="ct0100m1" lpi="6">
<description>Movimenti per CUP - CIG</description>
<font face="Arial" size="8" />
<section type="Head" pattern="1">
<font italic="1" face="Arial" size="8" />
<field border="1" x="1" y="0.25" type="Linea" width="100" height="0" pattern="1" />
<field x="2" y="0.5" type="Testo" bg_color="#C0C0C0" width="10" pattern="2" text="CUP - CIG">
<font face="Arial" bold="1" size="8" />
</field>
<field x="4" y="2.5" type="Testo" align="right" width="8" pattern="1" text="Num.Reg." />
<field x="13" y="2.5" type="Testo" align="right" width="4" pattern="1" text="Riga" />
<field x="18" y="2.5" type="Testo" align="center" width="10" pattern="1" text="Data Reg." />
<field x="39.5" y="2.5" type="Testo" align="right" width="5" pattern="1" text="Dare" />
<field x="51.5" y="2.5" type="Testo" align="right" width="7" pattern="1" text="Avere" />
<field x="65" y="2.5" type="Testo" align="right" width="8" pattern="1" text="Num.Doc." />
<field x="77" y="2.5" type="Testo" align="center" width="10" pattern="1" text="Data Doc." />
<field border="1" x="1" y="3.5" type="Linea" width="100" height="0" pattern="1" />
<field x="3" y="1.5" type="Array" bg_color="#C0C0C0" width="10" id="101" pattern="1">
<font face="Arial" bold="1" size="8" />
<source>TIPOC</source>
<list>
<li Value="Cliente" Code="C" />
<li Value="Fornitore" Code="F" />
</list>
</field>
</section>
<section type="Head" level="1" height="6" pattern="1">
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
<field border="1" radius="50" x="20" y="0.5" type="Testo" valign="center" align="center" shade_offset="50" width="70" height="3" pattern="2" text="Movimenti contabili per CUP - CIG">
<font face="Arial" bold="1" size="16" />
</field>
<field x="1" y="4.5" type="Testo" bg_color="#000000" txt_color="#FFFFFF" width="9" pattern="2" text="Stampa">
<font face="Arial" bold="1" size="10" />
</field>
<field x="10" y="4.5" type="Array" bg_color="#000000" txt_color="#FFFFFF" width="11" id="101" pattern="2">
<font face="Arial" bold="1" size="10" />
<source>TIPOC</source>
<postscript description="H1.101 POSTSCRIPT">MESSAGE COPY,F1.101</postscript>
<list>
<li Value="Clienti" Code="C" />
<li Value="Fornitori" Code="F" />
</list>
</field>
</section>
<section type="Head" level="2" height="1.5" page_break="1" pattern="1">
<groupby>CUP+CIG</groupby>
<font italic="1" face="Arial" bold="1" size="8" />
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2</prescript>
<field x="2" type="Testo" bg_color="#C0C0C0" width="5" pattern="2" text="CUP:">
<font face="Arial" bold="1" size="8" />
</field>
<field x="25" type="Testo" bg_color="#C0C0C0" width="5" pattern="2" />
<field x="30" type="Testo" bg_color="#C0C0C0" width="5" pattern="2" text="CIG:">
<font face="Arial" bold="1" size="8" />
</field>
<field x="47" type="Testo" bg_color="#C0C0C0" width="13" pattern="2" />
<field x="7" type="Stringa" bg_color="#C0C0C0" width="18" id="103" pattern="2">
<font face="Arial" bold="1" size="8" />
<source>CUP</source>
<postscript description="H2.103 POSTSCRIPT">MESSAGE COPY,F2.103</postscript>
</field>
<field x="35" type="Stringa" bg_color="#C0C0C0" width="12" id="104" pattern="2">
<font face="Arial" bold="1" size="8" />
<source>CIG</source>
<postscript description="H2.104 POSTSCRIPT">MESSAGE COPY,F2.104</postscript>
</field>
</section>
<section type="Head" level="3" pattern="1">
<groupby>TIPOC+SOTTOCONTO</groupby>
<font face="Arial" bold="1" size="8" />
<prescript description="H3 PRESCRIPT">MESSAGE RESET,F3 </prescript>
<field x="4" type="Numero" align="right" width="6" id="102" pattern="1">
<source>SOTTOCONTO</source>
</field>
<field x="12" type="Stringa" width="50" id="103" pattern="1">
<prescript description="H3.103 PRESCRIPT">MESSAGE ISAMREAD,20,TIPOCF=#H1.101!CODCF=#102,RAGSOC</prescript>
<postscript description="H3.103 POSTSCRIPT">MESSAGE COPY,F3.103</postscript>
</field>
</section>
<section type="Body" pattern="1" />
<section type="Body" level="1" pattern="1">
<field x="6" type="Numero" align="right" width="7" pattern="1">
<source>NUMREG</source>
</field>
<field x="14" type="Numero" align="right" width="3" pattern="1">
<source>NUMRIG</source>
</field>
<field x="18" type="Data" width="10" pattern="1">
<source>DATAREG</source>
</field>
<field x="29" type="Array" hidden="1" width="1" pattern="1">
<source>SEZIONE</source>
<list>
<li Value="Dare" Code="D">MESSAGE ENABLE,105|DISABLE,106</li>
<li Value="Avere" Code="A">MESSAGE DISABLE,105|ENABLE,106</li>
</list>
</field>
<field x="66" type="Stringa" align="left" width="7" pattern="1">
<source>23.NUMDOC</source>
</field>
<field x="75" type="Data" width="10" pattern="1">
<source>23.DATADOC</source>
</field>
<field x="31" type="Valuta" align="right" width="14" id="105" pattern="1" text="###.###.###,@@">
<source>IMPORTO</source>
<postscript description="B1.105 POSTSCRIPT">MESSAGE ADD,F3.105</postscript>
</field>
<field x="46" type="Valuta" align="right" width="14" id="106" pattern="1" text="###.###.###,@@">
<source>IMPORTO</source>
<postscript description="B1.106 POSTSCRIPT">MESSAGE ADD,F3.106</postscript>
</field>
</section>
<section type="Foot" pattern="1">
<field border="1" x="0.5" y="0.25" type="Linea" width="100" height="0" pattern="1" />
<field x="92" y="0.75" type="Testo" width="4" pattern="1" text="Pag." />
<field x="96" y="0.75" type="Numero" align="right" width="3" pattern="1">
<source>#REPORT.PAGE</source>
</field>
</section>
<section type="Foot" level="1" pattern="1">
<font face="Arial" bold="1" size="10" />
<field border="2" x="1" y="0.25" type="Linea" width="100" height="0" pattern="1" />
<field x="1" y="0.75" type="Testo" bg_color="#000000" txt_color="#FFFFFF" width="10" pattern="2" text="Totale" />
<field x="11" y="0.75" type="Array" bg_color="#000000" txt_color="#FFFFFF" width="19" id="101" pattern="2">
<list>
<li Value="Clienti" Code="C" />
<li Value="Fornitori" Code="F" />
</list>
</field>
<field x="30" y="0.75" type="Valuta" align="right" bg_color="#000000" txt_color="#FFFFFF" width="15" id="105" pattern="2" hide_zero="1" text="###.###.###,@@">
<postscript description="F1.105 POSTSCRIPT">MESSAGE ADD,F1.105</postscript>
</field>
<field x="45" y="0.75" type="Valuta" align="right" bg_color="#000000" txt_color="#FFFFFF" width="15" id="106" pattern="2" hide_zero="1" text="###.###.###,@@">
<postscript description="F1.106 POSTSCRIPT">MESSAGE ADD,F1.106</postscript>
</field>
</section>
<section type="Foot" level="2" pattern="1">
<font italic="1" face="Arial" bold="1" size="8" />
<field border="2" x="1" y="0.25" type="Linea" width="100" height="0" pattern="1" />
<field x="2" y="0.5" type="Testo" bg_color="#C0C0C0" width="7" pattern="2" text="Totale">
<font face="Arial" bold="1" size="8" />
</field>
<field x="9" y="0.5" type="Stringa" bg_color="#C0C0C0" width="12" id="103" pattern="2">
<font face="Arial Narrow" bold="1" size="7" />
</field>
<field x="21" y="0.5" type="Stringa" bg_color="#C0C0C0" width="9" id="104" pattern="2">
<font face="Arial Narrow" bold="1" size="7" />
</field>
<field x="30" y="0.5" type="Valuta" align="right" bg_color="#C0C0C0" width="15" id="105" pattern="2" hide_zero="1" text="###.###.###,@@">
<font face="Arial" bold="1" size="8" />
<postscript description="F2.105 POSTSCRIPT">MESSAGE ADD,F1.105</postscript>
</field>
<field x="45" y="0.5" type="Valuta" align="right" bg_color="#C0C0C0" width="15" id="106" pattern="2" hide_zero="1" text="###.###.###,@@">
<font face="Arial" bold="1" size="8" />
<postscript description="F2.106 POSTSCRIPT">MESSAGE ADD,F1.106</postscript>
</field>
</section>
<section type="Foot" level="3" pattern="1">
<font face="Arial" bold="1" size="8" />
<field border="1" x="1" y="0.25" type="Linea" width="100" height="0" pattern="1" />
<field x="4" y="0.5" type="Testo" width="6" pattern="1" text="Totale" />
<field x="10" y="0.5" type="Stringa" width="20" id="103" pattern="1">
<font face="Arial Narrow" bold="1" size="7" />
</field>
<field x="31" y="0.5" type="Valuta" align="right" width="14" id="105" pattern="1" hide_zero="1" text="###.###.###,@@">
<postscript description="F3.105 POSTSCRIPT">MESSAGE ADD,F2.105</postscript>
</field>
<field x="46" y="0.5" type="Valuta" align="right" width="14" id="106" pattern="1" hide_zero="1" text="###.###.###,@@">
<postscript description="F3.106 POSTSCRIPT">MESSAGE ADD,F2.106</postscript>
</field>
</section>
<sql>USE RMOV
SELECT ((CUP!="")||(CIG!="")) &#26;&#26; (BETWEEN(CUP,#CUP,#CUP))&#26;&#26;(BETWEEN(CIG,#CIG,#CIG)) &#26;&#26; (TIPOC=#TIPOCF)&#26;&#26;(BETWEEN(SOTTOCONTO,#CODCF,#CODCF))&#26;&#26;(BETWEEN(DATAREG,#DADATA,#ADATA))
BY CUP CIG SOTTOCONTO DATAREG NUMREG
JOIN MOV INTO NUMREG==NUMREG
FROM NUMREG=#DANUMREG
TO NUMREG=#ANUMREG</sql>
</report>

View File

@ -1,165 +1,174 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report name="ct0100m2" lpi="6">
<description>Movimenti per Clienti - Fornitori</description>
<font face="Arial" size="8" />
<section type="Head" pattern="1">
<font italic="1" face="Arial" size="8" />
<field border="1" x="1" y="0.25" type="Linea" width="100" height="0" pattern="1" />
<field x="4" y="1.5" type="Testo" bg_color="#C0C0C0" width="10" pattern="1" text="CUP - CIG">
<font face="Arial" bold="1" size="8" />
</field>
<field x="4" y="2.5" type="Testo" align="right" width="8" pattern="1" text="Num.Reg." />
<field x="13" y="2.5" type="Testo" align="right" width="4" pattern="1" text="Riga" />
<field x="18" y="2.5" type="Testo" align="center" width="10" pattern="1" text="Data Reg." />
<field x="39.5" y="2.5" type="Testo" align="right" width="5" pattern="1" text="Dare" />
<field x="51.5" y="2.5" type="Testo" align="right" width="7" pattern="1" text="Avere" />
<field border="1" x="1" y="3.5" type="Linea" width="100" height="0" pattern="1" />
<field x="2" y="0.5" type="Array" bg_color="#C0C0C0" width="10" id="101" pattern="2">
<font face="Arial" bold="1" size="8" />
<source>TIPOC</source>
<list>
<li Value="Cliente" Code="C" />
<li Value="Fornitore" Code="F" />
</list>
</field>
</section>
<section type="Head" level="1" height="6" pattern="1">
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
<field border="1" radius="50" x="15" y="0.5" type="Testo" valign="center" align="center" shade_offset="50" width="80" height="3" pattern="2" text="Movimenti contabili per Clienti - Fornitori">
<font face="Arial" bold="1" size="16" />
</field>
<field x="1" y="4.5" type="Testo" bg_color="#000000" txt_color="#FFFFFF" width="9" pattern="2" text="Stampa">
<font face="Arial" bold="1" size="10" />
</field>
<field x="10" y="4.5" type="Array" bg_color="#000000" txt_color="#FFFFFF" width="11" id="101" pattern="2">
<font face="Arial" bold="1" size="10" />
<source>TIPOC</source>
<postscript description="H1.101 POSTSCRIPT">MESSAGE COPY,F1.101</postscript>
<list>
<li Value="Clienti" Code="C" />
<li Value="Fornitori" Code="F" />
</list>
</field>
</section>
<section type="Head" level="2" height="1.5" page_break="1" pattern="1">
<groupby>TIPOC+SOTTOCONTO</groupby>
<font italic="1" face="Arial" bold="1" size="8" />
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2</prescript>
<field x="8" type="Testo" bg_color="#C0C0C0" width="2" pattern="2" />
<field x="2" type="Numero" align="right" bg_color="#C0C0C0" width="6" id="102" pattern="2">
<font face="Arial" bold="1" size="8" />
<source>SOTTOCONTO</source>
</field>
<field x="10" type="Stringa" bg_color="#C0C0C0" width="50" id="103" pattern="2">
<font face="Arial" bold="1" size="8" />
<prescript description="H2.103 PRESCRIPT">MESSAGE ISAMREAD,20,TIPOCF=#H1.101!CODCF=#102,RAGSOC</prescript>
<postscript description="H2.103 POSTSCRIPT">MESSAGE COPY,F2.103</postscript>
</field>
</section>
<section type="Head" level="3" pattern="1">
<groupby>CUP+CIG</groupby>
<font face="Arial" bold="1" size="8" />
<prescript description="H3 PRESCRIPT">MESSAGE RESET,F3 </prescript>
<field x="4" type="Testo" bg_color="#C0C0C0" width="5" pattern="1" text="CUP:" />
<field x="32" type="Testo" bg_color="#C0C0C0" width="5" pattern="1" text="CIG:" />
<field x="9" type="Stringa" bg_color="#C0C0C0" width="18" id="103" pattern="1">
<source>CUP</source>
<postscript description="H3.103 POSTSCRIPT">MESSAGE COPY,F3.103</postscript>
</field>
<field x="37" type="Stringa" bg_color="#C0C0C0" width="12" id="104" pattern="1">
<source>CIG</source>
<postscript description="H3.104 POSTSCRIPT">MESSAGE COPY,F3.104</postscript>
</field>
</section>
<section type="Body" pattern="1" />
<section type="Body" level="1" pattern="1">
<field x="6" type="Numero" align="right" width="7" pattern="1">
<source>NUMREG</source>
</field>
<field x="14" type="Numero" align="right" width="3" pattern="1">
<source>NUMRIG</source>
</field>
<field x="18" type="Data" width="10" pattern="1">
<source>DATAREG</source>
</field>
<field x="29" type="Array" hidden="1" width="1" pattern="1">
<source>SEZIONE</source>
<list>
<li Value="Dare" Code="D">MESSAGE ENABLE,105|DISABLE,106</li>
<li Value="Avere" Code="A">MESSAGE DISABLE,105|ENABLE,106</li>
</list>
</field>
<field x="31" type="Valuta" align="right" width="14" id="105" pattern="1" text="###.###.###,@@">
<source>IMPORTO</source>
<postscript description="B1.105 POSTSCRIPT">MESSAGE ADD,F3.105</postscript>
</field>
<field x="46" type="Valuta" align="right" width="14" id="106" pattern="1" text="###.###.###,@@">
<source>IMPORTO</source>
<postscript description="B1.106 POSTSCRIPT">MESSAGE ADD,F3.106</postscript>
</field>
</section>
<section type="Foot" pattern="1">
<field border="1" x="0.5" y="0.25" type="Linea" width="100" height="0" pattern="1" />
<field x="92" y="0.75" type="Testo" width="4" pattern="1" text="Pag." />
<field x="96" y="0.75" type="Numero" align="right" width="3" pattern="1">
<source>#REPORT.PAGE</source>
</field>
</section>
<section type="Foot" level="1" pattern="1">
<font face="Arial" bold="1" size="10" />
<field border="2" x="1" y="0.25" type="Linea" width="100" height="0" pattern="1" />
<field x="1" y="0.75" type="Testo" bg_color="#000000" txt_color="#FFFFFF" width="10" pattern="2" text="Totale" />
<field x="11" y="0.75" type="Array" bg_color="#000000" txt_color="#FFFFFF" width="19" id="101" pattern="2">
<list>
<li Value="Clienti" Code="C" />
<li Value="Fornitori" Code="F" />
</list>
</field>
<field x="30" y="0.75" type="Valuta" align="right" bg_color="#000000" txt_color="#FFFFFF" width="15" id="105" pattern="2" hide_zero="1" text="###.###.###,@@">
<postscript description="F1.105 POSTSCRIPT">MESSAGE ADD,F1.105</postscript>
</field>
<field x="45" y="0.75" type="Valuta" align="right" bg_color="#000000" txt_color="#FFFFFF" width="15" id="106" pattern="2" hide_zero="1" text="###.###.###,@@">
<postscript description="F1.106 POSTSCRIPT">MESSAGE ADD,F1.106</postscript>
</field>
</section>
<section type="Foot" level="2" pattern="1">
<font italic="1" face="Arial" bold="1" size="8" />
<field border="2" x="1" y="0.25" type="Linea" width="100" height="0" pattern="1" />
<field x="2" y="0.5" type="Testo" bg_color="#C0C0C0" width="7" pattern="2" text="Totale">
<font face="Arial" bold="1" size="8" />
</field>
<field x="9" y="0.5" type="Stringa" bg_color="#C0C0C0" width="21" id="103" pattern="2">
<font face="Arial Narrow" bold="1" size="7" />
</field>
<field x="30" y="0.5" type="Valuta" align="right" bg_color="#C0C0C0" width="15" id="105" pattern="2" hide_zero="1" text="###.###.###,@@">
<font face="Arial" bold="1" size="8" />
<postscript description="F2.105 POSTSCRIPT">MESSAGE ADD,F1.105</postscript>
</field>
<field x="45" y="0.5" type="Valuta" align="right" bg_color="#C0C0C0" width="15" id="106" pattern="2" hide_zero="1" text="###.###.###,@@">
<font face="Arial" bold="1" size="8" />
<postscript description="F2.106 POSTSCRIPT">MESSAGE ADD,F1.106</postscript>
</field>
</section>
<section type="Foot" level="3" pattern="1">
<font face="Arial" bold="1" size="8" />
<field border="1" x="1" y="0.25" type="Linea" width="100" height="0" pattern="1" />
<field x="4" y="0.5" type="Testo" width="6" pattern="1" text="Totale" />
<field x="10" y="0.5" type="Stringa" width="12" id="103" pattern="1">
<font face="Arial Narrow" bold="1" size="7" />
</field>
<field x="22" y="0.5" type="Stringa" bg_color="#C0C0C0" width="9" id="104" pattern="1">
<font face="Arial Narrow" bold="1" size="7" />
</field>
<field x="31" y="0.5" type="Valuta" align="right" width="14" id="105" pattern="1" hide_zero="1" text="###.###.###,@@">
<postscript description="F3.105 POSTSCRIPT">MESSAGE ADD,F2.105</postscript>
</field>
<field x="46" y="0.5" type="Valuta" align="right" width="14" id="106" pattern="1" hide_zero="1" text="###.###.###,@@">
<postscript description="F3.106 POSTSCRIPT">MESSAGE ADD,F2.106</postscript>
</field>
</section>
<sql>USE RMOV
SELECT ((CUP!="")&#26;&#26;(BETWEEN(CUP,#CUP,#CUP)))&#26;&#26;((CIG!="")&#26;&#26;(BETWEEN(CIG,#CIG,#CIG)))&#26;&#26;(TIPOC=#TIPOCF)&#26;&#26;(BETWEEN(SOTTOCONTO,#CODCF,#CODCF))&#26;&#26;(BETWEEN(DATAREG,#DADATA,#ADATA))
BY SOTTOCONTO CUP CIG
FROM NUMREG=#DANUMREG
TO NUMREG=#ANUMREG</sql>
<?xml version="1.0" encoding="UTF-8" ?>
<report name="ct0100m2" lpi="6">
<description>Movimenti per Clienti - Fornitori</description>
<font face="Arial" size="8" />
<section type="Head" pattern="1">
<font italic="1" face="Arial" size="8" />
<field border="1" x="1" y="0.25" type="Linea" width="100" height="0" pattern="1" />
<field x="4" y="1.5" type="Testo" bg_color="#C0C0C0" width="10" pattern="1" text="CUP - CIG">
<font face="Arial" bold="1" size="8" />
</field>
<field x="4" y="2.5" type="Testo" align="right" width="8" pattern="1" text="Num.Reg." />
<field x="13" y="2.5" type="Testo" align="right" width="4" pattern="1" text="Riga" />
<field x="18" y="2.5" type="Testo" align="center" width="10" pattern="1" text="Data Reg." />
<field x="39.5" y="2.5" type="Testo" align="right" width="5" pattern="1" text="Dare" />
<field x="51.5" y="2.5" type="Testo" align="right" width="7" pattern="1" text="Avere" />
<field border="1" x="1" y="3.5" type="Linea" width="100" height="0" pattern="1" />
<field x="2" y="0.5" type="Array" bg_color="#C0C0C0" width="10" id="101" pattern="2">
<font face="Arial" bold="1" size="8" />
<source>TIPOC</source>
<list>
<li Value="Cliente" Code="C" />
<li Value="Fornitore" Code="F" />
</list>
</field>
<field x="64" y="2.5" type="Testo" align="right" width="8" pattern="1" text="Num.Doc." />
<field x="75" y="2.5" type="Testo" align="center" width="10" pattern="1" text="Data Doc." />
</section>
<section type="Head" level="1" height="6" pattern="1">
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
<field border="1" radius="50" x="15" y="0.5" type="Testo" valign="center" align="center" shade_offset="50" width="80" height="3" pattern="2" text="Movimenti contabili per Clienti - Fornitori">
<font face="Arial" bold="1" size="16" />
</field>
<field x="1" y="4.5" type="Testo" bg_color="#000000" txt_color="#FFFFFF" width="9" pattern="2" text="Stampa">
<font face="Arial" bold="1" size="10" />
</field>
<field x="10" y="4.5" type="Array" bg_color="#000000" txt_color="#FFFFFF" width="11" id="101" pattern="2">
<font face="Arial" bold="1" size="10" />
<source>TIPOC</source>
<postscript description="H1.101 POSTSCRIPT">MESSAGE COPY,F1.101</postscript>
<list>
<li Value="Clienti" Code="C" />
<li Value="Fornitori" Code="F" />
</list>
</field>
</section>
<section type="Head" level="2" height="1.5" page_break="1" pattern="1">
<groupby>TIPOC+SOTTOCONTO</groupby>
<font italic="1" face="Arial" bold="1" size="8" />
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2</prescript>
<field x="8" type="Testo" bg_color="#C0C0C0" width="2" pattern="2" />
<field x="2" type="Numero" align="right" bg_color="#C0C0C0" width="6" id="102" pattern="2">
<font face="Arial" bold="1" size="8" />
<source>SOTTOCONTO</source>
</field>
<field x="10" type="Stringa" bg_color="#C0C0C0" width="50" id="103" pattern="2">
<font face="Arial" bold="1" size="8" />
<prescript description="H2.103 PRESCRIPT">MESSAGE ISAMREAD,20,TIPOCF=#H1.101!CODCF=#102,RAGSOC</prescript>
<postscript description="H2.103 POSTSCRIPT">MESSAGE COPY,F2.103</postscript>
</field>
</section>
<section type="Head" level="3" pattern="1">
<groupby>CUP+CIG</groupby>
<font face="Arial" bold="1" size="8" />
<prescript description="H3 PRESCRIPT">MESSAGE RESET,F3 </prescript>
<field x="4" type="Testo" bg_color="#C0C0C0" width="5" pattern="1" text="CUP:" />
<field x="32" type="Testo" bg_color="#C0C0C0" width="5" pattern="1" text="CIG:" />
<field x="9" type="Stringa" bg_color="#C0C0C0" width="18" id="103" pattern="1">
<source>CUP</source>
<postscript description="H3.103 POSTSCRIPT">MESSAGE COPY,F3.103</postscript>
</field>
<field x="37" type="Stringa" bg_color="#C0C0C0" width="12" id="104" pattern="1">
<source>CIG</source>
<postscript description="H3.104 POSTSCRIPT">MESSAGE COPY,F3.104</postscript>
</field>
</section>
<section type="Body" pattern="1" />
<section type="Body" level="1" pattern="1">
<field x="6" type="Numero" align="right" width="7" pattern="1">
<source>NUMREG</source>
</field>
<field x="14" type="Numero" align="right" width="3" pattern="1">
<source>NUMRIG</source>
</field>
<field x="18" type="Data" width="10" pattern="1">
<source>DATAREG</source>
</field>
<field x="29" type="Array" hidden="1" width="1" pattern="1">
<source>SEZIONE</source>
<list>
<li Value="Dare" Code="D">MESSAGE ENABLE,105|DISABLE,106</li>
<li Value="Avere" Code="A">MESSAGE DISABLE,105|ENABLE,106</li>
</list>
</field>
<field x="31" type="Valuta" align="right" width="14" id="105" pattern="1" text="###.###.###,@@">
<source>IMPORTO</source>
<postscript description="B1.105 POSTSCRIPT">MESSAGE ADD,F3.105</postscript>
</field>
<field x="46" type="Valuta" align="right" width="14" id="106" pattern="1" text="###.###.###,@@">
<source>IMPORTO</source>
<postscript description="B1.106 POSTSCRIPT">MESSAGE ADD,F3.106</postscript>
</field>
<field x="66" type="Stringa" align="Left" width="7" pattern="1">
<source>23.NUMDOC</source>
</field>
<field x="75" type="Data" width="10" pattern="1">
<source>23.DATADOC</source>
</field>
</section>
<section type="Foot" pattern="1">
<field border="1" x="0.5" y="0.25" type="Linea" width="100" height="0" pattern="1" />
<field x="92" y="0.75" type="Testo" width="4" pattern="1" text="Pag." />
<field x="96" y="0.75" type="Numero" align="right" width="3" pattern="1">
<source>#REPORT.PAGE</source>
</field>
</section>
<section type="Foot" level="1" pattern="1">
<font face="Arial" bold="1" size="10" />
<field border="2" x="1" y="0.25" type="Linea" width="100" height="0" pattern="1" />
<field x="1" y="0.75" type="Testo" bg_color="#000000" txt_color="#FFFFFF" width="10" pattern="2" text="Totale" />
<field x="11" y="0.75" type="Array" bg_color="#000000" txt_color="#FFFFFF" width="19" id="101" pattern="2">
<list>
<li Value="Clienti" Code="C" />
<li Value="Fornitori" Code="F" />
</list>
</field>
<field x="30" y="0.75" type="Valuta" align="right" bg_color="#000000" txt_color="#FFFFFF" width="15" id="105" pattern="2" hide_zero="1" text="###.###.###,@@">
<postscript description="F1.105 POSTSCRIPT">MESSAGE ADD,F1.105</postscript>
</field>
<field x="45" y="0.75" type="Valuta" align="right" bg_color="#000000" txt_color="#FFFFFF" width="15" id="106" pattern="2" hide_zero="1" text="###.###.###,@@">
<postscript description="F1.106 POSTSCRIPT">MESSAGE ADD,F1.106</postscript>
</field>
</section>
<section type="Foot" level="2" pattern="1">
<font italic="1" face="Arial" bold="1" size="8" />
<field border="2" x="1" y="0.25" type="Linea" width="100" height="0" pattern="1" />
<field x="2" y="0.5" type="Testo" bg_color="#C0C0C0" width="7" pattern="2" text="Totale">
<font face="Arial" bold="1" size="8" />
</field>
<field x="9" y="0.5" type="Stringa" bg_color="#C0C0C0" width="21" id="103" pattern="2">
<font face="Arial Narrow" bold="1" size="7" />
</field>
<field x="30" y="0.5" type="Valuta" align="right" bg_color="#C0C0C0" width="15" id="105" pattern="2" hide_zero="1" text="###.###.###,@@">
<font face="Arial" bold="1" size="8" />
<postscript description="F2.105 POSTSCRIPT">MESSAGE ADD,F1.105</postscript>
</field>
<field x="45" y="0.5" type="Valuta" align="right" bg_color="#C0C0C0" width="15" id="106" pattern="2" hide_zero="1" text="###.###.###,@@">
<font face="Arial" bold="1" size="8" />
<postscript description="F2.106 POSTSCRIPT">MESSAGE ADD,F1.106</postscript>
</field>
</section>
<section type="Foot" level="3" pattern="1">
<font face="Arial" bold="1" size="8" />
<field border="1" x="1" y="0.25" type="Linea" width="100" height="0" pattern="1" />
<field x="4" y="0.5" type="Testo" width="6" pattern="1" text="Totale" />
<field x="10" y="0.5" type="Stringa" width="12" id="103" pattern="1">
<font face="Arial Narrow" bold="1" size="7" />
</field>
<field x="22" y="0.5" type="Stringa" bg_color="#C0C0C0" width="9" id="104" pattern="1">
<font face="Arial Narrow" bold="1" size="7" />
</field>
<field x="31" y="0.5" type="Valuta" align="right" width="14" id="105" pattern="1" hide_zero="1" text="###.###.###,@@">
<postscript description="F3.105 POSTSCRIPT">MESSAGE ADD,F2.105</postscript>
</field>
<field x="46" y="0.5" type="Valuta" align="right" width="14" id="106" pattern="1" hide_zero="1" text="###.###.###,@@">
<postscript description="F3.106 POSTSCRIPT">MESSAGE ADD,F2.106</postscript>
</field>
</section>
<sql>USE RMOV
SELECT ((CUP!="")||(CIG!="")) &#26;&#26; (BETWEEN(CUP,#CUP,#CUP))&#26;&#26;(BETWEEN(CIG,#CIG,#CIG)) &#26;&#26; (TIPOC=#TIPOCF)&#26;&#26;(BETWEEN(SOTTOCONTO,#CODCF,#CODCF))&#26;&#26;(BETWEEN(DATAREG,#DADATA,#ADATA))
BY SOTTOCONTO CUP CIG DATAREG NUMREG
JOIN MOV INTO NUMREG==NUMREG
FROM NUMREG=#DANUMREG
TO NUMREG=#ANUMREG</sql>
</report>

View File

@ -95,7 +95,7 @@ END
LIST F_TIPOCF 1 11
BEGIN
PROMPT 1 13 "Tipo "
PROMPT 1 13 ""
ITEM "C|Clienti"
ITEM "F|Fornitori"
FIELD #TIPOCF