Correzioni a maschere stampa attrezzature

git-svn-id: svn://10.65.10.50/branches/R_10_00@22705 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2012-07-12 15:23:49 +00:00
parent 3da47503ab
commit 0640c520b1
3 changed files with 182 additions and 190 deletions

View File

@ -1,11 +1,7 @@
#include <applicat.h> #include <applicat.h>
#include <automask.h> #include <automask.h>
#include <progind.h>
#include <recarray.h>
#include <relation.h>
#include <report.h> #include <report.h>
#include "../ba/ba8500.h" #include "../ba/ba8500.h"
#include "ha3700a.h" #include "ha3700a.h"

View File

@ -1,186 +1,182 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<report name="ha3700a" lpi="6"> <report name="ha3700a" lpi="6">
<description>Storico attrezzature</description> <description>Storico attrezzature</description>
<font face="Arial" size="8" /> <font face="Arial" size="8" />
<section type="Head" hidden="1" pattern="1"> <section type="Head" hidden="1" pattern="1">
<field x="2" y="0.5" type="Testo" bg_color="#C0C0C0" width="6" pattern="2" text="Cliente"> <field x="2" y="0.5" type="Testo" bg_color="#C0C0C0" width="6" pattern="2" text="Cliente">
<font face="Arial" bold="1" size="8" /> <font face="Arial" bold="1" size="8" />
</field> </field>
<field x="3" y="1.5" type="Testo" width="15" pattern="1" text="Attrezzatura"> <field x="3" y="1.5" type="Testo" width="15" pattern="1" text="Attrezzatura">
<font face="Arial" bold="1" size="8" /> <font face="Arial" bold="1" size="8" />
</field> </field>
<field x="4" y="2.5" type="Testo" width="3" pattern="1" text="Tipo" /> <field x="4" y="2.5" type="Testo" width="3" pattern="1" text="Tipo" />
<field x="7.5" y="2.5" type="Testo" width="2" pattern="1" text="Ch" /> <field x="7.5" y="2.5" type="Testo" width="2" pattern="1" text="Ch" />
<field x="10" y="2.5" type="Testo" align="center" width="10" pattern="1" text="Data" /> <field x="10" y="2.5" type="Testo" align="center" width="10" pattern="1" text="Data" />
<field x="21" y="2.5" type="Testo" width="12" pattern="1" text="Descrizione" /> <field x="21" y="2.5" type="Testo" width="12" pattern="1" text="Descrizione" />
<field x="90" y="2.5" type="Testo" width="2.5" pattern="1" text="UM" /> <field x="90" y="2.5" type="Testo" width="2.5" pattern="1" text="UM" />
<field x="93" y="2.5" type="Testo" align="right" width="4" pattern="1" text="Qta" /> <field x="93" y="2.5" type="Testo" align="right" width="4" pattern="1" text="Qta" />
<field x="98" y="2.5" type="Testo" align="right" width="10" pattern="1" text="Importo" /> <field x="98" y="2.5" type="Testo" align="right" width="10" pattern="1" text="Importo" />
<field border="1" x="1" y="3.5" type="Linea" width="110" height="0" pattern="1" /> <field border="1" x="1" y="3.5" type="Linea" width="110" height="0" pattern="1" />
</section> </section>
<section type="Head" level="1" pattern="1"> <section type="Head" level="1" pattern="1">
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript> <prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
<field border="1" radius="50" x="30" y="0.25" type="Testo" valign="center" align="center" shade_offset="50" width="50" height="3" pattern="2" text="STORICO ATTREZZATURE"> <field x="35" y="0.25" type="Testo" valign="center" align="center" fg_color="#FFFFFF" txt_color="#000000" width="50" height="2" pattern="2" text="Stampa interventi attrezzature">
<font face="Arial" bold="1" size="14" /> <font face="Arial" bold="1" size="14" />
</field> </field>
</section> </section>
<section type="Head" level="2" page_break="1" pattern="1"> <section type="Head" level="2" page_break="1" pattern="1">
<groupby>122-&#3E;CODAGE</groupby> <groupby>122-&#3E;CODAGE</groupby>
<font face="Arial" bold="1" size="8" /> <font face="Arial" bold="1" size="8" />
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2</prescript> <prescript description="H2 PRESCRIPT">MESSAGE RESET,F2</prescript>
<field x="57" type="Testo" bg_color="#808080" width="54" pattern="2" /> <field x="57" type="Testo" width="54" pattern="2" />
<field x="1" type="Stringa" bg_color="#7F7F7F" txt_color="#FFFFFF" width="6" id="101" pattern="2"> <field x="1" y="2" type="Testo" bg_color="#FFFF00" width="10" pattern="2" text="Agente">
<source>122-&#3E;CODAGE</source> <font face="Arial" bold="1" size="10" />
</field> </field>
<field x="7" type="Stringa" bg_color="#808080" txt_color="#FFFFFF" width="50" id="102" pattern="2"> <field x="16.5" y="2" type="Testo" bg_color="#FFFF00" width="2" pattern="2" />
<prescript description="H2.102 PRESCRIPT">MESSAGE ISAMREAD,122,CODAGE=#101,RAGSOC <field x="68" y="2" type="Stringa" bg_color="#FFFF00" width="43" pattern="2" />
</prescript> <field x="11" y="2" type="Stringa" bg_color="#FFFF00" width="6" id="101" pattern="2">
</field> <font face="Arial" bold="1" size="10" />
</section> <source>122-&#3E;CODAGE</source>
<section type="Head" level="3" pattern="1"> </field>
<groupby>STR(I0)+STR(I1)</groupby> <field x="18" y="2" type="Stringa" bg_color="#FFFF00" width="50" id="102" pattern="2">
<font face="Arial" bold="1" size="8" /> <font face="Arial" bold="1" size="10" />
<prescript description="H3 PRESCRIPT">MESSAGE RESET,F3</prescript> <prescript description="H2.102 PRESCRIPT">MESSAGE ISAMREAD,122,CODAGE=#101,RAGSOC
<field x="9" y="0.75" type="Testo" bg_color="#C0C0C0" width="1" pattern="2" /> </prescript>
<field x="10" y="0.75" type="Numero" hidden="1" align="right" width="3" pattern="1"> </field>
<source>I1</source> </section>
<prescript description="H3.0 PRESCRIPT">MESSAGE EMPTY ISAMREAD,20,TIPOCF='C'!CODCF=I0,103=RAGSOC!104=INDCF!105=CAPCF!106=COMCF <section type="Head" level="3" pattern="1">
MESSAGE ISAMREAD,16,TIPOCF='C'!CODCF=I0!CODIND=I1,103=RAGSOC!104=INDIR!105=CAP!106=COM</prescript> <groupby>STR(I0)+STR(I1)</groupby>
</field> <font face="Arial" bold="1" size="8" />
<field x="95" y="0.75" type="Testo" bg_color="#C0C0C0" width="16" pattern="2" /> <prescript description="H3 PRESCRIPT">MESSAGE RESET,F3</prescript>
<field x="3" y="0.75" type="Numero" align="right" bg_color="#C0C0C0" width="6" id="101" pattern="2"> <field border="1" x="1" y="0.5" type="Stringa" width="111" height="1.5" pattern="1" />
<source>I0</source> <field x="10" y="0.75" type="Numero" hidden="1" align="right" width="3" pattern="1">
</field> <source>I1</source>
<field x="10" y="0.75" type="Stringa" bg_color="#C0C0C0" width="35" id="103" pattern="2"> <prescript description="H3.0 PRESCRIPT">MESSAGE EMPTY ISAMREAD,20,TIPOCF='C'!CODCF=I0,103=RAGSOC!104=INDCF!105=CAPCF!106=COMCF
<font face="Arial Narrow" bold="1" size="8" /> MESSAGE ISAMREAD,16,TIPOCF='C'!CODCF=I0!CODIND=I1,103=RAGSOC!104=INDIR!105=CAP!106=COM</prescript>
</field> </field>
<field x="45" y="0.75" type="Stringa" bg_color="#C0C0C0" width="25" id="104" pattern="2"> <field x="1" y="2.25" type="Testo" width="10" height="0.5" pattern="1" />
<font face="Arial Narrow" bold="1" size="8" /> <field x="2" y="0.75" type="Numero" align="right" width="8" id="101" pattern="2">
</field> <font face="Arial" bold="1" size="9" />
<field x="70" y="0.75" type="Stringa" bg_color="#C0C0C0" width="5" id="105" pattern="2"> <source>I0</source>
<font face="Arial Narrow" bold="1" size="8" /> </field>
</field> <field x="12.5" y="0.75" type="Stringa" width="35" id="103" pattern="2">
<field x="75" y="0.75" type="Stringa" hidden="1" width="4" id="106" pattern="1"> <font face="Arial Narrow" bold="1" size="9" />
<font face="Arial Narrow" size="8" /> </field>
</field> <field x="59.5" y="0.75" type="Stringa" width="25" id="104" pattern="2">
<field x="75" y="0.75" type="Stringa" bg_color="#C0C0C0" width="20" id="107" pattern="2"> <font face="Arial Narrow" bold="1" size="9" />
<font face="Arial Narrow" bold="1" size="8" /> </field>
<prescript description="H3.107 PRESCRIPT">MESSAGE ISAMREAD,13,COM=#106,DENCOM</prescript> <field x="85" y="0.75" type="Stringa" width="5" id="105" pattern="2">
</field> <font face="Arial Narrow" bold="1" size="9" />
</section> </field>
<section type="Head" level="4" pattern="1"> <field x="90.5" y="0.75" type="Stringa" hidden="1" width="4" id="106" pattern="1">
<groupby>CODTAB[1,12]</groupby> <font face="Arial Narrow" size="8" />
<font face="Arial" bold="1" size="8" /> </field>
<prescript description="H4 PRESCRIPT">MESSAGE RESET,F4</prescript> <field x="91" y="0.75" type="Stringa" width="20" id="107" pattern="2">
<field x="5" type="Stringa" width="5" id="101" pattern="1"> <font face="Arial Narrow" bold="1" size="9" />
<source>CODTAB[1,5]</source> <prescript description="H3.107 PRESCRIPT">MESSAGE ISAMREAD,13,COM=#106,DENCOM</prescript>
</field> </field>
<field x="10" type="Stringa" align="right" width="7" id="102" pattern="1"> </section>
<source>CODTAB[6,12]</source> <section type="Head" level="4" pattern="1">
</field> <groupby>CODTAB[1,12]</groupby>
<field x="18" type="Stringa" width="15" id="103" pattern="1"> <font face="Arial" bold="1" size="8" />
<source>401@-&#3E;S0[6,20]</source> <prescript description="H4 PRESCRIPT">MESSAGE RESET,F4</prescript>
</field> <field x="1" y="0.75" type="Testo" width="10" height="0.5" pattern="1" />
<field x="34" type="Stringa" width="50" id="104" pattern="1"> <field x="12" type="Stringa" width="21" id="101" pattern="1">
<prescript description="H4.104 PRESCRIPT">MESSAGE ISAMREAD,47,CODART=#101,DESCR</prescript> <prescript description="H4.101 PRESCRIPT">MESSAGE ISAMREAD,163,MOD='HA'!COD='ATT'!CODTAB=#102,S0</prescript>
</field> </field>
</section> <field x="3" type="Stringa" width="8" id="102" pattern="1">
<section type="Body" pattern="1" /> <source>CODTAB[1,8]</source>
<section type="Body" level="1" pattern="1"> </field>
<field x="6" type="Array" width="1" pattern="1"> <field x="34" type="Stringa" width="50" id="104" pattern="1">
<source>S7[1,1]</source> <prescript description="H4.104 PRESCRIPT">MESSAGE ISAMREAD,47,CODART=#101,DESCR</prescript>
<list> </field>
<li Value="Comodato" Code="C" /> <field x="84.5" type="Stringa" width="27" id="105" pattern="1">
<li Value="Descrittivo" Code="D" /> <prescript description="H4.105 PRESCRIPT">MESSAGE ISAMREAD,163,MOD='HA'!COD='ATT'!CODTAB=#102,S3</prescript>
<li Value="Insegne" Code="I" /> </field>
<li Value="Riparazione" Code="R" /> </section>
<li Value="Varie" Code="V" /> <section type="Body" pattern="1" />
</list> <section type="Body" level="1" pattern="1">
</field> <field x="6" type="Array" width="1" pattern="1">
<field x="8" type="Booleano" width="1.5" pattern="1"> <source>S7[1,1]</source>
<source>B0</source> <list>
</field> <li Value="Comodato" Code="C" />
<field x="10" type="Data" width="10" pattern="1"> <li Value="Descrittivo" Code="D" />
<source>D0</source> <li Value="Insegne" Code="I" />
</field> <li Value="Riparazione" Code="R" />
<field x="21" type="Stringa" width="70" pattern="1"> <li Value="Varie" Code="V" />
<source>S0</source> </list>
</field> </field>
<field x="92" type="Stringa" width="2" pattern="1"> <field x="8" type="Booleano" width="1.5" pattern="1">
<source>S6[1,2]</source> <source>B0</source>
</field> </field>
<field x="94" type="Numero" align="right" width="3" pattern="1"> <field x="10" type="Data" width="10" pattern="1">
<source>R0</source> <source>D0</source>
</field> </field>
<field x="98" type="Valuta" align="right" width="10" pattern="1" text="#########,@@"> <field x="21" type="Stringa" width="70" pattern="1">
<source>R1</source> <source>S0</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F4.110 </field>
MESSAGE ADD,F3.110 <field x="92" type="Stringa" width="2" pattern="1">
MESSAGE ADD,F2.110 <source>S6[1,2]</source>
MESSAGE ADD,F1.110</prescript> </field>
</field> <field x="94" type="Numero" align="right" width="3" pattern="1">
</section> <source>R0</source>
<section type="Foot" pattern="1" /> </field>
<section type="Foot" level="1" pattern="1"> <field x="98" type="Valuta" align="right" width="10" pattern="1" text="#########,@@">
<font face="Arial" bold="1" size="8" /> <source>R1</source>
<field x="1" y="0.5" type="Testo" bg_color="#000000" txt_color="#FFFFFF" width="75" pattern="2" /> <prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F4.110
<field x="75" y="0.5" type="Testo" bg_color="#000000" txt_color="#FFFFFF" width="20" pattern="2" text="TOTALE COMPLESSIVO" /> MESSAGE ADD,F3.110
<field x="108" y="0.5" type="Testo" bg_color="#000000" txt_color="#FFFFFF" width="3" pattern="2" /> MESSAGE ADD,F2.110
<field x="95" y="0.5" type="Valuta" align="right" bg_color="#000000" txt_color="#FFFFFF" width="13" id="110" pattern="2" text="#########,@@" /> MESSAGE ADD,F1.110</prescript>
</section> </field>
<section type="Foot" level="2" pattern="1"> </section>
<font face="Arial" bold="1" size="8" /> <section type="Foot" pattern="1" />
<field x="57" y="0.5" type="Testo" bg_color="#7F7F7F" txt_color="#FFFFFF" width="32" pattern="2" /> <section type="Foot" level="1" pattern="1">
<field x="89" y="0.5" type="Testo" bg_color="#7F7F7F" txt_color="#FFFFFF" width="7" pattern="2" text="Totale " /> <font face="Arial" bold="1" size="8" />
<field x="108" y="0.5" type="Testo" bg_color="#7F7F7F" txt_color="#FFFFFF" width="3" pattern="2" /> <field border="1" x="1" y="0.75" type="Linea" width="110" height="0" pattern="1" />
<field x="1" y="0.5" type="Stringa" bg_color="#7F7F7F" txt_color="#FFFFFF" width="6" id="101" pattern="2"> <field x="1" y="1.25" type="Testo" fg_color="#FFFFFF" txt_color="#030303" width="30" height="2" pattern="2" text="Totale complessivo">
<source>H2.101</source> <font face="Arial" bold="1" size="11" />
</field> </field>
<field x="7" y="0.5" type="Stringa" bg_color="#7F7F7F" txt_color="#FFFFFF" width="50" id="102" pattern="2"> <field x="96" y="1" type="Valuta" align="right" fg_color="#FFFFFF" txt_color="#000000" width="13" height="2" id="110" pattern="2" text="#########,@@">
<source>H2.102</source> <font face="Arial" bold="1" size="11" />
</field> </field>
<field x="96" y="0.5" type="Valuta" align="right" bg_color="#7F7F7F" txt_color="#FFFFFF" width="12" id="110" pattern="2" text="#########,@@" /> </section>
</section> <section type="Foot" level="2" pattern="1">
<section type="Foot" level="3" pattern="1"> <font face="Arial" bold="1" size="8" />
<font face="Arial" bold="1" size="8" /> <field border="1" x="1" y="0.75" type="Linea" width="110" height="0" pattern="1" />
<field x="9" type="Testo" bg_color="#C0C0C0" width="1" pattern="2" /> <field x="1" y="1.75" type="Testo" bg_color="#FFFF00" width="20" pattern="2" text="Totale Agente">
<field x="60" type="Testo" bg_color="#C0C0C0" width="29" pattern="2" /> <font face="Arial" bold="1" size="10" />
<field x="89" type="Testo" bg_color="#C0C0C0" width="8" pattern="2" text="Totale " /> </field>
<field x="108" type="Testo" bg_color="#C0C0C0" width="3" pattern="2" /> <field x="29" y="1.75" type="Testo" bg_color="#FFFF00" width="82" pattern="2" />
<field x="3" type="Numero" align="right" bg_color="#C0C0C0" width="6" id="101" pattern="2"> <field x="21" y="1.75" type="Stringa" bg_color="#FFFF00" width="8" id="101" pattern="2">
<source>H3.101</source> <font face="Arial" bold="1" size="10" />
</field> <source>122-&#3E;CODAGE</source>
<field x="10" type="Stringa" bg_color="#C0C0C0" width="50" id="102" pattern="2"> </field>
<source>H3.103</source> <field x="97" y="1.75" type="Valuta" align="right" bg_color="#FFFF00" width="12" id="110" pattern="2" text="#########,@@">
</field> <font face="Arial" bold="1" size="9" />
<field x="97" type="Valuta" align="right" bg_color="#C0C0C0" width="11" id="110" pattern="2" text="#########,@@" /> </field>
</section> </section>
<section type="Foot" level="4" pattern="1"> <section type="Foot" level="3" pattern="1">
<font face="Arial" bold="1" size="8" /> <font face="Arial" bold="1" size="8" />
<field x="18" type="Stringa" width="15" pattern="1"> <field border="1" x="1" y="0.5" type="Linea" width="110" height="0" pattern="1" />
<source>H4.103</source> <field x="1" y="1" type="Testo" bg_color="#C0C0C0" width="20" pattern="1" text="Totale Cliente">
</field> <font face="Arial" bold="1" size="9" />
<field x="34" type="Stringa" width="50" pattern="1"> </field>
<source>H4.104</source> <field x="97" y="1" type="Valuta" align="right" bg_color="#C0C0C0" width="12" id="110" pattern="1" text="#########,@@">
</field> <font face="Arial" bold="1" size="9" />
<field x="89" type="Testo" width="8" pattern="1" text="Totale " /> </field>
<field border="1" x="5" y="1" type="Linea" width="103" height="0" pattern="1" /> </section>
<field x="5" type="Stringa" width="5" id="101" pattern="1"> <section type="Foot" level="4" pattern="1">
<source>H4.101</source> <font face="Arial" bold="1" size="8" />
</field> <field border="1" x="5" y="0.25" type="Linea" width="103" height="0" pattern="1" />
<field x="10" type="Numero" align="right" width="7" id="102" pattern="1"> <field x="89" y="0.5" type="Testo" width="8" pattern="1" text="Totale " />
<source>H4.102</source> <field x="59" y="1" type="Testo" width="10" height="0.5" pattern="1" />
</field> <field x="98" y="0.5" type="Valuta" align="right" width="11" id="110" pattern="1" text="#########,@@" />
<field x="97" type="Valuta" align="right" width="11" id="110" pattern="1" text="#########,@@" /> </section>
</section> <sql>USE &#26;HAHIS SELECT (BETWEEN(S7[1,1];#TIPO;#TIPO))&#26;&#26;(BETWEEN(122-&#3E;CODAGE,#CODAG,#CODAG))&#26;&#26;(BETWEEN(I0,#CODCF,#CODCF))&#26;&#26;(BETWEEN(I1,#INDSPED,#INDSPED))
<sql> BY 122-&#3E;CODAGE I0 I1 CODTAB
USE &#26;HAHIS JOIN &#26;HAATT ALIAS 401 INTO CODTAB==CODTAB[1,8]
SELECT (BETWEEN(S7[1,1];#TIPO;#TIPO))&#26;&#26;(BETWEEN(TRIM(401@->S0[1,20]);#CODART;#CODART))&#26;&#26;(BETWEEN(122->CODAGE,#CODAG,#CODAG))&#26;&#26;(BETWEEN(I0,#CODCF,#CODCF))&#26;&#26;(BETWEEN(I1,#INDSPED,#INDSPED)) JOIN CFVEN INTO TIPOCF="C" CODCF==I0
BY 122->CODAGE I0 I1 CODTAB JOIN AGENTI TO CFVEN INTO CODAGE==CODAG
JOIN &#26;HAATT ALIAS 401 INTO CODTAB==CODTAB FROM CODTAB=#PROGRESSIVO
JOIN CFVEN INTO TIPOCF="C" CODCF==I0 TO CODTAB=#PROGRESSIVO</sql>
JOIN AGENTI TO CFVEN INTO CODAGE==CODAG
FROM CODTAB=#MATRICOLA
TO CODTAB=#MATRICOLA
</sql>
</report> </report>

View File

@ -116,7 +116,7 @@ BEGIN
CHECKTYPE NORMAL CHECKTYPE NORMAL
END END
NUMBER F_PROGRESSIVO 7 STRING F_PROGRESSIVO 8
BEGIN BEGIN
PROMPT 2 8 "Progres. " PROMPT 2 8 "Progres. "
FLAGS "UZ" FLAGS "UZ"