Patch level : 12.01 nopatch

Files correlati     :
Commento            :
Progetti stampa bilanci avanzata
This commit is contained in:
Alessandro Bonazzi 2023-04-12 08:53:00 +02:00
parent cf9a627e40
commit d2267de070
10 changed files with 1065 additions and 0 deletions

View File

@ -890,6 +890,10 @@
<FileType>Document</FileType>
</CopyFileToFolders>
</ItemGroup>
<ItemGroup>
<None Include="..\src\include\alex.alx" />
<None Include="..\src\include\report.alx" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>

View File

@ -17,6 +17,9 @@
<Filter Include="Recdesc">
<UniqueIdentifier>{0efb2a15-b492-4cf4-b0e1-e1b1a2362369}</UniqueIdentifier>
</Filter>
<Filter Include="Alx">
<UniqueIdentifier>{f44ac840-9c6e-4e54-a14a-5beeb8e0e5e4}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\xvaga\statbar.h">
@ -811,4 +814,12 @@
<Filter>Recdesc</Filter>
</CopyFileToFolders>
</ItemGroup>
<ItemGroup>
<None Include="..\src\include\report.alx">
<Filter>Alx</Filter>
</None>
<None Include="..\src\include\alex.alx">
<Filter>Alx</Filter>
</None>
</ItemGroup>
</Project>

View File

@ -245,6 +245,7 @@
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<ClCompile Include="..\src\cg\cg1501.cpp" />
<ClCompile Include="..\src\cg\cg1600.cpp">
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
@ -273,6 +274,7 @@
<MskCompiler Include="..\src\cg\cg1310.uml" />
<MskCompiler Include="..\src\cg\cg1400a.uml" />
<MskCompiler Include="..\src\cg\cg1500a.uml" />
<MskCompiler Include="..\src\cg\cg1500ax.uml" />
<MskCompiler Include="..\src\cg\cg1600a.uml" />
<MskCompiler Include="..\src\cg\cg1700a.uml" />
</ItemGroup>
@ -298,6 +300,7 @@
<ClInclude Include="..\src\cg\cg1314.h" />
<ClInclude Include="..\src\cg\cg1400.h" />
<ClInclude Include="..\src\cg\cg1500.h" />
<ClInclude Include="..\src\cg\cg1501.h" />
<ClInclude Include="..\src\cg\cg1600.h" />
<ClInclude Include="..\src\cg\cg1700.h" />
<ClInclude Include="..\src\cg\cglib.h" />
@ -325,6 +328,21 @@
<Project>{7b80f974-ce2e-4bd9-855a-44ff139ff288}</Project>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<RepCompiler Include="..\src\cg\cg1500a1.rep">
<SubType>Designer</SubType>
</RepCompiler>
<RepCompiler Include="..\src\cg\cg1500a2.rep">
<SubType>Designer</SubType>
</RepCompiler>
<RepCompiler Include="..\src\cg\cg1500a3.rep">
<SubType>Designer</SubType>
</RepCompiler>
<RepCompiler Include="..\src\cg\cg1500b.rep">
<SubType>Designer</SubType>
</RepCompiler>
<RepCompiler Include="..\src\cg\cg1500c.rep" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
<Import Project="CampoRules.targets" />

View File

@ -13,6 +13,9 @@
<UniqueIdentifier>{b050e81e-2d08-4fe9-8df7-4752821eadd8}</UniqueIdentifier>
<Extensions>h</Extensions>
</Filter>
<Filter Include="Reports">
<UniqueIdentifier>{67327472-c369-45be-9456-cf35ce61e40d}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\src\cg\cg1.cpp">
@ -81,6 +84,9 @@
<ClCompile Include="..\src\cg\cg1314.cpp">
<Filter>Sources</Filter>
</ClCompile>
<ClCompile Include="..\src\cg\cg1501.cpp">
<Filter>Sources</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<MskCompiler Include="..\src\cg\cg1100a.uml">
@ -131,6 +137,9 @@
<MskCompiler Include="..\src\cg\cg1300n.uml">
<Filter>Masks</Filter>
</MskCompiler>
<MskCompiler Include="..\src\cg\cg1500ax.uml">
<Filter>Masks</Filter>
</MskCompiler>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\src\cg\cg1.h">
@ -205,8 +214,28 @@
<ClInclude Include="..\src\cg\cglib.h">
<Filter>Header</Filter>
</ClInclude>
<ClInclude Include="..\src\cg\cg1501.h">
<Filter>Header</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="campo.rc" />
</ItemGroup>
<ItemGroup>
<RepCompiler Include="..\src\cg\cg1500b.rep">
<Filter>Reports</Filter>
</RepCompiler>
<RepCompiler Include="..\src\cg\cg1500c.rep">
<Filter>Reports</Filter>
</RepCompiler>
<RepCompiler Include="..\src\cg\cg1500a3.rep">
<Filter>Reports</Filter>
</RepCompiler>
<RepCompiler Include="..\src\cg\cg1500a1.rep">
<Filter>Reports</Filter>
</RepCompiler>
<RepCompiler Include="..\src\cg\cg1500a2.rep">
<Filter>Reports</Filter>
</RepCompiler>
</ItemGroup>
</Project>

View File

@ -210,6 +210,7 @@
<MskCompiler Include="..\src\ce\ce2200a.uml" />
<MskCompiler Include="..\src\ce\ce2300a.uml" />
<MskCompiler Include="..\src\ce\ce2300b.uml" />
<MskCompiler Include="..\src\ce\ce2400a.uml" />
<MskCompiler Include="..\src\ce\ce2500a.uml" />
</ItemGroup>
<ItemGroup>

