From 527ac3529ccc5867d54a69a8958dceccd597572a Mon Sep 17 00:00:00 2001 From: sperego Date: Fri, 12 Sep 2008 13:30:15 +0000 Subject: [PATCH] Patch level :10.0 Files correlati : Ricompilazione Demo : [ ] Commento : Stampe Planning git-svn-id: svn://10.65.10.50/trunk@17236 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- lv/lv2.cpp | 1 + lv/lv2.h | 2 ++ lv/lv2300.cpp | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++ lv/lv2300a.h | 4 +++ lv/lv2300a.rep | 49 ++++++++++++++++++++++++++++ lv/lv2300a.uml | 55 ++++++++++++++++++++++++++++++++ 6 files changed, 197 insertions(+) create mode 100755 lv/lv2300.cpp create mode 100755 lv/lv2300a.h create mode 100755 lv/lv2300a.rep create mode 100755 lv/lv2300a.uml diff --git a/lv/lv2.cpp b/lv/lv2.cpp index 37f4cacd2..039af42b2 100755 --- a/lv/lv2.cpp +++ b/lv/lv2.cpp @@ -9,6 +9,7 @@ int main(int argc, char** argv) { case 0: lv2100(argc, argv); break; //generazione automatica del planning case 1: lv2200(argc, argv); break; //manipolazione e stampa del planning + case 2: lv2300(argc, argv); break; //stampe planning default: lv2100(argc, argv); break; //generazione automatica del planning } return 0; diff --git a/lv/lv2.h b/lv/lv2.h index 0f93b1470..19c9bbb58 100755 --- a/lv/lv2.h +++ b/lv/lv2.h @@ -3,5 +3,7 @@ int lv2100(int argc, char* argv[]); int lv2200(int argc, char* argv[]); +int lv2300(int argc, char* argv[]); + #endif // __LV2_H \ No newline at end of file diff --git a/lv/lv2300.cpp b/lv/lv2300.cpp new file mode 100755 index 000000000..22b0af8c0 --- /dev/null +++ b/lv/lv2300.cpp @@ -0,0 +1,86 @@ +#include "lv0.h" +//#include "lv2300a.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +class TStampe_planning_mask : public TAutomask +{ + +private: + + +public: + virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly); + TStampe_planning_mask (const char* name) : TAutomask(name) {} +}; + +bool TStampe_planning_mask::on_field_event(TOperable_field& o, TField_event e, long jolly) +{ + return true; +} + + +class TStampe_planning_app : public TSkeleton_application +{ + TStampe_planning_mask* _msk; + +protected: + virtual bool create(); + virtual bool destroy(); + +public: + bool transfer(); + virtual void main_loop(); +}; + +bool TStampe_planning_app::create() +{ + _msk = new TStampe_planning_mask("lv2300a"); + + return TSkeleton_application::create(); +} + +bool TStampe_planning_app::destroy() +{ + delete _msk; + return TApplication::destroy(); +} + + +void TStampe_planning_app::main_loop() +{ + TStampe_planning_app app; + + while (_msk->run() != K_QUIT) + { + TReport_book book; + TReport rep; + + TFilename report_name("lv2300a"); + + report_name.ext("rep"); + + book.add(rep); + if (book.pages() > 0) + { + book.print_or_preview(); + } + } +} + +int lv2300(int argc, char* argv[]) +{ + TStampe_planning_app app; + app.run(argc, argv, "Stampe Planning"); + return 0; +} \ No newline at end of file diff --git a/lv/lv2300a.h b/lv/lv2300a.h new file mode 100755 index 000000000..f5aed6d56 --- /dev/null +++ b/lv/lv2300a.h @@ -0,0 +1,4 @@ +#define F_COD_ITI_FROM 201 +#define F_DES_ITI_FROM 202 +#define F_COD_ITI_TO 203 +#define F_DES_ITI_TO 204 \ No newline at end of file diff --git a/lv/lv2300a.rep b/lv/lv2300a.rep new file mode 100755 index 000000000..439a087ca --- /dev/null +++ b/lv/lv2300a.rep @@ -0,0 +1,49 @@ + + + Stampa Planning per Itinerario + +
+
+
+ CODITI + + + 167.CODITI + + + ITI.S0 + +
+
+ CODAUT + + + 167.CODAUT + +
+
+ DTCONS + + + DTCONS + +
+
+ + CODITI + +
+
+ + CODITI + +
+
+
+
+
+
+ USE 167 +JOIN ITI INTO CODTAB==CODITI + + \ No newline at end of file diff --git a/lv/lv2300a.uml b/lv/lv2300a.uml new file mode 100755 index 000000000..d335e4c91 --- /dev/null +++ b/lv/lv2300a.uml @@ -0,0 +1,55 @@ +#include "lv2300a.h" + +TOOLBAR "topbar" 0 0 0 2 +#include "printbar.h" +ENDPAGE + +PAGE "Stampa Planning per Itinerario" -1 -1 40 5 + +GROUPBOX DLG_NULL 76 5 +BEGIN + PROMPT 1 1 "@b Parametri di Stampa" +END + +STRING F_COD_ITI_FROM 3 +BEGIN + PROMPT 2 2 "Da itinerario" + FLAGS "U" + USE &ITI KEY 1 + INPUT CODTAB F_COD_ITI_FROM + DISPLAY "Codice" CODTAB + DISPLAY "Descrizione@50" S0 + OUTPUT F_COD_ITI_FROM CODTAB + OUTPUT F_DES_ITI_FROM S0 + CHECKTYPE SEARCH + FIELD #FROM +END + +STRING F_DES_ITI_FROM 50 +BEGIN + PROMPT 25 2 "" + FLAGS "D" +END + +STRING F_COD_ITI_TO 3 +BEGIN + PROMPT 2 3 "A codice " + FLAGS "U" + USE &ITI KEY 1 + INPUT CODTAB F_COD_ITI_TO + DISPLAY "Codice" CODTAB + DISPLAY "Descrizione@50" S0 + OUTPUT F_COD_ITI_TO CODTAB + OUTPUT F_DES_ITI_TO S0 + CHECKTYPE SEARCH + FIELD #TO +END + +STRING F_DES_ITI_TO 50 +BEGIN + PROMPT 25 3 "" + FLAGS "D" +END + +ENDPAGE +ENDMASK