git-svn-id: svn://10.65.10.50/branches/R_10_00@23191 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
db4a70fcd3
commit
3c7e9a5c69
@ -1,30 +1,26 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<report libraries="ve1300" name="lv0200b" lpi="6">
|
<report libraries="ve1300" name="lv0200b" orientation="1" lpi="6">
|
||||||
<description>Stampa valore convenzionale per articolo</description>
|
<description>Stampa valore convenzionale per articolo</description>
|
||||||
<font face="Courier New" size="10" />
|
<font face="Courier New" size="10" />
|
||||||
<section type="Head" height="6" pattern="1">
|
<section type="Head" height="6" pattern="1">
|
||||||
<field type="Stringa" width="60" pattern="1">
|
<field type="Stringa" width="60" pattern="1">
|
||||||
<source>#SYSTEM.RAGSOC</source>
|
<source>#SYSTEM.RAGSOC</source>
|
||||||
</field>
|
</field>
|
||||||
<field x="66.5" type="Testo" width="5" height="1.5" pattern="1" text="Pag." />
|
<field x="80" type="Testo" width="5" height="1.5" pattern="1" text="Pag." />
|
||||||
<field x="71.5" type="Stringa" width="10" pattern="1">
|
<field x="85" type="Stringa" width="10" pattern="1">
|
||||||
<prescript>MESSAGE _PAGENO</prescript>
|
<prescript>MESSAGE _PAGENO</prescript>
|
||||||
</field>
|
</field>
|
||||||
<field y="1" type="Stringa" align="center" width="81.5" height="2" pattern="1">
|
<field y="1.5" type="Testo" align="center" width="95" height="1.5" pattern="1" text="Stampa valore convenzionale per articolo">
|
||||||
<font face="Courier New" bold="1" size="14" />
|
<font face="Courier New" bold="1" size="14" />
|
||||||
<prescript description="H0.0 PRESCRIPT">"Stampa riepilogo consegne del "
|
|
||||||
"#DATA" @
|
|
||||||
+
|
|
||||||
#THIS !</prescript>
|
|
||||||
</field>
|
</field>
|
||||||
<field x="0.5" y="3.75" type="Testo" width="20" pattern="1" text="Codice">
|
<field x="0.5" y="3.75" type="Testo" width="20" pattern="1" text="Codice">
|
||||||
<source>RDOC.CODART</source>
|
<source>RDOC.CODART</source>
|
||||||
</field>
|
</field>
|
||||||
<field x="21" y="3.75" type="Testo" width="50" pattern="1" text="Descrizione articolo">
|
<field x="22" y="3.75" type="Testo" width="50" pattern="1" text="Descrizione articolo">
|
||||||
<source>ANAMAG.DESCR</source>
|
<source>ANAMAG.DESCR</source>
|
||||||
</field>
|
</field>
|
||||||
<field border="2" y="4.75" type="Linea" width="81.5" height="0" pattern="1" />
|
<field border="2" y="4.75" type="Linea" width="95" height="0" pattern="1" />
|
||||||
<field x="62.5" y="3.75" type="Testo" align="right" width="18" id="101" pattern="1" text="Val.convenzionale">
|
<field x="63.5" y="3.75" type="Testo" align="right" width="18" id="101" pattern="1" text="Val.convenzionale">
|
||||||
<source>RDOC.QTA</source>
|
<source>RDOC.QTA</source>
|
||||||
</field>
|
</field>
|
||||||
</section>
|
</section>
|
||||||
@ -36,15 +32,15 @@
|
|||||||
<section type="Body" pattern="1" />
|
<section type="Body" pattern="1" />
|
||||||
<section type="Body" level="1" pattern="1">
|
<section type="Body" level="1" pattern="1">
|
||||||
<condition>VALCONV</condition>
|
<condition>VALCONV</condition>
|
||||||
<field x="70" type="Prezzo" align="right" width="10" id="102" pattern="1" text="#########,@@">
|
<field x="73" type="Prezzo" align="right" width="10" id="102" pattern="1" text="#########,@@">
|
||||||
<source>201@-E;R0</source>
|
<source>201@-E;R0</source>
|
||||||
<postscript description="B1.102 POSTSCRIPT">MESSAGE ADD,F2.102
|
<postscript description="B1.102 POSTSCRIPT">MESSAGE ADD,F2.102
|
||||||
</postscript>
|
</postscript>
|
||||||
</field>
|
</field>
|
||||||
<field type="Stringa" width="20" id="201" pattern="1">
|
<field x="1" type="Stringa" link="47.CODART" width="20" id="201" pattern="1">
|
||||||
<source>RDOC.CODART</source>
|
<source>CODART</source>
|
||||||
</field>
|
</field>
|
||||||
<field x="21" type="Stringa" dynamic_height="1" width="40" height="2" id="202" pattern="1">
|
<field x="22" type="Stringa" width="50" id="202" pattern="1">
|
||||||
<source>ANAMAG.DESCR</source>
|
<source>ANAMAG.DESCR</source>
|
||||||
</field>
|
</field>
|
||||||
</section>
|
</section>
|
||||||
@ -52,8 +48,8 @@
|
|||||||
<section type="Foot" level="1" pattern="1">
|
<section type="Foot" level="1" pattern="1">
|
||||||
<field border="2" y="1" type="Linea" width="95" height="0" pattern="1" />
|
<field border="2" y="1" type="Linea" width="95" height="0" pattern="1" />
|
||||||
</section>
|
</section>
|
||||||
<sql>USE ANAMAG
|
<sql>USE ANAMAG SELECT (STR(201@-E;R0!=0)||(#ALL="X"))
|
||||||
JOIN LV047 INTO CODTAB==CODART ALIAS 201
|
JOIN LV047 ALIAS 201 INTO CODTAB==CODART
|
||||||
FROM CODART=#DACODART
|
FROM CODART=#DACODART
|
||||||
TO CODART=#ACODART
|
TO CODART=#ACODART
|
||||||
</sql>
|
</sql>
|
||||||
|
@ -61,6 +61,12 @@ BEGIN
|
|||||||
CHECKTYPE SEARCH
|
CHECKTYPE SEARCH
|
||||||
END
|
END
|
||||||
|
|
||||||
|
BOOLEAN 400
|
||||||
|
BEGIN
|
||||||
|
PROMPT 2 8 "Stampa tutti gli articoli"
|
||||||
|
FIELD ALL
|
||||||
|
END
|
||||||
|
|
||||||
ENDPAGE
|
ENDPAGE
|
||||||
|
|
||||||
ENDMASK
|
ENDMASK
|
||||||
|
109
lv/lv0200c.rep
109
lv/lv0200c.rep
@ -1,21 +1,17 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<report libraries="ve1300" name="lv0200c" lpi="6" command="lv0 -1">
|
<report libraries="ve1300" name="lv0200c" orientation="1" lpi="6" command="lv0 -1">
|
||||||
<description>Stampa valore convenzionale per articolo</description>
|
<description>Stampa valore convenzionale per articolo</description>
|
||||||
<font face="Courier New" size="10" />
|
<font face="Courier New" size="10" />
|
||||||
<section type="Head" height="6" pattern="1">
|
<section type="Head" height="6" pattern="1">
|
||||||
<field type="Stringa" width="60" pattern="1">
|
<field type="Stringa" width="60" pattern="1">
|
||||||
<source>#SYSTEM.RAGSOC</source>
|
<source>#SYSTEM.RAGSOC</source>
|
||||||
</field>
|
</field>
|
||||||
<field x="66.5" type="Testo" width="5" height="1.5" pattern="1" text="Pag." />
|
<field x="82" type="Testo" width="5" height="1.5" pattern="1" text="Pag." />
|
||||||
<field x="71.5" type="Stringa" width="10" pattern="1">
|
<field x="87" type="Stringa" width="10" pattern="1">
|
||||||
<prescript>MESSAGE _PAGENO</prescript>
|
<prescript>MESSAGE _PAGENO</prescript>
|
||||||
</field>
|
</field>
|
||||||
<field y="1" type="Stringa" align="center" width="81.5" height="2" pattern="1">
|
<field y="1" type="Stringa" align="center" width="95" height="2" pattern="1" text="Stampa Valore dotazione odierna per articolo">
|
||||||
<font face="Courier New" bold="1" size="14" />
|
<font face="Courier New" bold="1" size="14" />
|
||||||
<prescript description="H0.0 PRESCRIPT">"Stampa riepilogo consegne del "
|
|
||||||
"#DATA" @
|
|
||||||
+
|
|
||||||
#THIS !</prescript>
|
|
||||||
</field>
|
</field>
|
||||||
<field x="0.5" y="3.75" type="Testo" width="20" pattern="1" text="Codice">
|
<field x="0.5" y="3.75" type="Testo" width="20" pattern="1" text="Codice">
|
||||||
<source>RDOC.CODART</source>
|
<source>RDOC.CODART</source>
|
||||||
@ -23,54 +19,99 @@
|
|||||||
<field x="21" y="3.75" type="Testo" width="30" pattern="1" text="Descrizione articolo">
|
<field x="21" y="3.75" type="Testo" width="30" pattern="1" text="Descrizione articolo">
|
||||||
<source>ANAMAG.DESCR</source>
|
<source>ANAMAG.DESCR</source>
|
||||||
</field>
|
</field>
|
||||||
<field border="2" y="4.75" type="Linea" width="82" height="0" pattern="1" />
|
<field border="2" y="4.75" type="Linea" width="95" height="0" pattern="1" />
|
||||||
<field x="49" y="3.75" type="Testo" align="right" width="10" id="101" pattern="1" text="Dotaz. Od.">
|
<field x="61" y="3.75" type="Testo" align="right" width="12" id="101" pattern="1" text="Dotaz. Od.">
|
||||||
<source>RDOC.QTA</source>
|
<source>RDOC.QTA</source>
|
||||||
</field>
|
</field>
|
||||||
<field x="60" y="3.75" type="Testo" align="right" width="8" id="101" pattern="1" text="Prezzo">
|
<field x="74" y="3.75" type="Testo" align="right" width="9" id="101" pattern="1" text="Val.Conv.">
|
||||||
<source>RDOC.QTA</source>
|
<source>RDOC.QTA</source>
|
||||||
</field>
|
</field>
|
||||||
<field x="69.5" y="3.75" type="Testo" align="right" width="12" id="101" pattern="1" text="Valore">
|
<field x="84" y="3.75" type="Testo" align="right" width="11" id="101" pattern="1" text="Totale">
|
||||||
<source>RDOC.QTA</source>
|
<source>RDOC.QTA</source>
|
||||||
</field>
|
</field>
|
||||||
</section>
|
</section>
|
||||||
<section type="Head" level="1" pattern="1">
|
<section type="Head" level="1" pattern="1">
|
||||||
<prescript description="H1 PRESCRIPT">0 #F1.101 !
|
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
|
||||||
0 #F1.102 !
|
</section>
|
||||||
0 #F1.103 !</prescript>
|
<section type="Head" level="2" hidden="1" pattern="1">
|
||||||
|
<groupby>CODART</groupby>
|
||||||
|
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2</prescript>
|
||||||
|
<field type="Stringa" width="15" id="201" pattern="1">
|
||||||
|
<source>CODART</source>
|
||||||
|
</field>
|
||||||
|
<field x="16" type="Stringa" width="45" id="202" pattern="1">
|
||||||
|
<source>ANAMAG.DESCR</source>
|
||||||
|
</field>
|
||||||
|
<field x="74" type="Numero" align="right" width="10" id="203" pattern="1" text="###.###.###,@@">
|
||||||
|
<source>201@.R0</source>
|
||||||
|
</field>
|
||||||
</section>
|
</section>
|
||||||
<section type="Body" pattern="1" />
|
<section type="Body" pattern="1" />
|
||||||
<section type="Body" level="1" pattern="1">
|
<section type="Body" level="1" pattern="1">
|
||||||
<field x="52" type="Numero" align="right" width="7" id="100" pattern="1" text="###.###">
|
<field type="Stringa" hidden="1" width="1" pattern="1">
|
||||||
<source>#ART.DOTOD</source>
|
<source>#DETT</source>
|
||||||
|
<prescript description="B1.0 PRESCRIPT">MESSAGE EMPTY HIDE,B1
|
||||||
|
MESSAGE SHOW,B1</prescript>
|
||||||
</field>
|
</field>
|
||||||
<field x="59" type="Prezzo" align="right" width="10" id="101" pattern="1" text="###.###.###,@@">
|
<field x="12" type="Stringa" width="40" pattern="1">
|
||||||
<source>UMART.PREZZO</source>
|
<prescript description="B1.0 PRESCRIPT">MESSAGE ISAMREAD,20,TIPOCF=#10!CODCF=#20,RAGSOC</prescript>
|
||||||
</field>
|
</field>
|
||||||
<field x="69" type="Valuta" align="right" width="12" id="102" pattern="1" text="###.###.###,@@">
|
<field x="1" type="Stringa" width="1" id="10" pattern="1">
|
||||||
|
<source>CLIFOGIAC.TIPOCF</source>
|
||||||
|
</field>
|
||||||
|
<field x="3" type="Numero" align="right" width="8.5" id="20" pattern="1">
|
||||||
|
<source>CLIFOGIAC.CODCF</source>
|
||||||
|
</field>
|
||||||
|
<field x="61" type="Numero" align="right" width="12" id="100" pattern="1" text="###.###">
|
||||||
|
<source>CLIFOGIAC.DOTOD</source>
|
||||||
|
<prescript description="B1.100 PRESCRIPT">MESSAGE ADD,F2.100</prescript>
|
||||||
|
</field>
|
||||||
|
<field x="74" type="Numero" align="right" width="9" id="101" pattern="1" text="###.###.###,@@">
|
||||||
|
<source>201@.R0</source>
|
||||||
|
</field>
|
||||||
|
<field x="84" type="Valuta" align="right" width="11" id="102" pattern="1" text="###.###.###,@@">
|
||||||
<source>#100*#101</source>
|
<source>#100*#101</source>
|
||||||
<postscript description="B1.102 POSTSCRIPT">MESSAGE ADD,F1.102
|
<prescript description="B1.102 PRESCRIPT">MESSAGE ADD,F2.102</prescript>
|
||||||
</postscript>
|
|
||||||
</field>
|
|
||||||
<field type="Stringa" width="20" id="201" pattern="1">
|
|
||||||
<source>CODART</source>
|
|
||||||
</field>
|
|
||||||
<field x="21" type="Stringa" dynamic_height="1" width="30" height="2" id="202" pattern="1">
|
|
||||||
<source>ANAMAG.DESCR</source>
|
|
||||||
</field>
|
</field>
|
||||||
</section>
|
</section>
|
||||||
<section type="Foot" height="2" pattern="1" />
|
<section type="Foot" height="2" pattern="1" />
|
||||||
<section type="Foot" level="1" pattern="1">
|
<section type="Foot" level="1" pattern="1">
|
||||||
<field border="2" y="1" type="Linea" width="81" height="0" pattern="1" />
|
<field border="2" y="1" type="Linea" width="95" height="0" pattern="1" />
|
||||||
<field y="2.25" type="Testo" width="10" pattern="1" text="Totale" />
|
<field y="2.25" type="Testo" width="10" pattern="1" text="Totale" />
|
||||||
<field x="67" y="2" type="Valuta" align="right" width="14" id="102" pattern="1" text="###.###.###,@@">
|
<field x="58" y="2" type="Numero" align="right" width="15" id="100" pattern="1" text="###.###.###">
|
||||||
|
<postscript description="F1.100 POSTSCRIPT">MESSAGE ADD,F1.102
|
||||||
|
</postscript>
|
||||||
|
</field>
|
||||||
|
<field x="81" y="2" type="Valuta" align="right" width="14" id="102" pattern="1" text="###.###.###,@@">
|
||||||
<postscript description="F1.102 POSTSCRIPT">MESSAGE ADD,F1.102
|
<postscript description="F1.102 POSTSCRIPT">MESSAGE ADD,F1.102
|
||||||
</postscript>
|
</postscript>
|
||||||
</field>
|
</field>
|
||||||
</section>
|
</section>
|
||||||
<sql>USE ANAMAG
|
<section type="Foot" level="2" pattern="1">
|
||||||
JOIN UMART INTO CODART==CODART NRIGA==1
|
<field x="61" type="Numero" align="right" width="12" id="100" pattern="1" text="###.###">
|
||||||
FROM CODART=#DACODART
|
<font face="Courier New" bold="1" size="10" />
|
||||||
TO CODART=#ACODART
|
<postscript description="F2.100 POSTSCRIPT">MESSAGE ADD,F1.100</postscript>
|
||||||
|
</field>
|
||||||
|
<field x="74" type="Numero" align="right" width="9" id="101" pattern="1" text="###.###.###,@@">
|
||||||
|
<source>#H2.203</source>
|
||||||
|
</field>
|
||||||
|
<field x="84" type="Valuta" align="right" width="11" id="102" pattern="1" text="###.###.###,@@">
|
||||||
|
<postscript description="F2.102 POSTSCRIPT">MESSAGE ADD,F1.102
|
||||||
|
</postscript>
|
||||||
|
</field>
|
||||||
|
<field x="1" type="Stringa" link="47.CODART" width="15" id="201" pattern="1">
|
||||||
|
<source>#H2.201</source>
|
||||||
|
</field>
|
||||||
|
<field x="16" type="Stringa" width="45" id="202" pattern="1">
|
||||||
|
<source>#H2.202</source>
|
||||||
|
</field>
|
||||||
|
</section>
|
||||||
|
<sql>USE CLIFOGIAC KEY 3 SELECT STR(DOTOD!=0)STR(CODCF!=0)(ANAMAG.DESCR!="")(CLIFO.RAGSOC!="")
|
||||||
|
JOIN ANAMAG INTO CODART==CODART
|
||||||
|
JOIN LV047 ALIAS 201 INTO CODTAB==CODART
|
||||||
|
JOIN CLIFO INTO TIPOCF==TIPOCF CODCF==CODCF
|
||||||
|
FROM ANNOES=#ANNO CODART=#DACODART
|
||||||
|
TO ANNOES=#ANNO CODART=#ACODART
|
||||||
|
|
||||||
</sql>
|
</sql>
|
||||||
</report>
|
</report>
|
@ -61,6 +61,12 @@ BEGIN
|
|||||||
CHECKTYPE SEARCH
|
CHECKTYPE SEARCH
|
||||||
END
|
END
|
||||||
|
|
||||||
|
BOOLEAN 400
|
||||||
|
BEGIN
|
||||||
|
PROMPT 2 9 "Stampa dettaglio clienti"
|
||||||
|
FIELD DETT
|
||||||
|
END
|
||||||
|
|
||||||
ENDPAGE
|
ENDPAGE
|
||||||
|
|
||||||
ENDMASK
|
ENDMASK
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
#include <applicat.h>
|
#include <applicat.h>
|
||||||
#include <automask.h>
|
#include <automask.h>
|
||||||
|
#include <config.h>
|
||||||
#include <execp.h>
|
#include <execp.h>
|
||||||
#include <relation.h>
|
|
||||||
#include <reprint.h>
|
#include <reprint.h>
|
||||||
|
#include <sheet.h>
|
||||||
|
|
||||||
#include "lv1100a.h"
|
#include "lv1100a.h"
|
||||||
#include "../ve/velib.h"
|
#include "../ve/velib.h"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#include <applicat.h>
|
#include <applicat.h>
|
||||||
#include <automask.h>
|
#include <automask.h>
|
||||||
|
#include <config.h>
|
||||||
#include <execp.h>
|
#include <execp.h>
|
||||||
#include <relation.h>
|
#include <relation.h>
|
||||||
#include <reprint.h>
|
#include <reprint.h>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#include <applicat.h>
|
#include <applicat.h>
|
||||||
#include <automask.h>
|
#include <automask.h>
|
||||||
|
#include <config.h>
|
||||||
#include <execp.h>
|
#include <execp.h>
|
||||||
|
#include <sheet.h>
|
||||||
|
|
||||||
#include "lvlib.h"
|
#include "lvlib.h"
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include <applicat.h>
|
#include <applicat.h>
|
||||||
|
#include <config.h>
|
||||||
#include <automask.h>
|
#include <automask.h>
|
||||||
#include <progind.h>
|
#include <progind.h>
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include <applicat.h>
|
#include <applicat.h>
|
||||||
|
#include <config.h>
|
||||||
#include <automask.h>
|
#include <automask.h>
|
||||||
#include <defmask.h>
|
#include <defmask.h>
|
||||||
#include <progind.h>
|
#include <progind.h>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#include <applicat.h>
|
#include <applicat.h>
|
||||||
#include <automask.h>
|
#include <automask.h>
|
||||||
|
#include <config.h>
|
||||||
#include <execp.h>
|
#include <execp.h>
|
||||||
#include <progind.h>
|
#include <progind.h>
|
||||||
#include <reputils.h>
|
#include <reputils.h>
|
||||||
@ -28,7 +29,7 @@ class TGenera_documenti_msk : public TAutomask
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
|
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
|
||||||
TGenera_documenti_msk (const char* name) : TAutomask(name) {set(F_STAMPA, 'X');}
|
TGenera_documenti_msk (const char* name) : TAutomask(name) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
//ON_FIELD_EVENT: questo metodo gestisce i vari eventi che si verificano sui campi della maschera
|
//ON_FIELD_EVENT: questo metodo gestisce i vari eventi che si verificano sui campi della maschera
|
||||||
@ -64,6 +65,7 @@ class TGenera_documenti_app : public TSkeleton_application
|
|||||||
TConfig* _configlv;
|
TConfig* _configlv;
|
||||||
char _buono;
|
char _buono;
|
||||||
long _ndoc;
|
long _ndoc;
|
||||||
|
bool _has_gui;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
//Metodi per la generazione dei documenti
|
//Metodi per la generazione dei documenti
|
||||||
@ -338,7 +340,8 @@ bool TGenera_documenti_app::crea_documento_ritiro(const TISAM_recordset& ritiro,
|
|||||||
const long old_ndoc = doc.get_long(DOC_NDOC);
|
const long old_ndoc = doc.get_long(DOC_NDOC);
|
||||||
doc.renum_ndoc();
|
doc.renum_ndoc();
|
||||||
const long new_ndoc = doc.get_long(DOC_NDOC);
|
const long new_ndoc = doc.get_long(DOC_NDOC);
|
||||||
message_box("Attenzione documento numero %ld rinumerato in %ld", old_ndoc, new_ndoc);
|
if (_has_gui)
|
||||||
|
lv_popup_msg("Attenzione documento numero %ld rinumerato in %ld", old_ndoc, new_ndoc);
|
||||||
}
|
}
|
||||||
++numdocgen;
|
++numdocgen;
|
||||||
}
|
}
|
||||||
@ -1287,27 +1290,29 @@ bool TGenera_documenti_app::transfer()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (documenti.items() == 0)
|
if (_has_gui)
|
||||||
warning_box(TR("Non è stato possibile generare alcun documento:\nprobabilmente i documenti richiesti esistono già."));
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if (adata < TDate(TODAY) && _msk->get_int(F_TPGEN) == 0)
|
if (documenti.items() == 0)
|
||||||
warning_box(TR("Non è stato possibile generare documenti con data prevista consegna nel passato"));
|
lv_popup_msg(TR("Non è stato possibile generare alcun documento:\nprobabilmente i documenti richiesti esistono già."));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
TReport_book buc;
|
if (adata < TDate(TODAY) && _msk->get_int(F_TPGEN) == 0)
|
||||||
buc.add(rep);
|
lv_popup_msg(TR("Non è stato possibile generare documenti con data prevista consegna nel passato"));
|
||||||
if (buc.pages() > 0)
|
|
||||||
buc.preview();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
TString str;
|
TReport_book buc;
|
||||||
if (numdocgen > 1)
|
buc.add(rep);
|
||||||
str << TR("Sono stati generati ") << numdocgen << TR(" buoni.");
|
if (buc.pages() > 0)
|
||||||
|
buc.preview();
|
||||||
else
|
else
|
||||||
str << TR("E' stato generato ") << numdocgen << TR(" buono.");
|
{
|
||||||
message_box(str);
|
TString str;
|
||||||
message_box(TR("Generazione terminata"));
|
if (numdocgen > 1)
|
||||||
|
str << TR("Sono stati generati ") << numdocgen << TR(" buoni.");
|
||||||
|
else
|
||||||
|
str << TR("E' stato generato un buono.");
|
||||||
|
lv_popup_msg(str);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1317,11 +1322,23 @@ bool TGenera_documenti_app::transfer()
|
|||||||
|
|
||||||
void TGenera_documenti_app::main_loop()
|
void TGenera_documenti_app::main_loop()
|
||||||
{
|
{
|
||||||
_msk->set(F_NOTPLAN, "X");
|
_has_gui = !(argc() >= 4 && xvt_str_same(argv(3), "-A"));
|
||||||
while (_msk->run() == K_ENTER)
|
_msk->set(F_STAMPA, true);
|
||||||
{
|
_msk->set(F_NOTPLAN, true);
|
||||||
transfer();
|
if (_has_gui)
|
||||||
_msk->set(F_NOTPLAN, "X");
|
{
|
||||||
|
while (_msk->run() == K_ENTER)
|
||||||
|
{
|
||||||
|
transfer();
|
||||||
|
_msk->set(F_NOTPLAN, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_msk->set(F_DTCONS, TDate(TODAY));
|
||||||
|
_msk->send_key(K_SPACE, DLG_OK);
|
||||||
|
if (_msk->run() == K_ENTER)
|
||||||
|
transfer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@ END
|
|||||||
|
|
||||||
DATE F_DTDOC
|
DATE F_DTDOC
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 30 11 "Data documento "
|
PROMPT 30 11 "Data documento "
|
||||||
FLAGS "A"
|
FLAGS "A"
|
||||||
CHECKTYPE REQUIRED
|
CHECKTYPE REQUIRED
|
||||||
END
|
END
|
||||||
|
2453
lv/lv2600.cpp
2453
lv/lv2600.cpp
File diff suppressed because it is too large
Load Diff
@ -48,9 +48,9 @@ BEGIN
|
|||||||
FLAGS "D"
|
FLAGS "D"
|
||||||
END
|
END
|
||||||
|
|
||||||
SPREADSHEET F_SHEET_NAME 78 10
|
SPREADSHEET F_SHEET_NAME 78 -1
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 1 9 "Nomi"
|
PROMPT 1 10 "Nomi"
|
||||||
ITEM "Nome file"
|
ITEM "Nome file"
|
||||||
END
|
END
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ BEGIN
|
|||||||
PROMPT 1 1 "@bNome file"
|
PROMPT 1 1 "@bNome file"
|
||||||
END
|
END
|
||||||
|
|
||||||
STRING F_S_NAME 255 66
|
STRING F_S_NAME 260 66
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 3 2 "File "
|
PROMPT 3 2 "File "
|
||||||
FLAGS "D"
|
FLAGS "D"
|
||||||
@ -98,4 +98,4 @@ BEGIN
|
|||||||
END
|
END
|
||||||
|
|
||||||
ENDPAGE
|
ENDPAGE
|
||||||
ENDMASK
|
ENDMASK
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#include <applicat.h>
|
#include <applicat.h>
|
||||||
#include <automask.h>
|
#include <automask.h>
|
||||||
|
#include <config.h>
|
||||||
#include <defmask.h>
|
#include <defmask.h>
|
||||||
#include <execp.h>
|
#include <execp.h>
|
||||||
#include <reprint.h>
|
#include <reprint.h>
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
#include <applicat.h>
|
#include <applicat.h>
|
||||||
#include <automask.h>
|
#include <automask.h>
|
||||||
|
#include <config.h>
|
||||||
#include <execp.h>
|
#include <execp.h>
|
||||||
#include <progind.h>
|
#include <progind.h>
|
||||||
|
#include <sheet.h>
|
||||||
#include <utility.h>
|
#include <utility.h>
|
||||||
|
|
||||||
#include "../cg/cglib01.h"
|
#include "../cg/cglib01.h"
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
#include <applicat.h>
|
#include <applicat.h>
|
||||||
#include <automask.h>
|
#include <automask.h>
|
||||||
|
#include <config.h>
|
||||||
#include <execp.h>
|
#include <execp.h>
|
||||||
#include <progind.h>
|
#include <progind.h>
|
||||||
#include <relation.h>
|
#include <relation.h>
|
||||||
#include <reputils.h>
|
#include <reputils.h>
|
||||||
|
#include <sheet.h>
|
||||||
#include <utility.h>
|
#include <utility.h>
|
||||||
|
|
||||||
#include "../cg/cglib01.h"
|
#include "../cg/cglib01.h"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
#include <automask.h>
|
#include <automask.h>
|
||||||
#include <progind.h>
|
#include <progind.h>
|
||||||
#include <reputils.h>
|
#include <reputils.h>
|
||||||
|
#include <sheet.h>
|
||||||
#include <utility.h>
|
#include <utility.h>
|
||||||
|
|
||||||
#include "../ce/ammce.h"
|
#include "../ce/ammce.h"
|
||||||
@ -85,8 +86,7 @@ bool TImporta_cesp_mask::on_field_event(TOperable_field& f, TField_event e, long
|
|||||||
case F_NAME:
|
case F_NAME:
|
||||||
if (e == fe_button)
|
if (e == fe_button)
|
||||||
{
|
{
|
||||||
TArray_sheet as(-1, -1, 72, 20, TR("Selezione file"),
|
TArray_sheet as(-1, -1, 72, 20, TR("Selezione file"), "File@32");
|
||||||
"File@32");
|
|
||||||
TFilename path = get(F_PATH);
|
TFilename path = get(F_PATH);
|
||||||
path.add("*.txt"); //files delle testate
|
path.add("*.txt"); //files delle testate
|
||||||
list_files(path, as.rows_array());
|
list_files(path, as.rows_array());
|
||||||
|
14
lv/lvlib.cpp
14
lv/lvlib.cpp
@ -117,6 +117,20 @@ long lv_find_contract(const long codcf, const long indsped, const TDate& data)
|
|||||||
return cod;
|
return cod;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool lv_popup_msg(const char* fmt, ...)
|
||||||
|
{
|
||||||
|
char buff[256] = { 0 };
|
||||||
|
va_list arg;
|
||||||
|
va_start(arg, fmt);
|
||||||
|
vsprintf_s(buff, sizeof(buff), fmt, arg);
|
||||||
|
va_end(arg);
|
||||||
|
if (strchr(buff, '!'))
|
||||||
|
xvt_dm_popup_warning(buff);
|
||||||
|
else
|
||||||
|
xvt_dm_popup_message(buff);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
// TCache_articoli_lavanderie
|
// TCache_articoli_lavanderie
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
|
@ -402,4 +402,7 @@ public:
|
|||||||
TDoc_inventario(TDoc_inventario& dinv): TDocumento(dinv){};
|
TDoc_inventario(TDoc_inventario& dinv): TDocumento(dinv){};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Finestra di notifica per messaggi non troppo critici, tipice nelle elaborazioni batch
|
||||||
|
bool lv_popup_msg(const char* fmt, ...);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user