Merge branch 'R_10_00' of http://10.65.20.33/sirio/CAMPO/campo into R_10_00
This commit is contained in:
commit
fa2b0bfea0
@ -68,7 +68,7 @@
|
|||||||
<ClCompile>
|
<ClCompile>
|
||||||
<Optimization>MaxSpeed</Optimization>
|
<Optimization>MaxSpeed</Optimization>
|
||||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||||
<AdditionalIncludeDirectories>..\src\include;..\src\xvaga;..\xi;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\src\include;..\src\xvaga;..\xi;..\src\xvtdb;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<PreprocessorDefinitions>NDEBUG;WIN32;_WINDOWS;XVT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>NDEBUG;WIN32;_WINDOWS;XVT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<StringPooling>true</StringPooling>
|
<StringPooling>true</StringPooling>
|
||||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
@ -122,7 +122,7 @@
|
|||||||
</Midl>
|
</Midl>
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<Optimization>Disabled</Optimization>
|
<Optimization>Disabled</Optimization>
|
||||||
<AdditionalIncludeDirectories>..\src\include;..\src\xvaga;..\src\xvtdb;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\src\include;..\src\xvaga;..\xi;..\src\xvtdb;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<PreprocessorDefinitions>_DEBUG;WIN32;__LONGDOUBLE__;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_DEBUG;WIN32;__LONGDOUBLE__;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
<BrowseInformation>false</BrowseInformation>
|
<BrowseInformation>false</BrowseInformation>
|
||||||
|
@ -229,15 +229,8 @@
|
|||||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\src\ba\prova.uml" />
|
|
||||||
<ClCompile Include="..\src\cg\cg2103.cpp" />
|
|
||||||
<ClCompile Include="..\src\cg\cglib01.cpp" />
|
<ClCompile Include="..\src\cg\cglib01.cpp" />
|
||||||
<ClCompile Include="..\src\cg\cglib03.cpp">
|
<ClCompile Include="..\src\cg\cglib03.cpp" />
|
||||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
||||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
||||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\src\cg\cgpagame.cpp">
|
<ClCompile Include="..\src\cg\cgpagame.cpp">
|
||||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
@ -270,7 +263,6 @@
|
|||||||
<ClInclude Include="..\src\ba\ba3700.h" />
|
<ClInclude Include="..\src\ba\ba3700.h" />
|
||||||
<ClInclude Include="..\src\ba\ba3800.h" />
|
<ClInclude Include="..\src\ba\ba3800.h" />
|
||||||
<ClInclude Include="..\src\ba\ba3a00a.h" />
|
<ClInclude Include="..\src\ba\ba3a00a.h" />
|
||||||
<ClInclude Include="..\src\ba\prova.h" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<CustomBuildStep Include="..\lib\AgaLib.lib">
|
<CustomBuildStep Include="..\lib\AgaLib.lib">
|
||||||
|
@ -51,21 +51,15 @@
|
|||||||
<ClCompile Include="..\src\ba\ba3a00.cpp">
|
<ClCompile Include="..\src\ba\ba3a00.cpp">
|
||||||
<Filter>Sources</Filter>
|
<Filter>Sources</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\src\cg\cg2103.cpp">
|
<ClCompile Include="..\src\cg\cgpagame.cpp">
|
||||||
<Filter>Sources</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\src\cg\cglib01.cpp">
|
|
||||||
<Filter>Sources</Filter>
|
<Filter>Sources</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\src\cg\cglib03.cpp">
|
<ClCompile Include="..\src\cg\cglib03.cpp">
|
||||||
<Filter>Sources</Filter>
|
<Filter>Sources</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\src\cg\cgpagame.cpp">
|
<ClCompile Include="..\src\cg\cglib01.cpp">
|
||||||
<Filter>Sources</Filter>
|
<Filter>Sources</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\src\ba\prova.uml">
|
|
||||||
<Filter>Masks</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<MskCompiler Include="..\src\ba\ba3200a.uml">
|
<MskCompiler Include="..\src\ba\ba3200a.uml">
|
||||||
@ -136,9 +130,6 @@
|
|||||||
<ClInclude Include="..\src\ba\ba3a00a.h">
|
<ClInclude Include="..\src\ba\ba3a00a.h">
|
||||||
<Filter>Headers</Filter>
|
<Filter>Headers</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\src\ba\prova.h">
|
|
||||||
<Filter>Headers</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ResourceCompile Include="campo.rc" />
|
<ResourceCompile Include="campo.rc" />
|
||||||
|
@ -122,7 +122,6 @@
|
|||||||
<PreprocessorDefinitions>_DEBUG;WIN32;DBG;__LONGDOUBLE__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_DEBUG;WIN32;DBG;__LONGDOUBLE__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<MinimalRebuild>false</MinimalRebuild>
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
@ -177,6 +176,8 @@
|
|||||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\cg\cglib06.cpp" />
|
||||||
|
<ClCompile Include="..\src\cg\cgsaldac.cpp" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<CustomBuildStep Include="..\lib\AgaLib.lib">
|
<CustomBuildStep Include="..\lib\AgaLib.lib">
|
||||||
|
@ -24,6 +24,12 @@
|
|||||||
<ClCompile Include="..\src\cg\cglib02.cpp">
|
<ClCompile Include="..\src\cg\cglib02.cpp">
|
||||||
<Filter>Sources</Filter>
|
<Filter>Sources</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\cg\cglib06.cpp">
|
||||||
|
<Filter>Sources</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\cg\cgsaldac.cpp">
|
||||||
|
<Filter>Sources</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ResourceCompile Include="campo.rc" />
|
<ResourceCompile Include="campo.rc" />
|
||||||
|
@ -68,7 +68,6 @@
|
|||||||
<PreprocessorDefinitions>_DEBUG;WIN32;__LONGDOUBLE__;__LONGDOUBLE__;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_DEBUG;WIN32;__LONGDOUBLE__;__LONGDOUBLE__;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<MinimalRebuild>false</MinimalRebuild>
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||||
@ -257,7 +256,6 @@
|
|||||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\src\cg\cg2103.cpp" />
|
|
||||||
<ClCompile Include="..\src\cg\cglib01.cpp">
|
<ClCompile Include="..\src\cg\cglib01.cpp">
|
||||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
@ -87,9 +87,6 @@
|
|||||||
<ClCompile Include="..\src\cg\cglib03.cpp">
|
<ClCompile Include="..\src\cg\cglib03.cpp">
|
||||||
<Filter>Sources</Filter>
|
<Filter>Sources</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\src\cg\cg2103.cpp">
|
|
||||||
<Filter>Sources</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\src\cg\cg1313.cpp">
|
<ClCompile Include="..\src\cg\cg1313.cpp">
|
||||||
<Filter>Sources</Filter>
|
<Filter>Sources</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
32
build/ba.sln
32
build/ba.sln
@ -43,6 +43,12 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vedocext", "vedocext.vcxpro
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Cb6", "Cb6.vcxproj", "{99683594-420F-4DD9-BB41-7DC48278B931}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Cb6", "Cb6.vcxproj", "{99683594-420F-4DD9-BB41-7DC48278B931}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lilib", "lilib.vcxproj", "{B61F0AD4-0CCE-4371-8E92-85A26CAF1A7C}"
|
||||||
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fastrip", "fastrip.vcxproj", "{68251613-3B9A-4F87-9F40-827C46267ADE}"
|
||||||
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "patchdef", "patchdef.vcxproj", "{2DCB2E4A-EFB6-4561-8D87-C5ADBDB76533}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Win32 = Debug|Win32
|
Debug|Win32 = Debug|Win32
|
||||||
@ -173,14 +179,24 @@ Global
|
|||||||
{99683594-420F-4DD9-BB41-7DC48278B931}.Release|Win32.ActiveCfg = Release|Win32
|
{99683594-420F-4DD9-BB41-7DC48278B931}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
{99683594-420F-4DD9-BB41-7DC48278B931}.Release|Win32.Build.0 = Release|Win32
|
{99683594-420F-4DD9-BB41-7DC48278B931}.Release|Win32.Build.0 = Release|Win32
|
||||||
{99683594-420F-4DD9-BB41-7DC48278B931}.Release|x64.ActiveCfg = Release|Win32
|
{99683594-420F-4DD9-BB41-7DC48278B931}.Release|x64.ActiveCfg = Release|Win32
|
||||||
{05AAA71C-10DF-420A-BE4C-1A1DF08A4AE3}.Debug|Win32.ActiveCfg = Debug|Win32
|
{B61F0AD4-0CCE-4371-8E92-85A26CAF1A7C}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
{05AAA71C-10DF-420A-BE4C-1A1DF08A4AE3}.Debug|Win32.Build.0 = Debug|Win32
|
{B61F0AD4-0CCE-4371-8E92-85A26CAF1A7C}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
{05AAA71C-10DF-420A-BE4C-1A1DF08A4AE3}.Debug|x64.ActiveCfg = Debug|x64
|
{B61F0AD4-0CCE-4371-8E92-85A26CAF1A7C}.Debug|x64.ActiveCfg = Debug|Win32
|
||||||
{05AAA71C-10DF-420A-BE4C-1A1DF08A4AE3}.Debug|x64.Build.0 = Debug|x64
|
{B61F0AD4-0CCE-4371-8E92-85A26CAF1A7C}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
{05AAA71C-10DF-420A-BE4C-1A1DF08A4AE3}.Release|Win32.ActiveCfg = Release|Win32
|
{B61F0AD4-0CCE-4371-8E92-85A26CAF1A7C}.Release|Win32.Build.0 = Release|Win32
|
||||||
{05AAA71C-10DF-420A-BE4C-1A1DF08A4AE3}.Release|Win32.Build.0 = Release|Win32
|
{B61F0AD4-0CCE-4371-8E92-85A26CAF1A7C}.Release|x64.ActiveCfg = Release|Win32
|
||||||
{05AAA71C-10DF-420A-BE4C-1A1DF08A4AE3}.Release|x64.ActiveCfg = Release|x64
|
{68251613-3B9A-4F87-9F40-827C46267ADE}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
{05AAA71C-10DF-420A-BE4C-1A1DF08A4AE3}.Release|x64.Build.0 = Release|x64
|
{68251613-3B9A-4F87-9F40-827C46267ADE}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{68251613-3B9A-4F87-9F40-827C46267ADE}.Debug|x64.ActiveCfg = Debug|Win32
|
||||||
|
{68251613-3B9A-4F87-9F40-827C46267ADE}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{68251613-3B9A-4F87-9F40-827C46267ADE}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{68251613-3B9A-4F87-9F40-827C46267ADE}.Release|x64.ActiveCfg = Release|Win32
|
||||||
|
{2DCB2E4A-EFB6-4561-8D87-C5ADBDB76533}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{2DCB2E4A-EFB6-4561-8D87-C5ADBDB76533}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{2DCB2E4A-EFB6-4561-8D87-C5ADBDB76533}.Debug|x64.ActiveCfg = Debug|Win32
|
||||||
|
{2DCB2E4A-EFB6-4561-8D87-C5ADBDB76533}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{2DCB2E4A-EFB6-4561-8D87-C5ADBDB76533}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{2DCB2E4A-EFB6-4561-8D87-C5ADBDB76533}.Release|x64.ActiveCfg = Release|Win32
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
@ -71,7 +71,6 @@
|
|||||||
<ObjectFileName>$(IntDir)</ObjectFileName>
|
<ObjectFileName>$(IntDir)</ObjectFileName>
|
||||||
<ProgramDataBaseFileName>
|
<ProgramDataBaseFileName>
|
||||||
</ProgramDataBaseFileName>
|
</ProgramDataBaseFileName>
|
||||||
|
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||||
@ -133,7 +132,7 @@
|
|||||||
<ResourceCompile>
|
<ResourceCompile>
|
||||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<Culture>0x0410</Culture>
|
<Culture>0x0410</Culture>
|
||||||
<AdditionalIncludeDirectories>..\wx28X\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\libraries\wx28X\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
</ResourceCompile>
|
</ResourceCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
@ -78,7 +78,7 @@
|
|||||||
<ResourceCompile>
|
<ResourceCompile>
|
||||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<Culture>0x0410</Culture>
|
<Culture>0x0410</Culture>
|
||||||
<AdditionalIncludeDirectories>..\wx28X\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\libraries\wx28X\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
</ResourceCompile>
|
</ResourceCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
@ -124,7 +124,6 @@
|
|||||||
<ObjectFileName>$(IntDir)</ObjectFileName>
|
<ObjectFileName>$(IntDir)</ObjectFileName>
|
||||||
<ProgramDataBaseFileName>
|
<ProgramDataBaseFileName>
|
||||||
</ProgramDataBaseFileName>
|
</ProgramDataBaseFileName>
|
||||||
|
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||||
|
@ -72,7 +72,6 @@
|
|||||||
<ObjectFileName>$(IntDir)</ObjectFileName>
|
<ObjectFileName>$(IntDir)</ObjectFileName>
|
||||||
<ProgramDataBaseFileName>
|
<ProgramDataBaseFileName>
|
||||||
</ProgramDataBaseFileName>
|
</ProgramDataBaseFileName>
|
||||||
|
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||||
@ -132,7 +131,7 @@
|
|||||||
<ResourceCompile>
|
<ResourceCompile>
|
||||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<Culture>0x0410</Culture>
|
<Culture>0x0410</Culture>
|
||||||
<AdditionalIncludeDirectories>..\wx28X\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\libraries\wx28X\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
</ResourceCompile>
|
</ResourceCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
@ -78,7 +78,7 @@
|
|||||||
<ResourceCompile>
|
<ResourceCompile>
|
||||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<Culture>0x0410</Culture>
|
<Culture>0x0410</Culture>
|
||||||
<AdditionalIncludeDirectories>..\wx28X\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\libraries\wx28X\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
</ResourceCompile>
|
</ResourceCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
@ -123,7 +123,6 @@
|
|||||||
<ObjectFileName>$(IntDir)</ObjectFileName>
|
<ObjectFileName>$(IntDir)</ObjectFileName>
|
||||||
<ProgramDataBaseFileName>
|
<ProgramDataBaseFileName>
|
||||||
</ProgramDataBaseFileName>
|
</ProgramDataBaseFileName>
|
||||||
|
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||||
|
@ -72,7 +72,6 @@
|
|||||||
<ObjectFileName>$(IntDir)</ObjectFileName>
|
<ObjectFileName>$(IntDir)</ObjectFileName>
|
||||||
<ProgramDataBaseFileName>
|
<ProgramDataBaseFileName>
|
||||||
</ProgramDataBaseFileName>
|
</ProgramDataBaseFileName>
|
||||||
|
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||||
@ -133,7 +132,7 @@
|
|||||||
<ResourceCompile>
|
<ResourceCompile>
|
||||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<Culture>0x0410</Culture>
|
<Culture>0x0410</Culture>
|
||||||
<AdditionalIncludeDirectories>..\wx28X\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\libraries\wx28X\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
</ResourceCompile>
|
</ResourceCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
<ProjectGuid>{68251613-3B9A-4F87-9F40-827C46267ADE}</ProjectGuid>
|
<ProjectGuid>{68251613-3B9A-4F87-9F40-827C46267ADE}</ProjectGuid>
|
||||||
<Keyword>Win32Proj</Keyword>
|
<Keyword>Win32Proj</Keyword>
|
||||||
<RootNamespace>fastrip</RootNamespace>
|
<RootNamespace>fastrip</RootNamespace>
|
||||||
<WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion>
|
<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
@ -100,7 +100,7 @@
|
|||||||
</Xdcmake>
|
</Xdcmake>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="..\src\fastrip\fastrip.c" />
|
<ClCompile Include="..\src\utilities\fastrip.cpp" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
</Filter>
|
</Filter>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="..\src\fastrip\fastrip.c">
|
<ClCompile Include="..\src\utilities\fastrip.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
108
build/patchdef.vcxproj
Normal file
108
build/patchdef.vcxproj
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{2DCB2E4A-EFB6-4561-8D87-C5ADBDB76533}</ProjectGuid>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<RootNamespace>fastrip</RootNamespace>
|
||||||
|
<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
<PlatformToolset>v141</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>NotSet</CharacterSet>
|
||||||
|
<PlatformToolset>v141</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
<IntDir>..\obj\$(SolutionName)\$(ProjectName)\</IntDir>
|
||||||
|
<OutDir>$(ProjectDir)\</OutDir>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<OutDir>$(ProjectDir)\</OutDir>
|
||||||
|
<IntDir>..\obj\$(SolutionName)\$(ProjectName)\</IntDir>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<ProfileGuidedDatabase>$(IntDir)$(TargetName).pgd</ProfileGuidedDatabase>
|
||||||
|
<ProgramDatabaseFile>$(IntDir)$(TargetName).pdb</ProgramDatabaseFile>
|
||||||
|
</Link>
|
||||||
|
<Bscmake>
|
||||||
|
<OutputFile>$(IntDir)$(TargetName).bsc</OutputFile>
|
||||||
|
</Bscmake>
|
||||||
|
<Xdcmake>
|
||||||
|
<OutputFile>$(IntDir)$(TargetName).xml</OutputFile>
|
||||||
|
</Xdcmake>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<Optimization>MaxSpeed</Optimization>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<GenerateDebugInformation>
|
||||||
|
</GenerateDebugInformation>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<ProfileGuidedDatabase>$(IntDir)$(TargetName).pgd</ProfileGuidedDatabase>
|
||||||
|
<ProgramDatabaseFile>$(IntDir)$(TargetName).pdb</ProgramDatabaseFile>
|
||||||
|
</Link>
|
||||||
|
<Bscmake>
|
||||||
|
<OutputFile>$(IntDir)$(TargetName).bsc</OutputFile>
|
||||||
|
</Bscmake>
|
||||||
|
<Xdcmake>
|
||||||
|
<OutputFile>$(IntDir)$(TargetName).xml</OutputFile>
|
||||||
|
</Xdcmake>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\src\utilities\patchdef.cpp" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
@ -115,12 +115,6 @@
|
|||||||
</Xdcmake>
|
</Xdcmake>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="..\src\cg\cg2103.cpp">
|
|
||||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
||||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
||||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\src\cg\cglib01.cpp">
|
<ClCompile Include="..\src\cg\cglib01.cpp">
|
||||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
@ -11,9 +11,6 @@
|
|||||||
</Filter>
|
</Filter>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="..\src\cg\cg2103.cpp">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\src\cg\cglib01.cpp">
|
<ClCompile Include="..\src\cg\cglib01.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
@ -129,6 +129,9 @@
|
|||||||
<ClInclude Include="..\src\ve\velib05.h" />
|
<ClInclude Include="..\src\ve\velib05.h" />
|
||||||
<ClInclude Include="..\src\ve\velib07.h" />
|
<ClInclude Include="..\src\ve\velib07.h" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="ClassDiagram.cd" />
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
<Import Project="CampoRules.targets" />
|
<Import Project="CampoRules.targets" />
|
||||||
|
@ -83,4 +83,7 @@
|
|||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="ClassDiagram.cd" />
|
||||||
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
4
cd/test/tp0972.txt
Normal file
4
cd/test/tp0972.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
tp0.exe
|
||||||
|
|
||||||
|
Modificata la gestione degli addebiti a accrediti di solo CONAI per la dichiarazione.
|
||||||
|
Bisogna utilizzare righe di spesa a quantità e prezzo con codice corrispondente al codice spesa CONAI corrispondente emettere il codice della sottocategoria nel primo campo CONAI. Il peso unitario non serve e NON viene utilizzato.
|
21
cd/test/tp0972a.ini
Normal file
21
cd/test/tp0972a.ini
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
[Main]
|
||||||
|
Demo=0
|
||||||
|
|
||||||
|
[tp0]
|
||||||
|
File(0) = tp0.exe|X
|
||||||
|
Patch = 972
|
||||||
|
Versione = 21511200
|
||||||
|
|
||||||
|
[tp]
|
||||||
|
Data = 30-06-2020
|
||||||
|
Descrizione = Trasferimento PACK
|
||||||
|
Dischi = 1
|
||||||
|
Moduli = ve
|
||||||
|
OEM =
|
||||||
|
Patch = 972
|
||||||
|
PostProcess =
|
||||||
|
PreProcess =
|
||||||
|
Prezzo(1) =
|
||||||
|
Prezzo(2) =
|
||||||
|
Versione = 21511200
|
||||||
|
|
BIN
cd/test/tp0972a1.zip
Normal file
BIN
cd/test/tp0972a1.zip
Normal file
Binary file not shown.
5
cd/test/ve0972.txt
Normal file
5
cd/test/ve0972.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
verig01.msk
|
||||||
|
verig03.msk
|
||||||
|
verig02.msk
|
||||||
|
|
||||||
|
Aggiunti i campi CONAI alle righe di spesa a quantità e prezzo
|
131
cd/test/ve0972a.ini
Normal file
131
cd/test/ve0972a.ini
Normal file
@ -0,0 +1,131 @@
|
|||||||
|
[Main]
|
||||||
|
Demo=0
|
||||||
|
|
||||||
|
[ve1]
|
||||||
|
File(105) = verig01.msk|X
|
||||||
|
File(107) = verig02.msk|X
|
||||||
|
File(109) = verig03.msk|X
|
||||||
|
Patch = 0972
|
||||||
|
Versione = 21511200
|
||||||
|
|
||||||
|
[ve99]
|
||||||
|
Kill(0) = batbcld.msk|x
|
||||||
|
Kill(1) = bastspp.rep|x
|
||||||
|
Kill(2) = bastfrr.msk|x
|
||||||
|
Kill(3) = bastbnp.rep|x
|
||||||
|
Kill(4) = bastgmc.msk|x
|
||||||
|
Kill(5) = batbrfc.msk|x
|
||||||
|
Kill(6) = batbfca.msk|x
|
||||||
|
Kill(7) = bastcra.rep|x
|
||||||
|
Kill(8) = bastprs.rep|x
|
||||||
|
Kill(9) = bastgcg.rep|x
|
||||||
|
Kill(10) = bastbnp.msk|x
|
||||||
|
Kill(11) = bastrfa.rep|x
|
||||||
|
Kill(12) = bastgca.msk|x
|
||||||
|
Kill(13) = bastgcg.msk|x
|
||||||
|
Kill(14) = bastnum.rep|x
|
||||||
|
Kill(15) = basttag.msk|x
|
||||||
|
Kill(16) = bastasf.rep|x
|
||||||
|
Kill(17) = batbrfa.msk|x
|
||||||
|
Kill(18) = batbctr.msk|x
|
||||||
|
Kill(19) = efstbnp.rep|x
|
||||||
|
Kill(20) = batbgca.msk|x
|
||||||
|
Kill(21) = ve7600a.msk|x
|
||||||
|
Kill(22) = ve7300a.frm|x
|
||||||
|
Kill(23) = ve7100a.msk|x
|
||||||
|
Kill(24) = basteld.rep|x
|
||||||
|
Kill(25) = batbprs.msk|x
|
||||||
|
Kill(26) = batbfrr.msk|x
|
||||||
|
Kill(27) = batbmre.msk|x
|
||||||
|
Kill(28) = ve7701a.ini|x
|
||||||
|
Kill(29) = batbfsa.msk|x
|
||||||
|
Kill(30) = batbstd.msk|x
|
||||||
|
Kill(31) = bastfrr.rep|x
|
||||||
|
Kill(32) = batbubi.msk|x
|
||||||
|
Kill(33) = ve7200a.msk|x
|
||||||
|
Kill(34) = bastctr.msk|x
|
||||||
|
Kill(35) = batbspp.msk|x
|
||||||
|
Kill(36) = batbtri.msk|x
|
||||||
|
Kill(37) = bastabe.rep|x
|
||||||
|
Kill(38) = bastprs.msk|x
|
||||||
|
Kill(39) = bastfrd.msk|x
|
||||||
|
Kill(40) = bastcau.msk|x
|
||||||
|
Kill(41) = bastfca.rep|x
|
||||||
|
Kill(42) = ve7700a.msk|x
|
||||||
|
Kill(43) = batbbnp.msk|x
|
||||||
|
Kill(44) = bastspp.msk|x
|
||||||
|
Kill(45) = bastnum.msk|x
|
||||||
|
Kill(46) = bastrfc.rep|x
|
||||||
|
Kill(47) = basttri.rep|x
|
||||||
|
Kill(48) = baststd.msk|x
|
||||||
|
Kill(49) = batbcaa.msk|x
|
||||||
|
Kill(50) = ve7400conf.ini|x
|
||||||
|
Kill(51) = basttip.rep|x
|
||||||
|
Kill(52) = bastrfc.msk|x
|
||||||
|
Kill(53) = eftbbnp.msk|x
|
||||||
|
Kill(54) = batbgmc.msk|x
|
||||||
|
Kill(55) = bastfca.msk|x
|
||||||
|
Kill(56) = batbspt.msk|x
|
||||||
|
Kill(57) = bastabe.msk|x
|
||||||
|
Kill(58) = ve7400a.msk|x
|
||||||
|
Kill(59) = bastcra.msk|x
|
||||||
|
Kill(60) = batbfrd.msk|x
|
||||||
|
Kill(61) = bastfrm.msk|x
|
||||||
|
Kill(62) = basttri.msk|x
|
||||||
|
Kill(63) = batbgsa.msk|x
|
||||||
|
Kill(64) = bastcaa.msk|x
|
||||||
|
Kill(65) = batbpro.msk|x
|
||||||
|
Kill(66) = bastimb.msk|x
|
||||||
|
Kill(67) = basttag.rep|x
|
||||||
|
Kill(68) = batbgcg.msk|x
|
||||||
|
Kill(69) = baststd.rep|x
|
||||||
|
Kill(70) = batbtag.msk|x
|
||||||
|
Kill(71) = bastfrm.rep|x
|
||||||
|
Kill(72) = bastcau.rep|x
|
||||||
|
Kill(73) = bastums.msk|x
|
||||||
|
Kill(74) = ve7200a.frm|x
|
||||||
|
Kill(75) = bastcaa.rep|x
|
||||||
|
Kill(76) = bastgca.rep|x
|
||||||
|
Kill(77) = bastubi.msk|x
|
||||||
|
Kill(78) = bastasf.msk|x
|
||||||
|
Kill(79) = bastctr.rep|x
|
||||||
|
Kill(80) = bastums.rep|x
|
||||||
|
Kill(81) = batbprv.msk|x
|
||||||
|
Kill(82) = ve7500a.msk|x
|
||||||
|
Kill(83) = batbfid.msk|x
|
||||||
|
Kill(84) = batbums.msk|x
|
||||||
|
Kill(85) = bastfrd.rep|x
|
||||||
|
Kill(86) = basteld.msk|x
|
||||||
|
Kill(87) = batbnum.msk|x
|
||||||
|
Kill(88) = batbtip.msk|x
|
||||||
|
Kill(89) = batbcau.msk|x
|
||||||
|
Kill(90) = ve7300a.msk|x
|
||||||
|
Kill(91) = batbcra.msk|x
|
||||||
|
Kill(92) = bastrfa.msk|x
|
||||||
|
Kill(93) = bastimb.rep|x
|
||||||
|
Kill(94) = ve7.exe|x
|
||||||
|
Kill(95) = bastgmc.rep|x
|
||||||
|
Kill(96) = efstbnp.msk|x
|
||||||
|
Kill(97) = batbfrm.msk|x
|
||||||
|
Kill(98) = batbacr.msk|x
|
||||||
|
Kill(99) = batbimb.msk|x
|
||||||
|
Kill(100) = ve7400a.ini|x
|
||||||
|
Kill(101) = bastubi.rep|x
|
||||||
|
Kill(102) = batbeld.msk|x
|
||||||
|
Kill(103) = batbasf.msk|x
|
||||||
|
Kill(104) = basttip.msk|x
|
||||||
|
Kill(105) = batbabe.msk|x
|
||||||
|
|
||||||
|
[ve]
|
||||||
|
Data = 30-06-2020
|
||||||
|
Descrizione = Vendite
|
||||||
|
Dischi = 1
|
||||||
|
Moduli = ba,cg9,pr9,mg9,sv9,in9,ef9
|
||||||
|
OEM =
|
||||||
|
Patch = 0972
|
||||||
|
PostProcess = bainst -0 VE
|
||||||
|
PreProcess =
|
||||||
|
Prezzo(1) =
|
||||||
|
Prezzo(2) =
|
||||||
|
Versione = 21511200
|
||||||
|
|
BIN
cd/test/ve0972a1.zip
Normal file
BIN
cd/test/ve0972a1.zip
Normal file
Binary file not shown.
@ -3,7 +3,7 @@
|
|||||||
#include <recarray.h>
|
#include <recarray.h>
|
||||||
#include <tabapp.h>
|
#include <tabapp.h>
|
||||||
|
|
||||||
#include "../cg/cglib03.h"
|
#include "../cg/cglib.h"
|
||||||
|
|
||||||
#include "../cg/cgtbcam.h"
|
#include "../cg/cgtbcam.h"
|
||||||
#include "../cg/cgtbdel.h"
|
#include "../cg/cgtbdel.h"
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
#include <modaut.h>
|
#include <modaut.h>
|
||||||
#include <tree.h>
|
#include <tree.h>
|
||||||
#include <treectrl.h>
|
#include <treectrl.h>
|
||||||
|
#include <utility.h>
|
||||||
#include <urldefid.h>
|
#include <urldefid.h>
|
||||||
|
|
||||||
#include <mov.h>
|
#include <mov.h>
|
||||||
@ -14,7 +15,7 @@
|
|||||||
#include "calib01.h"
|
#include "calib01.h"
|
||||||
#include "calib02.h"
|
#include "calib02.h"
|
||||||
#include "calibmsk.h"
|
#include "calibmsk.h"
|
||||||
#include "../cg/cg2103.h"
|
#include "../cg/cglib.h"
|
||||||
|
|
||||||
#include "cdc.h"
|
#include "cdc.h"
|
||||||
#include "commesse.h"
|
#include "commesse.h"
|
||||||
@ -35,7 +36,7 @@ class TConfig_anal : public TConfig
|
|||||||
int _level;
|
int _level;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual const TString& get(const char* var, const char* section = NULL, int index = -1, const char* def = "");
|
virtual const TString& get(const char* var, const char* section = nullptr, int index = -1, const char* def = "");
|
||||||
TConfig_anal();
|
TConfig_anal();
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -46,7 +47,7 @@ TConfig_anal::TConfig_anal() : TConfig(CONFIG_DITTA, "ca"), _level(0)
|
|||||||
if (a.active(CIAUT)) _level |= 2;
|
if (a.active(CIAUT)) _level |= 2;
|
||||||
|
|
||||||
// Controllo se è veramente configurato il primo livello a CMS o CDC
|
// Controllo se è veramente configurato il primo livello a CMS o CDC
|
||||||
if (_level > 1 && TConfig::get("Level", NULL, 1).blank())
|
if (_level > 1 && TConfig::get("Level", nullptr, 1).blank())
|
||||||
_level = 0;
|
_level = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -88,11 +89,10 @@ const TString& TConfig_anal::get(const char* varname, const char* section, int i
|
|||||||
|
|
||||||
TConfig& ca_config(bool force_reload)
|
TConfig& ca_config(bool force_reload)
|
||||||
{
|
{
|
||||||
static TConfig_anal* cfg = NULL;
|
static TConfig_anal* cfg = nullptr;
|
||||||
if (cfg == NULL || force_reload)
|
if (cfg == nullptr || force_reload)
|
||||||
{
|
{
|
||||||
if (cfg != NULL)
|
SAFE_DELETE(cfg);
|
||||||
delete cfg;
|
|
||||||
cfg = new TConfig_anal;
|
cfg = new TConfig_anal;
|
||||||
}
|
}
|
||||||
return *cfg;
|
return *cfg;
|
||||||
@ -275,12 +275,12 @@ TMultilevel_code_info::TMultilevel_code_info(int logicnum) : _logicnum(logicnum)
|
|||||||
int from = 1, to = 1;
|
int from = 1, to = 1;
|
||||||
for (int level = 1; ; level++)
|
for (int level = 1; ; level++)
|
||||||
{
|
{
|
||||||
const TString& prompt = cfg.get(desvar, NULL, level);
|
const TString& prompt = cfg.get(desvar, nullptr, level);
|
||||||
if (prompt.blank())
|
if (prompt.blank())
|
||||||
break;
|
break;
|
||||||
_prompt.add(prompt);
|
_prompt.add(prompt);
|
||||||
|
|
||||||
const TString& picture = cfg.get(keyvar, NULL, level);
|
const TString& picture = cfg.get(keyvar, nullptr, level);
|
||||||
_picture.add(picture);
|
_picture.add(picture);
|
||||||
|
|
||||||
const int keylen = picture.len();
|
const int keylen = picture.len();
|
||||||
@ -297,11 +297,14 @@ TMultilevel_code_info::TMultilevel_code_info(int logicnum) : _logicnum(logicnum)
|
|||||||
|
|
||||||
const TMultilevel_code_info& ca_multilevel_code_info(int logicnum)
|
const TMultilevel_code_info& ca_multilevel_code_info(int logicnum)
|
||||||
{
|
{
|
||||||
static TArray* cache = NULL;
|
static TArray* cache = nullptr;
|
||||||
if (cache == NULL)
|
|
||||||
|
if (cache == nullptr)
|
||||||
cache = new TArray;
|
cache = new TArray;
|
||||||
|
|
||||||
TMultilevel_code_info* info = (TMultilevel_code_info*)cache->objptr(logicnum);
|
TMultilevel_code_info* info = (TMultilevel_code_info*)cache->objptr(logicnum);
|
||||||
if (info == NULL)
|
|
||||||
|
if (info == nullptr)
|
||||||
{
|
{
|
||||||
info = new TMultilevel_code_info(logicnum);
|
info = new TMultilevel_code_info(logicnum);
|
||||||
cache->add(info, logicnum);
|
cache->add(info, logicnum);
|
||||||
@ -321,7 +324,8 @@ const TMultilevel_code_info* ca_multilevel_code_info_by_index(int level)
|
|||||||
if (_logicnum[0] < 0)
|
if (_logicnum[0] < 0)
|
||||||
{
|
{
|
||||||
TConfig& cfg = ca_config();
|
TConfig& cfg = ca_config();
|
||||||
const TString& lev1 = cfg.get("Level", NULL, 1);
|
const TString& lev1 = cfg.get("Level", nullptr, 1);
|
||||||
|
|
||||||
if (lev1.full())
|
if (lev1.full())
|
||||||
{
|
{
|
||||||
const TMultilevel_code_info& fasi = ca_multilevel_code_info(LF_FASI);
|
const TMultilevel_code_info& fasi = ca_multilevel_code_info(LF_FASI);
|
||||||
@ -330,7 +334,7 @@ const TMultilevel_code_info* ca_multilevel_code_info_by_index(int level)
|
|||||||
if (fasi.parent() == _logicnum[k])
|
if (fasi.parent() == _logicnum[k])
|
||||||
_logicnum[++k] = LF_FASI;
|
_logicnum[++k] = LF_FASI;
|
||||||
|
|
||||||
const TString& lev2 = cfg.get("Level", NULL, 2);
|
const TString& lev2 = cfg.get("Level", nullptr, 2);
|
||||||
if (lev2.full())
|
if (lev2.full())
|
||||||
{
|
{
|
||||||
_logicnum[++k] = _logicnum[0] == LF_COMMESSE ? LF_CDC : LF_COMMESSE;
|
_logicnum[++k] = _logicnum[0] == LF_COMMESSE ? LF_CDC : LF_COMMESSE;
|
||||||
@ -344,7 +348,7 @@ const TMultilevel_code_info* ca_multilevel_code_info_by_index(int level)
|
|||||||
logic = _logicnum[level];
|
logic = _logicnum[level];
|
||||||
}
|
}
|
||||||
|
|
||||||
return logic > 0 ? &ca_multilevel_code_info(logic) : NULL;
|
return logic > 0 ? &ca_multilevel_code_info(logic) : nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ca_test_multilevel_field(TEdit_field& fld, int level)
|
bool ca_test_multilevel_field(TEdit_field& fld, int level)
|
||||||
@ -420,7 +424,7 @@ const char* ca_dollar2fieldname(int logic, const char* dollar)
|
|||||||
default : return FASI_CODFASE;
|
default : return FASI_CODFASE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return NULL;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ca_append_and(TString& query, const TString& clause)
|
void ca_append_and(TString& query, const TString& clause)
|
||||||
@ -452,7 +456,8 @@ static const TString& ca_get_user_permissions(const TString& utente, const int l
|
|||||||
|
|
||||||
if (ini_permessi.set_paragraph(utente))
|
if (ini_permessi.set_paragraph(utente))
|
||||||
{
|
{
|
||||||
const char* fieldname = NULL;
|
const char* fieldname = nullptr;
|
||||||
|
|
||||||
switch (logic)
|
switch (logic)
|
||||||
{
|
{
|
||||||
case LF_COMMESSE: fieldname = "Cms"; break;
|
case LF_COMMESSE: fieldname = "Cms"; break;
|
||||||
@ -460,7 +465,7 @@ static const TString& ca_get_user_permissions(const TString& utente, const int l
|
|||||||
case LF_FASI: fieldname = "Fas"; break;
|
case LF_FASI: fieldname = "Fas"; break;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
if (fieldname != NULL)
|
if (fieldname != nullptr)
|
||||||
{
|
{
|
||||||
const TString& expr = ini_permessi.get(fieldname);
|
const TString& expr = ini_permessi.get(fieldname);
|
||||||
ca_append_and(select, expr);
|
ca_append_and(select, expr);
|
||||||
@ -473,7 +478,7 @@ static const TString& ca_get_user_permissions(const TString& utente, const int l
|
|||||||
TToken_string row(80, SAFE_PIPE_CHR);
|
TToken_string row(80, SAFE_PIPE_CHR);
|
||||||
for (int r = 0;; r++)
|
for (int r = 0;; r++)
|
||||||
{
|
{
|
||||||
row = ini_permessi.get("Prog", NULL, r);
|
row = ini_permessi.get("Prog", nullptr, r);
|
||||||
if (row.blank())
|
if (row.blank())
|
||||||
break;
|
break;
|
||||||
if (key == row.get(0))
|
if (key == row.get(0))
|
||||||
@ -524,7 +529,8 @@ const TString& ca_create_user_select_clause(int logic)
|
|||||||
{
|
{
|
||||||
static TArray clauses;
|
static TArray clauses;
|
||||||
TString* clause = (TString*)clauses.objptr(logic);
|
TString* clause = (TString*)clauses.objptr(logic);
|
||||||
if (clause == NULL)
|
|
||||||
|
if (clause == nullptr)
|
||||||
{
|
{
|
||||||
clause = new TString;
|
clause = new TString;
|
||||||
switch (logic)
|
switch (logic)
|
||||||
@ -579,7 +585,7 @@ bool ca_filter_record(const TRectype& rec)
|
|||||||
|
|
||||||
bool ca_filter_function(const TRelation* rel)
|
bool ca_filter_function(const TRelation* rel)
|
||||||
{
|
{
|
||||||
return rel != NULL && ca_filter_record(rel->curr());
|
return rel != nullptr && ca_filter_record(rel->curr());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -837,13 +843,14 @@ int ca_create_fields(TMask& msk, int page, int logicnum, int x, int y,
|
|||||||
prompt.left_just(maxdeslen);
|
prompt.left_just(maxdeslen);
|
||||||
|
|
||||||
const char* flags = picture[0] == '0' || picture[0] == '9' ? "BUZ" : "BU";
|
const char* flags = picture[0] == '0' || picture[0] == '9' ? "BUZ" : "BU";
|
||||||
TEdit_field* kfld = NULL;
|
TEdit_field* kfld = nullptr;
|
||||||
|
|
||||||
if (mci.is_numeric_picture(i)) // Numeric
|
if (mci.is_numeric_picture(i)) // Numeric
|
||||||
kfld = &msk.add_number(kid, page, prompt, tab0, y+i, picture.len(), flags);
|
kfld = &msk.add_number(kid, page, prompt, tab0, y+i, picture.len(), flags);
|
||||||
else
|
else
|
||||||
kfld = &msk.add_string(kid, page, prompt, tab0, y+i, picture.len(), flags);
|
kfld = &msk.add_string(kid, page, prompt, tab0, y+i, picture.len(), flags);
|
||||||
ca_create_browse1(*kfld, i, logicnum, key_id, desc_in_sh && (i == mci.levels() - 1) ? key_id + mci.levels() - i : des_id);
|
ca_create_browse1(*kfld, i, logicnum, key_id, desc_in_sh && (i == mci.levels() - 1) ? key_id + mci.levels() - i : des_id);
|
||||||
if ((mode & 0x1) != 0 && fieldname == NULL)
|
if ((mode & 0x1) != 0 && fieldname == nullptr)
|
||||||
kfld->set_key(1);
|
kfld->set_key(1);
|
||||||
|
|
||||||
// Ho specificato un nome di campo speciale
|
// Ho specificato un nome di campo speciale
|
||||||
@ -872,7 +879,7 @@ int ca_create_fields(TMask& msk, int page, int logicnum, int x, int y,
|
|||||||
const short did = desc_in_sh && (i == mci.levels() - 1) ? key_id+mci.levels() : des_id+i;
|
const short did = desc_in_sh && (i == mci.levels() - 1) ? key_id+mci.levels() : des_id+i;
|
||||||
TEdit_field& dfld = msk.add_string(did, page, "", tab1, y+i, 50, "B", 72+tab0-tab1);
|
TEdit_field& dfld = msk.add_string(did, page, "", tab1, y+i, 50, "B", 72+tab0-tab1);
|
||||||
ca_create_browse2(dfld, i, logicnum, key_id);
|
ca_create_browse2(dfld, i, logicnum, key_id);
|
||||||
if ((mode & 0x2) != 0 && fieldname == NULL)
|
if ((mode & 0x2) != 0 && fieldname == nullptr)
|
||||||
dfld.set_key(2);
|
dfld.set_key(2);
|
||||||
else
|
else
|
||||||
dfld.set_field("");
|
dfld.set_field("");
|
||||||
@ -964,14 +971,14 @@ int ca_create_fields_compact(TMask& msk, int page, int logicnum, int x, int y,
|
|||||||
|
|
||||||
const char* flags = picture[0] == '0' || picture[0] == '9' ? "BUZG" : "BUG";
|
const char* flags = picture[0] == '0' || picture[0] == '9' ? "BUZG" : "BUG";
|
||||||
|
|
||||||
TEdit_field* kfld = NULL;
|
TEdit_field* kfld = nullptr;
|
||||||
|
|
||||||
if (mci.is_numeric_picture(i)) // Numeric
|
if (mci.is_numeric_picture(i)) // Numeric
|
||||||
kfld = &msk.add_number(kid, page, prompt, tab0 + offset, y + row_offset, picture.len(), flags);
|
kfld = &msk.add_number(kid, page, prompt, tab0 + offset, y + row_offset, picture.len(), flags);
|
||||||
else
|
else
|
||||||
kfld = &msk.add_string(kid, page, prompt, tab0 + offset, y + row_offset, picture.len(), flags);
|
kfld = &msk.add_string(kid, page, prompt, tab0 + offset, y + row_offset, picture.len(), flags);
|
||||||
ca_create_browse1(*kfld, i, logicnum, key_id, des_id);
|
ca_create_browse1(*kfld, i, logicnum, key_id, des_id);
|
||||||
if ((mode & 0x1) != 0 && fieldname == NULL)
|
if ((mode & 0x1) != 0 && fieldname == nullptr)
|
||||||
kfld->set_key(1);
|
kfld->set_key(1);
|
||||||
|
|
||||||
// Ho specificato un nome di campo speciale
|
// Ho specificato un nome di campo speciale
|
||||||
@ -995,7 +1002,7 @@ int ca_create_fields_compact(TMask& msk, int page, int logicnum, int x, int y,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Copio il checktype nel campo fantasma per colorare correttamente la colonna
|
// Copio il checktype nel campo fantasma per colorare correttamente la colonna
|
||||||
if (msk.get_sheet() != NULL && kfld->required())
|
if (msk.get_sheet() != nullptr && kfld->required())
|
||||||
msk.efield(kid-100).check_type(kfld->check_type());
|
msk.efield(kid-100).check_type(kfld->check_type());
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1010,7 +1017,7 @@ int ca_create_fields_compact(TMask& msk, int page, int logicnum, int x, int y,
|
|||||||
TEdit_field& dfld = (i < mci.levels() - 1) && (i != par_items -1) ? msk.add_string(did, page, "", 50, 50, 50, "B")
|
TEdit_field& dfld = (i < mci.levels() - 1) && (i != par_items -1) ? msk.add_string(did, page, "", 50, 50, 50, "B")
|
||||||
: msk.add_string(did, page, "", tab1, y + row_offset, 50, "B", 72+tab0-tab1);
|
: msk.add_string(did, page, "", tab1, y + row_offset, 50, "B", 72+tab0-tab1);
|
||||||
ca_create_browse2(dfld, i, logicnum, key_id);
|
ca_create_browse2(dfld, i, logicnum, key_id);
|
||||||
if ((mode & 0x2) != 0 && fieldname == NULL)
|
if ((mode & 0x2) != 0 && fieldname == nullptr)
|
||||||
dfld.set_key(2);
|
dfld.set_key(2);
|
||||||
else
|
else
|
||||||
dfld.set_field("");
|
dfld.set_field("");
|
||||||
@ -1034,7 +1041,7 @@ int ca_create_fields_ext(TMask& m, int page, int x, int y, short first_id,
|
|||||||
|
|
||||||
for (int i = 0; i < 2; i++)
|
for (int i = 0; i < 2; i++)
|
||||||
{
|
{
|
||||||
const TString& level = ini.get("Level", NULL, i+1); // Legge il livello 1 o 2
|
const TString& level = ini.get("Level", nullptr, i+1); // Legge il livello 1 o 2
|
||||||
|
|
||||||
if (level == "CDC" && cdc_fld && *cdc_fld) // Crea centro di costo
|
if (level == "CDC" && cdc_fld && *cdc_fld) // Crea centro di costo
|
||||||
{
|
{
|
||||||
@ -1117,7 +1124,7 @@ int ca_create_fields_ext(TMask& m, int page, int x, int y, short first_id,
|
|||||||
numero_campi += nfields;
|
numero_campi += nfields;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m.get_sheet() != NULL) //Se è una maschera di riga, sistemo le colonne delle sheet
|
if (m.get_sheet() != nullptr) //Se è una maschera di riga, sistemo le colonne delle sheet
|
||||||
{
|
{
|
||||||
TSheet_field& s = *m.get_sheet();
|
TSheet_field& s = *m.get_sheet();
|
||||||
for (short id = first_id + 116; id >= first_id + 100; id--)
|
for (short id = first_id + 116; id >= first_id + 100; id--)
|
||||||
@ -1472,7 +1479,8 @@ bool TSimple_anal_msk::on_field_event(TOperable_field& o, TField_event e, long j
|
|||||||
const TTree_field& fld = (const TTree_field&)o;
|
const TTree_field& fld = (const TTree_field&)o;
|
||||||
const TTree& tree = *fld.tree();
|
const TTree& tree = *fld.tree();
|
||||||
TToken_string curr; tree.curr_id(curr);
|
TToken_string curr; tree.curr_id(curr);
|
||||||
TEdit_field* last = NULL;
|
TEdit_field* last = nullptr;
|
||||||
|
|
||||||
for (int i = 0; ; i++)
|
for (int i = 0; ; i++)
|
||||||
{
|
{
|
||||||
const short id = get_field_id(i);
|
const short id = get_field_id(i);
|
||||||
@ -1488,7 +1496,7 @@ bool TSimple_anal_msk::on_field_event(TOperable_field& o, TField_event e, long j
|
|||||||
if (tok && *tok)
|
if (tok && *tok)
|
||||||
last = &e;
|
last = &e;
|
||||||
}
|
}
|
||||||
if (last != NULL)
|
if (last != nullptr)
|
||||||
{
|
{
|
||||||
if (last->check())
|
if (last->check())
|
||||||
stop_run(K_AUTO_ENTER);
|
stop_run(K_AUTO_ENTER);
|
||||||
@ -1658,7 +1666,8 @@ const TToken_string& TSimple_anal_msk::get_key_value(const TRectype& rec, int c)
|
|||||||
const TToken_string& TSimple_anal_msk::get_key_value(int c) const
|
const TToken_string& TSimple_anal_msk::get_key_value(int c) const
|
||||||
{
|
{
|
||||||
TToken_string& val = get_tmp_string();
|
TToken_string& val = get_tmp_string();
|
||||||
for (TEditable_field* f = get_key_field(c, true); f != NULL; f = get_key_field(c, false))
|
|
||||||
|
for (TEditable_field* f = get_key_field(c, true); f != nullptr; f = get_key_field(c, false))
|
||||||
{
|
{
|
||||||
val.add(f->get());
|
val.add(f->get());
|
||||||
}
|
}
|
||||||
@ -1780,8 +1789,9 @@ void TAnal_tree::node2id(const TObject* node, TString& id) const
|
|||||||
bool TAnal_tree::goto_root()
|
bool TAnal_tree::goto_root()
|
||||||
{
|
{
|
||||||
bool ok = false;
|
bool ok = false;
|
||||||
|
|
||||||
//gestione speciale per le fasi con babbo
|
//gestione speciale per le fasi con babbo
|
||||||
if (_father_curs != NULL)
|
if (_father_curs != nullptr)
|
||||||
{
|
{
|
||||||
if (_father_curs->items() > 0)
|
if (_father_curs->items() > 0)
|
||||||
{
|
{
|
||||||
@ -2013,7 +2023,7 @@ TImage* TAnal_tree::image(bool selected) const
|
|||||||
return get_res_image(bmp_id);
|
return get_res_image(bmp_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
TAnal_tree::TAnal_tree(int logicnum) : _curs(NULL), _father_curs(NULL), _is_father(false)
|
TAnal_tree::TAnal_tree(int logicnum) : _curs(nullptr), _father_curs(nullptr), _is_father(false)
|
||||||
{
|
{
|
||||||
TString select;
|
TString select;
|
||||||
_curs = new TCursor(new TRelation(logicnum), ca_create_user_select_clause(logicnum));
|
_curs = new TCursor(new TRelation(logicnum), ca_create_user_select_clause(logicnum));
|
||||||
@ -2170,10 +2180,8 @@ bool TAnal_app::remove()
|
|||||||
|
|
||||||
bool TAnal_app::user_destroy()
|
bool TAnal_app::user_destroy()
|
||||||
{
|
{
|
||||||
if (_msk != NULL)
|
SAFE_DELETE(_msk);
|
||||||
delete _msk;
|
SAFE_DELETE(_rel);
|
||||||
if (_rel != NULL)
|
|
||||||
delete _rel;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2219,7 +2227,7 @@ const char * TAnal_mov::row_code(int row) const
|
|||||||
|
|
||||||
for (int i = 0; i < 2; i++)
|
for (int i = 0; i < 2; i++)
|
||||||
{
|
{
|
||||||
const TString& level = cfg.get("Level", NULL, i+1); // Legge il livello 1 o 2
|
const TString& level = cfg.get("Level", nullptr, i+1); // Legge il livello 1 o 2
|
||||||
|
|
||||||
if (level == "CDC") // Crea centro di costo
|
if (level == "CDC") // Crea centro di costo
|
||||||
{
|
{
|
||||||
@ -2344,7 +2352,7 @@ void TAnal_mov::saldo_set_reset(const TRectype& row, bool reset)
|
|||||||
TImporto curr_imp(imp_row.sezione(), texaco.get());
|
TImporto curr_imp(imp_row.sezione(), texaco.get());
|
||||||
key.add(es, 1); //sistema l'anno di esercizio nella chiave
|
key.add(es, 1); //sistema l'anno di esercizio nella chiave
|
||||||
TImporto* imp = (TImporto*)_saldi.objptr(key);
|
TImporto* imp = (TImporto*)_saldi.objptr(key);
|
||||||
if (imp == NULL)
|
if (imp == nullptr)
|
||||||
{
|
{
|
||||||
imp = new TImporto;
|
imp = new TImporto;
|
||||||
_saldi.add(key, imp);
|
_saldi.add(key, imp);
|
||||||
@ -2356,7 +2364,8 @@ void TAnal_mov::saldo_set_reset(const TRectype& row, bool reset)
|
|||||||
if (ca_ori_present(row))
|
if (ca_ori_present(row))
|
||||||
{
|
{
|
||||||
TImporto* impind = (TImporto*)_saldind.objptr(key);
|
TImporto* impind = (TImporto*)_saldind.objptr(key);
|
||||||
if (impind == NULL)
|
|
||||||
|
if (impind == nullptr)
|
||||||
{
|
{
|
||||||
impind = new TImporto;
|
impind = new TImporto;
|
||||||
_saldind.add(key, impind);
|
_saldind.add(key, impind);
|
||||||
@ -2371,7 +2380,8 @@ void TAnal_mov::saldo_set_reset(const TRectype& row, bool reset)
|
|||||||
else //saldo in un solo anno (caso standard)
|
else //saldo in un solo anno (caso standard)
|
||||||
{
|
{
|
||||||
TImporto* imp = (TImporto*)_saldi.objptr(key);
|
TImporto* imp = (TImporto*)_saldi.objptr(key);
|
||||||
if (imp == NULL)
|
|
||||||
|
if (imp == nullptr)
|
||||||
{
|
{
|
||||||
imp = new TImporto;
|
imp = new TImporto;
|
||||||
_saldi.add(key, imp);
|
_saldi.add(key, imp);
|
||||||
@ -2383,7 +2393,8 @@ void TAnal_mov::saldo_set_reset(const TRectype& row, bool reset)
|
|||||||
if (ca_ori_present(row))
|
if (ca_ori_present(row))
|
||||||
{
|
{
|
||||||
TImporto* impind = (TImporto*)_saldind.objptr(key);
|
TImporto* impind = (TImporto*)_saldind.objptr(key);
|
||||||
if (impind == NULL)
|
|
||||||
|
if (impind == nullptr)
|
||||||
{
|
{
|
||||||
impind = new TImporto;
|
impind = new TImporto;
|
||||||
_saldind.add(key, impind);
|
_saldind.add(key, impind);
|
||||||
@ -2483,8 +2494,9 @@ bool TAnal_mov::save_saldi(const int annoes)
|
|||||||
|
|
||||||
if (err == NOERR)
|
if (err == NOERR)
|
||||||
{
|
{
|
||||||
const char* fld_sez = NULL;
|
const char* fld_sez = nullptr;
|
||||||
const char* fld_val = NULL;
|
const char* fld_val = nullptr;
|
||||||
|
|
||||||
switch (tipo)
|
switch (tipo)
|
||||||
{
|
{
|
||||||
case 'P': fld_sez = SALDANA_SEZIONEP; fld_val = SALDANA_SALDOP; break;
|
case 'P': fld_sez = SALDANA_SEZIONEP; fld_val = SALDANA_SALDOP; break;
|
||||||
@ -2500,7 +2512,7 @@ bool TAnal_mov::save_saldi(const int annoes)
|
|||||||
|
|
||||||
const TImporto * ind = (const TImporto*) _saldind.objptr(key);
|
const TImporto * ind = (const TImporto*) _saldind.objptr(key);
|
||||||
|
|
||||||
if (ind != NULL)
|
if (ind != nullptr)
|
||||||
{
|
{
|
||||||
const TImporto& impind = *(const TImporto*)ind;
|
const TImporto& impind = *(const TImporto*)ind;
|
||||||
switch (tipo)
|
switch (tipo)
|
||||||
@ -2671,7 +2683,8 @@ int TAnal_mov::save_rmov_comp() const
|
|||||||
{
|
{
|
||||||
const TRectype* rmov_old = (TRectype*)itm;
|
const TRectype* rmov_old = (TRectype*)itm;
|
||||||
const TRectype* rmov_new = (TRectype*)new_rows.objptr(key);
|
const TRectype* rmov_new = (TRectype*)new_rows.objptr(key);
|
||||||
if (rmov_new == NULL)
|
|
||||||
|
if (rmov_new == nullptr)
|
||||||
rmov_old->remove(file);
|
rmov_old->remove(file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3296,10 +3309,12 @@ bool ca_extract_sheet_field(const TSheet_field& sheet, const int row, const int
|
|||||||
FOR_EACH_MASK_FIELD(mask_sheet, i, f) //giro sui campi della maschera di riga
|
FOR_EACH_MASK_FIELD(mask_sheet, i, f) //giro sui campi della maschera di riga
|
||||||
{
|
{
|
||||||
const TFieldref* fr = f->field(); //campo corrente della maschera
|
const TFieldref* fr = f->field(); //campo corrente della maschera
|
||||||
if (fr != NULL && f->is_edit()) //deve essere un campo di tipo edit
|
|
||||||
|
if (fr != nullptr && f->is_edit()) //deve essere un campo di tipo edit
|
||||||
{
|
{
|
||||||
TEdit_field& e = *(TEdit_field*)f; //visto che è di tipo edit può creare l'edit_field per farne la browse
|
TEdit_field& e = *(TEdit_field*)f; //visto che è di tipo edit può creare l'edit_field per farne la browse
|
||||||
if (e.browse() != NULL)
|
|
||||||
|
if (e.browse() != nullptr)
|
||||||
{
|
{
|
||||||
const TCursor& cur = *e.browse()->cursor();
|
const TCursor& cur = *e.browse()->cursor();
|
||||||
const int ln = cur.file().num(); //Allah! dal campo ricava il cursore sul file di numero ln
|
const int ln = cur.file().num(); //Allah! dal campo ricava il cursore sul file di numero ln
|
||||||
|
@ -13,8 +13,8 @@
|
|||||||
#include <relapp.h>
|
#include <relapp.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __CGLIB03_H
|
#ifndef __CGLIB_H
|
||||||
class TBill;
|
#include "../cg/cglib.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class TRecordset ;
|
class TRecordset ;
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
#include <rdoc.h>
|
#include <rdoc.h>
|
||||||
#include <pconti.h>
|
#include <pconti.h>
|
||||||
|
#include <utility.h>
|
||||||
|
|
||||||
#include "movana.h"
|
#include "movana.h"
|
||||||
#include "pconana.h"
|
#include "pconana.h"
|
||||||
@ -263,7 +264,7 @@ bool TPconana_recordset::valid_record(const TRelation& rel) const
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const TPconana_recordset* _current_recset = NULL;
|
static const TPconana_recordset* _current_recset = nullptr;
|
||||||
|
|
||||||
bool TPconana_recordset::pianoconti_filter(const TRelation* rel)
|
bool TPconana_recordset::pianoconti_filter(const TRelation* rel)
|
||||||
{ return _current_recset->valid_record(*rel); }
|
{ return _current_recset->valid_record(*rel); }
|
||||||
@ -365,12 +366,13 @@ size_t TAnal_report::get_usr_words(TString_array& words) const
|
|||||||
"CA_FORMAT_CONTO",
|
"CA_FORMAT_CONTO",
|
||||||
"CA_FORMAT_CMSCDC",
|
"CA_FORMAT_CMSCDC",
|
||||||
"CA_FORMAT_CONTO_DESCR",
|
"CA_FORMAT_CONTO_DESCR",
|
||||||
NULL
|
nullptr
|
||||||
};
|
};
|
||||||
|
|
||||||
((TAnal_report*)this)->_first_msg = words.items(); // Calcola il primo numero disponibile
|
((TAnal_report*)this)->_first_msg = words.items(); // Calcola il primo numero disponibile
|
||||||
size_t i;
|
size_t i;
|
||||||
for (i = 0; name[i] != NULL; i++)
|
|
||||||
|
for (i = 0; name[i] != nullptr; i++)
|
||||||
words.add(name[i]);
|
words.add(name[i]);
|
||||||
|
|
||||||
return words.items();
|
return words.items();
|
||||||
@ -1125,13 +1127,11 @@ TSaldi_cache::TSaldi_cache() : TCache(3881) // Numero primo
|
|||||||
|
|
||||||
const TSaldanal& ca_saldo(const TAnal_bill& bill, const TDate& dal, const TDate& al, word tipi)
|
const TSaldanal& ca_saldo(const TAnal_bill& bill, const TDate& dal, const TDate& al, word tipi)
|
||||||
{
|
{
|
||||||
static TSaldi_cache* cache = NULL;
|
static TSaldi_cache* cache = nullptr;
|
||||||
if (tipi == 0 && cache != NULL)
|
|
||||||
{
|
if (tipi == 0)
|
||||||
delete cache;
|
SAFE_DELETE(cache);
|
||||||
cache = NULL;
|
if (cache == nullptr)
|
||||||
}
|
|
||||||
if (cache == NULL)
|
|
||||||
cache = new TSaldi_cache;
|
cache = new TSaldi_cache;
|
||||||
return cache->saldo(bill, dal, al, tipi);
|
return cache->saldo(bill, dal, al, tipi);
|
||||||
}
|
}
|
||||||
@ -1168,7 +1168,8 @@ int TAnal_report_mask::create_sheet_fields(short sheet_id, int lf, int& y, short
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* fieldname = NULL;
|
const char* fieldname = nullptr;
|
||||||
|
|
||||||
switch(logic)
|
switch(logic)
|
||||||
{
|
{
|
||||||
case LF_CDC : fieldname = RMOVANA_CODCCOSTO; break;
|
case LF_CDC : fieldname = RMOVANA_CODCCOSTO; break;
|
||||||
@ -1207,7 +1208,8 @@ void TAnal_report_mask::create_sheet(short sheet_id)
|
|||||||
|
|
||||||
for (int i = 0; i < 2; i++)
|
for (int i = 0; i < 2; i++)
|
||||||
{
|
{
|
||||||
const TString& level = ini.get("Level", NULL, i+1); // Legge il livello 1 o 2
|
const TString& level = ini.get("Level", nullptr, i+1); // Legge il livello 1 o 2
|
||||||
|
|
||||||
if (level == "CDC") // Crea centro di costo
|
if (level == "CDC") // Crea centro di costo
|
||||||
{
|
{
|
||||||
if (fasinfo.parent() == LF_CDC)
|
if (fasinfo.parent() == LF_CDC)
|
||||||
@ -1255,7 +1257,8 @@ int TAnal_report_mask::get_row_bill(TSheet_field& sf, int r, TAnal_bill& bill)
|
|||||||
for (int level = 0; level <= 2; level++)
|
for (int level = 0; level <= 2; level++)
|
||||||
{
|
{
|
||||||
const TMultilevel_code_info* info = ca_multilevel_code_info_by_index(level);
|
const TMultilevel_code_info* info = ca_multilevel_code_info_by_index(level);
|
||||||
if (info == NULL)
|
|
||||||
|
if (info == nullptr)
|
||||||
break;
|
break;
|
||||||
TString20 code;
|
TString20 code;
|
||||||
for (int i = 0; i < info->levels(); i++)
|
for (int i = 0; i < info->levels(); i++)
|
||||||
@ -1280,7 +1283,8 @@ int TAnal_report_mask::set_row_bill(TSheet_field& sf, int r, const TAnal_bill& b
|
|||||||
for (int level = 0; level <= 2; level++)
|
for (int level = 0; level <= 2; level++)
|
||||||
{
|
{
|
||||||
const TMultilevel_code_info* info = ca_multilevel_code_info_by_index(level);
|
const TMultilevel_code_info* info = ca_multilevel_code_info_by_index(level);
|
||||||
if (info == NULL)
|
|
||||||
|
if (info == nullptr)
|
||||||
break;
|
break;
|
||||||
TToken_string code;
|
TToken_string code;
|
||||||
switch (info->logic())
|
switch (info->logic())
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
#include <report.h>
|
#include <report.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __CGLIB01_H
|
#ifndef __CGLIB_H
|
||||||
#include "../cg/cglib01.h"
|
#include "../cg/cglib.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
#include <modaut.h>
|
#include <modaut.h>
|
||||||
|
|
||||||
#include "cgsaldac.h"
|
#include "cgsaldac.h"
|
||||||
#include "cglib03.h"
|
#include "cglib.h"
|
||||||
#include "cg1300m.h"
|
#include "cg1300m.h"
|
||||||
|
|
||||||
#include <clifo.h>
|
#include <clifo.h>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include "cg1300.h"
|
#include "cg1300.h"
|
||||||
#include "cg1313.h"
|
#include "cg1313.h"
|
||||||
#include "cg2103.h"
|
#include "cglib.h"
|
||||||
|
|
||||||
#include <mov.h>
|
#include <mov.h>
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#include <recset.h>
|
#include <recset.h>
|
||||||
#include "cg1314.h"
|
#include "cg1314.h"
|
||||||
#include "cg1300n.h"
|
#include "cg1300n.h"
|
||||||
#include "cglib01.h"
|
#include "cglib.h"
|
||||||
|
|
||||||
bool TAgg_tcontoCF::create()
|
bool TAgg_tcontoCF::create()
|
||||||
{
|
{
|
||||||
|
1171
src/cg/cg1500.cpp
1171
src/cg/cg1500.cpp
File diff suppressed because it is too large
Load Diff
@ -7,15 +7,13 @@
|
|||||||
#define F_BILANCIO 105
|
#define F_BILANCIO 105
|
||||||
#define F_ANNO 106
|
#define F_ANNO 106
|
||||||
#define F_STAMPA 107
|
#define F_STAMPA 107
|
||||||
#define F_STAMPA1 108
|
|
||||||
#define F_DATALIM 109
|
#define F_DATALIM 109
|
||||||
#define F_TOTALI 110
|
#define F_TOTALI 110
|
||||||
#define F_CODICI 111
|
#define F_CODICI 111
|
||||||
#define F_SALDO 112
|
#define F_SALDO 112
|
||||||
#define F_VERIFICA 113
|
#define F_VERIFICA 113
|
||||||
#define F_STAMPAV 114
|
#define F_STAMPAV 114
|
||||||
#define F_DATADA 115
|
#define F_DATAINI 115
|
||||||
#define F_DATAA 116
|
|
||||||
#define F_SITUAZIONE 118
|
#define F_SITUAZIONE 118
|
||||||
#define F_STAMPAC 119
|
#define F_STAMPAC 119
|
||||||
#define F_ORDINAMENTO 120
|
#define F_ORDINAMENTO 120
|
||||||
@ -40,6 +38,7 @@
|
|||||||
#ifdef CONT_SEP
|
#ifdef CONT_SEP
|
||||||
#define F_CONTSEP 144
|
#define F_CONTSEP 144
|
||||||
#endif
|
#endif
|
||||||
|
#define F_COMPCR 145
|
||||||
|
|
||||||
#endif // __CG1500_H
|
#endif // __CG1500_H
|
||||||
|
|
||||||
|
@ -50,157 +50,106 @@ BEGIN
|
|||||||
CHECKTYPE NORMAL
|
CHECKTYPE NORMAL
|
||||||
WARNING "L'esercizio non esiste"
|
WARNING "L'esercizio non esiste"
|
||||||
ADD RUN cg0 -5 esc
|
ADD RUN cg0 -5 esc
|
||||||
MESSAGE EMPTY CLEAR,4@
|
|
||||||
MESSAGE ENABLE,4@
|
|
||||||
END
|
END
|
||||||
|
|
||||||
RADIOBUTTON F_BILANCIO 37
|
RADIOBUTTON F_BILANCIO 37
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 2 5 "@bTipo bilancio"
|
PROMPT 1 5 "@bTipo bilancio"
|
||||||
HELP "Indicare il tipo di bilancio da stampare"
|
HELP "Indicare il tipo di bilancio da stampare"
|
||||||
ITEM "1|Bilancio a sezioni contrapposte"
|
ITEM "1|Bilancio a sezioni contrapposte"
|
||||||
//MESSAGE HIDE,F_STAMPA1|RESET,F_STAMPA1|HIDE,F_VERIFICA|RESET,F_VERIFICA
|
|
||||||
//MESSAGE HIDE,F_STAMPAV|RESET,F_STAMPAV|HIDE,F_DATADA|RESET,F_DATADA
|
|
||||||
//MESSAGE HIDE,F_DATAA|RESET,F_DATAA|HIDE,F_SITUAZIONE|RESET,F_SITUAZIONE
|
|
||||||
//MESSAGE HIDE,F_ORDINAMENTO|RESET,F_ORDINAMENTO|HIDE,F_STAMPAC|RESET,F_STAMPAC
|
|
||||||
MESSAGE SHOW,1@
|
MESSAGE SHOW,1@
|
||||||
MESSAGE HIDE,2@|RESET,2@
|
MESSAGE HIDE,2@|RESET,2@
|
||||||
MESSAGE HIDE,96|HIDE,97|HIDE,98|HIDE,99
|
|
||||||
MESSAGE CLEAR,F_MODULO
|
MESSAGE CLEAR,F_MODULO
|
||||||
//MESSAGE SHOW,F_STAMPA|K_SPACE,F_STAMPA
|
MESSAGE CLEAR,F_QUADRATURA
|
||||||
ITEM "2|Bilancio di verifica"
|
ITEM "2|Bilancio di verifica"
|
||||||
//MESSAGE HIDE,F_STAMPA|RESET,F_STAMPA
|
|
||||||
//MESSAGE HIDE,F_DATALIM|RESET,F_DATALIM|HIDE,F_TOTALI|RESET,F_TOTALI
|
|
||||||
//MESSAGE HIDE,F_CODICI|RESET,F_CODICI|HIDE,F_SALDO|RESET,F_SALDO
|
|
||||||
//MESSAGE HIDE,F_STAMPAV|RESET,F_STAMPAV
|
|
||||||
MESSAGE HIDE,1@|RESET,1@
|
MESSAGE HIDE,1@|RESET,1@
|
||||||
MESSAGE SHOW,2@
|
MESSAGE SHOW,2@
|
||||||
//MESSAGE SHOW,F_VERIFICA|K_SPACE,F_VERIFICA|SHOW,F_STAMPA1|K_SPACE,F_STAMPA1
|
|
||||||
MESSAGE ENABLE,F_MODULO
|
MESSAGE ENABLE,F_MODULO
|
||||||
MESSAGE SHOW,96|SHOW,97|SHOW,98|SHOW,99
|
|
||||||
END
|
END
|
||||||
|
|
||||||
RADIOBUTTON F_STAMPA 28
|
RADIOBUTTON F_STAMPA 28
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 41 5 "@bTipo stampa"
|
PROMPT 41 5 "@bTipo stampa"
|
||||||
HELP "Indicare il tipo di stampa"
|
HELP "Indicare il tipo di stampa"
|
||||||
GROUP 1
|
|
||||||
ITEM "1|Per date limite"
|
ITEM "1|Per date limite"
|
||||||
MESSAGE SHOW,F_DATALIM|SHOW,F_TOTALI|SHOW,F_CODICI|SHOW,F_SALDO
|
MESSAGE SHOW,F_DATALIM
|
||||||
|
MESSAGE ENABLE,F_COMPCR
|
||||||
#ifdef CONT_SEP
|
#ifdef CONT_SEP
|
||||||
MESSAGE SHOW,F_CONTSEP
|
MESSAGE SHOW,F_CONTSEP
|
||||||
#endif
|
#endif
|
||||||
ITEM "2|All'ultima immissione"
|
ITEM "2|All'ultima immissione"
|
||||||
MESSAGE HIDE,F_DATALIM|RESET,F_DATALIM
|
MESSAGE HIDE,F_DATALIM|RESET,F_DATALIM
|
||||||
MESSAGE SHOW,F_TOTALI|SHOW,F_CODICI|SHOW,F_SALDO
|
MESSAGE CLEAR,F_COMPCR
|
||||||
|
MESSAGE CLEAR,F_QUADRATURA
|
||||||
#ifdef CONT_SEP
|
#ifdef CONT_SEP
|
||||||
MESSAGE HIDE,F_CONTSEP
|
MESSAGE HIDE,F_CONTSEP
|
||||||
#endif
|
#endif
|
||||||
END
|
END
|
||||||
|
|
||||||
RADIOBUTTON F_STAMPA1 28
|
DATE F_DATAINI
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 40 5 "@bTipo stampa"
|
PROMPT 2 9 "Data iniziale "
|
||||||
//FLAGS "G"
|
HELP "Data dall quale iniziare la stampa"
|
||||||
HELP "Indicare il tipo di stampa"
|
|
||||||
GROUP 2
|
|
||||||
ITEM "1|Per date limite"
|
|
||||||
MESSAGE SHOW,F_VERIFICA|SHOW,F_MODULO
|
|
||||||
#ifdef CONT_SEP
|
|
||||||
MESSAGE SHOW,F_CONTSEP
|
|
||||||
#endif
|
|
||||||
ITEM "2|All'ultima immissione"
|
|
||||||
MESSAGE SHOW,F_VERIFICA|SHOW,F_MODULO
|
|
||||||
MESSAGE COPY,F_STAMPA
|
|
||||||
#ifdef CONT_SEP
|
|
||||||
MESSAGE HIDE,F_CONTSEP
|
|
||||||
#endif
|
|
||||||
END
|
END
|
||||||
|
|
||||||
DATE F_DATALIM
|
DATE F_DATALIM
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 2 9 "Data limite "
|
PROMPT 42 9 "Data limite "
|
||||||
HELP "Data fino alla quale si vuole la stampa"
|
HELP "Data fino alla quale si vuole la stampa"
|
||||||
GROUP 1
|
|
||||||
END
|
END
|
||||||
|
|
||||||
BOOLEAN F_TOTALI
|
BOOLEAN F_TOTALI
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 33 9 "Non stampare totali per gruppo "
|
PROMPT 33 10 "Non stampare totali per gruppo "
|
||||||
HELP "Indicare se non si devono stampare i totali dei gruppi"
|
HELP "Indicare se non si devono stampare i totali dei gruppi"
|
||||||
GROUP 1
|
GROUP 1
|
||||||
END
|
END
|
||||||
|
|
||||||
|
BOOLEAN F_COMPCR
|
||||||
|
BEGIN
|
||||||
|
PROMPT 66 10 "Bilancio per competenza costi/ricavi "
|
||||||
|
HELP "Bilancio per competenza costi/ricavi"
|
||||||
|
FLAGS "D"
|
||||||
|
END
|
||||||
|
|
||||||
BOOLEAN F_CODICI
|
BOOLEAN F_CODICI
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 2 10 "Non stampare codici conti "
|
PROMPT 2 11 "Non stampare codici conti "
|
||||||
HELP "Indicare se non si devono stampare i codici dei conti"
|
HELP "Indicare se non si devono stampare i codici dei conti"
|
||||||
GROUP 1
|
GROUP 1
|
||||||
END
|
END
|
||||||
|
|
||||||
BOOLEAN F_SALDO
|
BOOLEAN F_SALDO
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 33 10 "Non stampare movimenti con saldo a zero "
|
PROMPT 33 11 "Non stampare movimenti con saldo a zero "
|
||||||
HELP "Indicare se non si devono stampare i movimenti con saldo nullo"
|
HELP "Indicare se non si devono stampare i movimenti con saldo nullo"
|
||||||
GROUP 1
|
GROUP 1
|
||||||
END
|
END
|
||||||
|
|
||||||
TEXT 96
|
|
||||||
BEGIN
|
|
||||||
PROMPT 2 9 "Dalla data competenza "
|
|
||||||
END
|
|
||||||
|
|
||||||
TEXT 97
|
|
||||||
BEGIN
|
|
||||||
PROMPT 38 9 "Alla data competenza "
|
|
||||||
END
|
|
||||||
|
|
||||||
TEXT 98
|
|
||||||
BEGIN
|
|
||||||
PROMPT 2 10 "Dalla data operazione "
|
|
||||||
END
|
|
||||||
|
|
||||||
TEXT 99
|
|
||||||
BEGIN
|
|
||||||
PROMPT 38 10 "Alla data operazione "
|
|
||||||
END
|
|
||||||
|
|
||||||
DATE F_DATADA
|
|
||||||
BEGIN
|
|
||||||
PROMPT 24 10 ""
|
|
||||||
HELP "Data dall quale iniziare la stampa"
|
|
||||||
GROUP 2
|
|
||||||
END
|
|
||||||
|
|
||||||
DATE F_DATAA
|
|
||||||
BEGIN
|
|
||||||
PROMPT 60 10 ""
|
|
||||||
GROUP 2
|
|
||||||
END
|
|
||||||
|
|
||||||
BOOLEAN F_NORMALI
|
BOOLEAN F_NORMALI
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 2 11 "Movimenti : Normali"
|
PROMPT 2 12 "Movimenti : Normali"
|
||||||
END
|
END
|
||||||
|
|
||||||
BOOLEAN F_PROVVM
|
BOOLEAN F_PROVVM
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 29 11 "Provvisori : Manuali"
|
PROMPT 29 12 "Provvisori : Manuali"
|
||||||
END
|
END
|
||||||
|
|
||||||
BOOLEAN F_PROVVB
|
BOOLEAN F_PROVVB
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 52 11 "Comp. costi/ricavi"
|
PROMPT 52 12 "Comp. costi/ricavi"
|
||||||
END
|
END
|
||||||
|
|
||||||
BOOLEAN F_PROVVC
|
BOOLEAN F_PROVVC
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 73 11 "Cespiti"
|
PROMPT 73 12 "Cespiti"
|
||||||
END
|
END
|
||||||
|
|
||||||
LIST F_MODULO 1 12
|
LIST F_MODULO 1 12
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 2 12 "Larghezza modulo di stampa "
|
PROMPT 2 13 "Larghezza modulo di stampa "
|
||||||
|
|
||||||
HELP "Indicare il numero di caratteri del foglio (larghezza)"
|
HELP "Indicare il numero di caratteri del foglio (larghezza)"
|
||||||
ITEM "1|132 colonne"
|
ITEM "1|132 colonne"
|
||||||
@ -209,13 +158,13 @@ END
|
|||||||
|
|
||||||
BOOLEAN F_QUADRATURA
|
BOOLEAN F_QUADRATURA
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 2 13 "Quadratura con Libro Giornale"
|
PROMPT 2 14 "Quadratura con Libro Giornale"
|
||||||
END
|
END
|
||||||
|
|
||||||
#ifdef CONT_SEP
|
#ifdef CONT_SEP
|
||||||
STRING F_CONTSEP 6
|
STRING F_CONTSEP 6
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 2 14 "Contabilità separata "
|
PROMPT 2 15 "Contabilità separata "
|
||||||
USE &NPENT
|
USE &NPENT
|
||||||
INPUT CODTAB F_CONTSEP
|
INPUT CODTAB F_CONTSEP
|
||||||
DISPLAY "Codice@6" CODTAB
|
DISPLAY "Codice@6" CODTAB
|
||||||
@ -234,13 +183,9 @@ RADIOBUTTON F_VERIFICA 27
|
|||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 2 1 "@bStampa bilancio di verifica "
|
PROMPT 2 1 "@bStampa bilancio di verifica "
|
||||||
HELP "Tipo di bilancio di verifica"
|
HELP "Tipo di bilancio di verifica"
|
||||||
GROUP 2
|
ITEM "1|Bilancio" MESSAGE SHOW,4@|HIDE,6@
|
||||||
ITEM "1|Bilancio"
|
ITEM "2|Saldi di mastro" MESSAGE SHOW,4@|HIDE,6@
|
||||||
MESSAGE SHOW,4@|HIDE,5@|HIDE,6@
|
ITEM "3|Situazione C/F" MESSAGE HIDE,4@|SHOW,6@
|
||||||
ITEM "2|Saldi di mastro"
|
|
||||||
MESSAGE SHOW,4@|HIDE,5@|HIDE,6@
|
|
||||||
ITEM "3|Situazione C/F"
|
|
||||||
MESSAGE HIDE,4@|SHOW,5@|SHOW,6@
|
|
||||||
END
|
END
|
||||||
|
|
||||||
RADIOBUTTON F_STAMPAC 36
|
RADIOBUTTON F_STAMPAC 36
|
||||||
@ -248,7 +193,8 @@ BEGIN
|
|||||||
PROMPT 34 1 "@bTipo stampa"
|
PROMPT 34 1 "@bTipo stampa"
|
||||||
ITEM "1|Conti movimentati"
|
ITEM "1|Conti movimentati"
|
||||||
ITEM "2|Conti con saldo diverso da zero"
|
ITEM "2|Conti con saldo diverso da zero"
|
||||||
GROUP 4
|
GROUP 6
|
||||||
|
FLAGS "H"
|
||||||
END
|
END
|
||||||
|
|
||||||
RADIOBUTTON F_STAMPAV 36
|
RADIOBUTTON F_STAMPAV 36
|
||||||
@ -257,8 +203,7 @@ BEGIN
|
|||||||
ITEM "1|Conti movimentati"
|
ITEM "1|Conti movimentati"
|
||||||
ITEM "2|Conti con saldo diverso da zero"
|
ITEM "2|Conti con saldo diverso da zero"
|
||||||
ITEM "3|Tutti i conti"
|
ITEM "3|Tutti i conti"
|
||||||
FLAGS "H"
|
GROUP 4
|
||||||
GROUP 6
|
|
||||||
END
|
END
|
||||||
|
|
||||||
BOOLEAN F_SEPARATOR
|
BOOLEAN F_SEPARATOR
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -9,7 +9,6 @@
|
|||||||
#define F_DATASTAMPA 103
|
#define F_DATASTAMPA 103
|
||||||
#define F_TIPOBIL 104
|
#define F_TIPOBIL 104
|
||||||
#define F_TIPOSTAMPA 105
|
#define F_TIPOSTAMPA 105
|
||||||
#define F_TIPOSTAMPA1 106
|
|
||||||
#define F_DATALIM 107
|
#define F_DATALIM 107
|
||||||
#define F_DATABILRAF 108
|
#define F_DATABILRAF 108
|
||||||
#define F_STAMPAINT 109
|
#define F_STAMPAINT 109
|
||||||
@ -18,7 +17,6 @@
|
|||||||
#define F_COMPETENZA 112
|
#define F_COMPETENZA 112
|
||||||
#define F_STAMPAMODULO 113
|
#define F_STAMPAMODULO 113
|
||||||
#define F_DATAINI 114
|
#define F_DATAINI 114
|
||||||
#define F_DATAFINE 115
|
|
||||||
#define F_ANNOESE 116
|
#define F_ANNOESE 116
|
||||||
#define F_ANNORAFFR 117
|
#define F_ANNORAFFR 117
|
||||||
#define F_NORMALI 118
|
#define F_NORMALI 118
|
||||||
@ -28,6 +26,7 @@
|
|||||||
#define F_PROVVM 122
|
#define F_PROVVM 122
|
||||||
#define F_PROVVB 123
|
#define F_PROVVB 123
|
||||||
#define F_PROVVC 124
|
#define F_PROVVC 124
|
||||||
|
#define F_COMPCR 125
|
||||||
|
|
||||||
#endif // __CG1600_H
|
#endif // __CG1600_H
|
||||||
|
|
||||||
|
@ -54,6 +54,8 @@ BEGIN
|
|||||||
OUTPUT F_ANNOESE CODTAB
|
OUTPUT F_ANNOESE CODTAB
|
||||||
FLAGS "RZ"
|
FLAGS "RZ"
|
||||||
CHECKTYPE NORMAL
|
CHECKTYPE NORMAL
|
||||||
|
MESSAGE EMPTY DISABLE,F_COMPCR
|
||||||
|
MESSAGE ENABLE,F_COMPCR
|
||||||
ADD RUN cg0 -5 esc
|
ADD RUN cg0 -5 esc
|
||||||
END
|
END
|
||||||
|
|
||||||
@ -75,10 +77,9 @@ BEGIN
|
|||||||
PROMPT 4 6 "Tipo bilancio "
|
PROMPT 4 6 "Tipo bilancio "
|
||||||
HELP "Indicare il tipo di bilancio da stampare"
|
HELP "Indicare il tipo di bilancio da stampare"
|
||||||
ITEM "1|Bilancio scalare"
|
ITEM "1|Bilancio scalare"
|
||||||
MESSAGE HIDE,F_TIPOSTAMPA1|RESET,F_TIPOSTAMPA1|SHOW,F_TIPOSTAMPA|K_SPACE,F_TIPOSTAMPA
|
|
||||||
MESSAGE SHOW,F_ANNORAFFR|SHOW,F_DATABILRAF|HIDE,F_SEPARATOR
|
MESSAGE SHOW,F_ANNORAFFR|SHOW,F_DATABILRAF|HIDE,F_SEPARATOR
|
||||||
|
MESSAGE CLEAR,F_QUADRATURA
|
||||||
ITEM "2|Bilancio di verifica"
|
ITEM "2|Bilancio di verifica"
|
||||||
MESSAGE HIDE,F_TIPOSTAMPA|RESET,F_TIPOSTAMPA|SHOW,F_TIPOSTAMPA1|K_SPACE,F_TIPOSTAMPA1
|
|
||||||
MESSAGE HIDE,F_ANNORAFFR|HIDE,F_DATABILRAF|SHOW,F_SEPARATOR
|
MESSAGE HIDE,F_ANNORAFFR|HIDE,F_DATABILRAF|SHOW,F_SEPARATOR
|
||||||
END
|
END
|
||||||
|
|
||||||
@ -87,79 +88,38 @@ BEGIN
|
|||||||
PROMPT 4 7 "Tipo stampa "
|
PROMPT 4 7 "Tipo stampa "
|
||||||
HELP "Indicare il tipo di stampa che si vuole avere"
|
HELP "Indicare il tipo di stampa che si vuole avere"
|
||||||
ITEM "1|Per data limite"
|
ITEM "1|Per data limite"
|
||||||
MESSAGE HIDE,F_STAMPAMODULO|HIDE,F_DATAINI|HIDE,F_DATAFINE
|
|
||||||
MESSAGE RESET,F_STAMPAMODULO|RESET,F_DATAINI|RESET,F_DATAFINE
|
|
||||||
MESSAGE SHOW,F_DATALIM|SHOW,F_STAMPAINT|SHOW,F_STAMPAMOV
|
MESSAGE SHOW,F_DATALIM|SHOW,F_STAMPAINT|SHOW,F_STAMPAMOV
|
||||||
|
MESSAGE ENABLE,F_COMPCR
|
||||||
ITEM "2|All'ultima immissione"
|
ITEM "2|All'ultima immissione"
|
||||||
MESSAGE HIDE,F_DATALIM|HIDE,F_STAMPAMODULO|HIDE,F_DATAINI|HIDE,F_DATAFINE
|
MESSAGE HIDE,F_DATALIM|RESET,F_DATALIM
|
||||||
MESSAGE RESET,F_STAMPAMODULO|RESET,F_DATAINI|RESET,F_DATALIM|RESET,F_DATAFINE|
|
|
||||||
MESSAGE SHOW,F_STAMPAINT|SHOW,F_STAMPACOD|SHOW,F_STAMPAMOV
|
MESSAGE SHOW,F_STAMPAINT|SHOW,F_STAMPACOD|SHOW,F_STAMPAMOV
|
||||||
END
|
MESSAGE CLEAR,F_COMPCR
|
||||||
|
|
||||||
LIST F_TIPOSTAMPA1 23
|
|
||||||
BEGIN
|
|
||||||
PROMPT 4 7 "Tipo stampa "
|
|
||||||
ITEM "1|Per data limite"
|
|
||||||
MESSAGE HIDE,F_DATALIM
|
|
||||||
MESSAGE RESET,F_DATALIM
|
|
||||||
MESSAGE SHOW,F_STAMPAINT|SHOW,F_STAMPACOD|SHOW,F_STAMPAMOV
|
|
||||||
MESSAGE SHOW,F_DATAINI|SHOW,F_DATAFINE|SHOW,F_STAMPAMODULO
|
|
||||||
ITEM "2|All'ultima immissione"
|
|
||||||
MESSAGE HIDE,F_DATALIM|HIDE,F_DATAINI|HIDE,F_DATAFINE
|
|
||||||
MESSAGE RESET,F_DATAINI|RESET,F_DATALIM|RESET,F_DATAFINE
|
|
||||||
MESSAGE SHOW,F_STAMPAINT|SHOW,F_STAMPACOD|SHOW,F_STAMPAMOV|SHOW,F_STAMPAMODULO
|
|
||||||
MESSAGE COPY,F_TIPOSTAMPA
|
|
||||||
END
|
|
||||||
|
|
||||||
TEXT 96
|
|
||||||
BEGIN
|
|
||||||
PROMPT 4 9 "Dalla data competenza "
|
|
||||||
END
|
|
||||||
|
|
||||||
TEXT 97
|
|
||||||
BEGIN
|
|
||||||
PROMPT 40 9 "Alla data competenza "
|
|
||||||
END
|
|
||||||
|
|
||||||
TEXT 98
|
|
||||||
BEGIN
|
|
||||||
PROMPT 4 9 "Dalla data operazione "
|
|
||||||
END
|
|
||||||
|
|
||||||
TEXT 99
|
|
||||||
BEGIN
|
|
||||||
PROMPT 40 9 "Alla data operazione "
|
|
||||||
END
|
|
||||||
DATE F_DATALIM
|
|
||||||
BEGIN
|
|
||||||
PROMPT 4 9 "Data limite "
|
|
||||||
HELP "Data fin alla quale si vuole la stampa"
|
|
||||||
FLAGS "G"
|
|
||||||
// VALIDATE NOT_EMPTY_FUNC
|
|
||||||
END
|
|
||||||
|
|
||||||
DATE F_DATABILRAF
|
|
||||||
BEGIN
|
|
||||||
PROMPT 36 9 "Data bil. da raffrontare "
|
|
||||||
HELP "Data d'esercizio da raffrontare con data limite"
|
|
||||||
FLAGS "G"
|
|
||||||
// VALIDATE NOT_EMPTY_FUNC
|
|
||||||
END
|
END
|
||||||
|
|
||||||
DATE F_DATAINI
|
DATE F_DATAINI
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 26 9 ""
|
PROMPT 4 8 "Data iniziale "
|
||||||
HELP "Data di inizio calcolo"
|
HELP "Data dalla quale si vuole iniziare la stampa"
|
||||||
FLAGS "G"
|
|
||||||
// VALIDATE NOT_EMPTY_FUNC
|
|
||||||
END
|
END
|
||||||
|
|
||||||
DATE F_DATAFINE
|
DATE F_DATALIM
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 62 9 ""
|
PROMPT 41 8 "Data limite "
|
||||||
HELP "Data di fine calcolo"
|
HELP "Data fin alla quale si vuole la stampa"
|
||||||
FLAGS "G"
|
END
|
||||||
// VALIDATE NOT_EMPTY_FUNC
|
|
||||||
|
DATE F_DATABILRAF
|
||||||
|
BEGIN
|
||||||
|
PROMPT 28 9 "Data bil. da raffrontare "
|
||||||
|
HELP "Data d'esercizio da raffrontare con data limite"
|
||||||
|
END
|
||||||
|
|
||||||
|
BOOLEAN F_COMPCR
|
||||||
|
BEGIN
|
||||||
|
PROMPT 4 10 "Bilancio per competenza costi/ricavi "
|
||||||
|
HELP "Bilancio per competenza costi/ricavi"
|
||||||
|
FLAGS "D"
|
||||||
|
GROUP 4
|
||||||
END
|
END
|
||||||
|
|
||||||
BOOLEAN F_STAMPAINT
|
BOOLEAN F_STAMPAINT
|
||||||
@ -172,49 +132,49 @@ END
|
|||||||
|
|
||||||
BOOLEAN F_STAMPACOD
|
BOOLEAN F_STAMPACOD
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 41 11 "Non stampare cod. conti"
|
PROMPT 4 12 "Non stampare cod. conti"
|
||||||
HELP "Indicare se non stampare i codici dei conti"
|
HELP "Indicare se non stampare i codici dei conti"
|
||||||
END
|
END
|
||||||
|
|
||||||
BOOLEAN F_STAMPAMOV
|
BOOLEAN F_STAMPAMOV
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 4 12 "Non stampare mov. con saldo a 0"
|
PROMPT 4 13 "Non stampare mov. con saldo a 0"
|
||||||
HELP "Indicare se non stampare i movimenti con saldo nullo"
|
HELP "Indicare se non stampare i movimenti con saldo nullo"
|
||||||
END
|
END
|
||||||
|
|
||||||
BOOLEAN F_NORMALI
|
BOOLEAN F_NORMALI
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 4 13 "Movimenti : Normali"
|
PROMPT 4 14 "Movimenti : Normali"
|
||||||
END
|
END
|
||||||
|
|
||||||
BOOLEAN F_PROVVM
|
BOOLEAN F_PROVVM
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 30 13 "Provvisori : Manuali"
|
PROMPT 30 14 "Provvisori : Manuali"
|
||||||
END
|
END
|
||||||
|
|
||||||
BOOLEAN F_PROVVB
|
BOOLEAN F_PROVVB
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 53 13 "Comp. costi/ricavi"
|
PROMPT 53 14 "Comp. costi/ricavi"
|
||||||
END
|
END
|
||||||
|
|
||||||
BOOLEAN F_PROVVC
|
BOOLEAN F_PROVVC
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 75 13 "Cespiti"
|
PROMPT 75 14 "Cespiti"
|
||||||
END
|
END
|
||||||
|
|
||||||
BOOLEAN F_STAMPAMODULO
|
BOOLEAN F_STAMPAMODULO
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 4 14 "Stampa su modulo 198"
|
PROMPT 4 15 "Stampa su modulo 198"
|
||||||
END
|
END
|
||||||
|
|
||||||
BOOLEAN F_QUADRATURA
|
BOOLEAN F_QUADRATURA
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 4 15 "Quadratura con Libro Giornale"
|
PROMPT 4 16 "Quadratura con Libro Giornale"
|
||||||
END
|
END
|
||||||
|
|
||||||
BOOLEAN F_SEPARATOR
|
BOOLEAN F_SEPARATOR
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 4 16 "Non stampare il separatre delle migliaia"
|
PROMPT 4 17 "Non stampare il separatre delle migliaia"
|
||||||
END
|
END
|
||||||
|
|
||||||
ENDPAGE
|
ENDPAGE
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#include "cg2101.h"
|
#include "cg2101.h"
|
||||||
#include "cg2103.h"
|
|
||||||
#include "cgsaldac.h"
|
#include "cgsaldac.h"
|
||||||
|
|
||||||
#include <diction.h>
|
#include <diction.h>
|
||||||
|
@ -1,12 +1,8 @@
|
|||||||
#ifndef __CG2101_H
|
#ifndef __CG2101_H
|
||||||
#define __CG2101_H
|
#define __CG2101_H
|
||||||
|
|
||||||
#ifndef __CG2103_H
|
#ifndef __CGLIB_H
|
||||||
#include "cg2103.h"
|
#include "cglib.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef __CGLIB03_H
|
|
||||||
#include "cglib03.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __RECARRAY_H
|
#ifndef __RECARRAY_H
|
||||||
|
@ -17,12 +17,8 @@
|
|||||||
#include "cgsaldac.h"
|
#include "cgsaldac.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __CGLIB02_H
|
#ifndef __CGLIB_H
|
||||||
#include "cglib02.h"
|
#include "cglib.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef __CG2101_H
|
|
||||||
#include "cg2101.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __CG2101_H
|
#ifndef __CG2101_H
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "cg2103.h"
|
#include "cglib.h"
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <diction.h>
|
#include <diction.h>
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
#define __CG2103_H
|
#define __CG2103_H
|
||||||
|
|
||||||
// Registri ed esercizi
|
// Registri ed esercizi
|
||||||
#ifndef __CGLIB01_H
|
#ifndef __CGLIB_H
|
||||||
#include "cglib01.h"
|
#include "cglib.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class TCausale : public TArray
|
class TCausale : public TArray
|
||||||
|
@ -13,9 +13,10 @@
|
|||||||
#include "../ca/calib02.h"
|
#include "../ca/calib02.h"
|
||||||
|
|
||||||
#include "cg2200.h"
|
#include "cg2200.h"
|
||||||
#include "cg2101.h"
|
//#include "cg2101.h"
|
||||||
#include "cglib01.h"
|
//#include "cglib01.h"
|
||||||
#include "cglib02.h"
|
//#include "cglib02.h"
|
||||||
|
#include "cglib.h"
|
||||||
|
|
||||||
class TProvvisori_msk : public TAutomask
|
class TProvvisori_msk : public TAutomask
|
||||||
{
|
{
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#include "applicat.h"
|
#include "applicat.h"
|
||||||
#include "automask.h"
|
#include "automask.h"
|
||||||
#include "cg2300a.h"
|
#include "cg2300a.h"
|
||||||
#include "cg2103.h"
|
#include "cglib.h"
|
||||||
#include "lffiles.h"
|
#include "lffiles.h"
|
||||||
#include "isam.h"
|
#include "isam.h"
|
||||||
#include "mov.h"
|
#include "mov.h"
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
// Esercizi contabili e registri IVA
|
// Esercizi contabili e registri IVA
|
||||||
|
|
||||||
#include "cglib01.h"
|
#include "cglib.h"
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
#include <diction.h>
|
#include <diction.h>
|
||||||
#include <mask.h>
|
#include <mask.h>
|
||||||
#include <tabutil.h>
|
|
||||||
#include <recarray.h>
|
|
||||||
#include <recset.h>
|
#include <recset.h>
|
||||||
#include <relation.h>
|
#include <relation.h>
|
||||||
|
#include <tabutil.h>
|
||||||
|
|
||||||
#include <clifo.h>
|
#include <clifo.h>
|
||||||
#include <comuni.h>
|
#include <comuni.h>
|
||||||
@ -18,7 +18,457 @@
|
|||||||
#include <rmoviva.h>
|
#include <rmoviva.h>
|
||||||
#include <rmov.h>
|
#include <rmov.h>
|
||||||
|
|
||||||
#include "comuni.h"
|
#include <comuni.h>
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////
|
||||||
|
// Causale
|
||||||
|
///////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
TCausale::TCausale(const char* cod, int year)
|
||||||
|
: TArray(12), _rec(LF_CAUSALI),
|
||||||
|
_iva(iva_errata), _corrisp(false),
|
||||||
|
_sezione_clifo(' '), _provvisorio(' '),
|
||||||
|
_sezione_ritsoc(' '), _sezione_ritfis(' '), _sezione_revcharge(' '),
|
||||||
|
_regolarizzazione(false)
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
if (cod && *cod)
|
||||||
|
read(cod, year);
|
||||||
|
if (soloiva())
|
||||||
|
{
|
||||||
|
TCursor c(new TRelation(LF_CAUSALI));
|
||||||
|
int items = c.items();
|
||||||
|
|
||||||
|
for (c = 0L; c.pos() < items && !_regolarizzazione; ++c)
|
||||||
|
_regolarizzazione = c.curr().get(CAU_CODCAUREG) == codice();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TCausale::reread()
|
||||||
|
{
|
||||||
|
const TString4 cod = codice();
|
||||||
|
|
||||||
|
if (cod.full())
|
||||||
|
{
|
||||||
|
const int year = _reg.year();
|
||||||
|
|
||||||
|
if (year > 0)
|
||||||
|
return read(cod, year);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Legge le righe della causale attualmente selezionata sulla maschera
|
||||||
|
bool TCausale::read(const char* cod, int year)
|
||||||
|
{
|
||||||
|
_rec.zero(); // Delete header
|
||||||
|
destroy(); // Delete all rows
|
||||||
|
_iva = iva_errata; // Delete misc info
|
||||||
|
_sezione_clifo = _sezione_ritsoc = _provvisorio = ' ';
|
||||||
|
_corrisp = false;
|
||||||
|
|
||||||
|
if (cod && *cod > ' ')
|
||||||
|
{
|
||||||
|
_rec = cache().get(LF_CAUSALI, cod);
|
||||||
|
if (_rec.empty())
|
||||||
|
return false;
|
||||||
|
|
||||||
|
_provvisorio = _rec.get_char(CAU_PROVV);
|
||||||
|
TLocalisamfile rcaus(LF_RCAUSALI);
|
||||||
|
rcaus.put(CAU_CODCAUS, cod);
|
||||||
|
rcaus.put(CAU_NRIGA, 0);
|
||||||
|
|
||||||
|
int err;
|
||||||
|
for (err = rcaus.read(_isgteq); // Find first line
|
||||||
|
err == NOERR && rcaus.get(CAU_CODCAUS) == cod;
|
||||||
|
err = rcaus.next()) // Read next line
|
||||||
|
{
|
||||||
|
const int riga = rcaus.get_int(CAU_NRIGA);
|
||||||
|
add(rcaus.curr(), riga);
|
||||||
|
}
|
||||||
|
|
||||||
|
const TString4 codreg(_rec.get(CAU_REG));
|
||||||
|
const bool ok = _reg.read(codreg, year); // Read register
|
||||||
|
if (!ok && codreg.not_empty())
|
||||||
|
return error_box(FR("Non esiste il registro '%s' del %d"),
|
||||||
|
(const char*)codreg, year);
|
||||||
|
calcIVA();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_iva = nessuna_iva; // Clear IVA data
|
||||||
|
_corrisp = false;
|
||||||
|
_reg.read("", year);
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
TBill& TCausale::bill(int num, TBill& conto) const
|
||||||
|
{
|
||||||
|
const TRectype* rec = row(num);
|
||||||
|
|
||||||
|
if (rec != nullptr)
|
||||||
|
conto.set(rec->get_int(RCA_GRUPPO), rec->get_int(RCA_CONTO),
|
||||||
|
rec->get_long(RCA_SOTTOCONTO), rec->get_char(RCA_TIPOCF));
|
||||||
|
return conto;
|
||||||
|
}
|
||||||
|
|
||||||
|
const char* TCausale::cod_desc_agg(int num) const
|
||||||
|
{
|
||||||
|
const TRectype* rec = row(num);
|
||||||
|
if (rec)
|
||||||
|
return rec->get(RCA_CODDESC);
|
||||||
|
return ""; // ho problemi con ? :
|
||||||
|
}
|
||||||
|
|
||||||
|
const char* TCausale::desc_agg(int num) const
|
||||||
|
{
|
||||||
|
const char* cod = cod_desc_agg(num);
|
||||||
|
if (cod && *cod)
|
||||||
|
return cache().get("%DPN", cod, "S0");
|
||||||
|
return ""; // ho problemi con ? :
|
||||||
|
}
|
||||||
|
|
||||||
|
const char* TCausale::descrizione() const
|
||||||
|
{
|
||||||
|
return _rec.get(CAU_DESCR);
|
||||||
|
}
|
||||||
|
|
||||||
|
const char* TCausale::codice() const
|
||||||
|
{
|
||||||
|
return _rec.get(CAU_CODCAUS);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TCausale::data_doc() const
|
||||||
|
{
|
||||||
|
return _rec.get_bool(CAU_DATADOC);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TCausale::num_doc() const
|
||||||
|
{
|
||||||
|
return _rec.get_bool(CAU_NUMDOC);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TCausale::apertura() const
|
||||||
|
{
|
||||||
|
return _rec.get_char(CAU_MOVAP) == 'A';
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TCausale::chiusura() const
|
||||||
|
{
|
||||||
|
return _rec.get_char(CAU_MOVAP) == 'C';
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TCausale::sezionale() const
|
||||||
|
{
|
||||||
|
return _rec.get_bool(CAU_MOVSEZ);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TCausale::valuta() const
|
||||||
|
{
|
||||||
|
return _rec.get_bool(CAU_MOVVAL);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TCausale::intra() const
|
||||||
|
{
|
||||||
|
return _rec.get_bool(CAU_INTRACOM);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TCausale::valintra() const
|
||||||
|
{
|
||||||
|
return _rec.get_bool(CAU_VALINTRA);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TCausale::soloiva() const
|
||||||
|
{
|
||||||
|
return _rec.get_bool(CAU_SOLOIVA);
|
||||||
|
}
|
||||||
|
|
||||||
|
int TCausale::regime_speciale() const
|
||||||
|
{
|
||||||
|
return _rec.get_int(CAU_REGSPIVA);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TCausale::regolarizzazione() const
|
||||||
|
{
|
||||||
|
return _regolarizzazione;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TCausale::ril_fat_em_ric() const
|
||||||
|
{
|
||||||
|
return _rec.get_bool(CAU_RILFTEMRI);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TCausale::datareg_prec() const
|
||||||
|
{
|
||||||
|
return _rec.get_bool(CAU_DATAREGPR);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TCausale::reverse_charge() const
|
||||||
|
{
|
||||||
|
const int rsi = regime_speciale();
|
||||||
|
return (rsi >= 13 && rsi <= 18) || rsi == 50 || rsi == 51; // Reverse charge!
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TCausale::reverse_charge_pubb() const
|
||||||
|
{
|
||||||
|
const int rsi = regime_speciale();
|
||||||
|
return (rsi >= 13 && rsi <= 19) || rsi == 50 || rsi == 51; // Reverse charge!
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TCausale::esclusione_allegati() const
|
||||||
|
{
|
||||||
|
return _rec.get_bool(CAU_ALLEG);
|
||||||
|
}
|
||||||
|
|
||||||
|
const TString& TCausale::causale_collegata() const
|
||||||
|
{
|
||||||
|
return _rec.get(CAU_CODCAUSIM);
|
||||||
|
}
|
||||||
|
|
||||||
|
const TString& TCausale::causale_reg_iva() const
|
||||||
|
{
|
||||||
|
return _rec.get(CAU_CODCAUREG);
|
||||||
|
}
|
||||||
|
|
||||||
|
const TString& TCausale::tipo_doc() const
|
||||||
|
{
|
||||||
|
return _rec.get(CAU_TIPODOC);
|
||||||
|
}
|
||||||
|
|
||||||
|
tipo_movimento TCausale::tipomov() const
|
||||||
|
{
|
||||||
|
return tipo_movimento(_rec.get_int(CAU_TIPOMOV));
|
||||||
|
}
|
||||||
|
|
||||||
|
const TString& TCausale::tipodoc() const
|
||||||
|
{
|
||||||
|
return _rec.get(CAU_TIPODOC);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TCausale::saldaconto(const TDate& datareg) const
|
||||||
|
{
|
||||||
|
bool yes = tipomov() > 0;
|
||||||
|
if (yes && datareg.ok())
|
||||||
|
{
|
||||||
|
static TDate _data_sal = ini_get_string(CONFIG_DITTA, "cg", "DatSal");
|
||||||
|
yes = datareg >= _data_sal;
|
||||||
|
}
|
||||||
|
return yes;
|
||||||
|
}
|
||||||
|
|
||||||
|
int TCausale::link_m770() const
|
||||||
|
{
|
||||||
|
return _rec.get_int(CAU_M770);
|
||||||
|
}
|
||||||
|
|
||||||
|
char TCausale::link_cespiti() const
|
||||||
|
{
|
||||||
|
return _rec.get_char(CAU_COLLCESP);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TCausale::link_analitica() const
|
||||||
|
{
|
||||||
|
return _rec.get_bool(CAU_MOVIND);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TCausale::link_industriale() const
|
||||||
|
{
|
||||||
|
return _rec.exist(CAU_MOVCGIND) && _rec.get_bool(CAU_MOVCGIND);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TCausale::ok() const
|
||||||
|
{
|
||||||
|
return iva() != iva_errata;
|
||||||
|
}
|
||||||
|
|
||||||
|
char TCausale::sezione(int riga, bool low_level) const
|
||||||
|
{
|
||||||
|
const TRectype* rec = row(riga);
|
||||||
|
char sez = rec ? toupper(rec->get_char(RCA_SEZIONE)) : ' ';
|
||||||
|
if (sez <= ' ' && !low_level) // Guess section on tipocf
|
||||||
|
{
|
||||||
|
const TRectype* uno = row(1);
|
||||||
|
char tipocf = uno ? toupper(uno->get_char(RCA_TIPOCF)) : ' ';
|
||||||
|
if (tipocf <= ' ')
|
||||||
|
tipocf = (iva() == iva_vendite) ? 'C' : 'F'; // Guess tipocf on IVA
|
||||||
|
sez = (tipocf == 'C') ? 'D' : 'A';
|
||||||
|
}
|
||||||
|
return sez;
|
||||||
|
}
|
||||||
|
|
||||||
|
char TCausale::sezione_clifo() const
|
||||||
|
{
|
||||||
|
if (_sezione_clifo <= ' ')
|
||||||
|
(char&)_sezione_clifo = sezione(1);
|
||||||
|
return _sezione_clifo;
|
||||||
|
}
|
||||||
|
|
||||||
|
char TCausale::sezione_ritsoc() const
|
||||||
|
{
|
||||||
|
if (_sezione_ritsoc <= ' ')
|
||||||
|
{
|
||||||
|
const tipo_movimento tm = tipomov();
|
||||||
|
(char&)_sezione_ritsoc = sezione(tm <= tm_nota_credito ? RIGA_RITENUTE_SOCIALI : RIGA_PAG_RITSOC, true);
|
||||||
|
if (_sezione_ritsoc < 'A')
|
||||||
|
(char&)_sezione_ritsoc = (tm <= tm_nota_credito ? sezione_clifo() : (sezione_clifo() == 'D' ? 'A' : 'D'));
|
||||||
|
}
|
||||||
|
return _sezione_ritsoc;
|
||||||
|
}
|
||||||
|
|
||||||
|
char TCausale::sezione_ritfis() const
|
||||||
|
{
|
||||||
|
if (_sezione_ritfis == ' ')
|
||||||
|
{
|
||||||
|
const tipo_movimento tm = tipomov();
|
||||||
|
(char&)_sezione_ritfis = sezione(tm <= tm_nota_credito ? RIGA_RITENUTE_FISCALI : RIGA_PAG_RITFIS, true); // Fatture o Pagamenti
|
||||||
|
if (_sezione_ritfis < 'A')
|
||||||
|
(char&)_sezione_ritfis = (tm <= tm_nota_credito ? sezione_clifo() : (sezione_clifo() == 'D' ? 'A' : 'D'));
|
||||||
|
}
|
||||||
|
return _sezione_ritfis;
|
||||||
|
}
|
||||||
|
|
||||||
|
char TCausale::sezione_revcharge() const
|
||||||
|
{
|
||||||
|
if (_sezione_revcharge <= ' ')
|
||||||
|
{
|
||||||
|
(char&)_sezione_revcharge = sezione(RIGA_REVERSE_CHARGE);
|
||||||
|
if (_sezione_revcharge < 'A')
|
||||||
|
(char&)_sezione_revcharge = sezione_clifo();
|
||||||
|
}
|
||||||
|
return _sezione_revcharge;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TCausale::fattura_in_ritardo() const
|
||||||
|
{
|
||||||
|
return _rec.get_bool(CAU_RITFATT);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void TCausale::calcIVA()
|
||||||
|
{
|
||||||
|
TipoIVA i = nessuna_iva; // Tipo IVA di default
|
||||||
|
bool c = false; // Corrispettivi di default
|
||||||
|
|
||||||
|
const TString& td = tipo_doc();
|
||||||
|
if (td.full())
|
||||||
|
{
|
||||||
|
const TRectype& tpd = cache().get("%TPD", td);
|
||||||
|
if (!tpd.empty())
|
||||||
|
{
|
||||||
|
i = (TipoIVA)tpd.get_int("I0"); // IVA acquisti, vendite, generica
|
||||||
|
const TipoIVA ri = _reg.iva();
|
||||||
|
if (i == iva_generica)
|
||||||
|
i = ri;
|
||||||
|
if (i != ri)
|
||||||
|
{
|
||||||
|
error_box(FR("Tipo documento '%s' incompatibile con tipo registro"), (const char*)td);
|
||||||
|
i = iva_errata;
|
||||||
|
}
|
||||||
|
c = tpd.get_bool("B0"); // B0 flag corrispettivi
|
||||||
|
}
|
||||||
|
else
|
||||||
|
error_box(FR("Tipo documento sconosciuto: '%s'"), (const char*)td);
|
||||||
|
}
|
||||||
|
_iva = i;
|
||||||
|
_corrisp = c;
|
||||||
|
}
|
||||||
|
|
||||||
|
const TString& TCausale::compatible(const TCausale& c) const
|
||||||
|
{
|
||||||
|
const char* err = nullptr;
|
||||||
|
|
||||||
|
if (sezionale() != c.sezionale())
|
||||||
|
err = TR("il segnale di sezionale");
|
||||||
|
if (intra() != c.intra())
|
||||||
|
err = TR("la gestione dei movimenti intra");
|
||||||
|
if (valuta() != c.valuta())
|
||||||
|
err = TR("la gestione valuta");
|
||||||
|
if (valintra() != c.valintra())
|
||||||
|
err = TR("la gestione valuta intracomunitaria");
|
||||||
|
if (corrispettivi() != c.corrispettivi())
|
||||||
|
err = TR("la gestione dei corrispettivi");
|
||||||
|
if (iva() != c.iva())
|
||||||
|
err = TR("il tipo di IVA");
|
||||||
|
if (tipomov() != c.tipomov())
|
||||||
|
err = TR("il tipo di movimento");
|
||||||
|
|
||||||
|
if (err != nullptr)
|
||||||
|
{
|
||||||
|
TString& msg = get_tmp_string();
|
||||||
|
|
||||||
|
msg.format(FR("Causale incompatibile per %s"), err);
|
||||||
|
return msg;
|
||||||
|
}
|
||||||
|
|
||||||
|
return EMPTY_STRING;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TCausale::IVA2bill(const TCodiceIVA& iva, TBill& c) const
|
||||||
|
{
|
||||||
|
const TString& tipo = iva.tipo();
|
||||||
|
|
||||||
|
if (tipo.not_empty())
|
||||||
|
{
|
||||||
|
if (tipo == "ES") bill(5, c); else
|
||||||
|
if (tipo == "NI") bill(6, c); else
|
||||||
|
if (tipo == "NS") bill(7, c);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!c.ok())
|
||||||
|
bill(2, c);
|
||||||
|
|
||||||
|
const int spric = c.tipo_cr();
|
||||||
|
if (spric == 2 || spric == 3)
|
||||||
|
{
|
||||||
|
const TString& td = tipo_doc();
|
||||||
|
if (td == "FV" || td == "NC")
|
||||||
|
c.tipo_cr(4);
|
||||||
|
}
|
||||||
|
|
||||||
|
return c.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////
|
||||||
|
// TCache_causali
|
||||||
|
///////////////////////////////////////////////////////////
|
||||||
|
class TCache_causale : public TCache
|
||||||
|
{
|
||||||
|
protected:
|
||||||
|
virtual TObject* key2obj(const char* key);
|
||||||
|
|
||||||
|
public:
|
||||||
|
const TCausale & caus(const char* key, const int anno = 0);
|
||||||
|
|
||||||
|
TCache_causale() : TCache() { }
|
||||||
|
virtual ~TCache_causale() { }
|
||||||
|
};
|
||||||
|
|
||||||
|
TObject* TCache_causale::key2obj(const char* key)
|
||||||
|
{
|
||||||
|
TToken_string k(key);
|
||||||
|
TString4 cod;
|
||||||
|
k.get(0, cod);
|
||||||
|
cod.trim();
|
||||||
|
int year; k.get(1, year);
|
||||||
|
return new TCausale(cod, year);
|
||||||
|
}
|
||||||
|
|
||||||
|
const TCausale & TCache_causale::caus(const char* key, const int anno)
|
||||||
|
{
|
||||||
|
TToken_string k(key);
|
||||||
|
k.add(anno);
|
||||||
|
return (const TCausale &)*objptr(k);
|
||||||
|
}
|
||||||
|
|
||||||
|
const TCausale & cached_causale(const char * codcaus, int year)
|
||||||
|
{
|
||||||
|
HIDDEN TCache_causale __cache_causale;
|
||||||
|
|
||||||
|
return __cache_causale.caus(codcaus, year);
|
||||||
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
// Gestione Tabella esercizi
|
// Gestione Tabella esercizi
|
||||||
|
@ -16,6 +16,7 @@ protected: // TSortable
|
|||||||
virtual int compare(const TSortable& s) const;
|
virtual int compare(const TSortable& s) const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
bool ok() const { return _codice != 0; }
|
||||||
int codice() const { return _codice; }
|
int codice() const { return _codice; }
|
||||||
const TDate& inizio() const { return _inizio; }
|
const TDate& inizio() const { return _inizio; }
|
||||||
const TDate& fine() const { return _fine; }
|
const TDate& fine() const { return _fine; }
|
||||||
@ -58,6 +59,7 @@ public:
|
|||||||
int last() const;
|
int last() const;
|
||||||
int last_mag() const;
|
int last_mag() const;
|
||||||
bool exist(int codice) const;
|
bool exist(int codice) const;
|
||||||
|
bool exist(const TDate & data) const { return exist(date2esc(data)); }
|
||||||
bool code2range(int codice, TDate& dal, TDate& al) const;
|
bool code2range(int codice, TDate& dal, TDate& al) const;
|
||||||
|
|
||||||
TEsercizi_contabili();
|
TEsercizi_contabili();
|
||||||
@ -65,6 +67,8 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
TEsercizi_contabili& esercizi();
|
TEsercizi_contabili& esercizi();
|
||||||
|
inline const TEsercizio & esercizio(const TDate & data) { return esercizi().esercizio(data); }
|
||||||
|
inline const TEsercizio& esercizio(int codice) { return esercizi().esercizio(codice); };
|
||||||
|
|
||||||
enum TipoIVA
|
enum TipoIVA
|
||||||
{
|
{
|
||||||
|
@ -5,15 +5,13 @@
|
|||||||
//
|
//
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "cglib01.h"
|
#include "cglib.h"
|
||||||
#include "cglib02.h"
|
|
||||||
|
|
||||||
#include <diction.h>
|
#include <diction.h>
|
||||||
#include <progind.h>
|
#include <progind.h>
|
||||||
#include <relation.h>
|
#include <relation.h>
|
||||||
|
|
||||||
#include <causali.h>
|
#include <causali.h>
|
||||||
#include <mov.h>
|
|
||||||
#include <pconti.h>
|
#include <pconti.h>
|
||||||
#include <rmov.h>
|
#include <rmov.h>
|
||||||
#include <saldi.h>
|
#include <saldi.h>
|
||||||
@ -26,12 +24,28 @@
|
|||||||
// Cerca l'esercizio precedente di EseCorr
|
// Cerca l'esercizio precedente di EseCorr
|
||||||
// Se EseCorr e' già il primo ritorna 0
|
// Se EseCorr e' già il primo ritorna 0
|
||||||
//
|
//
|
||||||
|
|
||||||
HIDDEN int EsePre(const int EseCorr)
|
HIDDEN int EsePre(const int EseCorr)
|
||||||
{
|
{
|
||||||
TEsercizi_contabili esc;
|
TEsercizi_contabili esc;
|
||||||
return esc.pred(EseCorr);
|
return esc.pred(EseCorr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HIDDEN const char * date_field_name(TTipo_data tipo) { return __date_field_name[tipo]; }
|
||||||
|
|
||||||
|
const TDate get_date_mov(const TRectype & mov, TTipo_data tipo_data)
|
||||||
|
{
|
||||||
|
TDate data = mov.get_date(date_field_name(tipo_data));
|
||||||
|
|
||||||
|
if (tipo_data == CostiRicavi && !data.ok())
|
||||||
|
data = mov.get_date(date_field_name(Competenza));
|
||||||
|
#ifdef DBG
|
||||||
|
else
|
||||||
|
int i = 1;
|
||||||
|
#endif
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
|
||||||
// aep e' l'esercizio precedente
|
// aep e' l'esercizio precedente
|
||||||
TSaldi_list::TSaldi_list(int gr, int co, int aec, int aep_par)
|
TSaldi_list::TSaldi_list(int gr, int co, int aec, int aep_par)
|
||||||
{
|
{
|
||||||
@ -183,24 +197,10 @@ real TSaldo::calcola_saldo_iniziale(int g,int c,long s,int indbil, int provv)
|
|||||||
return _saldo_iniziale;
|
return _saldo_iniziale;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TSaldo::leggi_mov(long nr)
|
|
||||||
{
|
|
||||||
const TRectype& mov = cache().get(LF_MOV, nr);
|
|
||||||
const bool ok = !mov.empty();
|
|
||||||
if (ok)
|
|
||||||
{
|
|
||||||
_codcaus = mov.get(MOV_CODCAUS);
|
|
||||||
_datareg = mov.get(MOV_DATAREG);
|
|
||||||
_provv = mov.get(MOV_PROVVIS); // _provv.trim();
|
|
||||||
_datacomp = mov.get(MOV_DATACOMP);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
NFCHECK("Testata assente: %ld", nr);
|
|
||||||
return ok;
|
|
||||||
}
|
|
||||||
|
|
||||||
//per bilancio scalare (ovvero a sezioni contrapposte) per data limite
|
//per bilancio scalare (ovvero a sezioni contrapposte) per data limite
|
||||||
bool TSaldo::data_limite_bilancio(int bilancio, int g, int c, long s, const TDate& data_inf,
|
bool TSaldo::data_limite_bilancio(TTipo_data tipo_data, int g, int c, long s, const TDate& data_inf,
|
||||||
const TDate& data_sup, int indbil, int provv, const char* filter)
|
const TDate& data_sup, int indbil, int provv, const char* filter)
|
||||||
{
|
{
|
||||||
_saldo_iniziale = ZERO;
|
_saldo_iniziale = ZERO;
|
||||||
@ -227,37 +227,26 @@ bool TSaldo::data_limite_bilancio(int bilancio, int g, int c, long s, const TDat
|
|||||||
|
|
||||||
for (cur = 0L; cur.pos() < items; ++cur)
|
for (cur = 0L; cur.pos() < items; ++cur)
|
||||||
{
|
{
|
||||||
const long num_reg = rmov.get_long(RMV_NUMREG);
|
const long numreg = rmov.get_long(RMV_NUMREG);
|
||||||
|
const TRectype& mov = cache().get(LF_MOV, numreg);
|
||||||
|
const TDate data = get_date_mov(mov, tipo_data);
|
||||||
|
|
||||||
if (!leggi_mov(num_reg)) // Leggo la testata
|
if (data.ok() && data >= data_inf && data <= data_sup)
|
||||||
continue; // Evita righe orfane!
|
|
||||||
|
|
||||||
TDate data_mov;
|
|
||||||
if (bilancio == DataLimite)
|
|
||||||
data_mov = _datacomp;
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if (_annoes == 0)
|
const TString8 codcaus = mov.get(MOV_CODCAUS);
|
||||||
data_mov = _datareg;
|
|
||||||
else
|
|
||||||
data_mov = _datacomp;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (data_mov < data_inf || data_mov > data_sup)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
// "Se la causale del movimento e' di chiusura,
|
// "Se la causale del movimento e' di chiusura,
|
||||||
// o di apertura il movimento non va considerato"
|
// o di apertura il movimento non va considerato"
|
||||||
if (_codcaus.full())
|
if (codcaus.full())
|
||||||
{
|
{
|
||||||
const TString& movap = _causali_apertura.decode(_codcaus);
|
const TString& movap = _causali_apertura.decode(codcaus);
|
||||||
if (movap == "C")
|
if (movap == "C")
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (((provv & 0x1) && _provv.blank()) ||
|
const TString4 tipoprovv = mov.get(MOV_PROVVIS);
|
||||||
((provv & 0x2) && ((_provv == "P") || (_provv == "N"))) ||
|
|
||||||
((provv & 0x4) && (_provv == "B")) || ((provv & 0x8) && (_provv == "C")))
|
if (check_mov(provv, tipoprovv))
|
||||||
{
|
{
|
||||||
const char sezione = rmov.get_char(RMV_SEZIONE);
|
const char sezione = rmov.get_char(RMV_SEZIONE);
|
||||||
const real importo = rmov.get_real(RMV_IMPORTO);
|
const real importo = rmov.get_real(RMV_IMPORTO);
|
||||||
@ -273,7 +262,7 @@ bool TSaldo::data_limite_bilancio(int bilancio, int g, int c, long s, const TDat
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#ifdef DBG
|
#ifdef DBG
|
||||||
xvtil_statbar_refresh();
|
xvtil_statbar_refresh();
|
||||||
#endif
|
#endif
|
||||||
@ -465,7 +454,7 @@ bool TSaldo::ultima_immissione_bilancio(int annoes,int g,int c,long s,int indbil
|
|||||||
return _movimentato;
|
return _movimentato;
|
||||||
}
|
}
|
||||||
|
|
||||||
const real& TSaldo::saldo_periodo(int g, int c, long s, const TDate& dal, const TDate& al,
|
const real& TSaldo::saldo_periodo(TTipo_data tipo_data, int g, int c, long s, const TDate& dal, const TDate& al,
|
||||||
int indbil, int provv)
|
int indbil, int provv)
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -524,24 +513,26 @@ const real& TSaldo::saldo_periodo(int g, int c, long s, const TDate& dal, const
|
|||||||
{
|
{
|
||||||
p.addstatus(1L);
|
p.addstatus(1L);
|
||||||
|
|
||||||
const long num_reg = rmov.get_long(RMV_NUMREG);
|
|
||||||
const real importo = rmov.get_real(RMV_IMPORTO);
|
const real importo = rmov.get_real(RMV_IMPORTO);
|
||||||
|
|
||||||
if (!importo.is_zero())
|
if (importo != ZERO)
|
||||||
|
{
|
||||||
|
const long numreg = rmov.get_long(RMV_NUMREG);
|
||||||
|
const TRectype& mov = cache().get(LF_MOV, numreg);
|
||||||
|
const TDate data = get_date_mov(mov, tipo_data);
|
||||||
|
const TString8 codcaus = mov.get(MOV_CODCAUS);
|
||||||
|
const TString4 tipoprovv = mov.get(MOV_PROVVIS);
|
||||||
|
const TString& movap = _causali_apertura.decode(codcaus);
|
||||||
|
|
||||||
|
if (!((provv & 0x1) || tipoprovv.empty()) && movap.blank()) // ????
|
||||||
{
|
{
|
||||||
const char sezione = rmov.get_char(RMV_SEZIONE);
|
const char sezione = rmov.get_char(RMV_SEZIONE);
|
||||||
// "Se la causale del movimento e' di chiusura,
|
|
||||||
// o di apertura il movimento non va considerato"
|
|
||||||
leggi_mov(num_reg);
|
|
||||||
const TString& movap = _causali_apertura.decode(_codcaus);
|
|
||||||
|
|
||||||
if (!((provv & 0x1) || _provv.empty()) && movap.blank()) // ????
|
if (data.ok() && data >= dal && data <= al)
|
||||||
{
|
|
||||||
if (_datacomp >= dal && _datacomp <= al)
|
|
||||||
{
|
{
|
||||||
|
const int m = data.month() - 1;
|
||||||
|
|
||||||
_movimentato = true;
|
_movimentato = true;
|
||||||
const int m = _datacomp.month() - 1;
|
|
||||||
|
|
||||||
if (sezione == 'D')
|
if (sezione == 'D')
|
||||||
{
|
{
|
||||||
_prg_dare += importo;
|
_prg_dare += importo;
|
||||||
@ -554,7 +545,7 @@ const real& TSaldo::saldo_periodo(int g, int c, long s, const TDate& dal, const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (_datacomp >= inizio && _datacomp < dal)
|
if (data >= inizio && data < dal)
|
||||||
{
|
{
|
||||||
if (sezione == 'D')
|
if (sezione == 'D')
|
||||||
_saldo_iniziale += importo;
|
_saldo_iniziale += importo;
|
||||||
@ -616,7 +607,7 @@ bool TSaldo::prg_saldo(int annoes, TConto& conto, real& prgdare, real& prgavere,
|
|||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TSaldo::saldo_cont_sep(int g, int c, long s, const int codes, TDate al,
|
bool TSaldo::saldo_cont_sep(TTipo_data tipo_data, int g, int c, long s, const int codes, TDate al,
|
||||||
int indbil, const char * cont_sep, int provv, bool chiusura, bool first)
|
int indbil, const char * cont_sep, int provv, bool chiusura, bool first)
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -679,17 +670,14 @@ bool TSaldo::saldo_cont_sep(int g, int c, long s, const int codes, TDate al,
|
|||||||
{
|
{
|
||||||
if (( cont_sep != nullptr && *cont_sep == '\0') || mov.get(MOV_CONTSEP) == cont_sep)
|
if (( cont_sep != nullptr && *cont_sep == '\0') || mov.get(MOV_CONTSEP) == cont_sep)
|
||||||
{
|
{
|
||||||
_codcaus = mov.get(MOV_CODCAUS);
|
const TString8 codcaus = mov.get(MOV_CODCAUS);
|
||||||
_datareg = mov.get(MOV_DATAREG);
|
const TString4 tipoprovv = mov.get(MOV_PROVVIS);
|
||||||
_provv = mov.get(MOV_PROVVIS);
|
const TDate data = get_date_mov(mov, tipo_data);
|
||||||
_datacomp = mov.get(MOV_DATACOMP);
|
const TString& movap = _causali_apertura.decode(codcaus);
|
||||||
const TString& movap = _causali_apertura.decode(_codcaus);
|
|
||||||
|
|
||||||
if (((provv & 0x1) && _provv.empty()) ||
|
if (check_mov(provv, tipoprovv))
|
||||||
((provv & 0x2) && (_provv == "P" || _provv == "N")) ||
|
|
||||||
(provv & 0x4) && (_provv == "B") || (provv & 0x8) && (_provv == "C"))
|
|
||||||
{
|
{
|
||||||
if (_datacomp >= inizio && _datacomp <= al)
|
if (data.ok() && data >= inizio && data <= al)
|
||||||
{
|
{
|
||||||
if (movap.blank())
|
if (movap.blank())
|
||||||
{
|
{
|
||||||
|
@ -11,6 +11,23 @@
|
|||||||
#include "../cg/cglib01.h"
|
#include "../cg/cglib01.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __MOV_H
|
||||||
|
#include <mov.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define PROVV "P"
|
||||||
|
#define PROVV_NON_CANC "N"
|
||||||
|
#define PROVV_BIL "B"
|
||||||
|
#define PROVV_CESP "C"
|
||||||
|
|
||||||
|
static const char * __date_field_name[] = { MOV_DATAREG, MOV_DATACOMP, MOV_DATACOMPCR };
|
||||||
|
inline bool check_mov(const int tipomovprovv, const TString & provvis)
|
||||||
|
{
|
||||||
|
return ((tipomovprovv & 0x1) && provvis.blank()) ||
|
||||||
|
((tipomovprovv & 0x2) && ((provvis == PROVV) || (provvis == PROVV_NON_CANC))) ||
|
||||||
|
((tipomovprovv & 0x4) && (provvis == PROVV_BIL)) ||
|
||||||
|
((tipomovprovv & 0x8) && (provvis == PROVV_CESP));
|
||||||
|
}
|
||||||
#ifndef __CG2103_H
|
#ifndef __CG2103_H
|
||||||
class TCausale;
|
class TCausale;
|
||||||
#endif
|
#endif
|
||||||
@ -71,8 +88,11 @@ public:
|
|||||||
TRectype* saldi() const;
|
TRectype* saldi() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum tipobil { DataLimite=1, UltimaImmissione };
|
enum tipobil { DataLimite = 1, UltimaImmissione };
|
||||||
enum tiposal { normale, apertura, chiusura };
|
enum tiposal { normale, apertura, chiusura };
|
||||||
|
enum TTipo_data { Registrazione, Competenza, CostiRicavi};
|
||||||
|
|
||||||
|
const TDate get_date_mov(const TRectype & mov, TTipo_data tipo_data);
|
||||||
|
|
||||||
class TSaldo : public TObject
|
class TSaldo : public TObject
|
||||||
{
|
{
|
||||||
@ -90,10 +110,6 @@ class TSaldo : public TObject
|
|||||||
int _annoes;
|
int _annoes;
|
||||||
int _indbil;
|
int _indbil;
|
||||||
TDate _inizioEs, _fineEs;
|
TDate _inizioEs, _fineEs;
|
||||||
TString4 _codcaus;
|
|
||||||
TDate _datareg;
|
|
||||||
TDate _datacomp;
|
|
||||||
TString _provv;
|
|
||||||
|
|
||||||
bool _prec;
|
bool _prec;
|
||||||
bool _movimentato;
|
bool _movimentato;
|
||||||
@ -129,9 +145,9 @@ public:
|
|||||||
|
|
||||||
bool ultima_immissione_bilancio(int annoes, int g,int c,long s,int indbil,int provv = 0x1,bool saldo_chiusura = true);
|
bool ultima_immissione_bilancio(int annoes, int g,int c,long s,int indbil,int provv = 0x1,bool saldo_chiusura = true);
|
||||||
bool ultima_immissione_verifica(int annoes, int g,int c,long s,int indbil,int provv = 0x1);
|
bool ultima_immissione_verifica(int annoes, int g,int c,long s,int indbil,int provv = 0x1);
|
||||||
bool data_limite_bilancio(int annoes,int g,int c,long s,const TDate& data_inf,const TDate& data_suo,int indbil, int provv = 0x1, const char* filter = nullptr);
|
bool data_limite_bilancio(TTipo_data tipo_data, int g, int c, long s, const TDate& data_inf, const TDate& data_suo, int indbil, int provv = 0x1, const char* filter = nullptr);
|
||||||
const real& saldo_periodo(int g, int c, long s, const TDate& dal, const TDate& al, int indbil, int provv = 0x1);
|
const real& saldo_periodo(TTipo_data tipo_data, int g, int c, long s, const TDate& dal, const TDate& al, int indbil, int provv = 0x1);
|
||||||
bool saldo_cont_sep(int g, int c, long s, const int codes, TDate al, int indbil, const char * cont_sep, int provv = 0x1, bool chiusura = false, bool first = true);
|
bool saldo_cont_sep(TTipo_data tipo_data, int g, int c, long s, const int codes, TDate al, int indbil, const char * cont_sep, int provv = 0x1, bool chiusura = false, bool first = true);
|
||||||
bool ricerca_progr_prec(int, int, int, long);
|
bool ricerca_progr_prec(int, int, int, long);
|
||||||
|
|
||||||
real saldofin_esprec(int,int,int,long,bool saldo_chiusura = FALSE, int provv = 0x1);
|
real saldofin_esprec(int,int,int,long,bool saldo_chiusura = FALSE, int provv = 0x1);
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#include "cg2103.h"
|
#include "cglib.h"
|
||||||
#include "cglib03.h"
|
|
||||||
|
|
||||||
#include <diction.h>
|
#include <diction.h>
|
||||||
#include <dongle.h>
|
#include <dongle.h>
|
||||||
@ -108,7 +107,6 @@ int analizza_IVA(const real& imptot, const real& ivatot, const real perc_ind,
|
|||||||
iva_ind = ZERO;
|
iva_ind = ZERO;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return flag;
|
return flag;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -458,6 +456,13 @@ bool TDociva_array::add_riga(const char* _descrdociva, const real& _importo,cons
|
|||||||
return found;
|
return found;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief
|
||||||
|
* \param tipodoc
|
||||||
|
* \param descrdoc
|
||||||
|
* \param totdoc
|
||||||
|
* \return
|
||||||
|
*/
|
||||||
bool TTipodoc_array::add_riga(const char* tipodoc, const char* descrdoc, const real& totdoc)
|
bool TTipodoc_array::add_riga(const char* tipodoc, const char* descrdoc, const real& totdoc)
|
||||||
{
|
{
|
||||||
bool found = false;
|
bool found = false;
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
#ifndef __CGLIB03_H
|
#ifndef __CGLIB03_H
|
||||||
#define __CGLIB03_H
|
#define __CGLIB03_H
|
||||||
|
|
||||||
#ifndef __CG2103_H
|
#ifndef __CGLIB_H
|
||||||
#include "cg2103.h"
|
#include "cglib.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __TABUTIL_H
|
#ifndef __TABUTIL_H
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#define _CRT_SECURE_NO_WARNINGS
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
#include "cglib04.h"
|
#include "cglib.h"
|
||||||
#include "cgsaldac.h"
|
#include "cgsaldac.h"
|
||||||
|
|
||||||
#include <codeb.h> // RED ALERT!
|
#include <codeb.h> // RED ALERT!
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#include "cglib.h"
|
#include "cglib.h"
|
||||||
#include "cg2101.h"
|
|
||||||
#include "cgsaldac.h"
|
#include "cgsaldac.h"
|
||||||
|
|
||||||
|
|
||||||
@ -375,6 +374,23 @@ real TMovimento_contabile::imposta(const char * codiva) const
|
|||||||
// Aggiustamento movimenti rovinati o convertiti male
|
// Aggiustamento movimenti rovinati o convertiti male
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
class TConti_array : private TAssoc_array
|
||||||
|
{
|
||||||
|
public: // TObject
|
||||||
|
virtual bool ok() const { return items() != 0; }
|
||||||
|
|
||||||
|
public:
|
||||||
|
bool add(const TBill& conto, const real& importo);
|
||||||
|
real importo(const TBill& conto);
|
||||||
|
bool remove(const TBill& conto);
|
||||||
|
|
||||||
|
bool add_iva(bool det, const real& importo);
|
||||||
|
real importo_iva(bool det);
|
||||||
|
bool remove_iva(bool det);
|
||||||
|
|
||||||
|
TConti_array() {}
|
||||||
|
virtual ~TConti_array() {}
|
||||||
|
};
|
||||||
|
|
||||||
bool TConti_array::add(const TBill& conto, const real& importo)
|
bool TConti_array::add(const TBill& conto, const real& importo)
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include <relation.h>
|
#include <relation.h>
|
||||||
|
|
||||||
#include "cgsaldac.h"
|
#include "cgsaldac.h"
|
||||||
#include "cg2103.h"
|
#include "cglib.h"
|
||||||
|
|
||||||
#include <doc.h>
|
#include <doc.h>
|
||||||
#include <mov.h>
|
#include <mov.h>
|
||||||
@ -462,9 +462,9 @@ char TRiga_scadenze::calcola_abbuono(int p, TImporto& abbuono, bool update)
|
|||||||
if (sign != 0)
|
if (sign != 0)
|
||||||
{
|
{
|
||||||
if (sign > 0)
|
if (sign > 0)
|
||||||
ap = abbuono.sezione() == 'D' ? 'A' : 'P';
|
ap = abbuono.sezione() == 'D' ? cgrowtype_abbattivo : cgrowtype_abbpassivo;
|
||||||
else
|
else
|
||||||
ap = abbuono.sezione() == 'D' ? 'P' : 'A';
|
ap = abbuono.sezione() == 'D' ? cgrowtype_abbpassivo : cgrowtype_abbattivo;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
#include <recarray.h>
|
#include <recarray.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __CGLIB01_H
|
#ifndef __CGLIB_H
|
||||||
#include "../cg/cglib01.h"
|
#include "cglib.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __PARTITE_H
|
#ifndef __PARTITE_H
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#include "f1lib.h"
|
#include "f1lib.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "cg2103.h"
|
#include "cglib.h"
|
||||||
#include "cg2102.h"
|
|
||||||
#include "execp.h"
|
#include "execp.h"
|
||||||
#include "cfven.h"
|
#include "cfven.h"
|
||||||
#include "reputils.h"
|
#include "reputils.h"
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include "fe0100a.h"
|
#include "fe0100a.h"
|
||||||
#include "felib.h"
|
#include "felib.h"
|
||||||
|
|
||||||
#include "../cg/cg2103.h"
|
#include "cglib.h"
|
||||||
|
|
||||||
#include <alleg.h>
|
#include <alleg.h>
|
||||||
#include <anafis.h>
|
#include <anafis.h>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#include <reputils.h>
|
#include <reputils.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "cg2103.h"
|
#include "cglib.h"
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
#define SQL_FLD "sql/"
|
#define SQL_FLD "sql/"
|
||||||
|
@ -48,5 +48,6 @@
|
|||||||
#define MAG_LOTTORIOR "LOTTORIOR" // lotto minimo
|
#define MAG_LOTTORIOR "LOTTORIOR" // lotto minimo
|
||||||
#define MAG_LOTTOIRIOR "LOTTOIRIOR" // lotto incrementale di riordino
|
#define MAG_LOTTOIRIOR "LOTTOIRIOR" // lotto incrementale di riordino
|
||||||
#define MAG_GIORNIRIOR "GIORNIRIOR"
|
#define MAG_GIORNIRIOR "GIORNIRIOR"
|
||||||
|
#define MAG_UBICAZ "UBICAZ"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1927,8 +1927,8 @@ TArticolo_conai::TArticolo_conai(const TString& codart)
|
|||||||
TString msg; msg.format("Errore nome campo: Articolo %s - Sottocategoria %s", (const char *)_codart, (const char *)con);
|
TString msg; msg.format("Errore nome campo: Articolo %s - Sottocategoria %s", (const char *)_codart, (const char *)con);
|
||||||
|
|
||||||
message_box(msg);
|
message_box(msg);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -98,13 +98,13 @@ protected:
|
|||||||
void elabora(const TMask& mask) const;
|
void elabora(const TMask& mask) const;
|
||||||
bool scrivi_csv(const TRectype& prima_riga, TDichiarazione_CONAI_csv_recordset& csv,
|
bool scrivi_csv(const TRectype& prima_riga, TDichiarazione_CONAI_csv_recordset& csv,
|
||||||
const TCONAI_class conai_specie, const TString & sottoclass,
|
const TCONAI_class conai_specie, const TString & sottoclass,
|
||||||
const TString& conai_codart, TLog_report &log) const;
|
const TString& conai_codsp, TLog_report &log) const;
|
||||||
void scrivi_csv_doc_con_riga_generata(const TDocumento& doc, const int n_riga_generata,
|
void scrivi_csv_doc_con_riga_generata(const TDocumento& doc, const int n_riga_generata,
|
||||||
TDichiarazione_CONAI_csv_recordset& csv, const TCONAI_class conai_specie,
|
TDichiarazione_CONAI_csv_recordset& csv, const TCONAI_class conai_specie,
|
||||||
const TString & sottoclass, TLog_report &log) const;
|
const TString & sottoclass, const TString& conai_codsp, TLog_report &log) const;
|
||||||
void scrivi_csv_doc_speciale(const TDocumento& doc, TDichiarazione_CONAI_csv_recordset& csv,
|
void scrivi_csv_doc_rettifiche(const TDocumento& doc, TDichiarazione_CONAI_csv_recordset& csv,
|
||||||
const TCONAI_class conai_specie, const TString & sottoclass,
|
const TCONAI_class conai_specie, const TString & sottoclass,
|
||||||
const TString& conai_codart) const;
|
const TString& conai_codsp) const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool create();
|
virtual bool create();
|
||||||
@ -150,7 +150,7 @@ real TDichiarazione_CONAI::clifo_conai(const TCli_for& clifo, const TCONAI_class
|
|||||||
void TDichiarazione_CONAI::scrivi_csv_doc_con_riga_generata(const TDocumento& doc, const int n_riga_generata,
|
void TDichiarazione_CONAI::scrivi_csv_doc_con_riga_generata(const TDocumento& doc, const int n_riga_generata,
|
||||||
TDichiarazione_CONAI_csv_recordset& csv,
|
TDichiarazione_CONAI_csv_recordset& csv,
|
||||||
const TCONAI_class conai_specie, const TString & sottoclass,
|
const TCONAI_class conai_specie, const TString & sottoclass,
|
||||||
TLog_report &log) const
|
const TString& conai_codsp, TLog_report &log) const
|
||||||
{
|
{
|
||||||
//prende dalla riga i dati che gli servono per fare vari calcoli
|
//prende dalla riga i dati che gli servono per fare vari calcoli
|
||||||
const TRiga_documento& riga_generata = doc[n_riga_generata];
|
const TRiga_documento& riga_generata = doc[n_riga_generata];
|
||||||
@ -181,14 +181,20 @@ void TDichiarazione_CONAI::scrivi_csv_doc_con_riga_generata(const TDocumento& do
|
|||||||
FOR_EACH_PHYSICAL_RDOC(doc, j, rdoc)
|
FOR_EACH_PHYSICAL_RDOC(doc, j, rdoc)
|
||||||
{
|
{
|
||||||
//quantita' totale conai (A + B) sul report
|
//quantita' totale conai (A + B) sul report
|
||||||
|
|
||||||
for (int k = 1; k <= FR_CMAX; k++)
|
for (int k = 1; k <= FR_CMAX; k++)
|
||||||
{
|
{
|
||||||
const TString4 sottocat = rdoc->get(conai_sottocat_name(k));
|
const TString4 sottocat = rdoc->get(conai_sottocat_name(k));
|
||||||
|
|
||||||
if (sottocat == sottoclass)
|
if (sottocat == sottoclass)
|
||||||
{
|
{
|
||||||
const real n = rdoc->calc_conai_qta(k);
|
real n;
|
||||||
|
|
||||||
|
if (rdoc->is_merce())
|
||||||
|
n = rdoc->calc_conai_qta(k);
|
||||||
|
else
|
||||||
|
if (rdoc->is_spese() && !rdoc->is_generata() && rdoc->get(RDOC_CODART) == conai_codsp)
|
||||||
|
n = rdoc->get_real(RDOC_QTA);
|
||||||
if (!n.is_zero())
|
if (!n.is_zero())
|
||||||
{
|
{
|
||||||
real * q = (real *)qta_AB_conai.objptr(j);
|
real * q = (real *)qta_AB_conai.objptr(j);
|
||||||
@ -287,6 +293,7 @@ void TDichiarazione_CONAI::scrivi_csv_doc_con_riga_generata(const TDocumento& do
|
|||||||
csv.set(12, qta_esente_conai);
|
csv.set(12, qta_esente_conai);
|
||||||
|
|
||||||
//valore totale contributo (BxC) sul report
|
//valore totale contributo (BxC) sul report
|
||||||
|
|
||||||
const real totale_contrib_conai = qta_assoggettata_conai * prezzo;
|
const real totale_contrib_conai = qta_assoggettata_conai * prezzo;
|
||||||
csv.set(14, TVariant(totale_contrib_conai));
|
csv.set(14, TVariant(totale_contrib_conai));
|
||||||
|
|
||||||
@ -309,9 +316,9 @@ void TDichiarazione_CONAI::scrivi_csv_doc_con_riga_generata(const TDocumento& do
|
|||||||
|
|
||||||
//riempie recordset con le righe CONAI del documento che NON ha una riga generata CONAI; trattasi di documenti..
|
//riempie recordset con le righe CONAI del documento che NON ha una riga generata CONAI; trattasi di documenti..
|
||||||
//..farlocchi costruiti ad arte per correggere le vaccate dei rompiscatolifici
|
//..farlocchi costruiti ad arte per correggere le vaccate dei rompiscatolifici
|
||||||
void TDichiarazione_CONAI::scrivi_csv_doc_speciale(const TDocumento& doc, TDichiarazione_CONAI_csv_recordset& csv,
|
void TDichiarazione_CONAI::scrivi_csv_doc_rettifiche(const TDocumento& doc, TDichiarazione_CONAI_csv_recordset& csv,
|
||||||
const TCONAI_class conai_specie, const TString & sottoclass,
|
const TCONAI_class conai_specie, const TString & sottoclass,
|
||||||
const TString& conai_codart) const
|
const TString& conai_codsp) const
|
||||||
{
|
{
|
||||||
//scopre se il doc e' una NAC
|
//scopre se il doc e' una NAC
|
||||||
const bool is_nac = doc.is_nota_credito();
|
const bool is_nac = doc.is_nota_credito();
|
||||||
@ -333,8 +340,25 @@ void TDichiarazione_CONAI::scrivi_csv_doc_speciale(const TDocumento& doc, TDichi
|
|||||||
for (int j = 1; j <= FR_CMAX; j++)
|
for (int j = 1; j <= FR_CMAX; j++)
|
||||||
{
|
{
|
||||||
TString4 sottocat = rdoc->get(conai_sottocat_name(j));
|
TString4 sottocat = rdoc->get(conai_sottocat_name(j));
|
||||||
const real peso = rdoc->get_real(conai_peso_name(j));
|
|
||||||
|
|
||||||
|
if (sottocat == sottoclass)
|
||||||
|
{
|
||||||
|
real peso;
|
||||||
|
real prezzo;
|
||||||
|
const TRectype& spp = cache().get("SPP", conai_codsp);
|
||||||
|
|
||||||
|
if (rdoc->is_merce())
|
||||||
|
{
|
||||||
|
prezzo = spp.get_real("R10");
|
||||||
|
|
||||||
|
peso = rdoc->get_real(conai_peso_name(j));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
if (rdoc->is_spese() && !rdoc->is_generata() && rdoc->get(RDOC_CODART) == conai_codsp)
|
||||||
|
{
|
||||||
|
peso = rdoc->get_real(RDOC_QTA);
|
||||||
|
prezzo = rdoc->get_real(RDOC_PREZZO); //va preso dalla riga stessa
|
||||||
|
}
|
||||||
if (sottocat == sottoclass && (peso != ZERO))
|
if (sottocat == sottoclass && (peso != ZERO))
|
||||||
{
|
{
|
||||||
//puo' capitare che la sottocategoria sia stata troncata alla categoria
|
//puo' capitare che la sottocategoria sia stata troncata alla categoria
|
||||||
@ -360,9 +384,7 @@ void TDichiarazione_CONAI::scrivi_csv_doc_speciale(const TDocumento& doc, TDichi
|
|||||||
csv.set(8, TVariant(sottocat.left(2))); //codice materiale conai (es. carta, legno...)
|
csv.set(8, TVariant(sottocat.left(2))); //codice materiale conai (es. carta, legno...)
|
||||||
csv.set(9, TVariant(sottocat)); //sottocodice materiale (es. carta imballo, busta...)
|
csv.set(9, TVariant(sottocat)); //sottocodice materiale (es. carta imballo, busta...)
|
||||||
|
|
||||||
const TRectype& spp = cache().get("SPP", conai_codart);
|
|
||||||
//prezzo
|
//prezzo
|
||||||
const real prezzo = spp.get("R10"); // rdoc.get_real(RDOC_PREZZO); //va preso dalla riga stessa
|
|
||||||
csv.set(10, TVariant(prezzo));
|
csv.set(10, TVariant(prezzo));
|
||||||
|
|
||||||
//um conai
|
//um conai
|
||||||
@ -371,8 +393,10 @@ void TDichiarazione_CONAI::scrivi_csv_doc_speciale(const TDocumento& doc, TDichi
|
|||||||
|
|
||||||
//quantita' totale conai (A + B) sul report (le NAC hanno segno rovesciato)
|
//quantita' totale conai (A + B) sul report (le NAC hanno segno rovesciato)
|
||||||
real qta_tot_conai = rdoc->get_real(RDOC_QTA);
|
real qta_tot_conai = rdoc->get_real(RDOC_QTA);
|
||||||
|
const real qta_unitaria_conai = rdoc->get_real(conai_peso_name(j));
|
||||||
|
|
||||||
qta_tot_conai *= rdoc->get_real(conai_peso_name(j));
|
if (qta_unitaria_conai != ZERO)
|
||||||
|
qta_tot_conai *= qta_unitaria_conai;
|
||||||
if (is_nac)
|
if (is_nac)
|
||||||
qta_tot_conai = -qta_tot_conai;
|
qta_tot_conai = -qta_tot_conai;
|
||||||
csv.set(15, TVariant(qta_tot_conai));
|
csv.set(15, TVariant(qta_tot_conai));
|
||||||
@ -413,6 +437,7 @@ void TDichiarazione_CONAI::scrivi_csv_doc_speciale(const TDocumento& doc, TDichi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -420,13 +445,20 @@ void TDichiarazione_CONAI::scrivi_csv_doc_speciale(const TDocumento& doc, TDichi
|
|||||||
//..il metodo adatto
|
//..il metodo adatto
|
||||||
bool TDichiarazione_CONAI::scrivi_csv(const TRectype& prima_riga, TDichiarazione_CONAI_csv_recordset& csv,
|
bool TDichiarazione_CONAI::scrivi_csv(const TRectype& prima_riga, TDichiarazione_CONAI_csv_recordset& csv,
|
||||||
const TCONAI_class conai_specie, const TString & sottoclass,
|
const TCONAI_class conai_specie, const TString & sottoclass,
|
||||||
const TString& conai_codart, TLog_report &log) const
|
const TString& conai_codsp, TLog_report &log) const
|
||||||
{
|
{
|
||||||
//crea la testata delle righedoc per poter fare vari calcoli (e intanto il tempo se ne va...)
|
//crea la testata delle righedoc per poter fare vari calcoli (e intanto il tempo se ne va...)
|
||||||
const int anno = prima_riga.get_int(RDOC_ANNO);
|
const int anno = prima_riga.get_int(RDOC_ANNO);
|
||||||
const TString4 codnum = prima_riga.get(RDOC_CODNUM);
|
const TString4 codnum = prima_riga.get(RDOC_CODNUM);
|
||||||
const long numdoc = prima_riga.get_long(RDOC_NDOC);
|
const long numdoc = prima_riga.get_long(RDOC_NDOC);
|
||||||
|
|
||||||
|
#ifdef DBG
|
||||||
|
//check di debug
|
||||||
|
if (numdoc == 1451)
|
||||||
|
const int cazzone = 1;
|
||||||
|
if (numdoc == 5L)
|
||||||
|
int i = 1;
|
||||||
|
#endif
|
||||||
//documento della prima riga e quindi anche di tutte le altre righe conai
|
//documento della prima riga e quindi anche di tutte le altre righe conai
|
||||||
TDocumento doc('D', anno, codnum, numdoc);
|
TDocumento doc('D', anno, codnum, numdoc);
|
||||||
|
|
||||||
@ -434,12 +466,6 @@ bool TDichiarazione_CONAI::scrivi_csv(const TRectype& prima_riga, TDichiarazione
|
|||||||
const TCli_for& clifo = doc.clifor();
|
const TCli_for& clifo = doc.clifor();
|
||||||
const bool addconai = clifo.vendite().get_bool(CFV_ADDCONAI);
|
const bool addconai = clifo.vendite().get_bool(CFV_ADDCONAI);
|
||||||
|
|
||||||
#ifdef DBG
|
|
||||||
//check di debug
|
|
||||||
if (numdoc == 1451)
|
|
||||||
const int cazzone = 1;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//se il cliente non c'entra con il conai e' inutile perdere tempo!
|
//se il cliente non c'entra con il conai e' inutile perdere tempo!
|
||||||
if (!addconai)
|
if (!addconai)
|
||||||
return false;
|
return false;
|
||||||
@ -454,8 +480,8 @@ bool TDichiarazione_CONAI::scrivi_csv(const TRectype& prima_riga, TDichiarazione
|
|||||||
{
|
{
|
||||||
if (rdoc->is_generata() && rdoc->get(RDOC_GENTIPO) == "C")
|
if (rdoc->is_generata() && rdoc->get(RDOC_GENTIPO) == "C")
|
||||||
has_conai_row = true;
|
has_conai_row = true;
|
||||||
//c'è la riga generata con codart di tipo conai (sia automatica che manuale)?
|
//c'è la riga generata con codsp di tipo conai (sia automatica che manuale)?
|
||||||
if (rdoc->get(RDOC_CODART) == conai_codart && (rdoc->is_spese() || rdoc->is_generata()))
|
if (rdoc->get(RDOC_CODART) == conai_codsp && (rdoc->is_spese() && rdoc->is_generata()))
|
||||||
{
|
{
|
||||||
n_riga_generata = j;
|
n_riga_generata = j;
|
||||||
break;
|
break;
|
||||||
@ -482,7 +508,7 @@ bool TDichiarazione_CONAI::scrivi_csv(const TRectype& prima_riga, TDichiarazione
|
|||||||
FOR_EACH_PHYSICAL_RDOC_BACK(doc, j, rdoc)
|
FOR_EACH_PHYSICAL_RDOC_BACK(doc, j, rdoc)
|
||||||
{
|
{
|
||||||
//c'è la riga generata con codart di tipo conai (sia automatica che manuale)?
|
//c'è la riga generata con codart di tipo conai (sia automatica che manuale)?
|
||||||
if (rdoc->get(RDOC_CODART) == conai_codart && (rdoc->is_spese() || rdoc->is_generata()))
|
if (rdoc->get(RDOC_CODART) == conai_codsp && (rdoc->is_spese() || rdoc->is_generata()))
|
||||||
{
|
{
|
||||||
n_riga_generata = j;
|
n_riga_generata = j;
|
||||||
break;
|
break;
|
||||||
@ -491,10 +517,23 @@ bool TDichiarazione_CONAI::scrivi_csv(const TRectype& prima_riga, TDichiarazione
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (n_riga_generata > 0)
|
if (n_riga_generata > 0)
|
||||||
scrivi_csv_doc_con_riga_generata(doc, n_riga_generata, csv, conai_specie, sottoclass, log);
|
scrivi_csv_doc_con_riga_generata(doc, n_riga_generata, csv, conai_specie, sottoclass, conai_codsp, log);
|
||||||
else
|
else
|
||||||
scrivi_csv_doc_speciale(doc, csv, conai_specie, sottoclass, conai_codart);
|
{
|
||||||
|
bool has_rettifica = false;
|
||||||
|
|
||||||
|
FOR_EACH_PHYSICAL_RDOC(doc, j, rdoc)
|
||||||
|
{
|
||||||
|
//c'è la riga generata con codart di tipo conai (sia automatica che manuale)?
|
||||||
|
if (rdoc->get(RDOC_CODART) == conai_codsp && !rdoc->is_generata())
|
||||||
|
{
|
||||||
|
has_rettifica = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (has_rettifica)
|
||||||
|
scrivi_csv_doc_rettifiche(doc, csv, conai_specie, sottoclass, conai_codsp);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -728,7 +767,7 @@ void TDichiarazione_CONAI::elabora(const TMask& mask) const
|
|||||||
for (bool ok_scc = scc.move_first(); ok_scc; ok_scc = scc.move_next())
|
for (bool ok_scc = scc.move_first(); ok_scc; ok_scc = scc.move_next())
|
||||||
{
|
{
|
||||||
TString sottoclass(scc.get("CODTAB").as_string());
|
TString sottoclass(scc.get("CODTAB").as_string());
|
||||||
TString codart(scc.get("S1").as_string());
|
TString codsp(scc.get("S1").as_string());
|
||||||
TString msg(str);
|
TString msg(str);
|
||||||
|
|
||||||
msg << " - Sottocategoria " << sottoclass << ')';
|
msg << " - Sottocategoria " << sottoclass << ')';
|
||||||
@ -746,7 +785,7 @@ void TDichiarazione_CONAI::elabora(const TMask& mask) const
|
|||||||
const long ndoc = rdoc.get(RDOC_NDOC).as_int();
|
const long ndoc = rdoc.get(RDOC_NDOC).as_int();
|
||||||
if (ndoc != last_ndoc)
|
if (ndoc != last_ndoc)
|
||||||
{
|
{
|
||||||
scrivi_csv(rdoc.cursor()->curr(), *csv, conai_specie, sottoclass, codart, log);
|
scrivi_csv(rdoc.cursor()->curr(), *csv, conai_specie, sottoclass, codsp, log);
|
||||||
last_ndoc = ndoc;
|
last_ndoc = ndoc;
|
||||||
}
|
}
|
||||||
} //for(bool ok = rdoc.move_first(..
|
} //for(bool ok = rdoc.move_first(..
|
||||||
|
@ -1,73 +0,0 @@
|
|||||||
#define _CRT_SECURE_NO_WARNINGS
|
|
||||||
|
|
||||||
#include <ctype.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
|
|
||||||
void strip(FILE * i, FILE * o)
|
|
||||||
{
|
|
||||||
char lin[513];
|
|
||||||
|
|
||||||
while (fgets(lin, 512, i) != NULL)
|
|
||||||
{
|
|
||||||
char instring = '\0';
|
|
||||||
char wasspace = 0;
|
|
||||||
|
|
||||||
char* c = lin;
|
|
||||||
for(; isspace(*c); c++); // salta spazi iniziali
|
|
||||||
|
|
||||||
for (; *c; c++)
|
|
||||||
{
|
|
||||||
if (*c == '/' && *(c+1) == '/')
|
|
||||||
{
|
|
||||||
fputc('\n', o);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (*c == '#')
|
|
||||||
{
|
|
||||||
fputc(*c, o);
|
|
||||||
while (isspace(*(++c)));
|
|
||||||
}
|
|
||||||
if (*c == '"' || *c == '\'')
|
|
||||||
{
|
|
||||||
if (instring == *c)
|
|
||||||
instring = '\0';
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (instring == '\0')
|
|
||||||
instring = *c;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isspace(*c))
|
|
||||||
{
|
|
||||||
if (!instring)
|
|
||||||
{
|
|
||||||
if (wasspace && *c != '\n')
|
|
||||||
continue;
|
|
||||||
wasspace = 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
wasspace = 0;
|
|
||||||
|
|
||||||
fputc(*c, o);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char ** argv)
|
|
||||||
{
|
|
||||||
// cerr << "Strip 1.2 - White spaces filter by Guy 2012" << endl;
|
|
||||||
FILE* i = argc > 1 ? fopen(argv[1], "r") : stdin;
|
|
||||||
FILE* o = argc > 2 ? fopen(argv[2], "w") : stdout;
|
|
||||||
if (i && o)
|
|
||||||
strip(i, o);
|
|
||||||
if (o)
|
|
||||||
fclose(o);
|
|
||||||
if (i)
|
|
||||||
fclose(i);
|
|
||||||
return 0;
|
|
||||||
}
|
|
77
src/utilities/fastrip.cpp
Normal file
77
src/utilities/fastrip.cpp
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
|
|
||||||
|
#include <ctype.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <iostream>
|
||||||
|
#include <fstream>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
void strip(istream & i, ostream & o)
|
||||||
|
{
|
||||||
|
unsigned char lin[2048];
|
||||||
|
unsigned char* c;
|
||||||
|
|
||||||
|
while (i.good())
|
||||||
|
{
|
||||||
|
bool instring = false;
|
||||||
|
bool wasspace = false;
|
||||||
|
bool full = false;
|
||||||
|
|
||||||
|
i.getline((char *)lin, 2048);
|
||||||
|
for (c = lin; isspace(*c); c++); // salta spazi iniziali
|
||||||
|
for (; *c; c++)
|
||||||
|
{
|
||||||
|
full = true;
|
||||||
|
if (*c == '/' && *(c+1) == '/')
|
||||||
|
{
|
||||||
|
o << '\n';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (*c == '#')
|
||||||
|
{
|
||||||
|
o << *c;
|
||||||
|
while (isspace(*(++c)));
|
||||||
|
// c--;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
if (*c == '"' || *c == '\'')
|
||||||
|
instring = !instring;
|
||||||
|
if (isspace(*c))
|
||||||
|
{
|
||||||
|
if (!instring)
|
||||||
|
{
|
||||||
|
if (wasspace && *c != '\n')
|
||||||
|
continue;
|
||||||
|
wasspace = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
wasspace = false;
|
||||||
|
o << *c;
|
||||||
|
}
|
||||||
|
if (full)
|
||||||
|
o << '\n';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int main(int argc, char ** argv)
|
||||||
|
{
|
||||||
|
// cerr << "Strip 1.2 - White spaces filter by Guy 2012" << endl;
|
||||||
|
if (argc == 1)
|
||||||
|
strip(cin, cout);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ifstream fin(argv[1]);
|
||||||
|
|
||||||
|
if (argc == 2)
|
||||||
|
strip(fin, cout);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ofstream fout(argv[2]);
|
||||||
|
|
||||||
|
strip(fin, fout);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
@ -1,51 +1,65 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <fstream.h>
|
#include <iostream>
|
||||||
|
#include <fstream>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
void patch(istream & i, ostream & o)
|
||||||
void patch(istream& i, ostream& o)
|
|
||||||
{
|
{
|
||||||
char lin[513];
|
unsigned char lin[2048];
|
||||||
|
unsigned char * c;
|
||||||
|
|
||||||
while (i.good())
|
while (i.good())
|
||||||
{
|
{
|
||||||
i.getline(lin, 512);
|
|
||||||
|
|
||||||
for(char* c = lin; isspace(*c); c++); // salta spazi iniziali
|
|
||||||
|
|
||||||
char instring = '\0';
|
char instring = '\0';
|
||||||
char wasspace = 0;
|
bool full = false;
|
||||||
|
|
||||||
for (char* cur = lin; *c; c++)
|
i.getline((char *) lin, 2048);
|
||||||
|
for(c = lin; isspace(*c); c++); // salta spazi iniziali
|
||||||
|
for (c ; *c; c++)
|
||||||
{
|
{
|
||||||
if (*c == '!')
|
full = true;
|
||||||
{
|
if (*c == '!' && *(c + 1) == '!')
|
||||||
if (*(c + 1) == '!')
|
|
||||||
{
|
{
|
||||||
|
o << '#';
|
||||||
c++;
|
c++;
|
||||||
*c = '#';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
if (*c == '#')
|
if (*c == '#')
|
||||||
{
|
{
|
||||||
*cur++ = *c;
|
o << *c;
|
||||||
while isspace(*(++c));
|
while (isspace(*(++c)));
|
||||||
|
c--;
|
||||||
}
|
}
|
||||||
if (*c == ';')
|
|
||||||
*cur++ = '\n';
|
|
||||||
else
|
else
|
||||||
*cur++ = *c;
|
if (*c == ';')
|
||||||
|
o << '\n';
|
||||||
|
else
|
||||||
|
o << *c;
|
||||||
}
|
}
|
||||||
*cur = '\0';
|
if (full)
|
||||||
|
o << '\n';
|
||||||
if (*lin) o << lin << endl;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int main(int argc, char ** argv)
|
||||||
int main()
|
|
||||||
{
|
{
|
||||||
|
if (argc == 1)
|
||||||
patch(cin, cout);
|
patch(cin, cout);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ifstream fin(argv[1]);
|
||||||
|
|
||||||
|
if (argc == 2)
|
||||||
|
patch(fin, cout);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ofstream fout(argv[2]);
|
||||||
|
|
||||||
|
patch(fin, fout);
|
||||||
|
}
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
@ -29,8 +29,8 @@ class TViswin;
|
|||||||
#include "../ve/verig.h"
|
#include "../ve/verig.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __CGLIB01_H
|
#ifndef __CGLIB_H
|
||||||
#include "../cg/cglib01.h"
|
#include "../cg/cglib.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -178,16 +178,6 @@ TRiga_documento::TRiga_documento(const TRiga_documento & row)
|
|||||||
copy(row);
|
copy(row);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Maialata inguardabile: guai a chi la riporta!
|
|
||||||
TRiga_documento::TRiga_documento(const TRiga_documento& rec, TDocumento* doc,
|
|
||||||
const char * tipo)
|
|
||||||
: TAuto_variable_rectype(rec), _doc(doc)
|
|
||||||
{
|
|
||||||
set_memo_fld("RG1");
|
|
||||||
if (tipo)
|
|
||||||
set_tipo(tipo);
|
|
||||||
}*/
|
|
||||||
|
|
||||||
const TTipo_riga_documento& TRiga_documento::tipo(const char * tiporiga)
|
const TTipo_riga_documento& TRiga_documento::tipo(const char * tiporiga)
|
||||||
{
|
{
|
||||||
CHECK(tiporiga && *tiporiga, "Tipo riga documento nullo");
|
CHECK(tiporiga && *tiporiga, "Tipo riga documento nullo");
|
||||||
|
@ -5,7 +5,8 @@
|
|||||||
#include <tabutil.h>
|
#include <tabutil.h>
|
||||||
#include <utility.h>
|
#include <utility.h>
|
||||||
|
|
||||||
#include "../cg/cg2103.h"
|
#include "velib.h"
|
||||||
|
|
||||||
#include "../db/dblib.h"
|
#include "../db/dblib.h"
|
||||||
#include "../pr/prlib.h"
|
#include "../pr/prlib.h"
|
||||||
#include "../li/letint.h"
|
#include "../li/letint.h"
|
||||||
@ -17,7 +18,7 @@
|
|||||||
#include <causali.h>
|
#include <causali.h>
|
||||||
|
|
||||||
#include "veini.h"
|
#include "veini.h"
|
||||||
#include "velib.h"
|
|
||||||
#include "sconti.h"
|
#include "sconti.h"
|
||||||
#include "vepriv.h"
|
#include "vepriv.h"
|
||||||
#include "veuml.h"
|
#include "veuml.h"
|
||||||
@ -251,7 +252,7 @@ void TDocumento::init()
|
|||||||
_codcf = new TRecfield(*this, DOC_CODCF);
|
_codcf = new TRecfield(*this, DOC_CODCF);
|
||||||
_cod_occas = new TRecfield(*this, DOC_OCFPI);
|
_cod_occas = new TRecfield(*this, DOC_OCFPI);
|
||||||
|
|
||||||
_sconto = _esenzione = _valfisc = NULL;
|
_sconto = _esenzione = _valfisc = nullptr;
|
||||||
_stato_originale = ' ';
|
_stato_originale = ' ';
|
||||||
_dirty_deny = false;
|
_dirty_deny = false;
|
||||||
|
|
||||||
@ -301,13 +302,13 @@ TDocumento::TDocumento(const TRectype& rec)
|
|||||||
|
|
||||||
TDocumento::~TDocumento()
|
TDocumento::~TDocumento()
|
||||||
{
|
{
|
||||||
delete _tipocf;
|
safe_delete(_tipocf);
|
||||||
delete _codcf;
|
safe_delete(_codcf);
|
||||||
delete _cod_occas;
|
safe_delete(_cod_occas);
|
||||||
|
|
||||||
if (_sconto != NULL) delete _sconto;
|
safe_delete(_sconto);
|
||||||
if (_esenzione != NULL) delete _esenzione;
|
safe_delete(_esenzione);
|
||||||
if (_valfisc != NULL) delete _valfisc;
|
safe_delete(_valfisc);
|
||||||
}
|
}
|
||||||
|
|
||||||
const TString& TDocumento::codiva_spese() const
|
const TString& TDocumento::codiva_spese() const
|
||||||
@ -3123,7 +3124,6 @@ void TDocumento::update_conai()
|
|||||||
const TString4 cod_iva_cli = codesiva();
|
const TString4 cod_iva_cli = codesiva();
|
||||||
TConai conai;
|
TConai conai;
|
||||||
|
|
||||||
|
|
||||||
FOR_EACH_ASSOC_OBJECT(_conaiqta, o, key, item)
|
FOR_EACH_ASSOC_OBJECT(_conaiqta, o, key, item)
|
||||||
{
|
{
|
||||||
const TString8 cod_sottocat = key;
|
const TString8 cod_sottocat = key;
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#include "velib04.h"
|
#include "velib04.h"
|
||||||
#include "../ca/calib01.h"
|
#include "../ca/calib01.h"
|
||||||
#include "../cg/cg2103.h"
|
#include "../cg/cglib.h"
|
||||||
#include "../cg/cglib02.h"
|
|
||||||
#include "../cg/cgsaldac.h"
|
#include "../cg/cgsaldac.h"
|
||||||
#include "../in/inlib01.h"
|
#include "../in/inlib01.h"
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include "../ca/rmovana.h"
|
#include "../ca/rmovana.h"
|
||||||
#include "../ca/rrip.h"
|
#include "../ca/rrip.h"
|
||||||
#include "../cg/cg2101.h"
|
#include "../cg/cg2101.h"
|
||||||
#include "../cg/cg2103.h"
|
#include "../cg/cglib.h"
|
||||||
#include "../mg/anamag.h"
|
#include "../mg/anamag.h"
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include <diction.h>
|
#include <diction.h>
|
||||||
#include <utility.h>
|
#include <utility.h>
|
||||||
|
|
||||||
#include "../cg/cglib03.h"
|
#include "../cg/cglib.h"
|
||||||
|
|
||||||
#include <causali.h>
|
#include <causali.h>
|
||||||
|
|
||||||
|
@ -21,8 +21,7 @@
|
|||||||
#include "velib07.h"
|
#include "velib07.h"
|
||||||
#include "ve0100n.h"
|
#include "ve0100n.h"
|
||||||
|
|
||||||
#include "../cg/cg2103.h"
|
#include "../cg/cglib.h"
|
||||||
#include "../cg/cglib03.h"
|
|
||||||
#include "../db/dblib.h"
|
#include "../db/dblib.h"
|
||||||
#include "../mg/mglib.h"
|
#include "../mg/mglib.h"
|
||||||
#include "../db/dblib.h"
|
#include "../db/dblib.h"
|
||||||
@ -3080,9 +3079,10 @@ bool codcms_handler(TMask_field& f, KEY key)
|
|||||||
} //if (main_app().has_module(CTAUT) && (...
|
} //if (main_app().has_module(CTAUT) && (...
|
||||||
|
|
||||||
//aggiornamento automatico del campo codice contabilita' separata nel caso di commessa che ce lo abbia
|
//aggiornamento automatico del campo codice contabilita' separata nel caso di commessa che ce lo abbia
|
||||||
if (main_app().has_module(NPAUT) && (key == K_TAB && f.focusdirty()))
|
if (main_app().has_module(NPAUT) && f.running_check(key))
|
||||||
{
|
{
|
||||||
const TString& contsep = cache().get(LF_COMMESSE, codcms, COMMESSE_CONTSEP);
|
const TString& contsep = cache().get(LF_COMMESSE, codcms, COMMESSE_CONTSEP);
|
||||||
|
|
||||||
mask.set(F_CONTSEP, contsep);
|
mask.set(F_CONTSEP, contsep);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "velib07.h"
|
#include "velib07.h"
|
||||||
|
|
||||||
#include "../cg/cgsaldac.h"
|
#include "../cg/cgsaldac.h"
|
||||||
#include "../cg/cglib02.h"
|
#include "../cg/cglib.h"
|
||||||
#include "../db/dblib.h"
|
#include "../db/dblib.h"
|
||||||
|
|
||||||
#include <pconti.h>
|
#include <pconti.h>
|
||||||
@ -817,7 +817,7 @@ static real calcola_saldo_contabile(const char tipocf, const long codcf, const T
|
|||||||
const int indbil = row->get_int(2);
|
const int indbil = row->get_int(2);
|
||||||
|
|
||||||
TSaldo saldo;
|
TSaldo saldo;
|
||||||
real saldo_periodo = saldo.saldo_periodo(gruppo, conto, codcf, datainies, datacalc, indbil, false);
|
real saldo_periodo = saldo.saldo_periodo(Competenza, gruppo, conto, codcf, datainies, datacalc, indbil, false);
|
||||||
|
|
||||||
saldone += saldo_periodo;
|
saldone += saldo_periodo;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#include "veuml.h"
|
#include "veuml.h"
|
||||||
#ifdef FULL_SCREEN
|
|
||||||
TOOLBAR "" 0 0 0 2
|
TOOLBAR "" 0 0 0 2
|
||||||
|
|
||||||
BUTTON DLG_OK 10 2
|
BUTTON DLG_OK 10 2
|
||||||
@ -25,14 +24,13 @@ BEGIN
|
|||||||
END
|
END
|
||||||
|
|
||||||
ENDPAGE
|
ENDPAGE
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef MASK_WIDTH
|
#ifndef MASK_WIDTH
|
||||||
#define MASK_WIDTH 76
|
#define MASK_WIDTH 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MASK_HEIGHT
|
#ifndef MASK_HEIGHT
|
||||||
#define MASK_HEIGHT 21
|
#define MASK_HEIGHT 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MASK_TITLE1
|
#ifndef MASK_TITLE1
|
||||||
@ -158,7 +156,6 @@ END
|
|||||||
ENDIF
|
ENDIF
|
||||||
ENDIF
|
ENDIF
|
||||||
|
|
||||||
|
|
||||||
IF(defined(FLD_CODART) || defined(FLD_CODALT))
|
IF(defined(FLD_CODART) || defined(FLD_CODALT))
|
||||||
|
|
||||||
IFDEF(FLD_CODART)
|
IFDEF(FLD_CODART)
|
||||||
@ -1537,10 +1534,10 @@ ENDIF
|
|||||||
#include USR_PAGE_1
|
#include USR_PAGE_1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PAGE_2
|
|
||||||
|
|
||||||
ENDPAGE
|
ENDPAGE
|
||||||
|
|
||||||
|
#ifdef PAGE_2
|
||||||
|
|
||||||
PAGE "Pag.2" -1 -1 MASK_WIDTH MASK_HEIGHT
|
PAGE "Pag.2" -1 -1 MASK_WIDTH MASK_HEIGHT
|
||||||
|
|
||||||
IFDEF(FLD_CODMAGC)
|
IFDEF(FLD_CODMAGC)
|
||||||
@ -2476,6 +2473,7 @@ ELSEIF
|
|||||||
FIELD CODAGG2
|
FIELD CODAGG2
|
||||||
ENDIF
|
ENDIF
|
||||||
END
|
END
|
||||||
|
ENDIF
|
||||||
|
|
||||||
IFDEF(FLD_RIDPREZZO)
|
IFDEF(FLD_RIDPREZZO)
|
||||||
CURRENCY FR_RIDPREZZO 18
|
CURRENCY FR_RIDPREZZO 18
|
||||||
@ -2504,11 +2502,11 @@ ENDIF
|
|||||||
#include USR_PAGE_2
|
#include USR_PAGE_2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ENDPAGE
|
ENDPAGE
|
||||||
|
|
||||||
#ifdef IS_MERCE
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAS_CONAI
|
||||||
|
|
||||||
PAGE "Conai" -1 -1 MASK_WIDTH MASK_HEIGHT
|
PAGE "Conai" -1 -1 MASK_WIDTH MASK_HEIGHT
|
||||||
|
|
||||||
@ -2688,46 +2686,10 @@ BEGIN
|
|||||||
FIELD PCON(10)
|
FIELD PCON(10)
|
||||||
END
|
END
|
||||||
|
|
||||||
ENDIF
|
|
||||||
|
|
||||||
ENDPAGE
|
ENDPAGE
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifndef FULL_SCREEN
|
|
||||||
ENDPAGE
|
|
||||||
|
|
||||||
TOOLBAR "" 0 0 0 2
|
|
||||||
|
|
||||||
BUTTON DLG_OK 10 2
|
|
||||||
BEGIN
|
|
||||||
PROMPT -14 -1 ""
|
|
||||||
END
|
|
||||||
|
|
||||||
BUTTON DLG_CANCEL 10 2
|
|
||||||
BEGIN
|
|
||||||
PROMPT -24 -1 ""
|
|
||||||
END
|
|
||||||
|
|
||||||
#ifndef PAGE_1
|
|
||||||
BUTTON DLG_DELREC 10 2
|
|
||||||
BEGIN
|
|
||||||
PROMPT -34 -1 "Elimina"
|
|
||||||
MESSAGE EXIT,K_DEL
|
|
||||||
END
|
|
||||||
|
|
||||||
BUTTON DLG_USER 10 2
|
|
||||||
BEGIN
|
|
||||||
PROMPT -44 -1 "~Collega"
|
|
||||||
PICTURE BMP_LINK
|
|
||||||
END
|
|
||||||
#define PAGE_1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
PAGE "Contabilità analitica - Commesse" -1 -1 MASK_WIDTH MASK_HEIGHT
|
PAGE "Contabilità analitica - Commesse" -1 -1 MASK_WIDTH MASK_HEIGHT
|
||||||
|
|
||||||
GROUPBOX DLG_NULL 78 14
|
GROUPBOX DLG_NULL 78 14
|
||||||
@ -2811,4 +2773,6 @@ END
|
|||||||
|
|
||||||
ENDIF // Campi analitici
|
ENDIF // Campi analitici
|
||||||
|
|
||||||
|
ENDPAGE
|
||||||
|
|
||||||
ENDMASK
|
ENDMASK
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#define FULL_SCREEN
|
#define FULL_SCREEN
|
||||||
#define PAGE_2
|
#define PAGE_2
|
||||||
#define IS_MERCE
|
#define HAS_CONAI
|
||||||
|
|
||||||
DEFINE_FIELD(CODMAG)
|
DEFINE_FIELD(CODMAG)
|
||||||
DEFINE_FIELD(DESMAG)
|
DEFINE_FIELD(DESMAG)
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
#define FULL_SCREEN
|
#define FULL_SCREEN
|
||||||
|
|
||||||
#define MASK_TITLE1 "Spese di tipo (Valore)"
|
#define MASK_TITLE1 "Spese di tipo (Valore)"
|
||||||
#define PAGE_2
|
|
||||||
|
|
||||||
|
|
||||||
DEFINE_FIELD(CODSPV)
|
DEFINE_FIELD(CODSPV)
|
||||||
DEFINE_FIELD(DESCRSPV)
|
DEFINE_FIELD(DESCRSPV)
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#define FULL_SCREEN
|
#define FULL_SCREEN
|
||||||
|
|
||||||
#define MASK_TITLE1 "Spese di tipo (Quantita'/Prezzo)"
|
#define MASK_TITLE1 "Spese di tipo (Quantita'/Prezzo)"
|
||||||
#define PAGE_2
|
#define HAS_CONAI
|
||||||
|
|
||||||
DEFINE_FIELD(CODSPQ)
|
DEFINE_FIELD(CODSPQ)
|
||||||
DEFINE_FIELD(DESCRSPQ)
|
DEFINE_FIELD(DESCRSPQ)
|
||||||
|
@ -9,7 +9,6 @@ DEFINE_FIELD(DESCRSPP)
|
|||||||
DEFINE_FIELD(PERCSP)
|
DEFINE_FIELD(PERCSP)
|
||||||
DEFINE_FIELD(CODIVA)
|
DEFINE_FIELD(CODIVA)
|
||||||
DEFINE_FIELD(DESIVA)
|
DEFINE_FIELD(DESIVA)
|
||||||
#define PAGE_2
|
|
||||||
|
|
||||||
#include "verig.uml"
|
#include "verig.uml"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user