View File

@ -56,6 +56,9 @@
<MskCompiler Include="..\src\ce\ce2500a.uml">
<Filter>Masks</Filter>
</MskCompiler>
<MskCompiler Include="..\src\ce\ce2400a.uml">
<Filter>Masks</Filter>
</MskCompiler>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\src\ce\ce2.h">

248
src/cg/cg1500a1.rep Normal file
View File

@ -0,0 +1,248 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report libraries="" page_merge="" save_printer="" name="cg1500a1" use_printer_font="" orientation="1" page_split="" lpi="6" command="cg1 -4" class="cg1500a">
<description>Stampa bilancio a sezioni contrapposte 1</description>
<font face="Arial" size="7" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="" hidden="" page_break="" can_break="" pattern="1">
<field deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="1" hide_zero="" text="Ditta" />
<field x="3.5" deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="1" hide_zero="" text="">
<source>#SYSTEM.FIRM</source>
</field>
<field x="9" deactivated="" type="Stringa" valign="bottom" hidden="" link="" dynamic_height="" shade_offset="" width="30" codval="" id="" pattern="1" hide_zero="" text="">
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="30" deactivated="" type="Stringa" valign="center" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="61" codval="" height="3" id="" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="14" />
<prescript description="H0.0 PRESCRIPT">"Stampa bilancio a sezioni contrapposte"
#CODES @
0
&#3C;&#3E;
IF
" esercizio "
+
#CODES @
+
THEN
#THIS !
</prescript>
</field>
<field x="101.5" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="2" hide_zero="" text="Data">
<font italic="1" face="Courier New" bold="1" size="8" />
</field>
<field x="109.5" deactivated="" type="Data" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="2" hide_zero="" text="">
<source>DATASTAMPA</source>
</field>
<field x="121" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="2" hide_zero="" text="Pag.">
<font italic="1" face="Courier New" bold="1" size="8" />
</field>
<field x="126" deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="2" hide_zero="" text="">
<source>#PAGE</source>
</field>
<field x="9" y="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="40" codval="" height="2" id="" pattern="1" hide_zero="" text="">
<prescript description="H0.0 PRESCRIPT">"!INDIR"
GET_FIRM_DATA </prescript>
</field>
<field x="101.5" y="1" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="Dal" />
<field x="106" y="1" deactivated="" type="Data" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<source>DATAINI</source>
</field>
<field x="117.5" y="1" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="Al" />
<field x="121" y="1" deactivated="" type="Data" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<source>DATALIM</source>
</field>
<field x="101" y="2" deactivated="" type="Array" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="30" codval="" id="" pattern="1" hide_zero="" text="">
<source>TIPOST</source>
<list>
<li Value="Per data limite" Code="1" />
<li Value="All'ultima immissione" Code="2" />
</list>
</field>
<field y="3" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Codice fiscale" />
<field x="15" y="3" deactivated="" type="Stringa" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="16" codval="" id="" pattern="1" hide_zero="" text="">
<prescript description="H0.0 PRESCRIPT">"!CF"
GET_FIRM_DATA </prescript>
</field>
<field x="31.5" y="3" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="Partita IVA" />
<field x="44" y="3" deactivated="" type="Stringa" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="1" hide_zero="" text="">
<prescript description="H0.0 PRESCRIPT">"!IVA"
GET_FIRM_DATA</prescript>
</field>
<field x="101" y="3" deactivated="" type="Array" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="30" codval="" id="" pattern="1" hide_zero="" text="">
<source>TIPOCONTI</source>
<list>
<li Value="Tutti i conti" Code="1" />
<li Value="Tutti i conti movimentati" Code="2" />
<li Value="I conto con saldo diverso da zero" Code="3" />
</list>
</field>
<field border="1" y="4" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="131" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
</section>
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="1" hidden="" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="2" hidden="" page_break="" can_break="" pattern="1">
<field x="15" y="1" deactivated="" type="Testo" valign="bottom" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="30" codval="" id="" pattern="1" hide_zero="" text="ATTIVITA'">
<font face="Arial Black" bold="1" size="7" />
</field>
<field x="81" y="1" deactivated="" type="Testo" valign="bottom" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="30" codval="" id="" pattern="1" hide_zero="" text="PASSIVITA'">
<font face="Arial Black" bold="1" size="7" />
</field>
<field x="15" y="2" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="30" codval="" id="" pattern="1" hide_zero="" text="__________">
<font face="Arial Black" bold="1" size="7" />
</field>
<field x="81" y="2" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="30" codval="" id="" pattern="1" hide_zero="" text="_____________">
<font face="Arial Black" bold="1" size="7" />
</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">
<field border="1" x="65" deactivated="" type="Linea" hidden="" link="" dynamic_height="1" shade_offset="" codval="" id="" pattern="1" hide_zero="" text="" />
<field deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="101" pattern="1" hide_zero="1" text="">
<source>GRUPPO1</source>
</field>
<field x="4" deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="102" pattern="1" hide_zero="1" text="">
<source>CONTO1</source>
</field>
<field x="8" deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="6" codval="" id="103" pattern="1" hide_zero="1" text="">
<source>SOTTOCONTO1</source>
</field>
<field x="15" deactivated="" type="Stringa" valign="center" hidden="" link="" dynamic_height="1" shade_offset="" width="30" codval="" height="2" id="104" pattern="1" hide_zero="" text="">
<source>DESCR1</source>
</field>
<field x="45" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="105" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO1</source>
<postscript description="B1.105 POSTSCRIPT">#102 @
0
&#3C;&#3E;
#103 @
0
=
AND
IF
#THIS @
#F1.305
+!
THEN</postscript>
</field>
<field x="66" deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="202" pattern="1" hide_zero="1" text="">
<source>GRUPPO2</source>
</field>
<field x="70" deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="202" pattern="1" hide_zero="1" text="">
<source>CONTO2</source>
</field>
<field x="74" deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="6" codval="" id="203" pattern="1" hide_zero="1" text="">
<source>SOTTOCONTO2</source>
</field>
<field x="81" deactivated="" type="Stringa" valign="center" hidden="" link="" dynamic_height="1" shade_offset="" width="30" codval="" height="2" id="204" pattern="1" hide_zero="" text="">
<source>DESCR2</source>
</field>
<field x="111" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="205" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO2</source>
<postscript description="B1.205 POSTSCRIPT">#202 @
0
&#3C;&#3E;
#203 @
0
=
AND
IF
#THIS @
#F1.306
+!
THEN</postscript>
</field>
</section>
<section repeat="" y="48" keep_with_next="" deactivated="" hidden_if_needed="1" 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="65" deactivated="" type="Linea" hidden="" link="" dynamic_height="1" shade_offset="" codval="" height="5" id="" pattern="1" hide_zero="" text="" />
<field x="15" y="1" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="29" codval="" id="" pattern="1" hide_zero="" text="TOTALE " />
<field x="81" y="1" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="29" codval="" id="" pattern="1" hide_zero="" text="TOTALE" />
<field x="15" y="4" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="29" codval="" id="" pattern="1" hide_zero="" text="TOTALE A PAREGGIO" />
<field x="81" y="4" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="29" codval="" id="" pattern="1" hide_zero="" text="TOTALE A PAREGGIO" />
<field x="45" y="1" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="305" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="111" y="1" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="306" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="5" deactivated="" type="Valuta" valign="center" hidden="1" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="307" pattern="1" hide_zero="" text="###.###.###,@@">
<source>#305-#306</source>
</field>
<field x="25" deactivated="" type="Valuta" valign="center" hidden="1" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="308" pattern="1" hide_zero="" text="###.###.###,@@">
<source>SBILPREC</source>
<prescript description="F1.308 PRESCRIPT">#THIS @ 0 &#3E;
IF
#THIS @
#457 !
"#354" HIDE
"#454" SHOW
ELSE
#THIS @ 0 &#3C;
IF
0
#THIS @
-
#357 !
"#354" SHOW
"#454" HIDE
ELSE
#THIS @
#357 !
#THIS @
#457 !
"#354" HIDE
"#454" HIDE
THEN
THEN</prescript>
</field>
<field x="45" deactivated="" type="Valuta" valign="center" hidden="1" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="309" pattern="1" hide_zero="" text="###.###.###,@@">
<source>#307-#308</source>
<prescript description="F1.309 PRESCRIPT">#THIS @
0
&#3E;
IF
#THIS @
#F1.456 !
"#353" HIDE
"#453" SHOW
ELSE
#THIS @
0
&#3C;
IF
0
#THIS @
-
#F1.356 !
"#353" SHOW
"#453" HIDE
ELSE
#THIS @
#F1.356 !
#THIS @
#F1.456 !
"#353" HIDE
"#453" HIDE
THEN
THEN</prescript>
</field>
<field x="14" y="2" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="30" codval="" id="353" pattern="1" hide_zero="" text="PERDITA DELL'ESERCIZIO IN CORSO" />
<field x="9" y="3" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="35" codval="" id="354" pattern="1" hide_zero="" text="SBILANCIO DELL'ESERCIZIO PRECEDENTE" />
<field x="45" y="2" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="356" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="45" y="3" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="357" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="45" y="4" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="358" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F1.358 PRESCRIPT">#305 @
#356 @
+
#357 @
+
#THIS !</prescript>
</field>
<field x="81" y="2" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="29" codval="" id="453" pattern="1" hide_zero="" text="UTILE DELL'ESERCIZIO IN CORSO" />
<field x="75.5" y="3" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="35" codval="" id="454" pattern="1" hide_zero="" text="SBILANCIO DELL'ESERCIZIO PRECEDENTE" />
<field x="111" y="2" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="456" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="111" y="3" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="457" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="111" y="4" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="458" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="F1.458 PRESCRIPT">#306 @
#456 @
+
#457 @
+
#THIS !</prescript>
</field>
</section>
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="2" hidden="" page_break="" can_break="" pattern="1" />
</report>

