Patch level :10.0

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :modulo per utenti paganti


git-svn-id: svn://10.65.10.50/trunk@19603 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2009-11-11 09:52:02 +00:00
parent 5621d7dbf9
commit e106e46ff4
20 changed files with 3805 additions and 13 deletions

View File

@ -1167,7 +1167,7 @@ bool TAggiorna_listini::create()
//se non paghi ti stronco!!!
const TDate oggi(TODAY);
if (oggi >= 20091120)
if (oggi >= 20091130)
return false;
}
return TSkeleton_application::create();

View File

@ -10,6 +10,7 @@ int main(int argc, char **argv)
case 1: ve3200(argc, argv); break; // antichissima stampa listini/contratti/offerte
case 3: ve3400(argc, argv); break; // stampa anagrafica di magazzino
case 4: ve3500(argc, argv); break; // moderna stampa condizioni di vendita
case 7: ve3800(argc, argv); break; // stampe statistiche standard
case 8: ve3900(argc, argv); break; // stampe varie delle vendite (a=fatturato)
default: ve3100(argc, argv); break; // stampa tabelle sconti (di riga/di documento/incondizionati)
}

View File

@ -5,6 +5,7 @@ int ve3100(int argc, char* argv[]); // stampa tabelle sconti (di riga/di docume
int ve3200(int argc, char* argv[]); // antichissima stampa testate listini/contratti/offerte
int ve3400(int argc, char* argv[]); // stampa anagrafica di magazzino
int ve3500(int argc, char* argv[]); // moderna stampa condizioni di vendita
int ve3800(int argc, char* argv[]); //stampa statistiche standard
int ve3900(int argc, char* argv[]); //stampe varie vendite
#endif

View File

@ -172,7 +172,7 @@ bool TPrint_condven::create()
//se non paghi ti stronco!!!
const TDate oggi(TODAY);
if (oggi >= 20091120)
if (oggi >= 20091130)
return false;
}
return TSkeleton_application::create();

View File

