Patch level : 12.0 1084
Files correlati : ba8.exe Commento : Aggiunto report "Stampa clienti con metodi di pagamento"
This commit is contained in:
parent
0f0997a147
commit
ea9421c1ad
@ -191,6 +191,8 @@
|
||||
<ClCompile Include="..\src\ve\ve1500.cpp" />
|
||||
<ClCompile Include="..\src\ve\ve1600.cpp" />
|
||||
<ClCompile Include="..\src\ve\ve1700.cpp" />
|
||||
<ClCompile Include="..\src\ve\ve1800.cpp" />
|
||||
<ClCompile Include="..\src\ve\ve1900.cpp" />
|
||||
<ClCompile Include="..\src\ve\velib04.cpp">
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@ -213,6 +215,8 @@
|
||||
<MskCompiler Include="..\src\ve\ve1500.uml" />
|
||||
<MskCompiler Include="..\src\ve\ve1600a.uml" />
|
||||
<MskCompiler Include="..\src\ve\ve1700a.uml" />
|
||||
<MskCompiler Include="..\src\ve\ve1800a.uml" />
|
||||
<MskCompiler Include="..\src\ve\ve1900a.uml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\src\ve\ve1.h" />
|
||||
@ -221,6 +225,8 @@
|
||||
<ClInclude Include="..\src\ve\ve1300a.h" />
|
||||
<ClInclude Include="..\src\ve\ve1500.h" />
|
||||
<ClInclude Include="..\src\ve\ve1700.h" />
|
||||
<ClInclude Include="..\src\ve\ve1800a.h" />
|
||||
<ClInclude Include="..\src\ve\ve1900a.h" />
|
||||
<ClInclude Include="..\src\ve\velib04.h" />
|
||||
<ClInclude Include="..\src\ve\velib05.h" />
|
||||
<ClInclude Include="..\src\ve\velib07.h" />
|
||||
@ -246,9 +252,21 @@
|
||||
<ItemGroup>
|
||||
<RepCompiler Include="..\src\ve\ve1500a.rep" />
|
||||
<RepCompiler Include="..\src\ve\ve1600a.rep" />
|
||||
<RepCompiler Include="..\src\ve\ve17001.rep" />
|
||||
<RepCompiler Include="..\src\ve\ve17002.rep" />
|
||||
<RepCompiler Include="..\src\ve\veacc.rep" />
|
||||
<RepCompiler Include="..\src\ve\ve17001.rep">
|
||||
<SubType>Designer</SubType>
|
||||
</RepCompiler>
|
||||
<RepCompiler Include="..\src\ve\ve17002.rep">
|
||||
<SubType>Designer</SubType>
|
||||
</RepCompiler>
|
||||
<RepCompiler Include="..\src\ve\ve18001.rep">
|
||||
<SubType>Designer</SubType>
|
||||
</RepCompiler>
|
||||
<RepCompiler Include="..\src\ve\ve19001.rep">
|
||||
<SubType>Designer</SubType>
|
||||
</RepCompiler>
|
||||
<RepCompiler Include="..\src\ve\veacc.rep">
|
||||
<SubType>Designer</SubType>
|
||||
</RepCompiler>
|
||||
<RepCompiler Include="..\src\ve\vebol.rep" />
|
||||
<RepCompiler Include="..\src\ve\vecnford.rep" />
|
||||
<RepCompiler Include="..\src\ve\vefat.rep">
|
||||
|
@ -66,6 +66,12 @@
|
||||
<ClCompile Include="..\src\ve\ve1700.cpp">
|
||||
<Filter>Sources</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\src\ve\ve1800.cpp">
|
||||
<Filter>Sources</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\src\ve\ve1900.cpp">
|
||||
<Filter>Sources</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<MskCompiler Include="..\src\ve\ve1000b.uml">
|
||||
@ -92,6 +98,12 @@
|
||||
<MskCompiler Include="..\src\ve\ve1700a.uml">
|
||||
<Filter>Masks</Filter>
|
||||
</MskCompiler>
|
||||
<MskCompiler Include="..\src\ve\ve1800a.uml">
|
||||
<Filter>Masks</Filter>
|
||||
</MskCompiler>
|
||||
<MskCompiler Include="..\src\ve\ve1900a.uml">
|
||||
<Filter>Masks</Filter>
|
||||
</MskCompiler>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\src\ve\ve1.h">
|
||||
@ -127,6 +139,12 @@
|
||||
<ClInclude Include="..\src\ve\ve1700.h">
|
||||
<Filter>Headers</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\src\ve\ve1800a.h">
|
||||
<Filter>Headers</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\src\ve\ve1900a.h">
|
||||
<Filter>Headers</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<FormCompiler Include="..\src\ve\listadoc.frm">
|
||||
@ -193,6 +211,12 @@
|
||||
<RepCompiler Include="..\src\ve\ve17002.rep">
|
||||
<Filter>Reports</Filter>
|
||||
</RepCompiler>
|
||||
<RepCompiler Include="..\src\ve\ve18001.rep">
|
||||
<Filter>Reports</Filter>
|
||||
</RepCompiler>
|
||||
<RepCompiler Include="..\src\ve\ve19001.rep">
|
||||
<Filter>Reports</Filter>
|
||||
</RepCompiler>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BmpCompiler Include="..\src\ve\bolla.bmp" />
|
||||
|
60
src/ve/ve1900.cpp
Normal file
60
src/ve/ve1900.cpp
Normal file
@ -0,0 +1,60 @@
|
||||
#include <applicat.h>
|
||||
#include <progind.h>
|
||||
#include <recset.h>
|
||||
#include <reprint.h>
|
||||
|
||||
#include "velib07.h"
|
||||
|
||||
#include "ve1.h"
|
||||
#include "ve1900a.h"
|
||||
#include <defmask.h>
|
||||
#include <toolfld.h>
|
||||
|
||||
class TMetodiPagamentoClienti_app : public TKlarkKent_app
|
||||
{
|
||||
protected:
|
||||
virtual void main_loop();
|
||||
};
|
||||
|
||||
void TMetodiPagamentoClienti_app::main_loop()
|
||||
{
|
||||
TMask m("ve1900a");
|
||||
TDocument_report report;
|
||||
|
||||
m.set(F_REPORT, "ve19001");
|
||||
((TButton_tool&)m.field(DLG_PREVIEW)).set_exit_key('A');
|
||||
((TButton_tool&)m.field(DLG_PRINT)).set_exit_key('P');
|
||||
|
||||
KEY k;
|
||||
|
||||
while ((k = m.run()) != K_QUIT)
|
||||
{
|
||||
TReport_book book;
|
||||
TFilename report_name = m.get(F_REPORT);
|
||||
|
||||
if (report_name.blank())
|
||||
report_name = "ve19001";
|
||||
report.load(report_name);
|
||||
|
||||
TISAM_recordset * recset = (TISAM_recordset*)report.recordset();
|
||||
|
||||
TString cod_pag = m.get(F_I_CONDPAG);
|
||||
report.set_var("#CODPAG", cod_pag);
|
||||
recset->set_var("#CODPAG", cod_pag);
|
||||
|
||||
book.add(report);
|
||||
if (book.pages() > 0)
|
||||
if (k == 'A')
|
||||
book.preview();
|
||||
else
|
||||
book.print();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int ve1900(int argc, char* argv[])
|
||||
{
|
||||
TMetodiPagamentoClienti_app app;
|
||||
app.run(argc, argv, TR("Stampa Clienti con Metodo di Pagamento"));
|
||||
return 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user