248
src/cg/cg1500a2.rep Normal file
View File

@ -0,0 +1,248 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report libraries="" page_merge="" save_printer="" name="cg1500a2" use_printer_font="" orientation="1" page_split="" lpi="6" command="cg1 -4" class="cg1500">
<description>Stampa bilancio a sezioni contrapposte 2</description>
<font face="Arial" size="7" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="" hidden="" page_break="" can_break="" pattern="1">
<field deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="1" hide_zero="" text="Ditta" />
<field x="3.5" deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="1" hide_zero="" text="">
<source>#SYSTEM.FIRM</source>
</field>
<field x="9" deactivated="" type="Stringa" valign="bottom" hidden="" link="" dynamic_height="" shade_offset="" width="30" codval="" id="" pattern="1" hide_zero="" text="">
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="30" deactivated="" type="Stringa" valign="center" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="61" codval="" height="3" id="" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="14" />
<prescript description="H0.0 PRESCRIPT">"Stampa bilancio a sezioni contrapposte"
#CODES @
0
&#3C;&#3E;
IF
" esercizio "
+
#CODES @
+
THEN
#THIS !
</prescript>
</field>
<field x="101.5" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="2" hide_zero="" text="Data">
<font italic="1" face="Courier New" bold="1" size="8" />
</field>
<field x="109.5" deactivated="" type="Data" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="2" hide_zero="" text="">
<source>DATASTAMPA</source>
</field>
<field x="121" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="2" hide_zero="" text="Pag.">
<font italic="1" face="Courier New" bold="1" size="8" />
</field>
<field x="126" deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="2" hide_zero="" text="">
<source>#PAGE</source>
</field>
<field x="9" y="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="40" codval="" height="2" id="" pattern="1" hide_zero="" text="">
<prescript description="H0.0 PRESCRIPT">"!INDIR"
GET_FIRM_DATA </prescript>
</field>
<field x="101.5" y="1" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="Dal" />
<field x="106" y="1" deactivated="" type="Data" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<source>DATAINI</source>
</field>
<field x="117.5" y="1" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="Al" />
<field x="121" y="1" deactivated="" type="Data" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<source>DATALIM</source>
</field>
<field x="101" y="2" deactivated="" type="Array" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="30" codval="" id="" pattern="1" hide_zero="" text="">
<source>TIPOST</source>
<list>
<li Value="Per data limite" Code="1" />
<li Value="All'ultima immissione" Code="2" />
</list>
</field>
<field y="3" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Codice fiscale" />
<field x="15" y="3" deactivated="" type="Stringa" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="16" codval="" id="" pattern="1" hide_zero="" text="">
<prescript description="H0.0 PRESCRIPT">"!CF"
GET_FIRM_DATA </prescript>
</field>
<field x="31.5" y="3" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="Partita IVA" />
<field x="44" y="3" deactivated="" type="Stringa" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="1" hide_zero="" text="">
<prescript description="H0.0 PRESCRIPT">"!IVA"
GET_FIRM_DATA</prescript>
</field>
<field x="101" y="3" deactivated="" type="Array" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="30" codval="" id="" pattern="1" hide_zero="" text="">
<source>TIPOCONTI</source>
<list>
<li Value="Tutti i conti" Code="1" />
<li Value="Tutti i conti movimentati" Code="2" />
<li Value="I conto con saldo diverso da zero" Code="3" />
</list>
</field>
<field border="1" y="4" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="131" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
</section>
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="1" hidden="" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="2" hidden="" page_break="" can_break="" pattern="1">
<field x="15" y="1" deactivated="" type="Testo" valign="bottom" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="30" codval="" id="" pattern="1" hide_zero="" text="COSTI">
<font face="Arial Black" bold="1" size="7" />
</field>
<field x="81" y="1" deactivated="" type="Testo" valign="bottom" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="30" codval="" id="" pattern="1" hide_zero="" text="RICAVI">
<font face="Arial Black" bold="1" size="7" />
</field>
<field x="15" y="2" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="30" codval="" id="" pattern="1" hide_zero="" text="_______">
<font face="Arial Black" bold="1" size="7" />
</field>
<field x="81" y="2" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="30" codval="" id="" pattern="1" hide_zero="" text="_________">
<font face="Arial Black" bold="1" size="7" />
</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">
<field border="1" x="65" deactivated="" type="Linea" hidden="" link="" dynamic_height="1" shade_offset="" codval="" id="" pattern="1" hide_zero="" text="" />
<field deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="101" pattern="1" hide_zero="1" text="">
<source>GRUPPO1</source>
</field>
<field x="4" deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="102" pattern="1" hide_zero="1" text="">
<source>CONTO1</source>
</field>
<field x="8" deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="6" codval="" id="103" pattern="1" hide_zero="1" text="">
<source>SOTTOCONTO1</source>
</field>
<field x="15" deactivated="" type="Stringa" valign="center" hidden="" link="" dynamic_height="1" shade_offset="" width="30" codval="" height="2" id="104" pattern="1" hide_zero="" text="">
<source>DESCR1</source>
</field>
<field x="45" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="105" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO1</source>
<postscript description="B1.105 POSTSCRIPT">#102 @
0
&#3C;&#3E;
#103 @
0
=
AND
IF
#THIS @
#F1.305
+!
THEN</postscript>
</field>
<field x="66" deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="202" pattern="1" hide_zero="1" text="">
<source>GRUPPO2</source>
</field>
<field x="70" deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="202" pattern="1" hide_zero="1" text="">
<source>CONTO2</source>
</field>
<field x="74" deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="6" codval="" id="203" pattern="1" hide_zero="1" text="">
<source>SOTTOCONTO2</source>
</field>
<field x="81" deactivated="" type="Stringa" valign="center" hidden="" link="" dynamic_height="1" shade_offset="" width="30" codval="" height="2" id="204" pattern="1" hide_zero="" text="">
<source>DESCR2</source>
</field>
<field x="111" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="205" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO2</source>
<postscript description="">#202 @
0
&#3C;&#3E;
#203 @
0
=
AND
IF
#THIS @
#F1.306
+!
THEN</postscript>
</field>
</section>
<section repeat="" y="48" keep_with_next="" deactivated="" hidden_if_needed="1" 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="65" deactivated="" type="Linea" hidden="" link="" dynamic_height="1" shade_offset="" codval="" height="5" id="" pattern="1" hide_zero="" text="" />
<field x="15" y="1" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="29" codval="" id="" pattern="1" hide_zero="" text="TOTALE " />
<field x="81" y="1" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="29" codval="" id="" pattern="1" hide_zero="" text="TOTALE" />
<field x="15" y="4" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="29" codval="" id="" pattern="1" hide_zero="" text="TOTALE A PAREGGIO" />
<field x="81" y="4" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="29" codval="" id="" pattern="1" hide_zero="" text="TOTALE A PAREGGIO" />
<field x="45" y="1" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="305" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="111" y="1" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="306" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="5" deactivated="" type="Valuta" valign="center" hidden="1" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="307" pattern="1" hide_zero="" text="###.###.###,@@">
<source>#305-#306</source>
</field>
<field x="25" deactivated="" type="Valuta" valign="center" hidden="1" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="308" pattern="1" hide_zero="" text="###.###.###,@@">
<source>SBILPREC</source>
<prescript description="">#THIS @ 0 &#3E;
IF
#THIS @
#457 !
"#354" HIDE
"#454" SHOW
ELSE
#THIS @ 0 &#3C;
IF
0
#THIS @
-
#357 !
"#354" SHOW
"#454" HIDE
ELSE
#THIS @
#357 !
#THIS @
#457 !
"#354" HIDE
"#454" HIDE
THEN
THEN</prescript>
</field>
<field x="45" deactivated="" type="Valuta" valign="center" hidden="1" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="309" pattern="1" hide_zero="" text="###.###.###,@@">
<source>#307-#308</source>
<prescript description="">#THIS @
0
&#3E;
IF
#THIS @
#F1.456 !
"#353" HIDE
"#453" SHOW
ELSE
#THIS @
0
&#3C;
IF
0
#THIS @
-
#F1.356 !
"#353" SHOW
"#453" HIDE
ELSE
#THIS @
#F1.356 !
#THIS @
#F1.456 !
"#353" HIDE
"#453" HIDE
THEN
THEN</prescript>
</field>
<field x="14" y="2" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="30" codval="" id="353" pattern="1" hide_zero="" text="UTILE DELL'ESERCIZIO IN CORSO" />
<field x="9" y="3" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="35" codval="" id="354" pattern="1" hide_zero="" text="SBILANCIO DELL'ESERCIZIO PRECEDENTE" />
<field x="45" y="2" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="356" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="45" y="3" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="357" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="45" y="4" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="358" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="">#305 @
#356 @
+
#357 @
+
#THIS !</prescript>
</field>
<field x="80" y="2" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="30" codval="" id="453" pattern="1" hide_zero="" text="PERDITA DELL'ESERCIZIO IN CORSO" />
<field x="75.5" y="3" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="35" codval="" id="454" pattern="1" hide_zero="" text="SBILANCIO DELL'ESERCIZIO PRECEDENTE" />
<field x="111" y="2" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="456" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="111" y="3" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="457" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="111" y="4" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="458" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="">#306 @
#456 @
+
#457 @
+
#THIS !</prescript>
</field>
</section>
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="2" hidden="" page_break="" can_break="" pattern="1" />
</report>