@ -127,6 +127,7 @@
<field x="73" type="Stringa" width="3" pattern="1">
<font face="Arial Narrow" size="8" />
<source>CODIVA</source>
<alt_source>ANAMAG.CODIVA</alt_source>
</field>
<field x="77" type="Numero" align="right" width="3" pattern="1" hide_zero="1">
<font face="Arial Narrow" size="8" />
@ -199,6 +200,7 @@
<sql>USE RCONDV
SELECT ((TIPORIGA="A")&#26;&#26;(BETWEEN(CODRIGA,#DACODART,#ACODART))&#26;&#26;(BETWEEN(ANAMAG.GRMERC,#DAGRMERC,#AGRMERC))&#26;&#26;(BETWEEN(ANAMAG.RAGGFIS,#DARAGFIS,#ARAGFIS)))||((TIPORIGA="G")&#26;&#26;(BETWEEN(CODRIGA,#DAGRMERC,#AGRMERC)))||((TIPORIGA="R")&#26;&#26;(BETWEEN(CODRIGA,#DARAGFIS,#ARAGFIS)))
JOIN ANAMAG INTO CODART=CODRIGA
JOIN UMART TO RCONDV INTO CODART=CODRIGA NRIGA=1
FROM TIPO=C TIPOCF=#TIPOCF CODCF=#CODCF COD=#COD
TO TIPO=C TIPOCF=#TIPOCF CODCF=#CODCF COD=#COD
</sql>

View File

@ -111,8 +111,10 @@
</section>
<section type="Body" />
<section type="Body" level="1">
<condition>PREZZO&#3E;0</condition>
<field x="57.5" type="Stringa" width="2" pattern="1">
<source>UM</source>
<alt_source>UMART.UM</alt_source>
</field>
<field x="59.5" type="Prezzo" align="right" width="11" pattern="1" text="#########,@@">
<source>PREZZO</source>
@ -120,6 +122,7 @@
<field x="73" type="Stringa" width="3" pattern="1">
<font face="Arial Narrow" size="8" />
<source>CODIVA</source>
<alt_source>ANAMAG.CODIVA</alt_source>
</field>
<field x="77" type="Numero" align="right" width="3" pattern="1" hide_zero="1">
<font face="Arial Narrow" size="8" />
@ -185,6 +188,7 @@
<sql>USE RCONDV
SELECT ((TIPORIGA="A")&#26;&#26;(BETWEEN(CODRIGA,#DACODART,#ACODART))&#26;&#26;(BETWEEN(ANAMAG.GRMERC,#DAGRMERC,#AGRMERC))&#26;&#26;(BETWEEN(ANAMAG.RAGGFIS,#DARAGFIS,#ARAGFIS)))||((TIPORIGA="G")&#26;&#26;(BETWEEN(CODRIGA,#DAGRMERC,#AGRMERC)))||((TIPORIGA="R")&#26;&#26;(BETWEEN(CODRIGA,#DARAGFIS,#ARAGFIS)))
JOIN ANAMAG INTO CODART=CODRIGA
JOIN UMART TO RCONDV INTO CODART=CODRIGA NRIGA=1
FROM TIPO=L CATVEN=#CATVEN COD=#COD
TO TIPO=L CATVEN=#CATVEN COD=#COD
</sql>

View File

@ -96,8 +96,10 @@
</section>
<section type="Body" />
<section type="Body" level="1">
<condition>PREZZO&#3E;0</condition>
<field x="57.5" type="Stringa" width="2" pattern="1">
<source>UM</source>
<alt_source>UMART.UM</alt_source>
</field>
<field x="59.5" type="Prezzo" align="right" width="11" pattern="1" text="#########,@@">
<source>PREZZO</source>
@ -105,6 +107,7 @@
<field x="73" type="Stringa" width="3" pattern="1">
<font face="Arial Narrow" size="8" />
<source>CODIVA</source>
<alt_source>ANAMAG.CODIVA</alt_source>
</field>
<field x="77" type="Numero" align="right" width="3" pattern="1" hide_zero="1">
<font face="Arial Narrow" size="8" />
@ -172,6 +175,7 @@
<sql>USE RCONDV
SELECT ((TIPORIGA="A")&#26;&#26;(BETWEEN(CODRIGA,#DACODART,#ACODART))&#26;&#26;(BETWEEN(ANAMAG.GRMERC,#DAGRMERC,#AGRMERC))&#26;&#26;(BETWEEN(ANAMAG.RAGGFIS,#DARAGFIS,#ARAGFIS)))||((TIPORIGA="G")&#26;&#26;(BETWEEN(CODRIGA,#DAGRMERC,#AGRMERC)))||((TIPORIGA="R")&#26;&#26;(BETWEEN(CODRIGA,#DARAGFIS,#ARAGFIS)))
JOIN ANAMAG INTO CODART=CODRIGA
JOIN UMART TO RCONDV INTO CODART=CODRIGA NRIGA=1
FROM TIPO=O COD=#COD
TO TIPO=O COD=#COD
</sql>

837
ve/ve3800.cpp Executable file
View File

@ -0,0 +1,837 @@
#include "ve3800.h"
#include <applicat.h>
#include <automask.h>
#include <modaut.h>
#include <progind.h>
#include <reprint.h>
#include <textset.h>
#include <utility.h>
#include "../cg/cglib01.h"
#include "velib07.h"
///////////////////////////////////////////////////////////
// MASCHERA
///////////////////////////////////////////////////////////
class TStatistiche_ve_mask : public TAutomask
{
protected:
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
public:
TStatistiche_ve_mask();
virtual ~TStatistiche_ve_mask() {}
};
TStatistiche_ve_mask::TStatistiche_ve_mask() : TAutomask("ve3800")
{
}
bool TStatistiche_ve_mask::on_field_event(TOperable_field& o, TField_event e, long jolly)
{
switch (o.dlg())
{
case F_ANNO:
if (e == fe_modify && !o.empty())
{
TEsercizi_contabili esc;
TDate inies, fines;
if (esc.code2range(atoi(o.get()), inies, fines))
{
set(F_DADATA, inies);
set(F_ADATA, fines);
}
}
break;
case F_DADATA:
case F_ADATA:
if (e == fe_close)
{
const int anno = get_int(F_ANNO);
TEsercizi_contabili esc; //..le date devono essere incluse nell'esercizio selezionato!
const TDate data = o.get();
if (!data.empty() && esc.date2esc(data) != anno)
return error_box(TR("La data deve appartenere all'anno selezionato"));
}
break;
default:
break;
}
return true;
}
/////////////////////////////////////////////////////////////
// REPORT
/////////////////////////////////////////////////////////////
class TStatistiche_ve_report : public TReport
{
protected:
virtual bool use_mask() { return false; }
public:
TStatistiche_ve_report() {}
};
/////////////////////////////////////////////////////////////
// CSV RECORDSET
/////////////////////////////////////////////////////////////
class TStatistiche_ve_csv_recordset : public TCSV_recordset
{
real _tot[13]; //array con i totali per mese (e anno)
protected:
long trova_riga(const TToken_string& key, const char tipo_stat, const char tipo_dettaglio);
public:
TStatistiche_ve_csv_recordset(const TMask& mask);
//virtual const TVariant& get(const char* column_name) const;
//virtual const TVariant& get(unsigned int column) const { return TCSV_recordset::get(column); }
void aggiungi_ai_totali(const TRiga_documento& riga, const char tipo_dati);
bool aggiungi_riga(TDocument_recordset& righe, const char tipo_dati, const char tipo_stat, const char tipo_dettaglio); //const TRiga_documento& riga, const char tipo_dati);
void compila_intestazione();
void calcola_percentuali();
};
TStatistiche_ve_csv_recordset::TStatistiche_ve_csv_recordset(const TMask& mask)
: TCSV_recordset("CSV(\"\t\")") //tab separated
{
FOR_EACH_MASK_FIELD(mask, i, field)
{
const TFieldref* f = field->field();
if (f != NULL)
{
const TString& name = f->name();
set_var(name, field->get(), true);
}
}
}
/*const TVariant& TStatistiche_ve_csv_recordset::get(const char* field_name) const
{
if (*field_name == '#')
return get_var(field_name);
return TRecordset::get(field_name);
}*/
void TStatistiche_ve_csv_recordset::compila_intestazione()
{
insert_rec(0);
//riempie i campi del primo record del csv in modo da avere l'intestazione (0=A...29=AD in excel)
set(0, "CODART");
set(1, "DESCRIZIONE");
set(2, "GENNAIO");
set(3, "%GEN");
set(4, "FEBBRAIO");
set(5, "%FEB");
set(6, "MARZO");
set(7, "%MAR");
set(8, "APRILE");
set(9, "%APR");
set(10, "MAGGIO");
set(11, "%MAG");
set(12, "GIUGNO");
set(13, "%GIU");
set(14, "LUGLIO");
set(15, "%LUG");
set(16, "AGOSTO");
set(17, "%AGO");
set(18, "SETTEMBRE");
set(19, "%SET");
set(20, "OTTOBRE");
set(21, "%OTT");
set(22, "NOVEMBRE");
set(23, "%NOV");
set(24, "DICEMBRE");
set(25, "%DIC");
set(26, "ANNO");
set(27, "%ANNO");
set(28, "GRMERC");
set(29, "CODCLI");
}
//metodo plutonico di ricerca dicotomica su una colonna di csv_recordset
long TStatistiche_ve_csv_recordset::trova_riga(const TToken_string& key, const char tipo_stat, const char tipo_dettaglio)
{
long first = 0;
long last = items() - 1;
long riga = -1;
while(first <= last)
{
const long guess = (first + last) / 2;
move_to(guess);
//const TString& guess_codart = get(0).as_string(); //ori
//const int diff = guess_codart.compare(codart); //ori
TToken_string guess_key;
switch (tipo_stat)
{
case 'A': //articolo
guess_key.add(get(0).as_string());
break;
case 'C': //cliente-codart codart-cliente
{
switch (tipo_dettaglio)
{
case 'A':
{
guess_key.add(get(0).as_string()); //colonna 0=A codart
TString8 codcf = get(29).as_string();
codcf.right_just(6);
guess_key.add(codcf); //colonna 29=AD codcf
}
break;
case 'C':
guess_key = get(29).as_string(); //colonna 29=AD codcf
guess_key.right_just(6);
guess_key.add(get(0).as_string()); //colonna 0=A codart
break;
case 'G':
guess_key = get(29).as_string(); //colonna 29=AD codcf
guess_key.right_just(6);
guess_key.add(get(28).as_string()); //colonna 28=AC grmerc
break;
case 'M':
{
guess_key.add(get(28).as_string()); //colonna 28=AC grmerc
TString8 codcf = get(29).as_string();
codcf.right_just(6);
guess_key.add(codcf); //colonna 29=AD codcf
}
break;
default:
guess_key = get(29).as_string(); //colonna 29=AD codcf
guess_key.right_just(6);
break;
} //switch(tipo_dettaglio...
} //case 'C'...
break;
case 'G': //grmerc-codart
guess_key.add(get(28).as_string()); //colonna 28=AC grmerc
guess_key.add(get(0).as_string());
break;
default:
break;
} //switch(tipo_stat...
const int diff = guess_key.compare(key);
if (diff == 0)
{
riga = guess;
break;
}
if (diff > 0)
{
last = guess - 1;
}
else
{
first = guess + 1;
}
}
return riga;
}
///////////////////////////////////////////////
// METODI DI COMPARE
///////////////////////////////////////////////
//funzione di ordinamento per il campo codart (campo 0 sul csv)
//è una stringa semplice
static int compare_csv_rows_codart(const TObject** o1, const TObject** o2)
{
TToken_string& s1 = *(TToken_string*)*o1;
TToken_string& s2 = *(TToken_string*)*o2;
const TString80 c1 = s1.get(0);
const TString80 c2 = s2.get(0);
int cmp = c1.compare(c2);
return cmp;
}
//funzione di ordinamento per il campo coscf (campo 29 sul csv)
//è un long
static int compare_csv_rows_codcf(const TObject** o1, const TObject** o2)
{
TToken_string& s1 = *(TToken_string*)*o1;
TToken_string& s2 = *(TToken_string*)*o2;
long c1 = s1.get_long(29);
long c2 = s2.get_long(29);
int cmp = c1 - c2;
return cmp;
}
//funzione di ordinamento per il campo grmerc/codart (campi 28/0 sul csv)
//sono 2 stringhe
static int compare_csv_rows_grmerc_codart(const TObject** o1, const TObject** o2)
{
TToken_string& s1 = *(TToken_string*)*o1;
TToken_string& s2 = *(TToken_string*)*o2;
TToken_string c1;
c1.add(s1.get(28));
c1.add(s1.get(0));
TToken_string c2;
c2.add(s2.get(28));
c2.add(s2.get(0));
int cmp = c1.compare(c2);
return cmp;
}
//funzione di ordinamento per il campo codcf/codart (campi 29/0 sul csv)
//è un long + una stringa
static int compare_csv_rows_codcf_codart(const TObject** o1, const TObject** o2)
{
TToken_string& s1 = *(TToken_string*)*o1;
TToken_string& s2 = *(TToken_string*)*o2;
long c1 = s1.get_long(29);
long c2 = s2.get_long(29);
int cmp = c1 - c2;
if (cmp == 0)
{
const TString80 a1 = s1.get(0);
const TString80 a2 = s2.get(0);
cmp = a1.compare(a2);
}
return cmp;
}
//funzione di ordinamento per il campo codcf/grmerc (campi 29/28 sul csv)
//è un long + una stringa
static int compare_csv_rows_codcf_grmerc(const TObject** o1, const TObject** o2)
{
TToken_string& s1 = *(TToken_string*)*o1;
TToken_string& s2 = *(TToken_string*)*o2;
const long c1 = s1.get_long(29);
const long c2 = s2.get_long(29);
int cmp = c1 - c2;
if (cmp == 0)
{
const TString80 g1 = s1.get(28);
const TString80 g2 = s2.get(28);
cmp = g1.compare(g2);
}
return cmp;
}
//funzione di ordinamento per il campo codart/codcf (campi 0/29 sul csv)
//sono una stringa ed un long
static int compare_csv_rows_codart_codcf(const TObject** o1, const TObject** o2)
{
TToken_string& s1 = *(TToken_string*)*o1;
TToken_string& s2 = *(TToken_string*)*o2;
const TString80 a1 = s1.get(0);
const TString80 a2 = s2.get(0);
int cmp = a1.compare(a2);
if (cmp == 0)
{
const long c1 = s1.get_long(29);
const long c2 = s2.get_long(29);
cmp = c1 - c2;
}
return cmp;
}
//funzione di ordinamento per il campo grmerc/codcf (campo 28/29 sul csv)
//sono una stringa ed un long
static int compare_csv_rows_grmerc_codcf(const TObject** o1, const TObject** o2)
{
TToken_string& s1 = *(TToken_string*)*o1;
TToken_string& s2 = *(TToken_string*)*o2;
//deve ordinare sul campo codart ed eventualmente codcf
const TString80 g1 = s1.get(28);
const TString80 g2 = s2.get(28);
int cmp = g1.compare(g2);
if (cmp == 0)
{
const long c1 = s1.get_long(29);
const long c2 = s2.get_long(29);
cmp = c1 - c2;
}
return cmp;
}
void TStatistiche_ve_csv_recordset::aggiungi_ai_totali(const TRiga_documento& riga, const char tipo_dati)
{
//datadoc (serve a stabilire in quale colonna andrà a sommarsi l'importo della riga corrente
const TDate datadoc = riga.doc().get_date(DOC_DATADOC);
const int mese = datadoc.month();
real dato;
//i dati da analizzare possono essere 'P'rezzi o 'Q'uantità
if (tipo_dati == 'P')
dato = riga.importo(true, false); //importo riga corrente
else
dato = riga.quantita(); //qta riga corrente
//aggiorna l'importone del mese (ricordarsi che l'array parte da 0 quindi ci va -1 nell'indice)
_tot[mese - 1] += dato;
//aggiorna anche il totale annuale
_tot[12] += dato;
}
//metodo per la scrittura del csv
bool TStatistiche_ve_csv_recordset::aggiungi_riga(TDocument_recordset& righe,
const char tipo_dati, const char tipo_stat, const char tipo_dettaglio)
{
const TDocumento& doc = righe.doc(righe.cursor()->curr());
const int nriga = righe.get(RDOC_NRIGA).as_int();
const TRiga_documento& riga = doc[nriga];
//se non ci sono dati da sommere è inutile perdere tempo!
real dato;
if (tipo_dati == 'P')
dato = riga.importo(true, false); //'P'rezzo->importo
else
dato = riga.quantita(); //'Q'uantita
if (dato.is_zero())
return false;
//creazione di un nuovo record da esportare
//esiste già questo codart?
const TString80 codart = riga.get(RDOC_CODART);
TString8 codcf = righe.get("DOC.CODCF").as_string();
codcf.right_just(6);
const TString8 grmerc = righe.get("ANAMAG.GRMERC").as_string();
//attenzione ai vari casi di composizione chiave!
//A=articolo G=GrMerc+Articolo C=Cliente+Articolo o Articolo+Cliente in base al tipo di stampa scelta
TToken_string key;
switch (tipo_stat)
{
case 'A':
key.add(codart);
break;
case 'C':
{
switch (tipo_dettaglio)
{
case 'A':
key.add(codart);
key.add(codcf);
break;
case 'C':
key.add(codcf);
key.add(codart);
break;
case 'G':
key.add(codcf);
key.add(grmerc);
break;
case 'M':
key.add(grmerc);
key.add(codcf);
break;
default:
key.add(codcf); //se non c'e' dettaglio basta codcf!
break;
} //switch(tipo_dettaglio...
}
break;
case 'G':
key.add(grmerc);
key.add(codart);
break;
default:
break;
} //switch(tipo_stat...
long numriga = trova_riga(key, tipo_stat, tipo_dettaglio);
if (numriga < 0)
{
//codart
new_rec("");
set(0, TVariant(codart));
//descrart
const TString& descrart = cache().get(LF_ANAMAG, codart, ANAMAG_DESCR);
set(1, TVariant(descrart));
set(28, TVariant(grmerc));
set(29, TVariant(codcf));
//re-sorting per codart (serve perchè solo il recordset ordinato è scannerizzabile con il plutonico metodo dicotomico)
switch (tipo_stat)
{
case 'A': sort(compare_csv_rows_codart); break;
case 'C':
{
switch (tipo_dettaglio)
{
case 'A': sort(compare_csv_rows_codart_codcf); break;
case 'C': sort(compare_csv_rows_codcf_codart); break;
case 'G': sort(compare_csv_rows_codcf_grmerc); break;
case 'M': sort(compare_csv_rows_grmerc_codcf); break;
default: sort(compare_csv_rows_codcf); break; //ordinamento quando non è richiesto il dettaglio
} //switch(tipo_dettaglio...
break;
} //case 'C'
case 'G': sort(compare_csv_rows_grmerc_codart); break;
default: break;
}
//chiave.add(codart);
numriga = trova_riga(key, tipo_stat, tipo_dettaglio);
CHECKS(numriga >= 0, "Articolo bastardo ", (const char*)codart);
}
//riempimento del record secondo il tracciato:
// codart+descrart+12*[impns+%incid]+grmerc+codcf
//datadoc (serve a stabilire in quale colonna andrà a sommarsi l'importo della riga corrente
const TDate datadoc = riga.doc().get_date(DOC_DATADOC);
const int mese = datadoc.month();
const int column = mese * 2; //le colonne dei mesi sono gennaio=2,febbraio=4,marzo=6...
//parte comune ai due casi
real datone = get(column).as_real(); //valora totale della colonna mese corrispondente nel csv
datone += dato; //aggiunge il valore riga al valore totale articolo del mese nel csv
set(column, datone); //riscrive il valore totale aggiornato nella sua colonna(in formato stringa, cioè con la "," e non il ".")
//aggiunge anche grmerc, utilizzando codartmag per risalire al grmerc (se usasse codart potrebbe non esistere in anagrafica!)
set(28, grmerc);
//aggiunge pure il cliente
set(29, codcf);
return true;
}
void TStatistiche_ve_csv_recordset::calcola_percentuali()
{
//%incidenza articolo sul mese = imp_articolo mese / imp tot mese
for (bool ok = move_first(); ok; ok = move_next())
{
real totale_anno;
for (int i = 2; i <= 24; i += 2)
{
const real imp_art_mese = get(i).as_real();
//ricordando che l'array parte da 0
real perc = imp_art_mese * CENTO / _tot[i/2 - 1]; //calcola la % incidenza articolo sul totale per quel mese
perc.round(5);
set(i + 1, perc);
totale_anno += imp_art_mese;
}
set(26, totale_anno);
const real perc_anno = totale_anno * CENTO / _tot[12]; //calcola la % incidenza articolo sul totale annuale
set(27, perc_anno);
}
}
///////////////////////////////////////////////////////////
// APPLICAZIONE
///////////////////////////////////////////////////////////
class TStatistiche_ve : public TSkeleton_application
{
virtual bool check_autorization() const {return false;}
virtual const char * extra_modules() const {return "ve";}
protected:
void elabora(const TMask& mask) const;
public:
virtual bool create();
virtual void main_loop();
};
//metodo di base per la ricerca delle righe documento che soddisfano i parametri dell'utonto
void TStatistiche_ve::elabora(const TMask& mask) const
{
//PARAMETRI DI STAMPA
//--------------------
//tipo dati da estrarre (si utilizza nel metodo di scrittura riga e totali;stabilisce se si vuole qta o prezzo)
const char tipo_dati = mask.get(F_TIPODATA)[0];
//tipologia di statistica (Articolo - GruppoMerceologico - Cliente)
const char tipo_stat = mask.get(F_TIPOSTAT)[0];
//se sceglie per cliente ha 3 possibilità di dettaglio (''=nessuno,'C'=raccolto per cliente,'A'=raccolto per articolo)
const char tipo_dettaglio = mask.get(F_DETTAGLIO)[0];
//stampa particolare bernazzalica in caso di UN SOLO CLIENTE selezionato nella stampa per cliente
//in questo caso i totali non sono generali ma solo su quel cliente
bool bernazzata = false;
if (tipo_stat == 'C')
{
const long dacli = mask.get_long(F_DACODCLI);
const long acodcli = mask.get_long(F_ACODCLI);
if (dacli == acodcli && dacli > 0)
bernazzata = true;
}
//creazione del csv recordset che verra' riempito dai record del recordset righe
TStatistiche_ve_csv_recordset* csv = new TStatistiche_ve_csv_recordset(mask);
//CALCOLO DEI TOTALI
//------------------
//recordset per il calcolo dei totali mese/anno;servono per i calcoli futuri delle percentuali
TString prequery;
prequery << "USE RDOC KEY 1\n";
prequery << "SELECT ((CODARTMAG!=\"\")&&(BETWEEN(33->DATADOC,#DADATA,#ADATA))";
if (bernazzata)
prequery << "&&(DOC.TIPOCF=='C')&&(DOC.CODCF==#DACODCLI)";
prequery <<")\n";
prequery << "JOIN DOC INTO PROVV==PROVV ANNO==ANNO CODNUM==CODNUM NDOC==NDOC\n";
prequery << "FROM CODNUM=#CODNUM ANNO=#ANNO PROVV='D'\n";
prequery << "TO CODNUM=#CODNUM ANNO=#ANNO PROVV='D'\n";
TDocument_recordset totali(prequery);
totali.set_var("#CODNUM", TVariant(mask.get(F_CODNUM)));
totali.set_var("#DADATA", mask.get_date(F_DADATA));
totali.set_var("#ADATA", mask.get_date(F_ADATA));
totali.set_var("#ANNO", TVariant((long)mask.get_int(F_ANNO)));
if (bernazzata)
totali.set_var("#DACODCLI", mask.get_long(F_DACODCLI));
const long totali_items = totali.items();
if (totali_items > 0)
{
//E crea pure la progind..
TProgind pi(totali_items, TR("Calcolo totali mensili ed annuali"), true, true);
//Scansione del recordset trovato
for (bool ok = totali.move_first(); ok; ok = totali.move_next())
{
if (!pi.addstatus(1))
break;
const TDocumento& doc = totali.doc(totali.cursor()->curr());
const int nriga = totali.get(RDOC_NRIGA).as_int();
//scrive sul CSV i campi che servono al file di excel e al report
csv->aggiungi_ai_totali(doc[nriga], tipo_dati);
}
}
//CREAZIONE QUERY
//---------------
//scatta la query per la costruzione del recordset
TString query;
query << "USE RDOC KEY 1\n";
query << "SELECT ((CODARTMAG!=\"\")&&(BETWEEN(33->DATADOC,#DADATA,#ADATA))&&";
switch (tipo_stat)
{
case 'A': query << "(BETWEEN(CODARTMAG,#DACODART,#ACODART)))\n"; break;
case 'C': query << "(DOC.TIPOCF=='C')&&(BETWEEN(DOC.CODCF,#DACODCLI,#ACODCLI)))\n"; break;
case 'G': query << "(BETWEEN(ANAMAG.GRMERC,#DAGRMERC,#AGRMERC)))\n"; break;
default: break;
}
//parte comune ai vari casi di statistica della query
query << "JOIN DOC INTO PROVV==PROVV ANNO==ANNO CODNUM==CODNUM NDOC==NDOC\n";
//parte non comune (deve joinare anamag per avere il grmerc
if (tipo_stat == 'G' || (tipo_stat == 'C' && (tipo_dettaglio == 'G' || tipo_dettaglio == 'M')))
query << "JOIN ANAMAG INTO CODART==CODARTMAG\n";
//ri-parte comune
query << "FROM CODNUM=#CODNUM ANNO=#ANNO PROVV='D'\n";
query << "TO CODNUM=#CODNUM ANNO=#ANNO PROVV='D'\n";
//CREAZIONE RECORDSET
//-------------------
TDocument_recordset righe(query);
//parte comune di settaggio variabili
righe.set_var("#CODNUM", TVariant(mask.get(F_CODNUM)));
righe.set_var("#DADATA", mask.get_date(F_DADATA));
righe.set_var("#ADATA", mask.get_date(F_ADATA));
righe.set_var("#ANNO", TVariant((long)mask.get_int(F_ANNO)));
switch(tipo_stat)
{
case 'A':
righe.set_var("#DACODART", TVariant(mask.get(F_DACODART)));
righe.set_var("#ACODART", TVariant(mask.get(F_ACODART)));
break;
case 'C':
righe.set_var("#DACODCLI", TVariant(mask.get(F_DACODCLI)));
righe.set_var("#ACODCLI", TVariant(mask.get(F_ACODCLI)));
break;
case 'G':
righe.set_var("#DAGRMERC", TVariant(mask.get(F_DAGRMERC)));
righe.set_var("#AGRMERC", TVariant(mask.get(F_AGRMERC)));
break;
default:
break;
}
//CREAZIONE STAMPE/ESPORTAZIONI
//-----------------------------
//se trova (si spera!) almeno una rigadoc buona comincia il bello del programma
const long righe_items = righe.items();
if (righe_items > 0)
{
//E crea pure la progind..
TProgind pi(righe_items, TR("Generazione file statistiche..."), true, true);
//Scansione del recordset trovato
for (bool ok = righe.move_first(); ok; ok = righe.move_next())
{
if (!pi.addstatus(1))
break;
//scrive sul CSV i campi che servono al file di excel e al report
csv->aggiungi_riga(righe, tipo_dati, tipo_stat, tipo_dettaglio);
}
//aggiorna le colonne delle percentuali
csv->calcola_percentuali();
//se richiesto il file in formato excel...
if (mask.get_bool(F_EXCEL))
{
//crea la riga con le intestazioni dei campi e la mette all'inizio
csv->compila_intestazione();
//salva il file come richiesto; il nome del file viene deciso in base al tipo di statistica richiesta; il file alla fine..
//..della storia è sempre lo stesso ma ordinato in modo diverso
TString path = mask.get(F_PATH);
path.lower();
path << "\\stat";
switch (tipo_stat)
{
case 'A': path << "_art.xls"; break;
case 'C': path << "_cli.xls"; break;
case 'G': path << "_gmc.xls"; break;
default: break;
}
csv->save_as(path, fmt_text);
//accoppa la riga con le intestazioni dei campi
csv->destroy(0);
#ifdef DBG
xvt_sys_goto_url(path, "open");
#endif
}
//REPORT DI STAMPA
//----------------
//creazione del report di stampa
TStatistiche_ve_report rep;
bool stampa;
//in base alle scelte dell'utonto stabilisce quale report usare
switch(tipo_stat)
{
case 'A':
stampa = rep.load("ve3800a");
break;
case 'C':
{
switch (tipo_dettaglio)
{
case 'A': stampa = rep.load("ve3800e"); break; //raggr per art. - dett. per cli
case 'C': stampa = rep.load("ve3800d"); break; //raggr. per cli - dett. per art
case 'G': stampa = rep.load("ve3800f"); break; //raggr. per cli - dett. per grmerc
case 'M': stampa = rep.load("ve3800g"); break; //raggr. per grmerc - dett. per cli
default: stampa = rep.load("ve3800c"); break;
}
}
break;
case 'G':
stampa = rep.load("ve3800b");
break;
default:
break;
}
//setta il recordset...
rep.set_recordset(csv);
if (stampa)
{
TReport_book book;
stampa = book.add(rep);
if (stampa)
book.print_or_preview();
}
} //if(righe_items>0...
else
delete csv;
}
void TStatistiche_ve::main_loop()
{
TStatistiche_ve_mask mask;
while (mask.run() == K_ENTER)
{
elabora(mask);
}
}
bool TStatistiche_ve::create()
{
//controlla che solo il producer AGA possa usare questo programma
if (!is_power_reseller())
{
error_box(TR("Programma non autorizzato!"));
return false;
//se non paghi ti stronco!!!
const TDate oggi(TODAY);
if (oggi >= 20091130)
return false;
}
return TSkeleton_application::create();
}
int ve3800(int argc, char* argv[])
{
TStatistiche_ve stat_anal;
stat_anal.run(argc, argv, TR("Statistiche di vendita"));
return 0;
}

28
ve/ve3800.h Executable file
View File

@ -0,0 +1,28 @@
// Defines per maschera ve3800.uml (statistiche generiche vendite)
#define F_CODNUM 101
#define F_DESNUM 102
#define F_ANNO 103
#define F_DADATA 104
#define F_ADATA 105
#define F_TIPOSTAT 106
#define F_TIPODATA 107
#define F_DETTAGLIO 108
#define F_DACODART 110
#define F_DADESART 111
#define F_ACODART 112
#define F_ADESART 113
#define F_DAGRMERC 114
#define F_DADESGRM 115
#define F_AGRMERC 116
#define F_ADESGRM 117
#define F_DACODCLI 118
#define F_DADESCLI 119
#define F_ACODCLI 120
#define F_ADESCLI 121
#define F_EXCEL 125
#define F_PATH 126

287
ve/ve3800.uml Executable file
View File

@ -0,0 +1,287 @@
#include "ve3800.h"
TOOLBAR "topbar" 0 0 0 2
#include <printbar.h>
ENDPAGE
PAGE "Statistiche di vendita" -1 -1 0 0
GROUPBOX -1 78 5
BEGIN
PROMPT 1 1 "@bParametri documenti di vendita"
END
STRING F_CODNUM 4
BEGIN
PROMPT 2 2 "Numerazione "
USE %NUM
INPUT CODTAB F_CODNUM
DISPLAY "Codice" CODTAB
DISPLAY "Descrizione@50" S0
OUTPUT F_CODNUM CODTAB
OUTPUT F_DESNUM S0
CHECKTYPE FORCED
FLAGS "UPA"
FIELD #CODNUM
END
STRING F_DESNUM 50
BEGIN
PROMPT 22 2 ""
USE %NUM KEY 2
INPUT S0 F_DESNUM
DISPLAY "Descrizione@50" S0
DISPLAY "Codice" CODTAB
COPY OUTPUT F_CODNUM
END
NUMBER F_ANNO 4
BEGIN
PROMPT 2 3 "Anno "
USE ESC
INPUT CODTAB F_ANNO
DISPLAY "Codice Esercizio" CODTAB
DISPLAY "Data inizio esercizio" D0
DISPLAY "Data fine esercizio " D1
CHECKTYPE REQUIRED
OUTPUT F_ANNO CODTAB
OUTPUT F_DADATA D0
OUTPUT F_ADATA D1
NUM_EXPR #F_ANNO>0
FLAG "AP"
FIELD #ANNO
END
DATE F_DADATA
BEGIN
PROMPT 2 4 "Da data "
END
DATE F_ADATA
BEGIN
PROMPT 30 4 "A data "
END
GROUPBOX -1 78 5
BEGIN
PROMPT 1 6 "@bParametri per la generazione statistiche"
END
LIST F_TIPOSTAT 21
BEGIN
PROMPT 2 7 "Tipo di statistica "
ITEM "A|Articoli" MESSAGE HIDE,2@|HIDE,3@|SHOW,1@ //group1=articoli,2=grmerc,3=clienti
ITEM "G|Gruppi merceologici" MESSAGE HIDE,1@|HIDE,3@|SHOW,2@
ITEM "C|Clienti" MESSAGE HIDE,1@|HIDE,2@|SHOW,3@
END
LIST F_TIPODATA 10
BEGIN
PROMPT 2 8 "Dati da analizzare "
ITEM "P|Prezzi"
ITEM "Q|Quantità"
FIELD #TIPODATA
END
LIST F_DETTAGLIO 20
BEGIN
PROMPT 2 9 "Dettagliato per "
ITEM "|Non dettagliato"
ITEM "A|Articolo - Cliente"
ITEM "M|Gr.Merc. - Cliente"
ITEM "C|Cliente - Articolo"
ITEM "G|Cliente - Gr.Merc."
GROUP 3
END
GROUPBOX -1 78 5
BEGIN
PROMPT 1 11 "@bIntervallo di selezione"
END
//group 1: articoli
STRING F_DACODART 20
BEGIN
PROMPT 2 12 "Da articolo "
KEY 1
FLAG "UG"
USE LF_ANAMAG
INPUT CODART F_DACODART
DISPLAY "Codice@20" CODART
DISPLAY "Descrizione@50" DESCR
OUTPUT F_DACODART CODART
OUTPUT F_DADESART DESCR
CHECKTYPE SEARCH
GROUP 1
END
STRING F_DADESART 50 38
BEGIN
PROMPT 38 12 ""
USE LF_ANAMAG KEY 2
INPUT DESCR F_DADESART
DISPLAY "Codice@20" CODART
DISPLAY "Descrizione@50" DESCR
OUTPUT F_DACODART CODART
OUTPUT F_DADESART DESCR
GROUP 1
END
STRING F_ACODART 20
BEGIN
PROMPT 2 13 "A articolo "
KEY 1
FLAG "UG"
USE LF_ANAMAG
INPUT CODART F_ACODART
DISPLAY "Codice@20" CODART
DISPLAY "Descrizione@50" DESCR
OUTPUT F_ACODART CODART
OUTPUT F_ADESART DESCR
CHECKTYPE SEARCH
GROUP 1
END
STRING F_ADESART 50 38
BEGIN
PROMPT 38 13 ""
USE LF_ANAMAG KEY 2
INPUT DESCR F_ADESART
DISPLAY "Codice@20" CODART
DISPLAY "Descrizione@50" DESCR
OUTPUT F_ACODART CODART
OUTPUT F_ADESART DESCR
GROUP 1
END
//group 2: gruppi merceologici
STRING F_DAGRMERC 3
BEGIN
PROMPT 2 12 "Da gr.merc. "
FLAGS "U"
USE GMC KEY 1 SELECT CODTAB[4,5]==""
INPUT CODTAB F_DAGRMERC
DISPLAY "Codice" CODTAB[1,3]
DISPLAY "Descrizione@50" S0
OUTPUT F_DAGRMERC CODTAB[1,3]
OUTPUT F_DADESGRM S0
CHECKTYPE NORMAL
GROUP 2
END
STRING F_DADESGRM 50
BEGIN
PROMPT 22 12 ""
USE GMC KEY 2 SELECT CODTAB[4,5]==""
INPUT S0 F_DADESGRM
DISPLAY "Descrizione@50" S0
DISPLAY "Codice" CODTAB[1,3]
COPY OUTPUT F_DAGRMERC
CHECKTYPE NORMAL
GROUP 2
END
STRING F_AGRMERC 3
BEGIN
PROMPT 2 13 "A gr.merc. "
FLAGS "U"
COPY USE F_DAGRMERC
INPUT CODTAB F_AGRMERC
COPY DISPLAY F_DAGRMERC
OUTPUT F_AGRMERC CODTAB[1,3]
OUTPUT F_ADESGRM S0
CHECKTYPE NORMAL
GROUP 2
END
STRING F_ADESGRM 50
BEGIN
PROMPT 22 13 ""
COPY USE F_DADESGRM
INPUT S0 F_ADESGRM
COPY DISPLAY F_DADESGRM
COPY OUTPUT F_AGRMERC
CHECKTYPE NORMAL
GROUP 2
END
//group 3: clienti
NUMBER F_DACODCLI 6
BEGIN
PROMPT 2 12 "Da cliente "
FLAGS "GR"
USE LF_CLIFO
INPUT TIPOCF "C"
INPUT CODCF F_DACODCLI
DISPLAY "Codice@6R" CODCF
DISPLAY "Ragione sociale@50" RAGSOC
OUTPUT F_DACODCLI CODCF
OUTPUT F_DADESCLI RAGSOC
CHECKTYPE NORMAL
FIELD #DACODCLI
GROUP 3
END
STRING F_DADESCLI 50
BEGIN
PROMPT 24 12 ""
USE LF_CLIFO KEY 2
INPUT TIPOCF "C"
INPUT RAGSOC F_DADESCLI
DISPLAY "Ragione sociale@50" RAGSOC
DISPLAY "Codice@6R" CODCF
COPY OUTPUT F_DACODCLI
CHECKTYPE NORMAL
GROUP 3
END
NUMBER F_ACODCLI 6
BEGIN
PROMPT 2 13 "A cliente "
FLAGS "GR"
COPY USE F_DACODCLI
INPUT TIPOCF "C"
INPUT CODCF F_ACODCLI
COPY DISPLAY F_DACODCLI
OUTPUT F_ACODCLI CODCF
OUTPUT F_ADESCLI RAGSOC
CHECKTYPE NORMAL
FIELD #ACODCLI
GROUP 3
END
STRING F_ADESCLI 50
BEGIN
PROMPT 24 13 ""
COPY USE F_DADESCLI
INPUT TIPOCF "C"
INPUT RAGSOC F_ADESCLI
COPY DISPLAY F_DADESCLI
COPY OUTPUT F_ACODCLI
CHECKTYPE NORMAL
GROUP 3
END
//dati per file excel
BOOLEAN F_EXCEL
BEGIN
PROMPT 2 16 "Genera file in formato Excel (stat_ art/gmc/cli .xls)"
MESSAGE FALSE CLEAR,F_PATH
MESSAGE TRUE ENABLE,F_PATH
END
STRING F_PATH 256 50
BEGIN
PROMPT 2 17 "Cartella dove salvare il file "
DSELECT
FLAGS "M"
CHECKTYPE REQUIRED
END
ENDPAGE
ENDMASK

246
ve/ve3800a.rep Executable file
View File

@ -0,0 +1,246 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report name="ve3800a" orientation="2" lpi="6">
<description>Statistiche per Articolo</description>
<font face="Arial Narrow" size="7" />
<section type="Head">
<font face="Arial Narrow" bold="1" size="8" />
<field x="1" type="Testo" width="10" pattern="1" text="Articolo" />
<field border="1" x="30.5" type="Linea" pattern="1" />
<field x="31" type="Testo" align="center" width="11" pattern="1" text="Gennaio" />
<field x="42" type="Testo" align="center" width="11" pattern="1" text="Febbraio" />
<field x="53" type="Testo" align="center" width="11" pattern="1" text="Marzo" />
<field x="64" type="Testo" align="center" width="11" pattern="1" text="Aprile" />
<field x="75" type="Testo" align="center" width="11" pattern="1" text="Maggio" />
<field x="86" type="Testo" align="center" width="11" pattern="1" text="Giugno" />
<field x="97" type="Testo" align="center" width="11" pattern="1" text="Luglio" />
<field x="108" type="Testo" align="center" width="11" pattern="1" text="Agosto" />
<field x="119" type="Testo" align="center" width="11" pattern="1" text="Settembre" />
<field x="130" type="Testo" align="center" width="11" pattern="1" text="Ottobre" />
<field x="141" type="Testo" align="center" width="11" pattern="1" text="Novembre" />
<field x="152" type="Testo" align="center" width="11" pattern="1" text="Dicembre" />
<field border="1" x="164" type="Linea" pattern="1" />
<field x="165" type="Testo" align="center" width="12" pattern="1" text="ANNUALE" />
<field border="1" y="1" type="Linea" width="180" height="0" pattern="1" />
</section>
<section type="Head" level="1">
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
<field border="2" radius="100" x="55.5" y="0.5" type="Rettangolo" shade_offset="50" width="60" height="3" />
<field x="55.5" y="1" type="Testo" valign="center" align="center" width="60" height="2" pattern="1" text="STATISTICHE PER ARTICOLO">
<font face="Arial" bold="1" size="14" />
</field>
<field x="10" y="4.5" type="Testo" width="20" pattern="1" text="Tipo dati analizzati:">
<font face="Arial" size="10" />
</field>
<field x="30.5" y="4.5" type="Array" width="10" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#TIPODATA</source>
<list>
<li Value="Prezzi" Code="P" />
<li Value="Quantita'" Code="Q" />
</list>
</field>
<field x="43.5" y="4.5" type="Testo" width="15" pattern="1" text="Numerazione:">
<font face="Arial" size="10" />
</field>
<field x="58.5" y="4.5" type="Stringa" width="6" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#CODNUM</source>
</field>
<field x="69" y="4.5" type="Testo" width="6" pattern="1" text="Anno:">
<font face="Arial" size="10" />
</field>
<field x="77" y="4.5" type="Numero" align="right" width="6" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#ANNO</source>
</field>
</section>
<section type="Body" />
<section type="Body" level="1">
<field type="Stringa" width="6" pattern="1">
<source>A</source>
</field>
<field x="6" type="Stringa" width="24" pattern="1">
<source>B</source>
</field>
<field border="1" x="30.5" type="Linea" pattern="1" />
<field x="31" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>C</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.101</postscript>
</field>
<field x="38" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>D</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.102</postscript>
</field>
<field x="42" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>E</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.103</postscript>
</field>
<field x="49" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>F</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.104</postscript>
</field>
<field x="53" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>G</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.105</postscript>
</field>
<field x="60" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>H</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.106</postscript>
</field>
<field x="64" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>I</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.107</postscript>
</field>
<field x="71" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>J</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.108</postscript>
</field>
<field x="75" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>K</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.109</postscript>
</field>
<field x="82" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>L</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.110</postscript>
</field>
<field x="86" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>M</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.111</postscript>
</field>
<field x="93" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>N</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.112</postscript>
</field>
<field x="97" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>O</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.113</postscript>
</field>
<field x="104" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>P</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.114</postscript>
</field>
<field x="108" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>Q</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.115</postscript>
</field>
<field x="115" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>R</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.116</postscript>
</field>
<field x="119" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>S</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.117</postscript>
</field>
<field x="126" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>T</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.118</postscript>
</field>
<field x="130" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>U</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.119</postscript>
</field>
<field x="137" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>V</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.120</postscript>
</field>
<field x="141" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>W</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.121</postscript>
</field>
<field x="148" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>X</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.122</postscript>
</field>
<field x="152" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>Y</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.123</postscript>
</field>
<field x="159" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>Z</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.124</postscript>
</field>
<field border="1" x="164" type="Linea" pattern="1" />
<field x="165" type="Valuta" align="right" width="8" pattern="1" text="#########,@@">
<font italic="1" face="Arial Narrow" size="7" />
<source>AA</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.125</postscript>
</field>
<field x="173.5" type="Numero" align="right" width="5" pattern="1" text="###,@@">
<font italic="1" face="Arial Narrow" size="7" />
<source>AB</source>
<postscript description="B1.0 POSTSCRIPT">MESSAGE ADD,F1.126</postscript>
</field>
</section>
<section type="Foot">
<font face="Arial Narrow" bold="1" size="8" />
<field border="1" type="Linea" width="180" height="0" pattern="1" />
<field x="162" type="Testo" valign="center" width="5" pattern="1" text="Pag." />
<field x="167" type="Numero" valign="center" align="right" width="3" pattern="1">
<source>#REPORT.PAGE</source>
</field>
</section>
<section type="Foot" level="1">
<font face="Arial Narrow" bold="1" size="7" />
<field border="1" type="Linea" width="180" height="0" pattern="1" />
<field border="1" x="30.5" type="Linea" height="1.5" pattern="1" />
<field border="1" x="164" type="Linea" height="1.5" pattern="1" />
<field x="20" y="0.5" type="Testo" width="10" pattern="1" text="Totali">
<font face="Arial" bold="1" size="8" />
</field>
<field x="31" y="0.5" type="Valuta" align="right" width="7" id="101" pattern="1" text="#########,@@" />
<field x="38" y="0.5" type="Numero" align="right" width="4" id="102" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="42" y="0.5" type="Valuta" align="right" width="7" id="103" pattern="1" text="#########,@@" />
<field x="49" y="0.5" type="Numero" align="right" width="4" id="104" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="53" y="0.5" type="Valuta" align="right" width="7" id="105" pattern="1" text="#########,@@" />
<field x="60" y="0.5" type="Numero" align="right" width="4" id="106" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="64" y="0.5" type="Valuta" align="right" width="7" id="107" pattern="1" text="#########,@@" />
<field x="71" y="0.5" type="Numero" align="right" width="4" id="108" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="75" y="0.5" type="Valuta" align="right" width="7" id="109" pattern="1" text="#########,@@" />
<field x="82" y="0.5" type="Numero" align="right" width="4" id="110" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="86" y="0.5" type="Valuta" align="right" width="7" id="111" pattern="1" text="#########,@@" />
<field x="93" y="0.5" type="Numero" align="right" width="4" id="112" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="97" y="0.5" type="Valuta" align="right" width="7" id="113" pattern="1" text="#########,@@" />
<field x="104" y="0.5" type="Numero" align="right" width="4" id="114" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="108" y="0.5" type="Valuta" align="right" width="7" id="115" pattern="1" text="#########,@@" />
<field x="115" y="0.5" type="Numero" align="right" width="4" id="116" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="119" y="0.5" type="Valuta" align="right" width="7" id="117" pattern="1" text="#########,@@" />
<field x="126" y="0.5" type="Numero" align="right" width="4" id="118" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="130" y="0.5" type="Valuta" align="right" width="7" id="119" pattern="1" text="#########,@@" />
<field x="137" y="0.5" type="Numero" align="right" width="4" id="120" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="141" y="0.5" type="Valuta" align="right" width="7" id="121" pattern="1" text="#########,@@" />
<field x="148" y="0.5" type="Numero" align="right" width="4" id="122" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="152" y="0.5" type="Valuta" align="right" width="7" id="123" pattern="1" text="#########,@@" />
<field x="159" y="0.5" type="Numero" align="right" width="4" id="124" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="165" y="0.5" type="Valuta" align="right" width="8" id="125" pattern="1" text="#########,@@">
<font italic="1" face="Arial Narrow" bold="1" size="7" />
</field>
<field x="174" y="0.5" type="Numero" align="right" width="4" id="126" pattern="1" text="###,@@">
<font italic="1" face="Arial Narrow" size="7" />
<source>ROUND(#THIS,2)</source>
</field>
</section>
</report>

341
ve/ve3800b.rep Executable file
View File

@ -0,0 +1,341 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report name="ve3800b" orientation="2" lpi="6">
<description>Statistiche per GrMerc</description>
<font face="Arial Narrow" size="7" />
<section type="Head">
<font face="Arial Narrow" bold="1" size="8" />
<field x="1" type="Testo" width="10" pattern="1" text="Gr. Merc." />
<field border="1" x="30.5" type="Linea" pattern="1" />
<field x="31" type="Testo" align="center" width="11" pattern="1" text="Gennaio" />
<field x="42" type="Testo" align="center" width="11" pattern="1" text="Febbraio" />
<field x="53" type="Testo" align="center" width="11" pattern="1" text="Marzo" />
<field x="64" type="Testo" align="center" width="11" pattern="1" text="Aprile" />
<field x="75" type="Testo" align="center" width="11" pattern="1" text="Maggio" />
<field x="86" type="Testo" align="center" width="11" pattern="1" text="Giugno" />
<field x="97" type="Testo" align="center" width="11" pattern="1" text="Luglio" />
<field x="108" type="Testo" align="center" width="11" pattern="1" text="Agosto" />
<field x="119" type="Testo" align="center" width="11" pattern="1" text="Settembre" />
<field x="130" type="Testo" align="center" width="11" pattern="1" text="Ottobre" />
<field x="141" type="Testo" align="center" width="11" pattern="1" text="Novembre" />
<field x="152" type="Testo" align="center" width="11" pattern="1" text="Dicembre" />
<field border="1" x="164" type="Linea" pattern="1" />
<field x="165" type="Testo" align="center" width="12" pattern="1" text="ANNUALE" />
<field border="1" y="1" type="Linea" width="180" height="0" pattern="1" />
</section>
<section type="Head" level="1">
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
<field border="2" radius="100" x="44" y="0.5" type="Rettangolo" shade_offset="50" width="80" height="3" />
<field x="44" y="1" type="Testo" valign="center" align="center" width="80" height="2" pattern="1" text="STATISTICHE PER GRUPPO MERCEOLOGICO">
<font face="Arial" bold="1" size="14" />
</field>
<field x="10" y="4.5" type="Testo" width="20" pattern="1" text="Tipo dati analizzati:">
<font face="Arial" size="10" />
</field>
<field x="30.5" y="4.5" type="Array" width="10" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#TIPODATA</source>
<list>
<li Value="Prezzi" Code="P" />
<li Value="Quantita'" Code="Q" />
</list>
</field>
<field x="44.5" y="4.5" type="Testo" width="15" pattern="1" text="Numerazione:">
<font face="Arial" size="10" />
</field>
<field x="60" y="4.5" type="Stringa" width="6" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#CODNUM</source>
</field>
<field x="72" y="4.5" type="Testo" width="6" pattern="1" text="Anno:">
<font face="Arial" size="10" />
</field>
<field x="80" y="4.5" type="Numero" align="right" width="6" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#ANNO</source>
</field>
</section>
<section type="Head" level="2" hidden="1">
<groupby>AC</groupby>
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2</prescript>
<field x="1" type="Stringa" width="3" id="99" pattern="1">
<source>AC</source>
<prescript description="H2.99 PRESCRIPT">MESSAGE COPY,F2.99</prescript>
</field>
</section>
<section type="Body" />
<section type="Body" level="1" hidden="1">
<field type="Stringa" width="6" pattern="1">
<source>A</source>
</field>
<field x="6" type="Stringa" width="24" pattern="1">
<source>B</source>
</field>
<field border="1" x="30.5" type="Linea" pattern="1" />
<field x="31" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>C</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.101
MESSAGE ADD,F2.101</prescript>
</field>
<field x="38" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>D</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.102
MESSAGE ADD,F2.102</prescript>
</field>
<field x="42" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>E</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.103
MESSAGE ADD,F2.103</prescript>
</field>
<field x="49" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>F</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.104
MESSAGE ADD,F2.104</prescript>
</field>
<field x="53" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>G</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.105
MESSAGE ADD,F2.105</prescript>
</field>
<field x="60" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>H</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.106
MESSAGE ADD,F2.106</prescript>
</field>
<field x="64" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>I</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.107
MESSAGE ADD,F2.107</prescript>
</field>
<field x="71" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>J</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.108
MESSAGE ADD,F2.108</prescript>
</field>
<field x="75" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>K</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.109
MESSAGE ADD,F2.109</prescript>
</field>
<field x="82" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>L</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.110
MESSAGE ADD,F2.110</prescript>
</field>
<field x="86" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>M</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.111
MESSAGE ADD,F2.111</prescript>
</field>
<field x="93" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>N</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.112
MESSAGE ADD,F2.112</prescript>
</field>
<field x="97" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>O</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.113
MESSAGE ADD,F2.113</prescript>
</field>
<field x="104" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>P</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.114
MESSAGE ADD,F2.114</prescript>
</field>
<field x="108" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>Q</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.115
MESSAGE ADD,F2.115</prescript>
</field>
<field x="115" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>R</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.116
MESSAGE ADD,F2.116</prescript>
</field>
<field x="119" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>S</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.117
MESSAGE ADD,F2.117</prescript>
</field>
<field x="126" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>T</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.118
MESSAGE ADD,F2.118</prescript>
</field>
<field x="130" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>U</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.119
MESSAGE ADD,F2.119</prescript>
</field>
<field x="137" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>V</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.120
MESSAGE ADD,F2.120</prescript>
</field>
<field x="141" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>W</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.121
MESSAGE ADD,F2.121</prescript>
</field>
<field x="148" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>X</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.122
MESSAGE ADD,F2.122</prescript>
</field>
<field x="152" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>Y</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.123
MESSAGE ADD,F2.123</prescript>
</field>
<field x="159" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>Z</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.124
MESSAGE ADD,F2.124</prescript>
</field>
<field border="1" x="164" type="Linea" pattern="1" />
<field x="165" type="Valuta" align="right" width="8" pattern="1" text="#########,@@">
<font italic="1" face="Arial Narrow" size="7" />
<source>AA</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.125
MESSAGE ADD,F2.125</prescript>
</field>
<field x="173.5" type="Numero" align="right" width="5" pattern="1" text="###,@@">
<font italic="1" face="Arial Narrow" size="7" />
<source>AB</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.126
MESSAGE ADD,F2.126</prescript>
</field>
</section>
<section type="Foot">
<font face="Arial Narrow" bold="1" size="8" />
<field border="1" type="Linea" width="180" height="0" pattern="1" />
<field x="162" type="Testo" valign="center" width="5" pattern="1" text="Pag." />
<field x="167" type="Numero" valign="center" align="right" width="3" pattern="1">
<source>#REPORT.PAGE</source>
</field>
</section>
<section type="Foot" level="1">
<font face="Arial Narrow" bold="1" size="7" />
<field border="1" type="Linea" width="180" height="0" pattern="1" />
<field border="1" x="30.5" type="Linea" height="1.5" pattern="1" />
<field border="1" x="164" type="Linea" height="1.5" pattern="1" />
<field x="20" y="0.5" type="Testo" width="10" pattern="1" text="Totali">
<font face="Arial" bold="1" size="8" />
</field>
<field x="31" y="0.5" type="Valuta" align="right" width="7" id="101" pattern="1" text="#########,@@" />
<field x="38" y="0.5" type="Numero" align="right" width="4" id="102" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="42" y="0.5" type="Valuta" align="right" width="7" id="103" pattern="1" text="#########,@@" />
<field x="49" y="0.5" type="Numero" align="right" width="4" id="104" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="53" y="0.5" type="Valuta" align="right" width="7" id="105" pattern="1" text="#########,@@" />
<field x="60" y="0.5" type="Numero" align="right" width="4" id="106" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="64" y="0.5" type="Valuta" align="right" width="7" id="107" pattern="1" text="#########,@@" />
<field x="71" y="0.5" type="Numero" align="right" width="4" id="108" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="75" y="0.5" type="Valuta" align="right" width="7" id="109" pattern="1" text="#########,@@" />
<field x="82" y="0.5" type="Numero" align="right" width="4" id="110" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="86" y="0.5" type="Valuta" align="right" width="7" id="111" pattern="1" text="#########,@@" />
<field x="93" y="0.5" type="Numero" align="right" width="4" id="112" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="97" y="0.5" type="Valuta" align="right" width="7" id="113" pattern="1" text="#########,@@" />
<field x="104" y="0.5" type="Numero" align="right" width="4" id="114" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="108" y="0.5" type="Valuta" align="right" width="7" id="115" pattern="1" text="#########,@@" />
<field x="115" y="0.5" type="Numero" align="right" width="4" id="116" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="119" y="0.5" type="Valuta" align="right" width="7" id="117" pattern="1" text="#########,@@" />
<field x="126" y="0.5" type="Numero" align="right" width="4" id="118" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="130" y="0.5" type="Valuta" align="right" width="7" id="119" pattern="1" text="#########,@@" />
<field x="137" y="0.5" type="Numero" align="right" width="4" id="120" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="141" y="0.5" type="Valuta" align="right" width="7" id="121" pattern="1" text="#########,@@" />
<field x="148" y="0.5" type="Numero" align="right" width="4" id="122" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="152" y="0.5" type="Valuta" align="right" width="7" id="123" pattern="1" text="#########,@@" />
<field x="159" y="0.5" type="Numero" align="right" width="4" id="124" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="165" y="0.5" type="Valuta" align="right" width="8" id="125" pattern="1" text="#########,@@">
<font italic="1" face="Arial Narrow" bold="1" size="7" />
</field>
<field x="174" y="0.5" type="Numero" align="right" width="4" id="126" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
</section>
<section type="Foot" level="2">
<field border="1" x="30.5" type="Linea" pattern="1" />
<field border="1" x="164" type="Linea" pattern="1" />
<field x="1" type="Stringa" width="3.5" id="99" pattern="1" />
<field x="5" type="Stringa" width="25" id="100" pattern="1">
<prescript description="F2.100 PRESCRIPT">MESSAGE TABLEREAD,GMC,#99,S0</prescript>
</field>
<field x="31" type="Valuta" align="right" width="7" id="101" pattern="1" text="#########,@@" />
<field x="38" type="Numero" align="right" width="4" id="102" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="42" type="Valuta" align="right" width="7" id="103" pattern="1" text="#########,@@" />
<field x="49" type="Numero" align="right" width="4" id="104" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="53" type="Valuta" align="right" width="7" id="105" pattern="1" text="#########,@@" />
<field x="60" type="Numero" align="right" width="4" id="106" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="64" type="Valuta" align="right" width="7" id="107" pattern="1" text="#########,@@" />
<field x="71" type="Numero" align="right" width="4" id="108" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="75" type="Valuta" align="right" width="7" id="109" pattern="1" text="#########,@@" />
<field x="82" type="Numero" align="right" width="4" id="110" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="86" type="Valuta" align="right" width="7" id="111" pattern="1" text="#########,@@" />
<field x="93" type="Numero" align="right" width="4" id="112" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="97" type="Valuta" align="right" width="7" id="113" pattern="1" text="#########,@@" />
<field x="104" type="Numero" align="right" width="4" id="114" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="108" type="Valuta" align="right" width="7" id="115" pattern="1" text="#########,@@" />
<field x="115" type="Numero" align="right" width="4" id="116" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="119" type="Valuta" align="right" width="7" id="117" pattern="1" text="#########,@@" />
<field x="126" type="Numero" align="right" width="4" id="118" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="130" type="Valuta" align="right" width="7" id="119" pattern="1" text="#########,@@" />
<field x="137" type="Numero" align="right" width="4" id="120" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="141" type="Valuta" align="right" width="7" id="121" pattern="1" text="#########,@@" />
<field x="148" type="Numero" align="right" width="4" id="122" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="152" type="Valuta" align="right" width="7" id="123" pattern="1" text="#########,@@" />
<field x="159" type="Numero" align="right" width="4" id="124" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="165" type="Valuta" align="right" width="8" id="125" pattern="1" text="#########,@@">
<font italic="1" face="Arial Narrow" bold="1" size="7" />
</field>
<field x="174" type="Numero" align="right" width="4" id="126" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
</section>
</report>

341
ve/ve3800c.rep Executable file
View File

@ -0,0 +1,341 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report name="ve3800c" orientation="2" lpi="6">
<description>Statistiche per Cliente</description>
<font face="Arial Narrow" size="7" />
<section type="Head">
<font face="Arial Narrow" bold="1" size="8" />
<field x="1" type="Testo" width="10" pattern="1" text="Cliente" />
<field border="1" x="30.5" type="Linea" pattern="1" />
<field x="31" type="Testo" align="center" width="11" pattern="1" text="Gennaio" />
<field x="42" type="Testo" align="center" width="11" pattern="1" text="Febbraio" />
<field x="53" type="Testo" align="center" width="11" pattern="1" text="Marzo" />
<field x="64" type="Testo" align="center" width="11" pattern="1" text="Aprile" />
<field x="75" type="Testo" align="center" width="11" pattern="1" text="Maggio" />
<field x="86" type="Testo" align="center" width="11" pattern="1" text="Giugno" />
<field x="97" type="Testo" align="center" width="11" pattern="1" text="Luglio" />
<field x="108" type="Testo" align="center" width="11" pattern="1" text="Agosto" />
<field x="119" type="Testo" align="center" width="11" pattern="1" text="Settembre" />
<field x="130" type="Testo" align="center" width="11" pattern="1" text="Ottobre" />
<field x="141" type="Testo" align="center" width="11" pattern="1" text="Novembre" />
<field x="152" type="Testo" align="center" width="11" pattern="1" text="Dicembre" />
<field border="1" x="164" type="Linea" pattern="1" />
<field x="165" type="Testo" align="center" width="12" pattern="1" text="ANNUALE" />
<field border="1" y="1" type="Linea" width="180" height="0" pattern="1" />
</section>
<section type="Head" level="1">
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
<field border="2" radius="100" x="50" y="0.5" type="Rettangolo" shade_offset="50" width="80" height="3" />
<field x="50" y="1" type="Testo" valign="center" align="center" width="80" height="2" pattern="1" text="STATISTICHE PER CLIENTE">
<font face="Arial" bold="1" size="14" />
</field>
<field x="10" y="4.5" type="Testo" width="20" pattern="1" text="Tipo dati analizzati:">
<font face="Arial" size="10" />
</field>
<field x="30.5" y="4.5" type="Array" width="10" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#TIPODATA</source>
<list>
<li Value="Prezzi" Code="P" />
<li Value="Quantita'" Code="Q" />
</list>
</field>
<field x="44" y="4.5" type="Testo" width="15" pattern="1" text="Numerazione:">
<font face="Arial" size="10" />
</field>
<field x="59" y="4.5" type="Stringa" width="6" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#CODNUM</source>
</field>
<field x="71.5" y="4.5" type="Testo" width="6" pattern="1" text="Anno:">
<font face="Arial" size="10" />
</field>
<field x="79.5" y="4.5" type="Numero" align="right" width="6" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#ANNO</source>
</field>
</section>
<section type="Head" level="2" hidden="1">
<groupby>AD</groupby>
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2</prescript>
<field x="1" type="Stringa" width="3" id="99" pattern="1">
<source>AD</source>
<prescript description="H2.99 PRESCRIPT">MESSAGE COPY,F2.99</prescript>
</field>
</section>
<section type="Body" />
<section type="Body" level="1" hidden="1">
<field type="Stringa" width="6" pattern="1">
<source>A</source>
</field>
<field x="6" type="Stringa" width="24" pattern="1">
<source>B</source>
</field>
<field border="1" x="30.5" type="Linea" pattern="1" />
<field x="31" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>C</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.101
MESSAGE ADD,F2.101</prescript>
</field>
<field x="38" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>D</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.102
MESSAGE ADD,F2.102</prescript>
</field>
<field x="42" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>E</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.103
MESSAGE ADD,F2.103</prescript>
</field>
<field x="49" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>F</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.104
MESSAGE ADD,F2.104</prescript>
</field>
<field x="53" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>G</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.105
MESSAGE ADD,F2.105</prescript>
</field>
<field x="60" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>H</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.106
MESSAGE ADD,F2.106</prescript>
</field>
<field x="64" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>I</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.107
MESSAGE ADD,F2.107</prescript>
</field>
<field x="71" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>J</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.108
MESSAGE ADD,F2.108</prescript>
</field>
<field x="75" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>K</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.109
MESSAGE ADD,F2.109</prescript>
</field>
<field x="82" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>L</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.110
MESSAGE ADD,F2.110</prescript>
</field>
<field x="86" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>M</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.111
MESSAGE ADD,F2.111</prescript>
</field>
<field x="93" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>N</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.112
MESSAGE ADD,F2.112</prescript>
</field>
<field x="97" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>O</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.113
MESSAGE ADD,F2.113</prescript>
</field>
<field x="104" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>P</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.114
MESSAGE ADD,F2.114</prescript>
</field>
<field x="108" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>Q</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.115
MESSAGE ADD,F2.115</prescript>
</field>
<field x="115" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>R</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.116
MESSAGE ADD,F2.116</prescript>
</field>
<field x="119" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>S</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.117
MESSAGE ADD,F2.117</prescript>
</field>
<field x="126" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>T</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.118
MESSAGE ADD,F2.118</prescript>
</field>
<field x="130" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>U</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.119
MESSAGE ADD,F2.119</prescript>
</field>
<field x="137" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>V</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.120
MESSAGE ADD,F2.120</prescript>
</field>
<field x="141" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>W</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.121
MESSAGE ADD,F2.121</prescript>
</field>
<field x="148" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>X</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.122
MESSAGE ADD,F2.122</prescript>
</field>
<field x="152" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>Y</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.123
MESSAGE ADD,F2.123</prescript>
</field>
<field x="159" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>Z</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.124
MESSAGE ADD,F2.124</prescript>
</field>
<field border="1" x="164" type="Linea" pattern="1" />
<field x="165" type="Valuta" align="right" width="8" pattern="1" text="#########,@@">
<font italic="1" face="Arial Narrow" size="7" />
<source>AA</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.125
MESSAGE ADD,F2.125</prescript>
</field>
<field x="173.5" type="Numero" align="right" width="5" pattern="1" text="###,@@">
<font italic="1" face="Arial Narrow" size="7" />
<source>AB</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.126
MESSAGE ADD,F2.126</prescript>
</field>
</section>
<section type="Foot">
<font face="Arial Narrow" bold="1" size="8" />
<field border="1" type="Linea" width="180" height="0" pattern="1" />
<field x="162" type="Testo" valign="center" width="5" pattern="1" text="Pag." />
<field x="167" type="Numero" valign="center" align="right" width="3" pattern="1">
<source>#REPORT.PAGE</source>
</field>
</section>
<section type="Foot" level="1">
<font face="Arial Narrow" bold="1" size="7" />
<field border="1" type="Linea" width="180" height="0" pattern="1" />
<field border="1" x="30.5" type="Linea" height="1.5" pattern="1" />
<field border="1" x="164" type="Linea" height="1.5" pattern="1" />
<field x="20" y="0.5" type="Testo" width="10" pattern="1" text="Totali">
<font face="Arial" bold="1" size="8" />
</field>
<field x="31" y="0.5" type="Valuta" align="right" width="7" id="101" pattern="1" text="#########,@@" />
<field x="38" y="0.5" type="Numero" align="right" width="4" id="102" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="42" y="0.5" type="Valuta" align="right" width="7" id="103" pattern="1" text="#########,@@" />
<field x="49" y="0.5" type="Numero" align="right" width="4" id="104" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="53" y="0.5" type="Valuta" align="right" width="7" id="105" pattern="1" text="#########,@@" />
<field x="60" y="0.5" type="Numero" align="right" width="4" id="106" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="64" y="0.5" type="Valuta" align="right" width="7" id="107" pattern="1" text="#########,@@" />
<field x="71" y="0.5" type="Numero" align="right" width="4" id="108" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="75" y="0.5" type="Valuta" align="right" width="7" id="109" pattern="1" text="#########,@@" />
<field x="82" y="0.5" type="Numero" align="right" width="4" id="110" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="86" y="0.5" type="Valuta" align="right" width="7" id="111" pattern="1" text="#########,@@" />
<field x="93" y="0.5" type="Numero" align="right" width="4" id="112" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="97" y="0.5" type="Valuta" align="right" width="7" id="113" pattern="1" text="#########,@@" />
<field x="104" y="0.5" type="Numero" align="right" width="4" id="114" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="108" y="0.5" type="Valuta" align="right" width="7" id="115" pattern="1" text="#########,@@" />
<field x="115" y="0.5" type="Numero" align="right" width="4" id="116" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="119" y="0.5" type="Valuta" align="right" width="7" id="117" pattern="1" text="#########,@@" />
<field x="126" y="0.5" type="Numero" align="right" width="4" id="118" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="130" y="0.5" type="Valuta" align="right" width="7" id="119" pattern="1" text="#########,@@" />
<field x="137" y="0.5" type="Numero" align="right" width="4" id="120" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="141" y="0.5" type="Valuta" align="right" width="7" id="121" pattern="1" text="#########,@@" />
<field x="148" y="0.5" type="Numero" align="right" width="4" id="122" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="152" y="0.5" type="Valuta" align="right" width="7" id="123" pattern="1" text="#########,@@" />
<field x="159" y="0.5" type="Numero" align="right" width="4" id="124" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="165" y="0.5" type="Valuta" align="right" width="8" id="125" pattern="1" text="#########,@@">
<font italic="1" face="Arial Narrow" bold="1" size="7" />
</field>
<field x="174" y="0.5" type="Numero" align="right" width="4" id="126" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
</section>
<section type="Foot" level="2">
<field border="1" x="30.5" type="Linea" pattern="1" />
<field border="1" x="164" type="Linea" pattern="1" />
<field x="1" type="Stringa" width="4" id="99" pattern="1" />
<field x="5.5" type="Stringa" width="25" id="100" pattern="1">
<prescript description="F2.100 PRESCRIPT">MESSAGE ISAMREAD,20,TIPOCF='C'!CODCF=#99,RAGSOC</prescript>
</field>
<field x="31" type="Valuta" align="right" width="7" id="101" pattern="1" text="#########,@@" />
<field x="38" type="Numero" align="right" width="4" id="102" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="42" type="Valuta" align="right" width="7" id="103" pattern="1" text="#########,@@" />
<field x="49" type="Numero" align="right" width="4" id="104" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="53" type="Valuta" align="right" width="7" id="105" pattern="1" text="#########,@@" />
<field x="60" type="Numero" align="right" width="4" id="106" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="64" type="Valuta" align="right" width="7" id="107" pattern="1" text="#########,@@" />
<field x="71" type="Numero" align="right" width="4" id="108" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="75" type="Valuta" align="right" width="7" id="109" pattern="1" text="#########,@@" />
<field x="82" type="Numero" align="right" width="4" id="110" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="86" type="Valuta" align="right" width="7" id="111" pattern="1" text="#########,@@" />
<field x="93" type="Numero" align="right" width="4" id="112" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="97" type="Valuta" align="right" width="7" id="113" pattern="1" text="#########,@@" />
<field x="104" type="Numero" align="right" width="4" id="114" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="108" type="Valuta" align="right" width="7" id="115" pattern="1" text="#########,@@" />
<field x="115" type="Numero" align="right" width="4" id="116" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="119" type="Valuta" align="right" width="7" id="117" pattern="1" text="#########,@@" />
<field x="126" type="Numero" align="right" width="4" id="118" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="130" type="Valuta" align="right" width="7" id="119" pattern="1" text="#########,@@" />
<field x="137" type="Numero" align="right" width="4" id="120" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="141" type="Valuta" align="right" width="7" id="121" pattern="1" text="#########,@@" />
<field x="148" type="Numero" align="right" width="4" id="122" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="152" type="Valuta" align="right" width="7" id="123" pattern="1" text="#########,@@" />
<field x="159" type="Numero" align="right" width="4" id="124" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="165" type="Valuta" align="right" width="8" id="125" pattern="1" text="#########,@@">
<font italic="1" face="Arial Narrow" bold="1" size="7" />
</field>
<field x="174" type="Numero" align="right" width="4" id="126" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
</section>
</report>

351
ve/ve3800d.rep Executable file
View File

@ -0,0 +1,351 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report name="ve3800d" orientation="2" lpi="6">
<description>Statistiche Raggr. Cliente - Dett. Articolo</description>
<font face="Arial Narrow" size="7" />
<section type="Head">
<font face="Arial Narrow" bold="1" size="8" />
<field x="1" type="Testo" width="10" pattern="1" text="Cliente">
<font face="Arial" bold="1" size="8" />
</field>
<field border="1" x="33.5" type="Linea" height="2" pattern="1" />
<field border="1" x="167" type="Linea" height="2" pattern="1" />
<field x="3.5" y="1" type="Testo" width="10" pattern="1" text="Articolo" />
<field x="34" y="1" type="Testo" align="center" width="11" pattern="1" text="Gennaio" />
<field x="45" y="1" type="Testo" align="center" width="11" pattern="1" text="Febbraio" />
<field x="56" y="1" type="Testo" align="center" width="11" pattern="1" text="Marzo" />
<field x="67" y="1" type="Testo" align="center" width="11" pattern="1" text="Aprile" />
<field x="78" y="1" type="Testo" align="center" width="11" pattern="1" text="Maggio" />
<field x="89" y="1" type="Testo" align="center" width="11" pattern="1" text="Giugno" />
<field x="100" y="1" type="Testo" align="center" width="11" pattern="1" text="Luglio" />
<field x="111" y="1" type="Testo" align="center" width="11" pattern="1" text="Agosto" />
<field x="122" y="1" type="Testo" align="center" width="11" pattern="1" text="Settembre" />
<field x="133" y="1" type="Testo" align="center" width="11" pattern="1" text="Ottobre" />
<field x="144" y="1" type="Testo" align="center" width="11" pattern="1" text="Novembre" />
<field x="155" y="1" type="Testo" align="center" width="11" pattern="1" text="Dicembre" />
<field x="168" y="1" type="Testo" align="center" width="12" pattern="1" text="ANNUALE" />
<field border="1" y="2" type="Linea" width="180" height="0" pattern="1" />
</section>
<section type="Head" level="1">
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
<field border="2" radius="100" x="30" y="0.5" type="Rettangolo" shade_offset="50" width="128" height="3" />
<field x="30" y="1" type="Testo" valign="center" align="center" width="128" height="2" pattern="1" text="STATISTICHE RAGGRUPPATE PER CLIENTE DETTAGLIATE PER ARTICOLO">
<font face="Arial" bold="1" size="14" />
</field>
<field x="10" y="4.5" type="Testo" width="20" pattern="1" text="Tipo dati analizzati:">
<font face="Arial" size="10" />
</field>
<field x="30.5" y="4.5" type="Array" width="10" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#TIPODATA</source>
<list>
<li Value="Prezzi" Code="P" />
<li Value="Quantita'" Code="Q" />
</list>
</field>
<field x="45" y="4.5" type="Testo" width="15" pattern="1" text="Numerazione:">
<font face="Arial" size="10" />
</field>
<field x="60" y="4.5" type="Stringa" width="6" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#CODNUM</source>
</field>
<field x="71.5" y="4.5" type="Testo" width="6" pattern="1" text="Anno:">
<font face="Arial" size="10" />
</field>
<field x="79.5" y="4.5" type="Numero" align="right" width="6" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#ANNO</source>
</field>
</section>
<section type="Head" level="2">
<groupby>AD</groupby>
<font face="Arial" bold="1" size="7" />
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2</prescript>
<field x="1" y="0.5" type="Stringa" width="6" id="99" pattern="1">
<source>AD</source>
<prescript description="H2.99 PRESCRIPT">MESSAGE COPY,F2.99</prescript>
</field>
<field x="8" y="0.5" type="Stringa" width="50" id="100" pattern="1">
<prescript description="H2.100 PRESCRIPT">MESSAGE ISAMREAD,20,TIPOCF='C'!CODCF=#99,RAGSOC
MESSAGE COPY,F2.100</prescript>
</field>
</section>
<section type="Body" />
<section type="Body" level="1">
<field x="3" type="Stringa" width="6" pattern="1">
<source>A</source>
</field>
<field x="9" type="Stringa" width="24" pattern="1">
<source>B</source>
</field>
<field border="1" x="33.5" type="Linea" pattern="1" />
<field x="34" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>C</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.101
MESSAGE ADD,F2.101</prescript>
</field>
<field x="41" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>D</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.102
MESSAGE ADD,F2.102</prescript>
</field>
<field x="45" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>E</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.103
MESSAGE ADD,F2.103</prescript>
</field>
<field x="52" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>F</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.104
MESSAGE ADD,F2.104</prescript>
</field>
<field x="56" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>G</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.105
MESSAGE ADD,F2.105</prescript>
</field>
<field x="63" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>H</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.106
MESSAGE ADD,F2.106</prescript>
</field>
<field x="67" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>I</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.107
MESSAGE ADD,F2.107</prescript>
</field>
<field x="74" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>J</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.108
MESSAGE ADD,F2.108</prescript>
</field>
<field x="78" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>K</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.109
MESSAGE ADD,F2.109</prescript>
</field>
<field x="85" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>L</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.110
MESSAGE ADD,F2.110</prescript>
</field>
<field x="89" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>M</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.111
MESSAGE ADD,F2.111</prescript>
</field>
<field x="96" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>N</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.112
MESSAGE ADD,F2.112</prescript>
</field>
<field x="100" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>O</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.113
MESSAGE ADD,F2.113</prescript>
</field>
<field x="107" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>P</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.114
MESSAGE ADD,F2.114</prescript>
</field>
<field x="111" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>Q</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.115
MESSAGE ADD,F2.115</prescript>
</field>
<field x="118" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>R</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.116
MESSAGE ADD,F2.116</prescript>
</field>
<field x="122" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>S</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.117
MESSAGE ADD,F2.117</prescript>
</field>
<field x="129" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>T</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.118
MESSAGE ADD,F2.118</prescript>
</field>
<field x="133" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>U</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.119
MESSAGE ADD,F2.119</prescript>
</field>
<field x="140" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>V</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.120
MESSAGE ADD,F2.120</prescript>
</field>
<field x="144" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>W</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.121
MESSAGE ADD,F2.121</prescript>
</field>
<field x="151" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>X</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.122
MESSAGE ADD,F2.122</prescript>
</field>
<field x="155" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>Y</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.123
MESSAGE ADD,F2.123</prescript>
</field>
<field x="162" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>Z</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.124
MESSAGE ADD,F2.124</prescript>
</field>
<field border="1" x="167" type="Linea" pattern="1" />
<field x="168" type="Valuta" align="right" width="8" pattern="1" text="#########,@@">
<font italic="1" face="Arial Narrow" size="7" />
<source>AA</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.125
MESSAGE ADD,F2.125</prescript>
</field>
<field x="176.5" type="Numero" align="right" width="5" pattern="1" text="###,@@">
<font italic="1" face="Arial Narrow" size="7" />
<source>AB</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.126
MESSAGE ADD,F2.126</prescript>
</field>
</section>
<section type="Foot">
<font face="Arial Narrow" bold="1" size="8" />
<field border="1" type="Linea" width="180" height="0" pattern="1" />
<field x="162" type="Testo" valign="center" width="5" pattern="1" text="Pag." />
<field x="167" type="Numero" valign="center" align="right" width="3" pattern="1">
<source>#REPORT.PAGE</source>
</field>
</section>
<section type="Foot" level="1">
<font italic="1" face="Arial Narrow" bold="1" size="7" />
<field border="1" type="Linea" width="180" height="0" pattern="1" />
<field border="1" x="33.5" type="Linea" height="1.5" pattern="1" />
<field border="1" x="167" type="Linea" height="1.5" pattern="1" />
<field x="23" y="0.5" type="Testo" width="10" pattern="1" text="Totali">
<font face="Arial" bold="1" size="8" />
</field>
<field x="34" y="0.5" type="Valuta" align="right" width="7" id="101" pattern="1" text="#########,@@" />
<field x="41" y="0.5" type="Numero" align="right" width="4" id="102" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="45" y="0.5" type="Valuta" align="right" width="7" id="103" pattern="1" text="#########,@@" />
<field x="52" y="0.5" type="Numero" align="right" width="4" id="104" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="56" y="0.5" type="Valuta" align="right" width="7" id="105" pattern="1" text="#########,@@" />
<field x="63" y="0.5" type="Numero" align="right" width="4" id="106" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="67" y="0.5" type="Valuta" align="right" width="7" id="107" pattern="1" text="#########,@@" />
<field x="74" y="0.5" type="Numero" align="right" width="4" id="108" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="78" y="0.5" type="Valuta" align="right" width="7" id="109" pattern="1" text="#########,@@" />
<field x="85" y="0.5" type="Numero" align="right" width="4" id="110" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="89" y="0.5" type="Valuta" align="right" width="7" id="111" pattern="1" text="#########,@@" />
<field x="96" y="0.5" type="Numero" align="right" width="4" id="112" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="100" y="0.5" type="Valuta" align="right" width="7" id="113" pattern="1" text="#########,@@" />
<field x="107" y="0.5" type="Numero" align="right" width="4" id="114" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="111" y="0.5" type="Valuta" align="right" width="7" id="115" pattern="1" text="#########,@@" />
<field x="118" y="0.5" type="Numero" align="right" width="4" id="116" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="122" y="0.5" type="Valuta" align="right" width="7" id="117" pattern="1" text="#########,@@" />
<field x="129" y="0.5" type="Numero" align="right" width="4" id="118" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="133" y="0.5" type="Valuta" align="right" width="7" id="119" pattern="1" text="#########,@@" />
<field x="140" y="0.5" type="Numero" align="right" width="4" id="120" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="144" y="0.5" type="Valuta" align="right" width="7" id="121" pattern="1" text="#########,@@" />
<field x="151" y="0.5" type="Numero" align="right" width="4" id="122" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="155" y="0.5" type="Valuta" align="right" width="7" id="123" pattern="1" text="#########,@@" />
<field x="162" y="0.5" type="Numero" align="right" width="4" id="124" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="168" y="0.5" type="Valuta" align="right" width="8" id="125" pattern="1" text="#########,@@" />
<field x="177" y="0.5" type="Numero" align="right" width="4" id="126" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
</section>
<section type="Foot" level="2">
<font face="Arial Narrow" bold="1" size="7" />
<field border="1" x="2" type="Linea" width="178" height="0" pattern="1" />
<field border="1" x="33.5" type="Linea" height="2" pattern="1" />
<field border="1" x="167" type="Linea" height="2" pattern="1" />
<field y="0.5" type="Stringa" width="3" pattern="1" text="Tot" />
<field border="2" y="2" type="Linea" width="181" height="0" pattern="1" />
<field x="3" y="0.5" type="Stringa" width="5" id="99" pattern="1" />
<field x="8" y="0.5" type="Stringa" width="25" id="100" pattern="1">
<prescript description="F2.100 PRESCRIPT">MESSAGE ISAMREAD,20,TIPOCF='C'!CODCF=#99,RAGSOC</prescript>
</field>
<field x="34" y="0.5" type="Valuta" align="right" width="7" id="101" pattern="1" text="#########,@@" />
<field x="41" y="0.5" type="Numero" align="right" width="4" id="102" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="45" y="0.5" type="Valuta" align="right" width="7" id="103" pattern="1" text="#########,@@" />
<field x="52" y="0.5" type="Numero" align="right" width="4" id="104" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="56" y="0.5" type="Valuta" align="right" width="7" id="105" pattern="1" text="#########,@@" />
<field x="63" y="0.5" type="Numero" align="right" width="4" id="106" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="67" y="0.5" type="Valuta" align="right" width="7" id="107" pattern="1" text="#########,@@" />
<field x="74" y="0.5" type="Numero" align="right" width="4" id="108" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="78" y="0.5" type="Valuta" align="right" width="7" id="109" pattern="1" text="#########,@@" />
<field x="85" y="0.5" type="Numero" align="right" width="4" id="110" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="89" y="0.5" type="Valuta" align="right" width="7" id="111" pattern="1" text="#########,@@" />
<field x="96" y="0.5" type="Numero" align="right" width="4" id="112" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="100" y="0.5" type="Valuta" align="right" width="7" id="113" pattern="1" text="#########,@@" />
<field x="107" y="0.5" type="Numero" align="right" width="4" id="114" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="111" y="0.5" type="Valuta" align="right" width="7" id="115" pattern="1" text="#########,@@" />
<field x="118" y="0.5" type="Numero" align="right" width="4" id="116" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="122" y="0.5" type="Valuta" align="right" width="7" id="117" pattern="1" text="#########,@@" />
<field x="129" y="0.5" type="Numero" align="right" width="4" id="118" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="133" y="0.5" type="Valuta" align="right" width="7" id="119" pattern="1" text="#########,@@" />
<field x="140" y="0.5" type="Numero" align="right" width="4" id="120" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="144" y="0.5" type="Valuta" align="right" width="7" id="121" pattern="1" text="#########,@@" />
<field x="151" y="0.5" type="Numero" align="right" width="4" id="122" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="155" y="0.5" type="Valuta" align="right" width="7" id="123" pattern="1" text="#########,@@" />
<field x="162" y="0.5" type="Numero" align="right" width="4" id="124" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="168" y="0.5" type="Valuta" align="right" width="8" id="125" pattern="1" text="#########,@@">
<font italic="1" face="Arial Narrow" bold="1" size="7" />
</field>
<field x="177" y="0.5" type="Numero" align="right" width="4" id="126" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
</section>
</report>

399
ve/ve3800e.rep Executable file
View File

@ -0,0 +1,399 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report name="ve3800e" orientation="2" lpi="6">
<description>Statistiche Raggr. Articolo - Dett. Cliente</description>
<font face="Arial Narrow" size="7" />
<section type="Head">
<font face="Arial Narrow" bold="1" size="8" />
<prescript description="H0 PRESCRIPT">#DACODCLI @ #ACODCLI @ = \ se clienti coincidono
#DACODCLI @ EMPTY= NEGATE AND \ e se non sono vuoti
IF
99 HIDE
ELSE
99 SHOW
THEN
</prescript>
<field x="1" type="Testo" width="10" pattern="1" text="Articolo" />
<field border="1" x="33.5" type="Linea" height="2" pattern="1" />
<field border="1" x="167" type="Linea" height="2" pattern="1" />
<field x="34" y="1" type="Testo" align="center" width="11" pattern="1" text="Gennaio" />
<field x="45" y="1" type="Testo" align="center" width="11" pattern="1" text="Febbraio" />
<field x="56" y="1" type="Testo" align="center" width="11" pattern="1" text="Marzo" />
<field x="67" y="1" type="Testo" align="center" width="11" pattern="1" text="Aprile" />
<field x="78" y="1" type="Testo" align="center" width="11" pattern="1" text="Maggio" />
<field x="89" y="1" type="Testo" align="center" width="11" pattern="1" text="Giugno" />
<field x="100" y="1" type="Testo" align="center" width="11" pattern="1" text="Luglio" />
<field x="111" y="1" type="Testo" align="center" width="11" pattern="1" text="Agosto" />
<field x="122" y="1" type="Testo" align="center" width="11" pattern="1" text="Settembre" />
<field x="133" y="1" type="Testo" align="center" width="11" pattern="1" text="Ottobre" />
<field x="144" y="1" type="Testo" align="center" width="11" pattern="1" text="Novembre" />
<field x="155" y="1" type="Testo" align="center" width="11" pattern="1" text="Dicembre" />
<field x="168" y="1" type="Testo" align="center" width="12" pattern="1" text="ANNUALE" />
<field border="1" y="2" type="Linea" width="180" height="0" pattern="1" />
<field x="3" y="1" type="Testo" width="10" id="99" pattern="1" text="Cliente">
<font face="Arial" bold="1" size="8" />
</field>
</section>
<section type="Head" level="1">
<prescript description="H1 PRESCRIPT">#DACODCLI @ #ACODCLI @ = \ se clienti coincidono
#DACODCLI @ EMPTY= NEGATE AND \ e se non sono vuoti
IF
97 SHOW
98 SHOW
99 SHOW
ELSE
97 HIDE
98 HIDE
99 HIDE
THEN
</prescript>
<postscript description="H1 POSTSCRIPT">MESSAGE RESET,F1</postscript>
<field border="2" radius="100" x="30" y="0.5" type="Rettangolo" shade_offset="50" width="128" height="3" />
<field x="30" y="1" type="Testo" valign="center" align="center" width="128" height="2" pattern="1" text="STATISTICHE RAGGRUPPATE PER ARTICOLO DETTAGLIATE PER CLIENTE">
<font face="Arial" bold="1" size="14" />
</field>
<field x="10" y="4.5" type="Testo" width="20" pattern="1" text="Tipo dati analizzati:">
<font face="Arial" size="10" />
</field>
<field x="30" y="4.5" type="Array" width="10" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#TIPODATA</source>
<list>
<li Value="Prezzi" Code="P" />
<li Value="Quantita'" Code="Q" />
</list>
</field>
<field x="43" y="4.5" type="Testo" width="15" pattern="1" text="Numerazione:">
<font face="Arial" size="10" />
</field>
<field x="57" y="4.5" type="Stringa" width="6" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#CODNUM</source>
</field>
<field x="67" y="4.5" type="Testo" width="6" pattern="1" text="Anno:">
<font face="Arial" size="10" />
</field>
<field x="75" y="4.5" type="Numero" align="right" width="6" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#ANNO</source>
</field>
<field x="90" y="4.5" type="Testo" width="10" id="97" pattern="1" text="Cliente:">
<font face="Arial" size="10" />
</field>
<field x="103" y="4.5" type="Stringa" width="10" id="98" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#DACODCLI</source>
</field>
<field x="114" y="4.5" type="Stringa" width="60" id="99" pattern="1">
<font face="Arial" bold="1" size="10" />
<prescript description="H1.99 PRESCRIPT">MESSAGE ISAMREAD,20,TIPOCF='C'!CODCF=#98,RAGSOC</prescript>
</field>
</section>
<section type="Head" level="2">
<groupby>A</groupby>
<font face="Arial" bold="1" size="7" />
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2</prescript>
<field x="1" y="0.5" type="Stringa" width="12" id="99" pattern="1">
<source>A</source>
<prescript description="H2.99 PRESCRIPT">MESSAGE COPY,F2.99</prescript>
</field>
<field x="14" y="0.5" type="Stringa" width="50" id="100" pattern="1">
<source>B</source>
<prescript description="H2.100 PRESCRIPT">MESSAGE ISAMREAD,47,CODART=#99,DESCR
MESSAGE COPY,F2.100</prescript>
</field>
</section>
<section type="Body" />
<section type="Body" level="1">
<field border="1" x="33.5" type="Linea" pattern="1" />
<field x="34" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>C</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.101
MESSAGE ADD,F2.101</prescript>
</field>
<field x="41" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>D</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.102
MESSAGE ADD,F2.102</prescript>
</field>
<field x="45" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>E</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.103
MESSAGE ADD,F2.103</prescript>
</field>
<field x="52" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>F</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.104
MESSAGE ADD,F2.104</prescript>
</field>
<field x="56" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>G</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.105
MESSAGE ADD,F2.105</prescript>
</field>
<field x="63" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>H</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.106
MESSAGE ADD,F2.106</prescript>
</field>
<field x="67" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>I</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.107
MESSAGE ADD,F2.107</prescript>
</field>
<field x="74" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>J</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.108
MESSAGE ADD,F2.108</prescript>
</field>
<field x="78" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>K</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.109
MESSAGE ADD,F2.109</prescript>
</field>
<field x="85" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>L</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.110
MESSAGE ADD,F2.110</prescript>
</field>
<field x="89" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>M</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.111
MESSAGE ADD,F2.111</prescript>
</field>
<field x="96" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>N</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.112
MESSAGE ADD,F2.112</prescript>
</field>
<field x="100" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>O</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.113
MESSAGE ADD,F2.113</prescript>
</field>
<field x="107" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>P</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.114
MESSAGE ADD,F2.114</prescript>
</field>
<field x="111" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>Q</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.115
MESSAGE ADD,F2.115</prescript>
</field>
<field x="118" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>R</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.116
MESSAGE ADD,F2.116</prescript>
</field>
<field x="122" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>S</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.117
MESSAGE ADD,F2.117</prescript>
</field>
<field x="129" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>T</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.118
MESSAGE ADD,F2.118</prescript>
</field>
<field x="133" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>U</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.119
MESSAGE ADD,F2.119</prescript>
</field>
<field x="140" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>V</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.120
MESSAGE ADD,F2.120</prescript>
</field>
<field x="144" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>W</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.121
MESSAGE ADD,F2.121</prescript>
</field>
<field x="151" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>X</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.122
MESSAGE ADD,F2.122</prescript>
</field>
<field x="155" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>Y</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.123
MESSAGE ADD,F2.123</prescript>
</field>
<field x="162" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>Z</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.124
MESSAGE ADD,F2.124</prescript>
</field>
<field border="1" x="167" type="Linea" pattern="1" />
<field x="168" type="Valuta" align="right" width="8" pattern="1" text="#########,@@">
<font italic="1" face="Arial Narrow" size="7" />
<source>AA</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.125
MESSAGE ADD,F2.125</prescript>
</field>
<field x="176.5" type="Numero" align="right" width="5" pattern="1" text="###,@@">
<font italic="1" face="Arial Narrow" size="7" />
<source>AB</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.126
MESSAGE ADD,F2.126</prescript>
</field>
<field x="3" type="Stringa" width="6" id="99" pattern="1">
<source>AD</source>
</field>
<field x="9" type="Stringa" width="24" id="100" pattern="1">
<prescript description="B1.100 PRESCRIPT">MESSAGE ISAMREAD,20,TIPOCF='C'!CODCF=#99,RAGSOC</prescript>
</field>
</section>
<section type="Foot">
<font face="Arial Narrow" bold="1" size="8" />
<field border="1" type="Linea" width="180" height="0" pattern="1" />
<field x="162" type="Testo" valign="center" width="5" pattern="1" text="Pag." />
<field x="167" type="Numero" valign="center" align="right" width="3" pattern="1">
<source>#REPORT.PAGE</source>
</field>
</section>
<section type="Foot" level="1">
<font italic="1" face="Arial Narrow" bold="1" size="7" />
<field border="1" type="Linea" width="180" height="0" pattern="1" />
<field border="1" x="33.5" type="Linea" height="1.5" pattern="1" />
<field border="1" x="167" type="Linea" height="1.5" pattern="1" />
<field x="23" y="0.5" type="Testo" width="10" pattern="1" text="Totali">
<font face="Arial" bold="1" size="8" />
</field>
<field x="34" y="0.5" type="Valuta" align="right" width="7" id="101" pattern="1" text="#########,@@" />
<field x="41" y="0.5" type="Numero" align="right" width="4" id="102" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="45" y="0.5" type="Valuta" align="right" width="7" id="103" pattern="1" text="#########,@@" />
<field x="52" y="0.5" type="Numero" align="right" width="4" id="104" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="56" y="0.5" type="Valuta" align="right" width="7" id="105" pattern="1" text="#########,@@" />
<field x="63" y="0.5" type="Numero" align="right" width="4" id="106" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="67" y="0.5" type="Valuta" align="right" width="7" id="107" pattern="1" text="#########,@@" />
<field x="74" y="0.5" type="Numero" align="right" width="4" id="108" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="78" y="0.5" type="Valuta" align="right" width="7" id="109" pattern="1" text="#########,@@" />
<field x="85" y="0.5" type="Numero" align="right" width="4" id="110" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="89" y="0.5" type="Valuta" align="right" width="7" id="111" pattern="1" text="#########,@@" />
<field x="96" y="0.5" type="Numero" align="right" width="4" id="112" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="100" y="0.5" type="Valuta" align="right" width="7" id="113" pattern="1" text="#########,@@" />
<field x="107" y="0.5" type="Numero" align="right" width="4" id="114" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="111" y="0.5" type="Valuta" align="right" width="7" id="115" pattern="1" text="#########,@@" />
<field x="118" y="0.5" type="Numero" align="right" width="4" id="116" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="122" y="0.5" type="Valuta" align="right" width="7" id="117" pattern="1" text="#########,@@" />
<field x="129" y="0.5" type="Numero" align="right" width="4" id="118" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="133" y="0.5" type="Valuta" align="right" width="7" id="119" pattern="1" text="#########,@@" />
<field x="140" y="0.5" type="Numero" align="right" width="4" id="120" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="144" y="0.5" type="Valuta" align="right" width="7" id="121" pattern="1" text="#########,@@" />
<field x="151" y="0.5" type="Numero" align="right" width="4" id="122" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="155" y="0.5" type="Valuta" align="right" width="7" id="123" pattern="1" text="#########,@@" />
<field x="162" y="0.5" type="Numero" align="right" width="4" id="124" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="168" y="0.5" type="Valuta" align="right" width="8" id="125" pattern="1" text="#########,@@" />
<field x="177" y="0.5" type="Numero" align="right" width="4" id="126" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
</section>
<section type="Foot" level="2">
<font face="Arial Narrow" bold="1" size="7" />
<prescript description="F2 PRESCRIPT">#DACODCLI @ #ACODCLI @ = \ se clienti coincidono
#DACODCLI @ EMPTY= NEGATE AND \ e se non sono vuoti
IF
98 HIDE
ELSE
98 SHOW
THEN
</prescript>
<field border="1" x="2" type="Linea" width="178" height="0" pattern="1" />
<field border="1" x="33.5" type="Linea" height="2" pattern="1" />
<field border="1" x="167" type="Linea" height="2" pattern="1" />
<field border="2" y="2" type="Linea" width="181" height="0" pattern="1" />
<field y="0.5" type="Stringa" width="3" id="98" pattern="1" text="Tot" />
<field x="3" y="0.5" type="Stringa" width="10" id="99" pattern="1" />
<field x="13" y="0.5" type="Stringa" width="20" id="100" pattern="1" />
<field x="34" y="0.5" type="Valuta" align="right" width="7" id="101" pattern="1" text="#########,@@" />
<field x="41" y="0.5" type="Numero" align="right" width="4" id="102" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="45" y="0.5" type="Valuta" align="right" width="7" id="103" pattern="1" text="#########,@@" />
<field x="52" y="0.5" type="Numero" align="right" width="4" id="104" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="56" y="0.5" type="Valuta" align="right" width="7" id="105" pattern="1" text="#########,@@" />
<field x="63" y="0.5" type="Numero" align="right" width="4" id="106" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="67" y="0.5" type="Valuta" align="right" width="7" id="107" pattern="1" text="#########,@@" />
<field x="74" y="0.5" type="Numero" align="right" width="4" id="108" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="78" y="0.5" type="Valuta" align="right" width="7" id="109" pattern="1" text="#########,@@" />
<field x="85" y="0.5" type="Numero" align="right" width="4" id="110" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="89" y="0.5" type="Valuta" align="right" width="7" id="111" pattern="1" text="#########,@@" />
<field x="96" y="0.5" type="Numero" align="right" width="4" id="112" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="100" y="0.5" type="Valuta" align="right" width="7" id="113" pattern="1" text="#########,@@" />
<field x="107" y="0.5" type="Numero" align="right" width="4" id="114" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="111" y="0.5" type="Valuta" align="right" width="7" id="115" pattern="1" text="#########,@@" />
<field x="118" y="0.5" type="Numero" align="right" width="4" id="116" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="122" y="0.5" type="Valuta" align="right" width="7" id="117" pattern="1" text="#########,@@" />
<field x="129" y="0.5" type="Numero" align="right" width="4" id="118" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="133" y="0.5" type="Valuta" align="right" width="7" id="119" pattern="1" text="#########,@@" />
<field x="140" y="0.5" type="Numero" align="right" width="4" id="120" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="144" y="0.5" type="Valuta" align="right" width="7" id="121" pattern="1" text="#########,@@" />
<field x="151" y="0.5" type="Numero" align="right" width="4" id="122" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="155" y="0.5" type="Valuta" align="right" width="7" id="123" pattern="1" text="#########,@@" />
<field x="162" y="0.5" type="Numero" align="right" width="4" id="124" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="168" y="0.5" type="Valuta" align="right" width="8" id="125" pattern="1" text="#########,@@">
<font italic="1" face="Arial Narrow" bold="1" size="7" />
</field>
<field x="177" y="0.5" type="Numero" align="right" width="4" id="126" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
</section>
<prescript description="PRESCRIPT">#DACODCLI @ #ACODCLI @ = \ se clienti coincidono
#DACODCLI @ EMPTY= NEGATE AND \ e se non sono vuoti
IF
"H2" HIDE \ nasconde sezioni e campi indesiderati
"B1" HIDE
ELSE
"H2" SHOW \ mostra sezioni e campi desiderati
"B1" SHOW
THEN
</prescript>
</report>

448
ve/ve3800f.rep Executable file
View File

@ -0,0 +1,448 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report name="ve3800f" orientation="2" lpi="6">
<description>Statistiche Raggr. Cliente - Dett. Gr.Merc.</description>
<font face="Arial Narrow" size="7" />
<section type="Head">
<font face="Arial Narrow" bold="1" size="8" />
<field x="1" type="Testo" width="10" pattern="1" text="Cliente">
<font face="Arial" bold="1" size="8" />
</field>
<field border="1" x="33.5" type="Linea" height="2" pattern="1" />
<field border="1" x="167" type="Linea" height="2" pattern="1" />
<field x="3.5" y="1" type="Testo" width="20" pattern="1" text="Gruppo Merceologico" />
<field x="34" y="1" type="Testo" align="center" width="11" pattern="1" text="Gennaio" />
<field x="45" y="1" type="Testo" align="center" width="11" pattern="1" text="Febbraio" />
<field x="56" y="1" type="Testo" align="center" width="11" pattern="1" text="Marzo" />
<field x="67" y="1" type="Testo" align="center" width="11" pattern="1" text="Aprile" />
<field x="78" y="1" type="Testo" align="center" width="11" pattern="1" text="Maggio" />
<field x="89" y="1" type="Testo" align="center" width="11" pattern="1" text="Giugno" />
<field x="100" y="1" type="Testo" align="center" width="11" pattern="1" text="Luglio" />
<field x="111" y="1" type="Testo" align="center" width="11" pattern="1" text="Agosto" />
<field x="122" y="1" type="Testo" align="center" width="11" pattern="1" text="Settembre" />
<field x="133" y="1" type="Testo" align="center" width="11" pattern="1" text="Ottobre" />
<field x="144" y="1" type="Testo" align="center" width="11" pattern="1" text="Novembre" />
<field x="155" y="1" type="Testo" align="center" width="11" pattern="1" text="Dicembre" />
<field x="168" y="1" type="Testo" align="center" width="12" pattern="1" text="ANNUALE" />
<field border="1" y="2" type="Linea" width="180" height="0" pattern="1" />
</section>
<section type="Head" level="1">
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
<field border="2" radius="100" x="30" y="0.5" type="Rettangolo" shade_offset="50" width="128" height="3" />
<field x="30" y="1" type="Testo" valign="center" align="center" width="128" height="2" pattern="1" text="STATISTICHE RAGGRUPPATE PER CLIENTE DETTAGLIATE PER GR.MERC.">
<font face="Arial" bold="1" size="14" />
</field>
<field x="10" y="4.5" type="Testo" width="20" pattern="1" text="Tipo dati analizzati:">
<font face="Arial" size="10" />
</field>
<field x="30" y="4.5" type="Array" width="10" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#TIPODATA</source>
<list>
<li Value="Prezzi" Code="P" />
<li Value="Quantita'" Code="Q" />
</list>
</field>
<field x="43" y="4.5" type="Testo" width="15" pattern="1" text="Numerazione:">
<font face="Arial" size="10" />
</field>
<field x="57" y="4.5" type="Stringa" width="6" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#CODNUM</source>
</field>
<field x="67" y="4.5" type="Testo" width="6" pattern="1" text="Anno:">
<font face="Arial" size="10" />
</field>
<field x="75" y="4.5" type="Numero" align="right" width="6" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#ANNO</source>
</field>
</section>
<section type="Head" level="2">
<groupby>AD</groupby>
<font face="Arial" bold="1" size="7" />
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2</prescript>
<field x="1" y="0.5" type="Stringa" width="6" id="99" pattern="1">
<source>AD</source>
<prescript description="H2.99 PRESCRIPT">MESSAGE COPY,F2.99</prescript>
</field>
<field x="8" y="0.5" type="Stringa" width="50" id="100" pattern="1">
<prescript description="H2.100 PRESCRIPT">MESSAGE ISAMREAD,20,TIPOCF='C'!CODCF=#99,RAGSOC
MESSAGE COPY,F2.100</prescript>
</field>
</section>
<section type="Head" level="3" hidden="1">
<groupby>AC</groupby>
<font italic="1" face="Arial Narrow" bold="1" size="7" />
<prescript description="H3 PRESCRIPT">MESSAGE RESET,F3</prescript>
<field x="3" type="Stringa" width="5" id="99" pattern="1">
<source>AC</source>
<prescript description="H3.99 PRESCRIPT">MESSAGE COPY,F3.99</prescript>
</field>
</section>
<section type="Body" />
<section type="Body" level="1" hidden="1" bg_color="#FF0080">
<field x="3" type="Stringa" width="6" pattern="1">
<source>A</source>
</field>
<field x="9" type="Stringa" width="24" pattern="1">
<source>B</source>
</field>
<field border="1" x="33.5" type="Linea" pattern="1" />
<field x="34" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>C</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.101
MESSAGE ADD,F2.101
MESSAGE ADD,F3.101</prescript>
</field>
<field x="41" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>D</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.102
MESSAGE ADD,F2.102
MESSAGE ADD,F3.102</prescript>
</field>
<field x="45" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>E</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.103
MESSAGE ADD,F2.103
MESSAGE ADD,F3.103</prescript>
</field>
<field x="52" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>F</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.104
MESSAGE ADD,F2.104
MESSAGE ADD,F3.104</prescript>
</field>
<field x="56" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>G</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.105
MESSAGE ADD,F2.105
MESSAGE ADD,F3.105</prescript>
</field>
<field x="63" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>H</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.106
MESSAGE ADD,F2.106
MESSAGE ADD,F3.106</prescript>
</field>
<field x="67" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>I</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.107
MESSAGE ADD,F2.107
MESSAGE ADD,F3.107</prescript>
</field>
<field x="74" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>J</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.108
MESSAGE ADD,F2.108
MESSAGE ADD,F3.108</prescript>
</field>
<field x="78" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>K</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.109
MESSAGE ADD,F2.109
MESSAGE ADD,F3.109</prescript>
</field>
<field x="85" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>L</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.110
MESSAGE ADD,F2.110
MESSAGE ADD,F3.110</prescript>
</field>
<field x="89" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>M</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.111
MESSAGE ADD,F2.111
MESSAGE ADD,F3.111</prescript>
</field>
<field x="96" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>N</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.112
MESSAGE ADD,F2.112
MESSAGE ADD,F3.112</prescript>
</field>
<field x="100" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>O</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.113
MESSAGE ADD,F2.113
MESSAGE ADD,F3.113</prescript>
</field>
<field x="107" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>P</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.114
MESSAGE ADD,F2.114
MESSAGE ADD,F3.114</prescript>
</field>
<field x="111" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>Q</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.115
MESSAGE ADD,F2.115
MESSAGE ADD,F3.115</prescript>
</field>
<field x="118" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>R</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.116
MESSAGE ADD,F2.116
MESSAGE ADD,F3.116</prescript>
</field>
<field x="122" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>S</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.117
MESSAGE ADD,F2.117
MESSAGE ADD,F3.117</prescript>
</field>
<field x="129" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>T</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.118
MESSAGE ADD,F2.118
MESSAGE ADD,F3.118</prescript>
</field>
<field x="133" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>U</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.119
MESSAGE ADD,F2.119
MESSAGE ADD,F3.119</prescript>
</field>
<field x="140" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>V</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.120
MESSAGE ADD,F2.120
MESSAGE ADD,F3.120</prescript>
</field>
<field x="144" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>W</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.121
MESSAGE ADD,F2.121
MESSAGE ADD,F3.121</prescript>
</field>
<field x="151" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>X</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.122
MESSAGE ADD,F2.122
MESSAGE ADD,F3.122</prescript>
</field>
<field x="155" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>Y</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.123
MESSAGE ADD,F2.123
MESSAGE ADD,F3.123</prescript>
</field>
<field x="162" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>Z</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.124
MESSAGE ADD,F2.124
MESSAGE ADD,F3.124</prescript>
</field>
<field border="1" x="167" type="Linea" pattern="1" />
<field x="168" type="Valuta" align="right" width="8" pattern="1" text="#########,@@">
<font italic="1" face="Arial Narrow" size="7" />
<source>AA</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.125
MESSAGE ADD,F2.125
MESSAGE ADD,F3.125</prescript>
</field>
<field x="176.5" type="Numero" align="right" width="5" pattern="1" text="###,@@">
<font italic="1" face="Arial Narrow" size="7" />
<source>AB</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.126
MESSAGE ADD,F2.126
MESSAGE ADD,F3.126</prescript>
</field>
</section>
<section type="Foot">
<font face="Arial Narrow" bold="1" size="8" />
<field border="1" type="Linea" width="180" height="0" pattern="1" />
<field x="162" type="Testo" valign="center" width="5" pattern="1" text="Pag." />
<field x="167" type="Numero" valign="center" align="right" width="3" pattern="1">
<source>#REPORT.PAGE</source>
</field>
</section>
<section type="Foot" level="1">
<font italic="1" face="Arial Narrow" bold="1" size="7" />
<field border="1" type="Linea" width="180" height="0" pattern="1" />
<field border="1" x="33.5" type="Linea" height="1.5" pattern="1" />
<field border="1" x="167" type="Linea" height="1.5" pattern="1" />
<field x="23" y="0.5" type="Testo" width="10" pattern="1" text="Totali">
<font face="Arial" bold="1" size="8" />
</field>
<field x="34" y="0.5" type="Valuta" align="right" width="7" id="101" pattern="1" text="#########,@@" />
<field x="41" y="0.5" type="Numero" align="right" width="4" id="102" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="45" y="0.5" type="Valuta" align="right" width="7" id="103" pattern="1" text="#########,@@" />
<field x="52" y="0.5" type="Numero" align="right" width="4" id="104" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="56" y="0.5" type="Valuta" align="right" width="7" id="105" pattern="1" text="#########,@@" />
<field x="63" y="0.5" type="Numero" align="right" width="4" id="106" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="67" y="0.5" type="Valuta" align="right" width="7" id="107" pattern="1" text="#########,@@" />
<field x="74" y="0.5" type="Numero" align="right" width="4" id="108" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="78" y="0.5" type="Valuta" align="right" width="7" id="109" pattern="1" text="#########,@@" />
<field x="85" y="0.5" type="Numero" align="right" width="4" id="110" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="89" y="0.5" type="Valuta" align="right" width="7" id="111" pattern="1" text="#########,@@" />
<field x="96" y="0.5" type="Numero" align="right" width="4" id="112" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="100" y="0.5" type="Valuta" align="right" width="7" id="113" pattern="1" text="#########,@@" />
<field x="107" y="0.5" type="Numero" align="right" width="4" id="114" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="111" y="0.5" type="Valuta" align="right" width="7" id="115" pattern="1" text="#########,@@" />
<field x="118" y="0.5" type="Numero" align="right" width="4" id="116" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="122" y="0.5" type="Valuta" align="right" width="7" id="117" pattern="1" text="#########,@@" />
<field x="129" y="0.5" type="Numero" align="right" width="4" id="118" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="133" y="0.5" type="Valuta" align="right" width="7" id="119" pattern="1" text="#########,@@" />
<field x="140" y="0.5" type="Numero" align="right" width="4" id="120" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="144" y="0.5" type="Valuta" align="right" width="7" id="121" pattern="1" text="#########,@@" />
<field x="151" y="0.5" type="Numero" align="right" width="4" id="122" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="155" y="0.5" type="Valuta" align="right" width="7" id="123" pattern="1" text="#########,@@" />
<field x="162" y="0.5" type="Numero" align="right" width="4" id="124" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="168" y="0.5" type="Valuta" align="right" width="8" id="125" pattern="1" text="#########,@@" />
<field x="177" y="0.5" type="Numero" align="right" width="4" id="126" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
</section>
<section type="Foot" level="2" bg_color="#0080FF">
<font face="Arial Narrow" bold="1" size="7" />
<field border="1" x="2" type="Linea" width="178" height="0" pattern="1" />
<field border="1" x="33.5" type="Linea" height="2" pattern="1" />
<field border="1" x="167" type="Linea" height="2" pattern="1" />
<field y="0.5" type="Stringa" width="3" pattern="1" text="Tot" />
<field border="2" y="2" type="Linea" width="181" height="0" pattern="1" />
<field x="3" y="0.5" type="Stringa" width="10" id="99" pattern="1" />
<field x="13" y="0.5" type="Stringa" width="20" id="100" pattern="1">
<prescript description="F2.100 PRESCRIPT">MESSAGE ISAMREAD,20,TIPOCF='C'!CODCF=#99,RAGSOC</prescript>
</field>
<field x="34" y="0.5" type="Valuta" align="right" width="7" id="101" pattern="1" text="#########,@@" />
<field x="41" y="0.5" type="Numero" align="right" width="4" id="102" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="45" y="0.5" type="Valuta" align="right" width="7" id="103" pattern="1" text="#########,@@" />
<field x="52" y="0.5" type="Numero" align="right" width="4" id="104" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="56" y="0.5" type="Valuta" align="right" width="7" id="105" pattern="1" text="#########,@@" />
<field x="63" y="0.5" type="Numero" align="right" width="4" id="106" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="67" y="0.5" type="Valuta" align="right" width="7" id="107" pattern="1" text="#########,@@" />
<field x="74" y="0.5" type="Numero" align="right" width="4" id="108" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="78" y="0.5" type="Valuta" align="right" width="7" id="109" pattern="1" text="#########,@@" />
<field x="85" y="0.5" type="Numero" align="right" width="4" id="110" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="89" y="0.5" type="Valuta" align="right" width="7" id="111" pattern="1" text="#########,@@" />
<field x="96" y="0.5" type="Numero" align="right" width="4" id="112" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="100" y="0.5" type="Valuta" align="right" width="7" id="113" pattern="1" text="#########,@@" />
<field x="107" y="0.5" type="Numero" align="right" width="4" id="114" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="111" y="0.5" type="Valuta" align="right" width="7" id="115" pattern="1" text="#########,@@" />
<field x="118" y="0.5" type="Numero" align="right" width="4" id="116" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="122" y="0.5" type="Valuta" align="right" width="7" id="117" pattern="1" text="#########,@@" />
<field x="129" y="0.5" type="Numero" align="right" width="4" id="118" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="133" y="0.5" type="Valuta" align="right" width="7" id="119" pattern="1" text="#########,@@" />
<field x="140" y="0.5" type="Numero" align="right" width="4" id="120" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="144" y="0.5" type="Valuta" align="right" width="7" id="121" pattern="1" text="#########,@@" />
<field x="151" y="0.5" type="Numero" align="right" width="4" id="122" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="155" y="0.5" type="Valuta" align="right" width="7" id="123" pattern="1" text="#########,@@" />
<field x="162" y="0.5" type="Numero" align="right" width="4" id="124" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="168" y="0.5" type="Valuta" align="right" width="8" id="125" pattern="1" text="#########,@@">
<font italic="1" face="Arial Narrow" bold="1" size="7" />
</field>
<field x="177" y="0.5" type="Numero" align="right" width="4" id="126" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
</section>
<section type="Foot" level="3" bg_color="#FFFF00">
<field border="1" x="33.5" type="Linea" pattern="1" />
<field border="1" x="167" type="Linea" pattern="1" />
<field x="2.5" type="Stringa" width="5" id="99" pattern="1" />
<field x="8" type="Stringa" width="25" id="100" pattern="1">
<prescript description="F3.100 PRESCRIPT">MESSAGE TABLEREAD,GMC,#99,S0</prescript>
</field>
<field x="34" type="Valuta" align="right" width="7" id="101" pattern="1" text="#########,@@" />
<field x="41" type="Numero" align="right" width="4" id="102" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="45" type="Valuta" align="right" width="7" id="103" pattern="1" text="#########,@@" />
<field x="52" type="Numero" align="right" width="4" id="104" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="56" type="Valuta" align="right" width="7" id="105" pattern="1" text="#########,@@" />
<field x="63" type="Numero" align="right" width="4" id="106" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="67" type="Valuta" align="right" width="7" id="107" pattern="1" text="#########,@@" />
<field x="74" type="Numero" align="right" width="4" id="108" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="78" type="Valuta" align="right" width="7" id="109" pattern="1" text="#########,@@" />
<field x="85" type="Numero" align="right" width="4" id="110" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="89" type="Valuta" align="right" width="7" id="111" pattern="1" text="#########,@@" />
<field x="96" type="Numero" align="right" width="4" id="112" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="100" type="Valuta" align="right" width="7" id="113" pattern="1" text="#########,@@" />
<field x="107" type="Numero" align="right" width="4" id="114" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="111" type="Valuta" align="right" width="7" id="115" pattern="1" text="#########,@@" />
<field x="118" type="Numero" align="right" width="4" id="116" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="122" type="Valuta" align="right" width="7" id="117" pattern="1" text="#########,@@" />
<field x="129" type="Numero" align="right" width="4" id="118" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="133" type="Valuta" align="right" width="7" id="119" pattern="1" text="#########,@@" />
<field x="140" type="Numero" align="right" width="4" id="120" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="144" type="Valuta" align="right" width="7" id="121" pattern="1" text="#########,@@" />
<field x="151" type="Numero" align="right" width="4" id="122" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="155" type="Valuta" align="right" width="7" id="123" pattern="1" text="#########,@@" />
<field x="162" type="Numero" align="right" width="4" id="124" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="168" type="Valuta" align="right" width="8" id="125" pattern="1" text="#########,@@">
<font italic="1" face="Arial Narrow" bold="1" size="7" />
</field>
<field x="177" type="Numero" align="right" width="4" id="126" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
</section>
</report>

496
ve/ve3800g.rep Executable file
View File

@ -0,0 +1,496 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report name="ve3800g" orientation="2" lpi="6">
<description>Statistiche Raggr. Gr.Merc. - Dett. Cliente</description>
<font face="Arial Narrow" size="7" />
<section type="Head">
<font face="Arial Narrow" bold="1" size="8" />
<prescript description="H0 PRESCRIPT">#DACODCLI @ #ACODCLI @ = \ se clienti coincidono
#DACODCLI @ EMPTY= NEGATE AND \ e se non sono vuoti
IF
99 HIDE
ELSE
99 SHOW
THEN
</prescript>
<field x="1" type="Testo" width="20" pattern="1" text="Gruppo Merceologico" />
<field border="1" x="33.5" type="Linea" height="2" pattern="1" />
<field border="1" x="167" type="Linea" height="2" pattern="1" />
<field x="34" y="1" type="Testo" align="center" width="11" pattern="1" text="Gennaio" />
<field x="45" y="1" type="Testo" align="center" width="11" pattern="1" text="Febbraio" />
<field x="56" y="1" type="Testo" align="center" width="11" pattern="1" text="Marzo" />
<field x="67" y="1" type="Testo" align="center" width="11" pattern="1" text="Aprile" />
<field x="78" y="1" type="Testo" align="center" width="11" pattern="1" text="Maggio" />
<field x="89" y="1" type="Testo" align="center" width="11" pattern="1" text="Giugno" />
<field x="100" y="1" type="Testo" align="center" width="11" pattern="1" text="Luglio" />
<field x="111" y="1" type="Testo" align="center" width="11" pattern="1" text="Agosto" />
<field x="122" y="1" type="Testo" align="center" width="11" pattern="1" text="Settembre" />
<field x="133" y="1" type="Testo" align="center" width="11" pattern="1" text="Ottobre" />
<field x="144" y="1" type="Testo" align="center" width="11" pattern="1" text="Novembre" />
<field x="155" y="1" type="Testo" align="center" width="11" pattern="1" text="Dicembre" />
<field x="168" y="1" type="Testo" align="center" width="12" pattern="1" text="ANNUALE" />
<field border="1" y="2" type="Linea" width="180" height="0" pattern="1" />
<field x="3" y="1" type="Testo" width="10" id="99" pattern="1" text="Cliente">
<font face="Arial" bold="1" size="8" />
</field>
</section>
<section type="Head" level="1">
<prescript description="H1 PRESCRIPT">#DACODCLI @ #ACODCLI @ = \ se clienti coincidono
#DACODCLI @ EMPTY= NEGATE AND \ e se non sono vuoti
IF
97 SHOW
98 SHOW
99 SHOW
ELSE
97 HIDE
98 HIDE
99 HIDE
THEN
</prescript>
<postscript description="H1 POSTSCRIPT">MESSAGE RESET,F1</postscript>
<field border="2" radius="100" x="30" y="0.5" type="Rettangolo" shade_offset="50" width="128" height="3" />
<field x="30" y="1" type="Testo" valign="center" align="center" width="128" height="2" pattern="1" text="STATISTICHE RAGGRUPPATE PER GR. MERC. DETTAGLIATE PER CLIENTE">
<font face="Arial" bold="1" size="14" />
</field>
<field x="10" y="4.5" type="Testo" width="20" pattern="1" text="Tipo dati analizzati:">
<font face="Arial" size="10" />
</field>
<field x="30" y="4.5" type="Array" width="10" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#TIPODATA</source>
<list>
<li Value="Prezzi" Code="P" />
<li Value="Quantita'" Code="Q" />
</list>
</field>
<field x="43" y="4.5" type="Testo" width="15" pattern="1" text="Numerazione:">
<font face="Arial" size="10" />
</field>
<field x="57" y="4.5" type="Stringa" width="6" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#CODNUM</source>
</field>
<field x="67" y="4.5" type="Testo" width="6" pattern="1" text="Anno:">
<font face="Arial" size="10" />
</field>
<field x="75" y="4.5" type="Numero" align="right" width="6" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#ANNO</source>
</field>
<field x="90" y="4.5" type="Testo" width="10" id="97" pattern="1" text="Cliente:">
<font face="Arial" size="10" />
</field>
<field x="103" y="4.5" type="Stringa" width="10" id="98" pattern="1">
<font face="Arial" bold="1" size="10" />
<source>#DACODCLI</source>
</field>
<field x="114" y="4.5" type="Stringa" width="60" id="99" pattern="1">
<font face="Arial" bold="1" size="10" />
<prescript description="H1.99 PRESCRIPT">MESSAGE ISAMREAD,20,TIPOCF='C'!CODCF=#98,RAGSOC</prescript>
</field>
</section>
<section type="Head" level="2">
<groupby>AC</groupby>
<font face="Arial" bold="1" size="7" />
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2</prescript>
<field x="1" y="0.5" type="Stringa" width="5" id="99" pattern="1">
<source>AC</source>
<prescript description="H2.99 PRESCRIPT">MESSAGE COPY,F2.99</prescript>
</field>
<field x="7" y="0.5" type="Stringa" width="25" id="100" pattern="1">
<prescript description="H2.100 PRESCRIPT">MESSAGE TABLEREAD,GMC,#99,S0
MESSAGE COPY,F2.100</prescript>
</field>
</section>
<section type="Head" level="3" hidden="1">
<groupby>A</groupby>
<prescript description="H3 PRESCRIPT">MESSAGE RESET,F3</prescript>
<field x="2" type="Stringa" width="12" id="99" pattern="1">
<source>A</source>
<prescript description="H3.99 PRESCRIPT">MESSAGE COPY,F3.99</prescript>
</field>
<field x="15" type="Stringa" width="50" id="100" pattern="1">
<source>B</source>
<prescript description="H3.100 PRESCRIPT">MESSAGE ISAMREAD,47,CODART=#99,DESCR
MESSAGE COPY,F3.100</prescript>
</field>
</section>
<section type="Body" />
<section type="Body" level="1">
<field border="1" x="33.5" type="Linea" pattern="1" />
<field x="34" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>C</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.101
MESSAGE ADD,F2.101
MESSAGE ADD,F3.101</prescript>
</field>
<field x="41" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>D</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.102
MESSAGE ADD,F2.102
MESSAGE ADD,F3.102</prescript>
</field>
<field x="45" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>E</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.103
MESSAGE ADD,F2.103
MESSAGE ADD,F3.103</prescript>
</field>
<field x="52" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>F</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.104
MESSAGE ADD,F2.104
MESSAGE ADD,F3.104</prescript>
</field>
<field x="56" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>G</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.105
MESSAGE ADD,F2.105
MESSAGE ADD,F3.105</prescript>
</field>
<field x="63" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>H</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.106
MESSAGE ADD,F2.106
MESSAGE ADD,F3.106</prescript>
</field>
<field x="67" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>I</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.107
MESSAGE ADD,F2.107
MESSAGE ADD,F3.107</prescript>
</field>
<field x="74" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>J</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.108
MESSAGE ADD,F2.108
MESSAGE ADD,F3.108</prescript>
</field>
<field x="78" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>K</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.109
MESSAGE ADD,F2.109
MESSAGE ADD,F3.109</prescript>
</field>
<field x="85" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>L</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.110
MESSAGE ADD,F2.110
MESSAGE ADD,F3.110</prescript>
</field>
<field x="89" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>M</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.111
MESSAGE ADD,F2.111
MESSAGE ADD,F3.111</prescript>
</field>
<field x="96" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>N</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.112
MESSAGE ADD,F2.112
MESSAGE ADD,F3.112</prescript>
</field>
<field x="100" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>O</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.113
MESSAGE ADD,F2.113
MESSAGE ADD,F3.113</prescript>
</field>
<field x="107" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>P</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.114
MESSAGE ADD,F2.114
MESSAGE ADD,F3.114</prescript>
</field>
<field x="111" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>Q</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.115
MESSAGE ADD,F2.115
MESSAGE ADD,F3.115</prescript>
</field>
<field x="118" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>R</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.116
MESSAGE ADD,F2.116
MESSAGE ADD,F3.116</prescript>
</field>
<field x="122" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>S</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.117
MESSAGE ADD,F2.117
MESSAGE ADD,F3.117</prescript>
</field>
<field x="129" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>T</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.118
MESSAGE ADD,F2.118
MESSAGE ADD,F3.118</prescript>
</field>
<field x="133" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>U</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.119
MESSAGE ADD,F2.119
MESSAGE ADD,F3.119</prescript>
</field>
<field x="140" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>V</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.120
MESSAGE ADD,F2.120
MESSAGE ADD,F3.120</prescript>
</field>
<field x="144" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>W</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.121
MESSAGE ADD,F2.121
MESSAGE ADD,F3.121</prescript>
</field>
<field x="151" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>X</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.122
MESSAGE ADD,F2.122
MESSAGE ADD,F3.122</prescript>
</field>
<field x="155" type="Valuta" align="right" width="7" pattern="1" text="#########,@@">
<source>Y</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.123
MESSAGE ADD,F2.123
MESSAGE ADD,F3.123</prescript>
</field>
<field x="162" type="Numero" align="right" width="4" pattern="1" text="###,@@">
<source>Z</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.124
MESSAGE ADD,F2.124
MESSAGE ADD,F3.124</prescript>
</field>
<field border="1" x="167" type="Linea" pattern="1" />
<field x="168" type="Valuta" align="right" width="8" pattern="1" text="#########,@@">
<font italic="1" face="Arial Narrow" size="7" />
<source>AA</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.125
MESSAGE ADD,F2.125
MESSAGE ADD,F3.125</prescript>
</field>
<field x="176.5" type="Numero" align="right" width="5" pattern="1" text="###,@@">
<font italic="1" face="Arial Narrow" size="7" />
<source>AB</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.126
MESSAGE ADD,F2.126
MESSAGE ADD,F3.126</prescript>
</field>
<field x="3" type="Stringa" width="6" id="99" pattern="1">
<source>AD</source>
</field>
<field x="9" type="Stringa" width="24" id="100" pattern="1">
<prescript description="B1.100 PRESCRIPT">MESSAGE ISAMREAD,20,TIPOCF='C'!CODCF=#99,RAGSOC</prescript>
</field>
</section>
<section type="Foot">
<font face="Arial Narrow" bold="1" size="8" />
<field border="1" type="Linea" width="180" height="0" pattern="1" />
<field x="162" type="Testo" valign="center" width="5" pattern="1" text="Pag." />
<field x="167" type="Numero" valign="center" align="right" width="3" pattern="1">
<source>#REPORT.PAGE</source>
</field>
</section>
<section type="Foot" level="1">
<font italic="1" face="Arial Narrow" bold="1" size="7" />
<field border="1" type="Linea" width="180" height="0" pattern="1" />
<field border="1" x="33.5" type="Linea" height="1.5" pattern="1" />
<field border="1" x="167" type="Linea" height="1.5" pattern="1" />
<field x="23" y="0.5" type="Testo" width="10" pattern="1" text="Totali">
<font face="Arial" bold="1" size="8" />
</field>
<field x="34" y="0.5" type="Valuta" align="right" width="7" id="101" pattern="1" text="#########,@@" />
<field x="41" y="0.5" type="Numero" align="right" width="4" id="102" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="45" y="0.5" type="Valuta" align="right" width="7" id="103" pattern="1" text="#########,@@" />
<field x="52" y="0.5" type="Numero" align="right" width="4" id="104" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="56" y="0.5" type="Valuta" align="right" width="7" id="105" pattern="1" text="#########,@@" />
<field x="63" y="0.5" type="Numero" align="right" width="4" id="106" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="67" y="0.5" type="Valuta" align="right" width="7" id="107" pattern="1" text="#########,@@" />
<field x="74" y="0.5" type="Numero" align="right" width="4" id="108" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="78" y="0.5" type="Valuta" align="right" width="7" id="109" pattern="1" text="#########,@@" />
<field x="85" y="0.5" type="Numero" align="right" width="4" id="110" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="89" y="0.5" type="Valuta" align="right" width="7" id="111" pattern="1" text="#########,@@" />
<field x="96" y="0.5" type="Numero" align="right" width="4" id="112" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="100" y="0.5" type="Valuta" align="right" width="7" id="113" pattern="1" text="#########,@@" />
<field x="107" y="0.5" type="Numero" align="right" width="4" id="114" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="111" y="0.5" type="Valuta" align="right" width="7" id="115" pattern="1" text="#########,@@" />
<field x="118" y="0.5" type="Numero" align="right" width="4" id="116" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="122" y="0.5" type="Valuta" align="right" width="7" id="117" pattern="1" text="#########,@@" />
<field x="129" y="0.5" type="Numero" align="right" width="4" id="118" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="133" y="0.5" type="Valuta" align="right" width="7" id="119" pattern="1" text="#########,@@" />
<field x="140" y="0.5" type="Numero" align="right" width="4" id="120" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="144" y="0.5" type="Valuta" align="right" width="7" id="121" pattern="1" text="#########,@@" />
<field x="151" y="0.5" type="Numero" align="right" width="4" id="122" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="155" y="0.5" type="Valuta" align="right" width="7" id="123" pattern="1" text="#########,@@" />
<field x="162" y="0.5" type="Numero" align="right" width="4" id="124" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="168" y="0.5" type="Valuta" align="right" width="8" id="125" pattern="1" text="#########,@@" />
<field x="177" y="0.5" type="Numero" align="right" width="4" id="126" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
</section>
<section type="Foot" level="2">
<font face="Arial Narrow" bold="1" size="7" />
<prescript description="F2 PRESCRIPT">#DACODCLI @ #ACODCLI @ = \ se clienti coincidono
#DACODCLI @ EMPTY= NEGATE AND \ e se non sono vuoti
IF
98 HIDE
ELSE
98 SHOW
THEN
</prescript>
<field border="1" x="2" type="Linea" width="178" height="0" pattern="1" />
<field border="1" x="33.5" type="Linea" height="2" pattern="1" />
<field border="1" x="167" type="Linea" height="2" pattern="1" />
<field border="2" y="2" type="Linea" width="181" height="0" pattern="1" />
<field y="0.5" type="Stringa" width="3" id="98" pattern="1" text="Tot" />
<field x="3" y="0.5" type="Stringa" width="5" id="99" pattern="1" />
<field x="8" y="0.5" type="Stringa" width="25" id="100" pattern="1" />
<field x="34" y="0.5" type="Valuta" align="right" width="7" id="101" pattern="1" text="#########,@@" />
<field x="41" y="0.5" type="Numero" align="right" width="4" id="102" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="45" y="0.5" type="Valuta" align="right" width="7" id="103" pattern="1" text="#########,@@" />
<field x="52" y="0.5" type="Numero" align="right" width="4" id="104" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="56" y="0.5" type="Valuta" align="right" width="7" id="105" pattern="1" text="#########,@@" />
<field x="63" y="0.5" type="Numero" align="right" width="4" id="106" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="67" y="0.5" type="Valuta" align="right" width="7" id="107" pattern="1" text="#########,@@" />
<field x="74" y="0.5" type="Numero" align="right" width="4" id="108" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="78" y="0.5" type="Valuta" align="right" width="7" id="109" pattern="1" text="#########,@@" />
<field x="85" y="0.5" type="Numero" align="right" width="4" id="110" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="89" y="0.5" type="Valuta" align="right" width="7" id="111" pattern="1" text="#########,@@" />
<field x="96" y="0.5" type="Numero" align="right" width="4" id="112" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="100" y="0.5" type="Valuta" align="right" width="7" id="113" pattern="1" text="#########,@@" />
<field x="107" y="0.5" type="Numero" align="right" width="4" id="114" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="111" y="0.5" type="Valuta" align="right" width="7" id="115" pattern="1" text="#########,@@" />
<field x="118" y="0.5" type="Numero" align="right" width="4" id="116" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="122" y="0.5" type="Valuta" align="right" width="7" id="117" pattern="1" text="#########,@@" />
<field x="129" y="0.5" type="Numero" align="right" width="4" id="118" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="133" y="0.5" type="Valuta" align="right" width="7" id="119" pattern="1" text="#########,@@" />
<field x="140" y="0.5" type="Numero" align="right" width="4" id="120" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="144" y="0.5" type="Valuta" align="right" width="7" id="121" pattern="1" text="#########,@@" />
<field x="151" y="0.5" type="Numero" align="right" width="4" id="122" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="155" y="0.5" type="Valuta" align="right" width="7" id="123" pattern="1" text="#########,@@" />
<field x="162" y="0.5" type="Numero" align="right" width="4" id="124" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="168" y="0.5" type="Valuta" align="right" width="8" id="125" pattern="1" text="#########,@@">
<font italic="1" face="Arial Narrow" bold="1" size="7" />
</field>
<field x="177" y="0.5" type="Numero" align="right" width="4" id="126" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
</section>
<section type="Foot" level="3" hidden="1">
<field type="Stringa" width="3" id="98" pattern="1" text="Tot" />
<field x="3" type="Stringa" width="10" id="99" pattern="1" />
<field x="13" type="Stringa" width="20" id="100" pattern="1" />
<field x="34" type="Valuta" align="right" width="7" id="101" pattern="1" text="#########,@@" />
<field x="41" type="Numero" align="right" width="4" id="102" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="45" type="Valuta" align="right" width="7" id="103" pattern="1" text="#########,@@" />
<field x="52" type="Numero" align="right" width="4" id="104" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="56" type="Valuta" align="right" width="7" id="105" pattern="1" text="#########,@@" />
<field x="63" type="Numero" align="right" width="4" id="106" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="67" type="Valuta" align="right" width="7" id="107" pattern="1" text="#########,@@" />
<field x="74" type="Numero" align="right" width="4" id="108" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="78" type="Valuta" align="right" width="7" id="109" pattern="1" text="#########,@@" />
<field x="85" type="Numero" align="right" width="4" id="110" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="89" type="Valuta" align="right" width="7" id="111" pattern="1" text="#########,@@" />
<field x="96" type="Numero" align="right" width="4" id="112" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="100" type="Valuta" align="right" width="7" id="113" pattern="1" text="#########,@@" />
<field x="107" type="Numero" align="right" width="4" id="114" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="111" type="Valuta" align="right" width="7" id="115" pattern="1" text="#########,@@" />
<field x="118" type="Numero" align="right" width="4" id="116" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="122" type="Valuta" align="right" width="7" id="117" pattern="1" text="#########,@@" />
<field x="129" type="Numero" align="right" width="4" id="118" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="133" type="Valuta" align="right" width="7" id="119" pattern="1" text="#########,@@" />
<field x="140" type="Numero" align="right" width="4" id="120" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="144" type="Valuta" align="right" width="7" id="121" pattern="1" text="#########,@@" />
<field x="151" type="Numero" align="right" width="4" id="122" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="155" type="Valuta" align="right" width="7" id="123" pattern="1" text="#########,@@" />
<field x="162" type="Numero" align="right" width="4" id="124" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
<field x="168" type="Valuta" align="right" width="8" id="125" pattern="1" text="#########,@@">
<font italic="1" face="Arial Narrow" bold="1" size="7" />
</field>
<field x="177" type="Numero" align="right" width="4" id="126" pattern="1" text="###,@">
<source>ROUND(#THIS,2)</source>
</field>
</section>
<prescript description="PRESCRIPT">#DACODCLI @ #ACODCLI @ = \ se clienti coincidono
#DACODCLI @ EMPTY= NEGATE AND \ e se non sono vuoti
IF
"H2" HIDE \ nasconde sezioni e campi indesiderati
"B1" HIDE
ELSE
"H2" SHOW \ mostra sezioni e campi desiderati
"B1" SHOW
THEN
</prescript>
</report>

View File

@ -23,7 +23,7 @@ bool TGeneral_sell::create()
//se non paghi ti stronco!!!
const TDate oggi(TODAY);
if (oggi >= 20091220)
if (oggi >= 20091230)
return false;
}
return TKlarkKent_app::create();

View File

@ -42,7 +42,13 @@
<font face="Arial" bold="1" size="9" />
<prescript description="H2 PRESCRIPT">MESSAGE RESET,F2.100|RESET,F2.110|RESET,F2.120|RESET,F2.130|RESET,F2.140
MESSAGE RESET,B1</prescript>
<field x="0.5" y="0.5" type="Testo" width="8" pattern="1" text="Cliente" />
<field x="0.5" y="0.5" type="Array" width="10" pattern="1">
<source>TIPOCF</source>
<list>
<li Value="Cliente" Code="C" />
<li Value="Fornitore" Code="F" />
</list>
</field>
<field x="2" y="1.75" type="Testo" width="4" height="0.75" pattern="1" text="Tipo">
<font italic="1" face="Arial" size="8" />
</field>
@ -71,10 +77,10 @@ MESSAGE RESET,B1</prescript>
<font italic="1" face="Arial" size="8" />
</field>
<field border="1" x="1" y="2.75" type="Linea" width="78" height="0" pattern="1" />
<field x="8" y="0.5" type="Stringa" width="7" id="101" pattern="1">
<field x="11" y="0.5" type="Stringa" width="7" id="101" pattern="1">
<source>CODCF</source>
</field>
<field x="16" y="0.5" type="Stringa" width="50" id="102" pattern="1">
<field x="19" y="0.5" type="Stringa" width="50" id="102" pattern="1">
<prescript description="H2.102 PRESCRIPT">MESSAGE ISAMREAD,20,TIPOCF=C!CODCF=#101,RAGSOC</prescript>
</field>
</section>
@ -190,7 +196,7 @@ THEN
<field x="67" y="0.5" type="Valuta" align="right" width="10" id="140" pattern="1" hide_zero="1" text="###.###.###,@@" />
</section>
<sql>USE DOC KEY 3
SELECT (BETWEEN(CODNUM,#CODNUM,#CODNUM))&#26;&#26;(BETWEEN(STATO,#DASTATO,#ASTATO))&#26;&#26;(BETWEEN(TIPODOC,#TIPODOC,#TIPODOC))&#26;&#26;(BETWEEN(CODCF,#DACLIFO,#ACLIFO))
SELECT (BETWEEN(CODNUM,#CODNUM,#CODNUM))&#26;&#26;(BETWEEN(STATO,#DASTATO,#ASTATO))&#26;&#26;(BETWEEN(TIPODOC,#TIPODOC,#TIPODOC))&#26;&#26;STR(BETWEEN(CODCF,#DACLIFO,#ACLIFO))
BY CODCF NDOC TIPODOC
FROM DATADOC=#DADATA PROVV='D' ANNO=#ANNO CODNUM=#CODNUM
TO DATADOC=#ADATA PROVV='D' ANNO=#ANNO CODNUM=#CODNUM</sql>

View File

@ -93,7 +93,7 @@ BEGIN
CHECKTYPE NORMAL
END
NUMBER F_DASTATO 1
STRING F_DASTATO 1
BEGIN
PROMPT 2 5 "Da stato "
USE %STD
@ -118,7 +118,7 @@ BEGIN
CHECKTYPE NORMAL
END
NUMBER F_ASTATO 1
STRING F_ASTATO 1
BEGIN
PROMPT 2 6 "A stato "
USE %STD
@ -166,7 +166,7 @@ END
NUMBER F_DACLIFO 6
BEGIN
PROMPT 2 11 "Da Cliente "
USE 20
USE LF_CLIFO
INPUT TIPOCF "C"
INPUT CODCF F_DACLIFO
DISPLAY "Codice" CODCF
@ -181,7 +181,7 @@ END
STRING F_DARAGSOC 50
BEGIN
PROMPT 25 11 ""
USE 20 KEY 2
USE LF_CLIFO KEY 2
INPUT TIPOCF "C"
INPUT RAGSOC F_DARAGSOC
DISPLAY "Ragione Sociale@50" RAGSOC
@ -193,7 +193,7 @@ END
NUMBER F_ACLIFO 6
BEGIN
PROMPT 2 12 "A Cliente "
USE 20
USE LF_CLIFO
INPUT TIPOCF "C"
INPUT CODCF F_ACLIFO
DISPLAY "Codice" CODCF
@ -208,7 +208,7 @@ END
STRING F_ARAGSOC 50
BEGIN
PROMPT 25 12 ""
USE 20 KEY 2
USE LF_CLIFO KEY 2
INPUT TIPOCF "C"
INPUT RAGSOC F_ARAGSOC
DISPLAY "Ragione Sociale@50" RAGSOC