242
src/cg/cg1500a3.rep Normal file
View File

@ -0,0 +1,242 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report libraries="" page_merge="" save_printer="" name="cg1500a3" use_printer_font="" orientation="1" page_split="" lpi="6" command="cg1 -4" class="cg1500">
<description>Stampa bilancio a sezioni contrapposte 3</description>
<font face="Arial" size="7" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="" hidden="" page_break="" can_break="" pattern="1">
<field deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="1" hide_zero="" text="Ditta" />
<field x="3.5" deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="1" hide_zero="" text="">
<source>#SYSTEM.FIRM</source>
</field>
<field x="9" deactivated="" type="Stringa" valign="bottom" hidden="" link="" dynamic_height="" shade_offset="" width="30" codval="" id="" pattern="1" hide_zero="" text="">
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="30" deactivated="" type="Stringa" valign="center" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="61" codval="" height="3" id="" pattern="1" hide_zero="" text="">
<font face="Arial" bold="1" size="14" />
<prescript description="H0.0 PRESCRIPT">"Stampa bilancio a sezioni contrapposte"
#CODES @
0
&#3C;&#3E;
IF
" esercizio "
+
#CODES @
+
THEN
#THIS !
</prescript>
</field>
<field x="101.5" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="2" hide_zero="" text="Data">
<font italic="1" face="Courier New" bold="1" size="8" />
</field>
<field x="109.5" deactivated="" type="Data" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="2" hide_zero="" text="">
<source>DATASTAMPA</source>
</field>
<field x="121" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="4" codval="" id="" pattern="2" hide_zero="" text="Pag.">
<font italic="1" face="Courier New" bold="1" size="8" />
</field>
<field x="126" deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="5" codval="" id="" pattern="2" hide_zero="" text="">
<source>#PAGE</source>
</field>
<field x="9" y="1" deactivated="" type="Stringa" hidden="" link="" dynamic_height="" shade_offset="" width="40" codval="" height="2" id="" pattern="1" hide_zero="" text="">
<prescript description="H0.0 PRESCRIPT">"!INDIR"
GET_FIRM_DATA </prescript>
</field>
<field x="101.5" y="1" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="Dal" />
<field x="106" y="1" deactivated="" type="Data" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<source>DATAINI</source>
</field>
<field x="117.5" y="1" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="3" codval="" id="" pattern="1" hide_zero="" text="Al" />
<field x="121" y="1" deactivated="" type="Data" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="10" codval="" id="" pattern="1" hide_zero="" text="">
<source>DATALIM</source>
</field>
<field x="101" y="2" deactivated="" type="Array" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="30" codval="" id="" pattern="1" hide_zero="" text="">
<source>TIPOST</source>
<list>
<li Value="Per data limite" Code="1" />
<li Value="All'ultima immissione" Code="2" />
</list>
</field>
<field y="3" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="15" codval="" id="" pattern="1" hide_zero="" text="Codice fiscale" />
<field x="15" y="3" deactivated="" type="Stringa" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="16" codval="" id="" pattern="1" hide_zero="" text="">
<prescript description="H0.0 PRESCRIPT">"!CF"
GET_FIRM_DATA </prescript>
</field>
<field x="31.5" y="3" deactivated="" type="Testo" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="13" codval="" id="" pattern="1" hide_zero="" text="Partita IVA" />
<field x="44" y="3" deactivated="" type="Stringa" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="11" codval="" id="" pattern="1" hide_zero="" text="">
<prescript description="H0.0 PRESCRIPT">"!IVA"
GET_FIRM_DATA</prescript>
</field>
<field x="101" y="3" deactivated="" type="Array" valign="center" hidden="" link="" dynamic_height="" shade_offset="" width="30" codval="" id="" pattern="1" hide_zero="" text="">
<source>TIPOCONTI</source>
<list>
<li Value="Tutti i conti" Code="1" />
<li Value="Tutti i conti movimentati" Code="2" />
<li Value="I conto con saldo diverso da zero" Code="3" />
</list>
</field>
<field border="1" y="4" deactivated="" type="Linea" hidden="" link="" dynamic_height="" shade_offset="" width="131" codval="" height="0" id="" pattern="1" hide_zero="" text="" />
</section>
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="1" hidden="" page_break="" can_break="" pattern="1" />
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Head" level="2" hidden="" page_break="" can_break="" pattern="1">
<field x="45" y="1" deactivated="" type="Testo" valign="bottom" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="40" codval="" id="" pattern="1" hide_zero="" text="CONTI D'ORDINE">
<font face="Arial Black" bold="1" size="7" />
</field>
<field x="45" y="2" deactivated="" type="Testo" hidden="" align="center" link="" dynamic_height="" shade_offset="" width="40" codval="" id="" pattern="1" hide_zero="" text="________________">
<font face="Arial Black" bold="1" size="7" />
</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">
<field border="1" x="65" deactivated="" type="Linea" hidden="" link="" dynamic_height="1" shade_offset="" codval="" id="" pattern="1" hide_zero="" text="" />
<field deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="101" pattern="1" hide_zero="1" text="">
<source>GRUPPO1</source>
</field>
<field x="4" deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="102" pattern="1" hide_zero="1" text="">
<source>CONTO1</source>
</field>
<field x="8" deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="6" codval="" id="103" pattern="1" hide_zero="1" text="">
<source>SOTTOCONTO1</source>
</field>
<field x="15" deactivated="" type="Stringa" valign="center" hidden="" link="" dynamic_height="1" shade_offset="" width="30" codval="" height="2" id="104" pattern="1" hide_zero="" text="">
<source>DESCR1</source>
</field>
<field x="45" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="105" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO1</source>
<postscript description="">#102 @
0
&#3C;&#3E;
#103 @
0
=
AND
IF
#THIS @
#F1.305
+!
THEN</postscript>
</field>
<field x="66" deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="202" pattern="1" hide_zero="1" text="">
<source>GRUPPO2</source>
</field>
<field x="70" deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="3" codval="" id="202" pattern="1" hide_zero="1" text="">
<source>CONTO2</source>
</field>
<field x="74" deactivated="" type="Numero" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="6" codval="" id="203" pattern="1" hide_zero="1" text="">
<source>SOTTOCONTO2</source>
</field>
<field x="81" deactivated="" type="Stringa" valign="center" hidden="" link="" dynamic_height="1" shade_offset="" width="30" codval="" height="2" id="204" pattern="1" hide_zero="" text="">
<source>DESCR2</source>
</field>
<field x="111" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="205" pattern="1" hide_zero="1" text="###.###.###,@@">
<source>SALDO2</source>
<postscript description="">#202 @
0
&#3C;&#3E;
#203 @
0
=
AND
IF
#THIS @
#F1.306
+!
THEN</postscript>
</field>
</section>
<section repeat="" y="48" keep_with_next="" deactivated="" hidden_if_needed="1" 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="65" deactivated="" type="Linea" hidden="" link="" dynamic_height="1" shade_offset="" codval="" height="5" id="" pattern="1" hide_zero="" text="" />
<field x="15" y="1" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="29" codval="" id="" pattern="1" hide_zero="" text="TOTALE " />
<field x="81" y="1" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="29" codval="" id="" pattern="1" hide_zero="" text="TOTALE" />
<field x="15" y="4" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="29" codval="" id="" pattern="1" hide_zero="" text="TOTALE A PAREGGIO" />
<field x="81" y="4" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="29" codval="" id="" pattern="1" hide_zero="" text="TOTALE A PAREGGIO" />
<field x="45" y="1" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="305" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="111" y="1" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="306" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="5" deactivated="" type="Valuta" valign="center" hidden="1" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="307" pattern="1" hide_zero="" text="###.###.###,@@">
<source>#305-#306</source>
</field>
<field x="25" deactivated="" type="Valuta" valign="center" hidden="1" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="308" pattern="1" hide_zero="" text="###.###.###,@@">
<source>SBILPREC</source>
<prescript description="">#THIS @ 0 &#3E;
IF
#THIS @
#457 !
"#354" HIDE
"#454" SHOW
ELSE
#THIS @ 0 &#3C;
IF
0
#THIS @
-
#357 !
"#354" SHOW
"#454" HIDE
ELSE
#THIS @
#357 !
#THIS @
#457 !
"#354" HIDE
"#454" HIDE
THEN
THEN</prescript>
</field>
<field x="45" deactivated="" type="Valuta" valign="center" hidden="1" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="309" pattern="1" hide_zero="" text="###.###.###,@@">
<source>#307-#308</source>
<prescript description="">#THIS @
0
&#3E;
IF
#THIS @
#F1.456 !
"#353" HIDE
"#453" SHOW
ELSE
#THIS @
0
&#3C;
IF
0
#THIS @
-
#F1.356 !
"#353" SHOW
"#453" HIDE
ELSE
#THIS @
#F1.356 !
#THIS @
#F1.456 !
"#353" HIDE
"#453" HIDE
THEN
THEN</prescript>
</field>
<field x="11" y="2" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="33" codval="" id="353" pattern="1" hide_zero="" text="DIFFERENZA DELL'ESERCIZIO IN CORSO" />
<field x="8" y="3" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="36" codval="" id="354" pattern="1" hide_zero="" text="DIFFERENZA DELL'ESERCIZIO PRECEDENTE" />
<field x="45" y="2" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="356" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="45" y="3" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="357" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="45" y="4" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="358" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="">#305 @
#356 @
+
#357 @
+
#THIS !</prescript>
</field>
<field x="77" y="2" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="33" codval="" id="453" pattern="1" hide_zero="" text="DIFFERENZA DELL'ESERCIZIO IN CORSO" />
<field x="74" y="3" deactivated="" type="Testo" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="36" codval="" id="454" pattern="1" hide_zero="" text="DIFFERENZA DELL'ESERCIZIO PRECEDENTE" />
<field x="111" y="2" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="456" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="111" y="3" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="457" pattern="1" hide_zero="1" text="###.###.###,@@" />
<field x="111" y="4" deactivated="" type="Valuta" valign="center" hidden="" align="right" link="" dynamic_height="" shade_offset="" width="19" codval="" id="458" pattern="1" hide_zero="1" text="###.###.###,@@">
<prescript description="">#306 @
#456 @
+
#457 @
+
#THIS !</prescript>
</field>
</section>
<section repeat="" keep_with_next="" deactivated="" hidden_if_needed="" type="Foot" level="2" hidden="" page_break="" can_break="" pattern="1" />
</report>

261
src/cg/cg1501.h Normal file
View File

@ -0,0 +1,261 @@
#ifndef __CG1501_H
#define __CG1501_H
#include <array.h>
#include <repapp.h>
#include "cglib.h"
#define SEZIONI_CONTRAPPOSTE 1
#define BILANCIO_VERIFICA 2
#define DATA_LIMITE 1
#define ULTIMA_IMMISSIONE 2
#define VERIFICA 1
#define MASTRO 2
#define CLIENTI_FORNITORI 3
#define MOVIMENTATO 1
#define SALDO_NOT_ZERO 2
#define TUTTI 3
#define ORD_CONTO 1
#define ORD_RAGSOC 2
#define BIL_ROW 0
#define BIL_GRUPPO 1
#define BIL_CONTO 2
#define BIL_SOTTOCONTO 3
#define BIL_DESCR 4
#define BIL_SALDO 5
#define VER_GRUPPO 0
#define VER_CONTO 1
#define VER_SOTTOCONTO 2
#define VER_NUMULTMOV 3
#define VER_DATAULMOV 4
#define VER_DESCR 5
#define VER_FLAGSALINI 6
#define VER_SALDO 7
#define VER_PDARE 8
#define VER_PAVERE 9
#define VER_INDBIL 10
HIDDEN const char * _sezioni_bilancio[] = { "AP", "CR", "OR" };
void sez2ind(int sez_bil, int & indfrom, int & indto);
class TBilancio_mask : public TAutomask
{
const TString & get_report_class() const;
void TBilancio_mask::set_report_class(const char * classname);
public:
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
TBilancio_mask(const char *name) : TAutomask(name) { }
virtual ~TBilancio_mask() { }
};
class TSezioni_contrapposte_recset : TRecordset
{
TArray _righe_sez;
TAssoc_array _righe_sez1;
TAssoc_array _righe;
TArray _index;
TArray _colonne;
TRecnotype _curr;
TSaldo _last_saldo;
int _last_indbil;
TBill _last_conto;
long _last_row[3][2];
int _filled_sezs[3];
long _last_key[3][2];
TImporto _sbilancio_prec;
int _sez_bil;
int _esercizio;
int _tipo_data;
TDate _dataini;
TDate _datalim;
TDate _datastampa;
bool _compcr;
bool _st_saldo_zero;
bool _totali_gruppo;
int _tipi_mov;
TString _contsep;
virtual TRecnotype items() const { return _righe.items(); }
virtual bool move_to(TRecnotype pos);
virtual TRecnotype current_row() const { return _curr; }
virtual void requery();
virtual const TString& query_text() const { return EMPTY_STRING; }
virtual unsigned int columns() const { return _colonne.items(); }
virtual const TRecordset_column_info& column_info(unsigned int column) const { return (TRecordset_column_info&)_colonne[column]; }
bool exist_row(const TAssoc_array & rows, const char * key) const { return rows.is_key(key); }
const TArray & get_row(TRecnotype row = -1) const;
virtual const TVariant& get(unsigned int column) const;
virtual const TVariant& get(const char* column_name) const;
void calculate_saldo(const TRectype & rec);
void update_record(const TRectype & rec);
void scan_clifor(const TRectype & rec);
void rebuild();
void pack_rows(TAssoc_array & righe);
void filter_rows_pos(TAssoc_array & righe, int col);
void filter_rows();
void update_index();
public:
virtual void set_filter(const TMask& msk);
void set_sez(int sez_bil) { _sez_bil = sez_bil; }
const real & sbilancio_precedente() const { return _sbilancio_prec.valore(); }
TSezioni_contrapposte_recset();
~TSezioni_contrapposte_recset() {}
};
class TSezioni_contrapposte : public TProgram_report
{
TBilancio_mask & _mask;
bool _st_codici_conto;
TSezioni_contrapposte_recset * _recset;
virtual const char * get_excel_header_section() { return "H0|H2|F1"; }
public:
virtual TRecordset* recordset() const;
bool st_codici_conto() const { return _st_codici_conto; }
bool get_usr_val(const TString& name, TVariant& var) const;
void init(const char * name, int sez);
TSezioni_contrapposte(TBilancio_mask & msk) : _mask(msk), _recset(nullptr) { }
~TSezioni_contrapposte() {}
};
class TVerifica_recset : TRecordset
{
TAssoc_array _righe;
TArray _index;
TArray _colonne;
TRecnotype _curr;
TSaldo _last_saldo;
int _last_indbil;
TBill _last_conto;
int _esercizio;
int _tipo_data;
TDate _dataini;
TDate _datalim;
TDate _datastampa;
bool _compcr;
bool _st_saldo_zero;
int _tipi_mov;
bool _quad_gior;
TString _contsep;
bool _quadratura;
int _tipo_ver;
int _tipo_saldo_ver;
bool _show_clifo;
TString _sit_cf;
int _tipo_ord;
TBill _da_conto;
TString _da_descrizione;
TBill _a_conto;
TString _a_descrizione;
protected:
int tipo_verifica() const { return _tipo_ver; }
bool show_clifo() const { return _show_clifo; }
bool verifica() const { return tipo_verifica() == VERIFICA; }
bool mastro() const { return tipo_verifica() == MASTRO; }
bool cli_for() const { return tipo_verifica() == CLIENTI_FORNITORI; }
const TString & tipo_sit() const { return _sit_cf; }
virtual TRecnotype items() const { return _righe.items(); }
virtual bool move_to(TRecnotype pos);
virtual TRecnotype current_row() const { return _curr; }
virtual void requery();
virtual const TString& query_text() const { return EMPTY_STRING; }
virtual unsigned int columns() const { return _colonne.items(); }
virtual const TRecordset_column_info& column_info(unsigned int column) const { return (TRecordset_column_info&)_colonne[column]; }
bool exist_row(const char * key) const { return _righe.is_key(key); }
const TArray & get_row(TRecnotype row = -1) const;
virtual const TVariant& get(unsigned int column) const;
virtual const TVariant& get(const char* column_name) const;
void calculate_saldo(const TRectype & rec);
bool select_conti(const TRectype & rec);
void update_record(const TRectype & rec);
void scan_clifor(const TRectype & rec);
void rebuild();
void filter_rows();
void update_index();
public:
bool clienti() const { return tipo_sit() == "C"; }
bool fornitori() const { return tipo_sit() == "F"; }
bool entrambi() const { return tipo_sit().blank(); }
virtual void set_filter(const TMask& msk);
TVerifica_recset();
~TVerifica_recset() {}
};
class TVerifica : public TProgram_report
{
TBilancio_mask & _mask;
bool _hide_points;
int _tipo_ver;
TVerifica_recset * _recset;
public:
int tipo_verifica() const { return _tipo_ver; }
bool mastro() const { return tipo_verifica() == MASTRO; }
bool cli_for() const { return tipo_verifica() == CLIENTI_FORNITORI; }
virtual TRecordset* recordset() const;
void init();
TVerifica(TBilancio_mask & msk) : _mask(msk), _recset(nullptr) {}
~TVerifica() {}
};
class TStampa_bilanci_avanzata : public TReport_application
{
TBilancio_mask * _mask;
TVerifica * _verifica_rep;
TVerifica * _verifica_clifo_rep;
TSezioni_contrapposte * _sezioni_contrapposte_rep;
#ifdef CONT_SEP
virtual const char * extra_modules() const { return "CG"; }
#endif
public:
virtual TTrec * get_dbase_recdesc(TReport & rep, const TAutomask & mask);
virtual void execute_print(TReport_book & book, TAutomask & mask, TReport & rep, export_type & type);
virtual bool user_create();
virtual bool user_destroy();
virtual TAutomask & get_mask() { return *_mask; }
virtual TReport & get_report(const TAutomask & m);
TStampa_bilanci_avanzata() : _mask(nullptr), _verifica_rep(nullptr), _verifica_clifo_rep(nullptr),
_sezioni_contrapposte_rep(nullptr) {}
};
#endif // __CG1501_H