Patch level :10.0
Files correlati : Ricompilazione Demo : [ ] Commento : aggiunte stampe rilevazione ore (piaceranno?) git-svn-id: svn://10.65.10.50/branches/R_10_00@21713 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
9070b60d34
commit
1d9c4847ae
@ -24,13 +24,17 @@ protected:
|
||||
virtual bool use_mask() { return false; }
|
||||
|
||||
public:
|
||||
TRil_ore_ris_report();
|
||||
TRil_ore_ris_report(const char tipostampa);
|
||||
};
|
||||
|
||||
|
||||
TRil_ore_ris_report::TRil_ore_ris_report()
|
||||
TRil_ore_ris_report::TRil_ore_ris_report(const char tipostampa)
|
||||
{
|
||||
load("ci1300a");
|
||||
if (tipostampa == 'M')
|
||||
load("ci1300a");
|
||||
else
|
||||
load("ci1300b");
|
||||
|
||||
TRil_ore_recordset* recset = new TRil_ore_recordset;
|
||||
set_recordset(recset);
|
||||
}
|
||||
@ -43,7 +47,6 @@ class TRil_ore_ris_mask : public TAutomask
|
||||
protected:
|
||||
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
|
||||
|
||||
void format_report(TReport& rep) const;
|
||||
void elabora_risorsa(const TString& curr_risorsa, TReport& rep) const;
|
||||
|
||||
public:
|
||||
@ -64,10 +67,14 @@ bool TRil_ore_ris_mask::on_field_event(TOperable_field& o, TField_event e, long
|
||||
|
||||
void TRil_ore_ris_mask::elabora_risorsa(const TString& curr_risorsa, TReport& rep) const
|
||||
{
|
||||
const int tipo_ordinamento = get_int(F_ORDINAMENTO);
|
||||
const char tipo_stampa = get(F_TIPOSTAMPA)[0];
|
||||
|
||||
//creare un assoc_array con chiave TToken_string cms-sede-fase(1) o sede-cms-fase(2) in base ai parametri..
|
||||
//..indicati sulla maschera
|
||||
const int tipo_ordinamento = get_int(F_ORDINAMENTO);
|
||||
//il contenuto dell'assoc_array sarà: tot_Prev - 31 valori giornalieri Consuntivi - tot_Consuntivo
|
||||
//se tipo_stampa = 'M'ensile: il contenuto dell'assoc_array sarà: tot_Prev - 31 valori giornalieri Consuntivi - tot_Consuntivo
|
||||
//se tipo_stampa = 'A'nnuale: il contenuto dell'assoc_array sarà: tot_Prev - 12 valori mensili Consuntivi - tot_Consuntivo
|
||||
|
||||
TAssoc_array righe;
|
||||
|
||||
const TVariant tiporisorsa = get(F_RISOATT);
|
||||
@ -121,7 +128,7 @@ void TRil_ore_ris_mask::elabora_risorsa(const TString& curr_risorsa, TReport& re
|
||||
//..quanti sono i giorni di lavoro lavorativi per suddividere la quantità di ore
|
||||
TDate ini_lav, fine_lav;
|
||||
const int anno = get_int(F_ANNO);
|
||||
const int mese = get_int(F_MESE);
|
||||
const int mese = tipo_stampa == 'M' ? get_int(F_MESE) : 0;
|
||||
const long giorni_lavorativi_cms = ci_calcola_giorni_lavorativi_cms(anno, mese, ini_cms, fine_cms, dataini, datafine, ini_lav, fine_lav);
|
||||
|
||||
//adesso deve riproporzionare il monte ore sul record sul mese selezionato (fa tutto il lavoro se ci sono giorni..
|
||||
@ -129,7 +136,7 @@ void TRil_ore_ris_mask::elabora_risorsa(const TString& curr_risorsa, TReport& re
|
||||
if (giorni_lavorativi_cms > 0)
|
||||
{
|
||||
const real tot_ore = rilore_recset.get(RILORE_QTAORE).as_real();
|
||||
const real tot_ore_uso_risorsa_nel_mese_per_cms = tot_ore * giorni_lavorativi_cms / giorni_lavorativi;
|
||||
const real tot_ore_uso_risorsa_nel_periodo_per_cms = tot_ore * giorni_lavorativi_cms / giorni_lavorativi;
|
||||
|
||||
//crea la chiave per l'assoc_array
|
||||
TToken_string key;
|
||||
@ -157,7 +164,7 @@ void TRil_ore_ris_mask::elabora_risorsa(const TString& curr_risorsa, TReport& re
|
||||
if (i == 0) //'P'reventivo (aggiorna solo il totale)
|
||||
{
|
||||
real prev = record->get(0);
|
||||
prev += tot_ore_uso_risorsa_nel_mese_per_cms;
|
||||
prev += tot_ore_uso_risorsa_nel_periodo_per_cms;
|
||||
record->add(prev.string(), 0);
|
||||
}
|
||||
else //'C'onsuntivo (aggiorna tutte le caselle dei giorni lavorativi)
|
||||
@ -167,9 +174,10 @@ void TRil_ore_ris_mask::elabora_risorsa(const TString& curr_risorsa, TReport& re
|
||||
{
|
||||
if (giorni_lavorativi == 1 || ci_is_ferial_day(data))
|
||||
{
|
||||
real prev = record->get(data.day());
|
||||
const int index = tipo_stampa == 'M' ? data.day() : data.month();
|
||||
real prev = record->get(index);
|
||||
prev += ore_al_giorno;
|
||||
record->add(prev.string(), data.day());
|
||||
record->add(prev.string(), index);
|
||||
real tot = record->get(32);
|
||||
tot += ore_al_giorno;
|
||||
record->add(tot.string(), 32);
|
||||
@ -193,41 +201,17 @@ void TRil_ore_ris_mask::elabora_risorsa(const TString& curr_risorsa, TReport& re
|
||||
}
|
||||
|
||||
|
||||
void TRil_ore_ris_mask::format_report(TReport& rep) const
|
||||
{
|
||||
//maggico giro per formattare la testata del calendario di pagina nel report
|
||||
const int anno = get_int(F_ANNO);
|
||||
const int mese = get_int(F_MESE);
|
||||
const TDate primo_del_mese(1, mese, anno);
|
||||
TDate ultimo_del_mese = primo_del_mese;
|
||||
ultimo_del_mese.set_end_month();
|
||||
|
||||
TString16 code;
|
||||
|
||||
for (TDate giorno = primo_del_mese; giorno <= ultimo_del_mese; ++giorno)
|
||||
{
|
||||
code.format("H0.%d", giorno.day() + 100);
|
||||
TReport_field* rep_field = rep.field(code);
|
||||
|
||||
if (rep_field != NULL)
|
||||
{
|
||||
if (!ci_is_ferial_day(giorno))
|
||||
rep_field->set_back_color(COLOR_LTGRAY);
|
||||
|
||||
code = itow(giorno.wday());
|
||||
code.cut(3);
|
||||
code << '\n' << giorno.day();
|
||||
rep_field->set(code);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//metodo di alto livello per filtrare su ris/att e chiamare i metodi di livello inferiore per elaborare la singola ris/att
|
||||
void TRil_ore_ris_mask::elabora() const
|
||||
{
|
||||
TReport_book book;
|
||||
TRil_ore_ris_report rep;
|
||||
|
||||
format_report(rep);
|
||||
//stampa mensile o annuale?
|
||||
const char tipostampa = get(F_TIPOSTAMPA)[0];
|
||||
TRil_ore_ris_report rep(tipostampa);
|
||||
|
||||
if (tipostampa == 'M')
|
||||
format_report_month(get_int(F_ANNO), get_int(F_MESE), rep);
|
||||
|
||||
//query sulla tabella interessata (risorse o attrezzature)
|
||||
TString16 da_ris_att, a_ris_att;
|
||||
|
@ -8,7 +8,7 @@
|
||||
#define F_DA_DESATT 207
|
||||
#define F_A_CODATT 208
|
||||
#define F_A_DESATT 209
|
||||
|
||||
#define F_TIPOSTAMPA 210
|
||||
#define F_ANNO 211
|
||||
#define F_MESE 212
|
||||
#define F_ORDINAMENTO 213
|
||||
|
@ -136,7 +136,7 @@
|
||||
<font face="Arial" bold="1" size="10" />
|
||||
<source>#SYSTEM.DATE</source>
|
||||
</field>
|
||||
<field x="158" y="4.5" type="Testo" bg_color="#400040" txt_color="#FFFFFF" width="8" pattern="2" />
|
||||
<field x="160" y="4.5" type="Testo" bg_color="#400040" txt_color="#FFFFFF" width="6" pattern="2" />
|
||||
<field border="2" x="1" y="6" type="Linea" width="166" height="0" pattern="1" />
|
||||
<field x="62" y="4.5" type="Stringa" bg_color="#400040" txt_color="#FFFFFF" width="7" id="90" pattern="2">
|
||||
<font face="Arial" bold="1" size="10" />
|
||||
@ -317,7 +317,6 @@
|
||||
</source>
|
||||
</field>
|
||||
<field border="1" x="14" type="Stringa" width="29" id="91" pattern="1">
|
||||
<font face="Arial Narrow" size="7" />
|
||||
<source>IF ((#ORDINAMENTO==4)||(#ORDINAMENTO==8);Des3;IF ((#ORDINAMENTO==1)||(#ORDINAMENTO==5);Des1;Des2))
|
||||
</source>
|
||||
</field>
|
||||
|
@ -127,9 +127,20 @@ BEGIN
|
||||
PROMPT 1 6 "@bFiltri su anno / mese"
|
||||
END
|
||||
|
||||
LISTBOX F_TIPOSTAMPA 10
|
||||
BEGIN
|
||||
PROMPT 2 7 "Tipo di stampa "
|
||||
ITEM "M|Mensile"
|
||||
MESSAGE SHOW,F_MESE
|
||||
ITEM "A|Annuale"
|
||||
MESSAGE HIDE,F_MESE
|
||||
FLAGS "Z"
|
||||
FIELD #TIPOSTAMPA
|
||||
END
|
||||
|
||||
NUMBER F_ANNO 4
|
||||
BEGIN
|
||||
PROMPT 2 7 "Anno "
|
||||
PROMPT 35 7 "Anno "
|
||||
CHECKTYPE REQUIRED
|
||||
FLAGS "A"
|
||||
FIELD #ANNO
|
||||
@ -137,7 +148,7 @@ END
|
||||
|
||||
LISTBOX F_MESE 10
|
||||
BEGIN
|
||||
PROMPT 24 7 "Mese "
|
||||
PROMPT 50 7 "Mese "
|
||||
FLAGS "M"
|
||||
FIELD #MESE
|
||||
END
|
||||
|
233
ci/ci1300b.rep
Executable file
233
ci/ci1300b.rep
Executable file
@ -0,0 +1,233 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<report name="ci1300b" orientation="1" lpi="6" class="ci1300">
|
||||
<description>Rilevazione ore annuali per Risorsa - Attrezzatura</description>
|
||||
<font face="Arial" size="8" />
|
||||
<section type="Head" pattern="1">
|
||||
<font face="Arial Narrow" bold="1" size="8" />
|
||||
<field x="1" type="Array" txt_color="#0080C0" width="18" pattern="1">
|
||||
<font face="Arial" bold="1" size="8" />
|
||||
<source>#ORDINAMENTO</source>
|
||||
<list>
|
||||
<li Value=" " Code="1" />
|
||||
<li Value=" " Code="2" />
|
||||
<li Value=" " Code="3" />
|
||||
<li Value="Commessa" Code="4" />
|
||||
<li Value=" " Code="5" />
|
||||
<li Value=" " Code="6" />
|
||||
<li Value=" " Code="7" />
|
||||
<li Value="CdC" Code="8" />
|
||||
</list>
|
||||
</field>
|
||||
<field x="1" y="1" type="Array" txt_color="#004080" width="18" pattern="1">
|
||||
<font face="Arial" bold="1" size="8" />
|
||||
<source>#ORDINAMENTO</source>
|
||||
<list>
|
||||
<li Value=" " Code="1" />
|
||||
<li Value="Commessa" Code="2" />
|
||||
<li Value="Commessa" Code="3" />
|
||||
<li Value="CdC" Code="4" />
|
||||
<li Value=" " Code="5" />
|
||||
<li Value="CdC" Code="6" />
|
||||
<li Value="CdC" Code="7" />
|
||||
<li Value="Commessa" Code="8" />
|
||||
</list>
|
||||
</field>
|
||||
<field x="49.5" y="1" type="Testo" align="center" width="6" height="2" pattern="1" text="Totale PREV">
|
||||
<font face="Arial Narrow" bold="1" size="8" />
|
||||
</field>
|
||||
<field x="56" y="1" type="Testo" align="center" width="6" height="2" pattern="1" text="Totale CONS">
|
||||
<font face="Arial Narrow" bold="1" size="8" />
|
||||
</field>
|
||||
<field x="1" y="2" type="Array" width="18" pattern="1">
|
||||
<font face="Arial" bold="1" size="8" />
|
||||
<source>#ORDINAMENTO</source>
|
||||
<list>
|
||||
<li Value="Commessa" Code="1" />
|
||||
<li Value="CdC" Code="2" />
|
||||
<li Value="Fase" Code="3" />
|
||||
<li Value="Fase" Code="4" />
|
||||
<li Value="CdC" Code="5" />
|
||||
<li Value="Commessa" Code="6" />
|
||||
<li Value="Fase" Code="7" />
|
||||
<li Value="Fase" Code="8" />
|
||||
</list>
|
||||
</field>
|
||||
<field border="1" x="63" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="101" pattern="2" text="Gen">
|
||||
<font face="Arial Narrow" bold="1" size="8" />
|
||||
</field>
|
||||
<field border="1" x="67.5" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="102" pattern="2" text="Feb" />
|
||||
<field border="1" x="72" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="103" pattern="2" text="Mar" />
|
||||
<field border="1" x="76.5" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="104" pattern="2" text="Apr" />
|
||||
<field border="1" x="81" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="105" pattern="2" text="Mag" />
|
||||
<field border="1" x="85.5" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="106" pattern="2" text="Giu" />
|
||||
<field border="1" x="90" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="107" pattern="2" text="Lug" />
|
||||
<field border="1" x="94.5" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="108" pattern="2" text="Ago" />
|
||||
<field border="1" x="99" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="109" pattern="2" text="Set" />
|
||||
<field border="1" x="103.5" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="110" pattern="2" text="Ott" />
|
||||
<field border="1" x="108" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="111" pattern="2" text="Nov" />
|
||||
<field border="1" x="112.5" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="112" pattern="2" text="Dic" />
|
||||
</section>
|
||||
<section type="Head" level="1" pattern="1">
|
||||
<font face="Arial" size="10" />
|
||||
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
|
||||
<field border="1" radius="50" x="19" y="0.5" type="Array" valign="center" align="center" shade_offset="50" width="80" height="3" pattern="2">
|
||||
<font face="Arial" bold="1" size="14" />
|
||||
<source>#RISOATT</source>
|
||||
<list>
|
||||
<li Value="Rilevazione ore annuali Risorsa" Code="R" />
|
||||
<li Value="Rilevazione ore annuali Attrezzatura" Code="A" />
|
||||
</list>
|
||||
</field>
|
||||
<field x="10" y="1" type="Testo" bg_color="#400040" txt_color="#FFFFFF" width="10" pattern="1" />
|
||||
<field x="2" y="4.5" type="Testo" bg_color="#004080" txt_color="#FFFFFF" width="8" pattern="2" text="Anno:" />
|
||||
<field x="10" y="4.5" type="Numero" align="right" bg_color="#004080" txt_color="#FFFFFF" width="5" pattern="2">
|
||||
<font face="Arial" bold="1" size="10" />
|
||||
<source>#ANNO</source>
|
||||
</field>
|
||||
<field x="15" y="4.5" type="Testo" bg_color="#004080" txt_color="#FFFFFF" width="4" pattern="2" />
|
||||
<field x="19" y="4.5" type="Array" bg_color="#004080" txt_color="#FFFFFF" width="14" pattern="2">
|
||||
<source>#RISOATT</source>
|
||||
<list>
|
||||
<li Value="Risorsa:" Code="R">MESSAGE HIDE,H1.92|SHOW,H1.91</li>
|
||||
<li Value="Attrezzatura:" Code="A">MESSAGE HIDE,H1.91|SHOW,H1.92</li>
|
||||
</list>
|
||||
</field>
|
||||
<field x="40" y="4.5" type="Testo" bg_color="#004080" txt_color="#FFFFFF" width="2" pattern="2" />
|
||||
<field x="87" y="4.5" type="Testo" bg_color="#004080" txt_color="#FFFFFF" width="2" pattern="2" />
|
||||
<field x="89" y="4.5" type="Testo" bg_color="#004080" txt_color="#FFFFFF" width="15" pattern="2" text="Data stampa:" />
|
||||
<field x="104" y="4.5" type="Data" bg_color="#004080" txt_color="#FFFFFF" width="12" pattern="2">
|
||||
<font face="Arial" bold="1" size="10" />
|
||||
<source>#SYSTEM.DATE</source>
|
||||
</field>
|
||||
<field border="2" x="1" y="6" type="Linea" width="116" height="0" pattern="1" />
|
||||
<field x="33" y="4.5" type="Stringa" bg_color="#004080" txt_color="#FFFFFF" width="7" id="90" pattern="2">
|
||||
<font face="Arial" bold="1" size="10" />
|
||||
<source>#CODRIS</source>
|
||||
</field>
|
||||
<field x="42" y="4.5" type="Stringa" bg_color="#004080" txt_color="#FFFFFF" width="45" id="91" pattern="2">
|
||||
<font face="Arial" bold="1" size="10" />
|
||||
<prescript description="H1.91 PRESCRIPT">MESSAGE TABLEREAD,RSS,#90,S0</prescript>
|
||||
</field>
|
||||
<field x="42" y="4.5" type="Stringa" bg_color="#004080" txt_color="#FFFFFF" width="45" id="92" pattern="2">
|
||||
<font face="Arial" bold="1" size="10" />
|
||||
<prescript description="H1.92 PRESCRIPT">MESSAGE TABLEREAD,ATR,#90,S0</prescript>
|
||||
</field>
|
||||
</section>
|
||||
<section type="Head" level="2" pattern="1">
|
||||
<condition>(#ORDINAMENTO==4)||(#ORDINAMENTO==8)</condition>
|
||||
<groupby>Key1</groupby>
|
||||
<font face="Arial Narrow" bold="1" size="8" />
|
||||
<field x="1" type="Stringa" txt_color="#0080C0" width="12" id="90" pattern="1">
|
||||
<source>Key1</source>
|
||||
</field>
|
||||
<field x="14" type="Stringa" txt_color="#0080C0" width="50" id="91" pattern="1">
|
||||
<source>Des1</source>
|
||||
</field>
|
||||
</section>
|
||||
<section type="Head" level="3" pattern="1">
|
||||
<condition>(#ORDINAMENTO!=1)(#ORDINAMENTO!=5)</condition>
|
||||
<groupby>Key1+Key2</groupby>
|
||||
<field x="1" type="Stringa" txt_color="#004080" width="12" id="90" pattern="1">
|
||||
<font face="Arial Narrow" bold="1" size="8" />
|
||||
<source>IF ((#ORDINAMENTO==2)||(#ORDINAMENTO==3)||(#ORDINAMENTO==6)||(#ORDINAMENTO==7);Key1;Key2)
|
||||
</source>
|
||||
</field>
|
||||
<field x="14" type="Stringa" txt_color="#004080" width="50" id="91" pattern="1">
|
||||
<font face="Arial Narrow" bold="1" size="8" />
|
||||
<source>IF ((#ORDINAMENTO==2)||(#ORDINAMENTO==3)||(#ORDINAMENTO==6)||(#ORDINAMENTO==7);Des1;Des2)
|
||||
</source>
|
||||
</field>
|
||||
</section>
|
||||
<section type="Body" pattern="1" />
|
||||
<section type="Body" level="1" pattern="1">
|
||||
<font face="Arial Narrow" size="7" />
|
||||
<field border="1" x="49.5" type="Numero" align="right" width="6" pattern="1" text="###@,@@">
|
||||
<source>TotPrev</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.99</prescript>
|
||||
</field>
|
||||
<field border="1" x="56" type="Numero" align="right" width="6" pattern="1" text="###@,@@">
|
||||
<source>TotCons</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.100</prescript>
|
||||
</field>
|
||||
<field border="1" x="63" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G01</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.101</prescript>
|
||||
</field>
|
||||
<field border="1" x="67.5" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G02</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.102</prescript>
|
||||
</field>
|
||||
<field border="1" x="72" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G03</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.103</prescript>
|
||||
</field>
|
||||
<field border="1" x="76.5" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G04</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.104</prescript>
|
||||
</field>
|
||||
<field border="1" x="81" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G05</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.105</prescript>
|
||||
</field>
|
||||
<field border="1" x="85.5" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G06</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.106</prescript>
|
||||
</field>
|
||||
<field border="1" x="90" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G07</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.107</prescript>
|
||||
</field>
|
||||
<field border="1" x="94.5" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G08</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.108</prescript>
|
||||
</field>
|
||||
<field border="1" x="99" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G09</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.109</prescript>
|
||||
</field>
|
||||
<field border="1" x="103.5" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G10</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.110</prescript>
|
||||
</field>
|
||||
<field border="1" x="108" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G11</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.111</prescript>
|
||||
</field>
|
||||
<field border="1" x="112.5" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G12</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.112</prescript>
|
||||
</field>
|
||||
<field border="1" x="1" type="Stringa" width="13" id="90" pattern="1">
|
||||
<font face="Arial Narrow" bold="1" size="8" />
|
||||
<source>IF ((#ORDINAMENTO==4)||(#ORDINAMENTO==8);Key3;IF ((#ORDINAMENTO==1)||(#ORDINAMENTO==5);Key1;Key2))
|
||||
</source>
|
||||
</field>
|
||||
<field border="1" x="14" type="Stringa" width="35" id="91" pattern="1">
|
||||
<source>IF ((#ORDINAMENTO==4)||(#ORDINAMENTO==8);Des3;IF ((#ORDINAMENTO==1)||(#ORDINAMENTO==5);Des1;Des2))
|
||||
</source>
|
||||
</field>
|
||||
</section>
|
||||
<section type="Foot" pattern="1" />
|
||||
<section type="Foot" level="1" pattern="1">
|
||||
<font face="Arial Narrow" bold="1" size="7" />
|
||||
<field border="1" x="13.5" y="0.5" type="Testo" align="right" bg_color="#C0C0C0" width="35" pattern="2" text="Totali">
|
||||
<font face="Arial" bold="1" size="8" />
|
||||
</field>
|
||||
<field border="1" x="49.5" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="6" id="99" pattern="2" text="###@,@@" />
|
||||
<field border="1" x="56" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="6" id="100" pattern="2" text="###@,@@" />
|
||||
<field border="1" x="63" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="101" pattern="2" hide_zero="1" text="##@,@@" />
|
||||
<field border="1" x="67.5" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="102" pattern="2" hide_zero="1" text="##@,@@" />
|
||||
<field border="1" x="72" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="103" pattern="2" hide_zero="1" text="##@,@@" />
|
||||
<field border="1" x="76.5" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="104" pattern="2" hide_zero="1" text="##@,@@" />
|
||||
<field border="1" x="81" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="105" pattern="2" hide_zero="1" text="##@,@@" />
|
||||
<field border="1" x="85.5" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="106" pattern="2" hide_zero="1" text="##@,@@" />
|
||||
<field border="1" x="90" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="107" pattern="2" hide_zero="1" text="##@,@@" />
|
||||
<field border="1" x="94.5" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="108" pattern="2" hide_zero="1" text="##@,@@" />
|
||||
<field border="1" x="99" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="109" pattern="2" hide_zero="1" text="##@,@@" />
|
||||
<field border="1" x="103.5" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="110" pattern="2" hide_zero="1" text="##@,@@" />
|
||||
<field border="1" x="108" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="111" pattern="2" hide_zero="1" text="##@,@@" />
|
||||
<field border="1" x="112.5" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="112" pattern="2" hide_zero="1" text="##@,@@" />
|
||||
</section>
|
||||
<section type="Foot" level="2" pattern="1" />
|
||||
<section type="Foot" level="3" pattern="1" />
|
||||
</report>
|
@ -7,6 +7,7 @@
|
||||
///////////////////////////////////////////////////////////
|
||||
// Recordset
|
||||
///////////////////////////////////////////////////////////
|
||||
//recordset per stampe mensili (dettagliate per giorno)
|
||||
TRil_ore_recordset::TRil_ore_recordset()
|
||||
: TAS400_recordset("AS400(512)")
|
||||
{
|
||||
@ -18,16 +19,15 @@ TRil_ore_recordset::TRil_ore_recordset()
|
||||
create_field("Des2", -1, 50, _alfafld, false);
|
||||
create_field("Des3", -1, 50, _alfafld, false);
|
||||
|
||||
create_field("TotPrev", -1, 6, _realfld, false);
|
||||
create_field("TotCons", -1, 6, _realfld, false);
|
||||
create_field("TotPrev", -1, 7, _realfld, false);
|
||||
create_field("TotCons", -1, 7, _realfld, false);
|
||||
|
||||
TString4 name;
|
||||
for (int i = 1; i <= 31; i++)
|
||||
{
|
||||
name.format("G%02d", i);
|
||||
create_field(name, -1, 5, _realfld, false);
|
||||
create_field(name, -1, 6, _realfld, false);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -60,28 +60,45 @@ long ci_calcola_giorni_lavorativi(const TDate& dataini, const TDate& datafine)
|
||||
long ci_calcola_giorni_lavorativi_cms(const int anno, const int mese, const TDate& ini_cms, const TDate& fine_cms,
|
||||
const TDate& dataini, const TDate& datafine, TDate& inizio_lav, TDate& fine_lav)
|
||||
{
|
||||
//date del mese
|
||||
TDate ini_mese(1, mese, anno);
|
||||
TDate fine_mese = ini_mese;
|
||||
fine_mese.set_end_month();
|
||||
//se mese > 0 -> stampa per mese dettagliata per giorno, sennò stampa per anno dettagliata per mese
|
||||
TDate inizio, fine;
|
||||
|
||||
//se la commessa non "interseca" il mese selezionato -> finisce qui
|
||||
if (fine_cms < ini_mese || ini_cms > fine_mese)
|
||||
if (mese > 0)
|
||||
{
|
||||
//date del mese
|
||||
TDate ini_mese(1, mese, anno);
|
||||
TDate fine_mese = ini_mese;
|
||||
fine_mese.set_end_month();
|
||||
inizio = ini_mese;
|
||||
fine = fine_mese;
|
||||
}
|
||||
else
|
||||
{
|
||||
TDate ini_anno(1, 1, anno);
|
||||
TDate fine_anno(31, 12, anno);
|
||||
inizio = ini_anno;
|
||||
fine = fine_anno;
|
||||
}
|
||||
|
||||
//se la commessa non "interseca" il periodo selezionato -> finisce qui
|
||||
if (fine_cms < inizio || ini_cms > fine)
|
||||
return 0;
|
||||
//se le date limite lavorative non "intersecano" il mese selezionato -> finisce qui
|
||||
if (datafine < ini_mese || dataini > fine_mese)
|
||||
//se le date limite lavorative non "intersecano" il periodo selezionato -> finisce qui
|
||||
if (datafine < inizio || dataini > fine)
|
||||
return 0;
|
||||
|
||||
//se è arrivato fin qui -> c'è qualcosa da considerare
|
||||
//vanno prese la massima data inizio e la minima data fine
|
||||
inizio_lav = fnc_max(ini_mese, ini_cms);
|
||||
fine_lav = fnc_min(fine_mese, fine_cms);
|
||||
inizio_lav = fnc_max(inizio, ini_cms);
|
||||
fine_lav = fnc_min(fine, fine_cms);
|
||||
|
||||
//e qui si parrà l'ultima stilla di nobilitate! deve eliminare i giorni festivi dal mucchio!
|
||||
return ci_calcola_giorni_lavorativi(inizio_lav, fine_lav);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void ci_fill_recset_from_ass(TAssoc_array& ass, TReport& rep)
|
||||
{
|
||||
//deve informarsi sul tipo di report che è in uso
|
||||
@ -210,5 +227,33 @@ void ci_fill_recset_from_ass(TAssoc_array& ass, TReport& rep)
|
||||
#ifdef DBG
|
||||
recset->save_as("C:/temp/cazzone.txt");
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//formattazione report per stampa mensile dettagliata per giorno
|
||||
void format_report_month(const int anno, const int mese, TReport& rep)
|
||||
{
|
||||
//maggico giro per formattare la testata del calendario di pagina nel report
|
||||
const TDate primo_del_mese(1, mese, anno);
|
||||
TDate ultimo_del_mese = primo_del_mese;
|
||||
ultimo_del_mese.set_end_month();
|
||||
|
||||
TString16 code;
|
||||
|
||||
for (TDate giorno = primo_del_mese; giorno <= ultimo_del_mese; ++giorno)
|
||||
{
|
||||
code.format("H0.%d", giorno.day() + 100);
|
||||
TReport_field* rep_field = rep.field(code);
|
||||
|
||||
if (rep_field != NULL)
|
||||
{
|
||||
if (!ci_is_ferial_day(giorno))
|
||||
rep_field->set_back_color(COLOR_LTGRAY);
|
||||
|
||||
code = itow(giorno.wday());
|
||||
code.cut(3);
|
||||
code << '\n' << giorno.day();
|
||||
rep_field->set(code);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include <textset.h>
|
||||
|
||||
///////////////////////////////////////////////////////////
|
||||
// Recordset generico valido per le stampe ci1300 ci1400
|
||||
// Recordset generici validi per le stampe ci1300 ci1400
|
||||
///////////////////////////////////////////////////////////
|
||||
class TRil_ore_recordset : public TAS400_recordset
|
||||
{
|
||||
@ -17,13 +17,16 @@ public:
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////
|
||||
// Metodi liberi per determinare giorni lavorativi e feriali (nati per ci1300 ci1400)
|
||||
// e per formattare e riempire i report corrispondenti
|
||||
///////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
bool ci_is_ferial_day(const TDate& data);
|
||||
long ci_calcola_giorni_lavorativi(const TDate& dataini, const TDate& datafine);
|
||||
long ci_calcola_giorni_lavorativi_cms(const int anno, const int mese, const TDate& ini_cms, const TDate& fine_cms,
|
||||
const TDate& dataini, const TDate& datafine, TDate& inizio_lav, TDate& fine_lav);
|
||||
const TDate& dataini, const TDate& datafine, TDate& inizio_lav, TDate& fine_lav);
|
||||
|
||||
void ci_fill_recset_from_ass(TAssoc_array& ass, TReport& rep);
|
||||
|
||||
void format_report_month(const int anno, const int mese, TReport& rep);
|
||||
|
||||
#endif
|
104
ci/ci1400.cpp
104
ci/ci1400.cpp
@ -22,12 +22,16 @@ protected:
|
||||
virtual bool use_mask() { return false; }
|
||||
|
||||
public:
|
||||
TRil_ore_cms_report();
|
||||
TRil_ore_cms_report(const char tipostampa);
|
||||
};
|
||||
|
||||
TRil_ore_cms_report::TRil_ore_cms_report()
|
||||
TRil_ore_cms_report::TRil_ore_cms_report(const char tipostampa)
|
||||
{
|
||||
load("ci1400a");
|
||||
if (tipostampa == 'M')
|
||||
load("ci1400a");
|
||||
else
|
||||
load("ci1400b");
|
||||
|
||||
TRil_ore_recordset* recset = new TRil_ore_recordset;
|
||||
set_recordset(recset);
|
||||
}
|
||||
@ -41,10 +45,6 @@ class TRil_ore_cms_mask : public TAutomask
|
||||
protected:
|
||||
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
|
||||
|
||||
void format_report(TReport& rep) const;
|
||||
/*long calcola_giorni_lavorativi_cms(const TDate& ini_cms, const TDate& fine_cms,
|
||||
const TDate& dataini, const TDate& datafine,
|
||||
TDate& inizio_lav, TDate& fine_lav) const;*/
|
||||
bool elabora_commessa(const TString& curr_commessa, TReport& rep) const;
|
||||
|
||||
public:
|
||||
@ -68,19 +68,32 @@ bool TRil_ore_cms_mask::elabora_commessa(const TString& curr_commessa, TReport&
|
||||
{
|
||||
const TVariant tipo_cms_cdc = get(F_CMSOCDC);
|
||||
const bool per_commessa = tipo_cms_cdc.as_string() == "C";
|
||||
const char tipo_stampa = get(F_TIPOSTAMPA)[0];
|
||||
|
||||
//date del mese
|
||||
//date del periodo
|
||||
const int anno = get_int(F_ANNO);
|
||||
const int mese = get_int(F_MESE);
|
||||
TDate ini_mese(1, mese, anno);
|
||||
TDate fine_mese = ini_mese;
|
||||
fine_mese.set_end_month();
|
||||
int mese = 0;
|
||||
TDate inizio, fine;
|
||||
|
||||
if (tipo_stampa == 'M')
|
||||
{
|
||||
mese = get_int(F_MESE);
|
||||
TDate ini_mese(1, mese, anno);
|
||||
TDate fine_mese = ini_mese;
|
||||
fine_mese.set_end_month();
|
||||
inizio = ini_mese;
|
||||
fine = fine_mese;
|
||||
}
|
||||
else
|
||||
{
|
||||
TDate ini_anno(1, 1, anno);
|
||||
TDate fine_anno(31, 12, anno);
|
||||
inizio = ini_anno;
|
||||
fine = fine_anno;
|
||||
}
|
||||
|
||||
TDate ini_cms, fine_cms;
|
||||
|
||||
//creare un assoc_array con chiave TToken_string risorsa/attr. in base ai parametri..
|
||||
//..indicati sulla maschera
|
||||
//il contenuto dell'assoc_array sarà: tot_Prev - 31 valori giornalieri Consuntivi - tot_Consuntivo
|
||||
TAssoc_array righe;
|
||||
|
||||
//query sul file delle ore in chiave 4 o 5, in base alla scelta di Cdc(4) o Cms(5): TIPO+CODCOSTO+... o TIPO+CODCMS+...
|
||||
@ -91,8 +104,8 @@ bool TRil_ore_cms_mask::elabora_commessa(const TString& curr_commessa, TReport&
|
||||
const TRectype& rec_cms = cache().get(LF_COMMESSE, curr_commessa);
|
||||
const int durata_cms = ca_durata_commessa(rec_cms, ini_cms, fine_cms);
|
||||
|
||||
//se la commessa non "interseca" il mese selezionato -> finisce qui
|
||||
if (fine_cms < ini_mese || ini_cms > fine_mese)
|
||||
//se la commessa non "interseca" il periodo selezionato -> finisce qui
|
||||
if (fine_cms < inizio || ini_cms > fine)
|
||||
return false;
|
||||
|
||||
query << "USE RILORE KEY 5";
|
||||
@ -135,7 +148,7 @@ bool TRil_ore_cms_mask::elabora_commessa(const TString& curr_commessa, TReport&
|
||||
const int durata_cms = ca_durata_commessa(rec_cms, ini_cms, fine_cms);
|
||||
|
||||
//se la commessa non "interseca" il mese selezionato -> finisce qui
|
||||
if (fine_cms < ini_mese || ini_cms > fine_mese)
|
||||
if (fine_cms < inizio || ini_cms > fine)
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -152,21 +165,21 @@ bool TRil_ore_cms_mask::elabora_commessa(const TString& curr_commessa, TReport&
|
||||
continue;
|
||||
|
||||
TDate ini_lav, fine_lav;
|
||||
long giorni_lavorativi_cms = 0;
|
||||
long giorni_lavorativi_cms = 0L;
|
||||
//se lavora su commessa -> le date ini_cms e fine_cms sono ok
|
||||
if (ini_cms.ok() && fine_cms.ok())
|
||||
giorni_lavorativi_cms = ci_calcola_giorni_lavorativi_cms(anno, mese, ini_cms, fine_cms, dataini, datafine, ini_lav, fine_lav);
|
||||
else //se ci fosse solo il cdc nel record di rilore, non avendo una durata -> i suoi giorni lavorativi coincidono con quelli del mese
|
||||
else //se ci fosse solo il cdc nel record di rilore, non avendo una durata -> i suoi giorni lavorativi coincidono con quelli del periodo
|
||||
{
|
||||
giorni_lavorativi_cms = ci_calcola_giorni_lavorativi(ini_mese, fine_mese);
|
||||
ini_lav = ini_mese;
|
||||
fine_lav = fine_mese;
|
||||
giorni_lavorativi_cms = ci_calcola_giorni_lavorativi(inizio, fine);
|
||||
ini_lav = inizio;
|
||||
fine_lav = fine;
|
||||
}
|
||||
|
||||
if (giorni_lavorativi_cms > 0)
|
||||
{
|
||||
const real tot_ore = rilore_recset.get(RILORE_QTAORE).as_real();
|
||||
const real tot_ore_uso_risorsa_nel_mese_per_cms = tot_ore * giorni_lavorativi_cms / giorni_lavorativi;
|
||||
const real tot_ore_uso_risorsa_nel_periodo_per_cms = tot_ore * giorni_lavorativi_cms / giorni_lavorativi;
|
||||
|
||||
TToken_string key;
|
||||
key << tipo_ris_att;
|
||||
@ -181,7 +194,7 @@ bool TRil_ore_cms_mask::elabora_commessa(const TString& curr_commessa, TReport&
|
||||
if (i == 0) //'P'reventivo (aggiorna solo il totale)
|
||||
{
|
||||
real prev = record->get(0);
|
||||
prev += tot_ore_uso_risorsa_nel_mese_per_cms;
|
||||
prev += tot_ore_uso_risorsa_nel_periodo_per_cms;
|
||||
record->add(prev.string(), 0);
|
||||
}
|
||||
else //'C'onsuntivo (aggiorna tutte le caselle dei giorni lavorativi)
|
||||
@ -191,9 +204,10 @@ bool TRil_ore_cms_mask::elabora_commessa(const TString& curr_commessa, TReport&
|
||||
{
|
||||
if (giorni_lavorativi == 1 || ci_is_ferial_day(data))
|
||||
{
|
||||
real prev = record->get(data.day());
|
||||
const int index = tipo_stampa == 'M' ? data.day() : data.month();
|
||||
real prev = record->get(index);
|
||||
prev += ore_al_giorno;
|
||||
record->add(prev.string(), data.day());
|
||||
record->add(prev.string(), index);
|
||||
real tot = record->get(32);
|
||||
tot += ore_al_giorno;
|
||||
record->add(tot.string(), 32);
|
||||
@ -217,41 +231,15 @@ bool TRil_ore_cms_mask::elabora_commessa(const TString& curr_commessa, TReport&
|
||||
}
|
||||
|
||||
|
||||
void TRil_ore_cms_mask::format_report(TReport& rep) const
|
||||
{
|
||||
//maggico giro per formattare la testata del calendario di pagina nel report
|
||||
const int anno = get_int(F_ANNO);
|
||||
const int mese = get_int(F_MESE);
|
||||
const TDate primo_del_mese(1, mese, anno);
|
||||
TDate ultimo_del_mese = primo_del_mese;
|
||||
ultimo_del_mese.set_end_month();
|
||||
|
||||
TString16 code;
|
||||
|
||||
for (TDate giorno = primo_del_mese; giorno <= ultimo_del_mese; ++giorno)
|
||||
{
|
||||
code.format("H0.%d", giorno.day() + 100);
|
||||
TReport_field* rep_field = rep.field(code);
|
||||
|
||||
if (rep_field != NULL)
|
||||
{
|
||||
if (!ci_is_ferial_day(giorno))
|
||||
rep_field->set_back_color(COLOR_LTGRAY);
|
||||
|
||||
code = itow(giorno.wday());
|
||||
code.cut(3);
|
||||
code << '\n' << giorno.day();
|
||||
rep_field->set(code);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void TRil_ore_cms_mask::elabora() const
|
||||
{
|
||||
TReport_book book;
|
||||
TRil_ore_cms_report rep;
|
||||
//stampa mensile o annuale?
|
||||
const char tipostampa = get(F_TIPOSTAMPA)[0];
|
||||
TRil_ore_cms_report rep(tipostampa);
|
||||
|
||||
format_report(rep);
|
||||
if (tipostampa == 'M')
|
||||
format_report_month(get_int(F_ANNO), get_int(F_MESE), rep);
|
||||
|
||||
//query sul file interessato (commessa o centro di costo)
|
||||
TString16 da_cms_cdc, a_cms_cdc;
|
||||
|
@ -8,6 +8,6 @@
|
||||
#define F_DA_DESCDC 207
|
||||
#define F_A_CODCDC 208
|
||||
#define F_A_DESCDC 209
|
||||
|
||||
#define F_TIPOSTAMPA 210
|
||||
#define F_ANNO 211
|
||||
#define F_MESE 212
|
||||
|
@ -127,9 +127,20 @@ BEGIN
|
||||
PROMPT 1 6 "@bFiltri su anno / mese"
|
||||
END
|
||||
|
||||
LISTBOX F_TIPOSTAMPA 10
|
||||
BEGIN
|
||||
PROMPT 2 7 "Tipo di stampa "
|
||||
ITEM "M|Mensile"
|
||||
MESSAGE SHOW,F_MESE
|
||||
ITEM "A|Annuale"
|
||||
MESSAGE HIDE,F_MESE
|
||||
FLAGS "Z"
|
||||
FIELD #TIPOSTAMPA
|
||||
END
|
||||
|
||||
NUMBER F_ANNO 4
|
||||
BEGIN
|
||||
PROMPT 2 7 "Anno "
|
||||
PROMPT 35 7 "Anno "
|
||||
CHECKTYPE REQUIRED
|
||||
FLAGS "A"
|
||||
FIELD #ANNO
|
||||
@ -137,7 +148,7 @@ END
|
||||
|
||||
LISTBOX F_MESE 10
|
||||
BEGIN
|
||||
PROMPT 24 7 "Mese "
|
||||
PROMPT 50 7 "Mese "
|
||||
FLAGS "M"
|
||||
FIELD #MESE
|
||||
END
|
||||
|
163
ci/ci1400b.rep
Executable file
163
ci/ci1400b.rep
Executable file
@ -0,0 +1,163 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<report name="ci1400b" orientation="1" lpi="6" class="ci1400">
|
||||
<description>Rilevazione ore annuali per Commessa - CdC</description>
|
||||
<font face="Arial" size="8" />
|
||||
<section type="Head" pattern="1">
|
||||
<font face="Arial Narrow" bold="1" size="8" />
|
||||
<field x="50" y="1" type="Testo" align="center" width="6" height="2" pattern="1" text="Totale PREV">
|
||||
<font face="Arial Narrow" bold="1" size="8" />
|
||||
</field>
|
||||
<field x="56" y="1" type="Testo" align="center" width="6" height="2" pattern="1" text="Totale CONS">
|
||||
<font face="Arial Narrow" bold="1" size="8" />
|
||||
</field>
|
||||
<field x="1" y="2" type="Stringa" width="18" pattern="1">
|
||||
<font face="Arial" bold="1" size="8" />
|
||||
<source>Des1</source>
|
||||
</field>
|
||||
<field border="1" x="63" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="101" pattern="2" text="Gen" />
|
||||
<field border="1" x="67.5" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="102" pattern="2" text="Feb" />
|
||||
<field border="1" x="72" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="103" pattern="2" text="Mar" />
|
||||
<field border="1" x="76.5" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="104" pattern="2" text="Apr" />
|
||||
<field border="1" x="81" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="105" pattern="2" text="Mag" />
|
||||
<field border="1" x="85.5" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="106" pattern="2" text="Giu" />
|
||||
<field border="1" x="90" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="107" pattern="2" text="Lug" />
|
||||
<field border="1" x="94.5" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="108" pattern="2" text="Ago" />
|
||||
<field border="1" x="99" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="109" pattern="2" text="Set" />
|
||||
<field border="1" x="103.5" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="110" pattern="2" text="Ott" />
|
||||
<field border="1" x="108" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="111" pattern="2" text="Nov" />
|
||||
<field border="1" x="112.5" y="1" type="Testo" valign="center" align="center" width="4.5" height="2" id="112" pattern="2" text="Dic" />
|
||||
</section>
|
||||
<section type="Head" level="1" pattern="1">
|
||||
<font face="Arial" size="10" />
|
||||
<prescript description="H1 PRESCRIPT">MESSAGE RESET,F1</prescript>
|
||||
<field border="1" radius="50" x="18" y="0.5" type="Array" valign="center" align="center" shade_offset="50" width="80" height="3" pattern="2">
|
||||
<font face="Arial" bold="1" size="14" />
|
||||
<source>#CMSOCDC</source>
|
||||
<list>
|
||||
<li Value="Rilevazione ore annuali per Commessa" Code="C" />
|
||||
<li Value="Rilevazione ore annuali per CdC" Code="S" />
|
||||
</list>
|
||||
</field>
|
||||
<field x="10" y="1" type="Testo" bg_color="#400040" txt_color="#FFFFFF" width="10" pattern="1" />
|
||||
<field x="2" y="4.5" type="Testo" bg_color="#004080" txt_color="#FFFFFF" width="5.5" pattern="2" text="Anno:" />
|
||||
<field x="7.5" y="4.5" type="Numero" align="right" bg_color="#004080" txt_color="#FFFFFF" width="5" pattern="2">
|
||||
<font face="Arial" bold="1" size="10" />
|
||||
<source>#ANNO</source>
|
||||
</field>
|
||||
<field x="12.5" y="4.5" type="Testo" bg_color="#004080" txt_color="#FFFFFF" width="1" pattern="2" />
|
||||
<field x="13.5" y="4.5" type="Array" bg_color="#004080" txt_color="#FFFFFF" width="15" pattern="2">
|
||||
<source>#CMSOCDC</source>
|
||||
<list>
|
||||
<li Value="Commessa:" Code="C">MESSAGE HIDE,H1.92|SHOW,H1.91</li>
|
||||
<li Value="Centro di costo:" Code="S">MESSAGE HIDE,H1.91|SHOW,H1.92</li>
|
||||
</list>
|
||||
</field>
|
||||
<field x="37.5" y="4.5" type="Testo" bg_color="#400040" txt_color="#FFFFFF" width="2" pattern="2" />
|
||||
<field x="91" y="4.5" type="Testo" bg_color="#004080" txt_color="#FFFFFF" width="13" pattern="2" text="Data stampa:" />
|
||||
<field x="104" y="4.5" type="Data" bg_color="#004080" txt_color="#FFFFFF" width="12" pattern="2">
|
||||
<font face="Arial" bold="1" size="10" />
|
||||
<source>#SYSTEM.DATE</source>
|
||||
</field>
|
||||
<field border="2" x="1" y="6" type="Linea" width="116" height="0" pattern="1" />
|
||||
<field x="28.5" y="4.5" type="Stringa" bg_color="#004080" txt_color="#FFFFFF" width="20" id="90" pattern="2">
|
||||
<font face="Arial" bold="1" size="10" />
|
||||
<source>#CODCMS</source>
|
||||
</field>
|
||||
<field x="48" y="4.5" type="Stringa" bg_color="#004080" txt_color="#FFFFFF" width="43" id="91" pattern="2">
|
||||
<font face="Arial" bold="1" size="10" />
|
||||
<prescript description="H1.91 PRESCRIPT">MESSAGE ISAMREAD,COMMESSE,CODCMS=#90,DESCRIZ</prescript>
|
||||
</field>
|
||||
<field x="48" y="4.5" type="Stringa" bg_color="#004080" txt_color="#FFFFFF" width="43" id="92" pattern="2">
|
||||
<font face="Arial" bold="1" size="10" />
|
||||
<prescript description="H1.92 PRESCRIPT">MESSAGE ISAMREAD,CDC,CODCOSTO=#90,DESCRIZ</prescript>
|
||||
</field>
|
||||
</section>
|
||||
<section type="Body" pattern="1" />
|
||||
<section type="Body" level="1" pattern="1">
|
||||
<font face="Arial Narrow" size="7" />
|
||||
<field border="1" x="49.5" type="Numero" align="right" width="6" pattern="1" text="###@,@@">
|
||||
<source>TotPrev</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.99</prescript>
|
||||
</field>
|
||||
<field border="1" x="56" type="Numero" align="right" width="6" pattern="1" text="###@,@@">
|
||||
<source>TotCons</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.100</prescript>
|
||||
</field>
|
||||
<field border="1" x="63" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G01</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.101</prescript>
|
||||
</field>
|
||||
<field border="1" x="67.5" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G02</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.102</prescript>
|
||||
</field>
|
||||
<field border="1" x="72" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G03</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.103</prescript>
|
||||
</field>
|
||||
<field border="1" x="76.5" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G04</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.104</prescript>
|
||||
</field>
|
||||
<field border="1" x="81" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G05</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.105</prescript>
|
||||
</field>
|
||||
<field border="1" x="85.5" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G06</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.106</prescript>
|
||||
</field>
|
||||
<field border="1" x="90" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G07</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.107</prescript>
|
||||
</field>
|
||||
<field border="1" x="94.5" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G08</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.108</prescript>
|
||||
</field>
|
||||
<field border="1" x="99" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G09</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.109</prescript>
|
||||
</field>
|
||||
<field border="1" x="103.5" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G10</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.110</prescript>
|
||||
</field>
|
||||
<field border="1" x="108" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G11</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.111</prescript>
|
||||
</field>
|
||||
<field border="1" x="112.5" type="Numero" align="right" width="4.5" pattern="1" hide_zero="1" text="##@,@@">
|
||||
<source>G12</source>
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.112</prescript>
|
||||
</field>
|
||||
<field border="1" x="1" type="Stringa" width="13" id="90" pattern="1">
|
||||
<font face="Arial Narrow" bold="1" size="8" />
|
||||
<source>Key2</source>
|
||||
</field>
|
||||
<field border="1" x="14" type="Stringa" width="35" id="91" pattern="1">
|
||||
<source>Des2</source>
|
||||
</field>
|
||||
</section>
|
||||
<section type="Foot" pattern="1" />
|
||||
<section type="Foot" level="1" pattern="1">
|
||||
<font face="Arial Narrow" bold="1" size="7" />
|
||||
<field border="1" x="14" y="0.5" type="Testo" align="right" bg_color="#C0C0C0" width="35" pattern="2" text="Totali">
|
||||
<font face="Arial" bold="1" size="8" />
|
||||
</field>
|
||||
<field border="1" x="49.5" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="6" id="99" pattern="2" text="##@,@@" />
|
||||
<field border="1" x="56" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="6" id="100" pattern="2" text="##@,@@" />
|
||||
<field border="1" x="63" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="101" pattern="2" hide_zero="1" text="#@,@@" />
|
||||
<field border="1" x="67.5" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="102" pattern="2" hide_zero="1" text="#@,@@" />
|
||||
<field border="1" x="72" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="103" pattern="2" hide_zero="1" text="#@,@@" />
|
||||
<field border="1" x="76.5" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="104" pattern="2" hide_zero="1" text="#@,@@" />
|
||||
<field border="1" x="81" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="105" pattern="2" hide_zero="1" text="#@,@@" />
|
||||
<field border="1" x="85.5" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="106" pattern="2" hide_zero="1" text="#@,@@" />
|
||||
<field border="1" x="90" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="107" pattern="2" hide_zero="1" text="#@,@@" />
|
||||
<field border="1" x="94.5" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="108" pattern="2" hide_zero="1" text="#@,@@" />
|
||||
<field border="1" x="99" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="109" pattern="2" hide_zero="1" text="#@,@@" />
|
||||
<field border="1" x="103.5" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="110" pattern="2" hide_zero="1" text="#@,@@" />
|
||||
<field border="1" x="108" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="111" pattern="2" hide_zero="1" text="#@,@@" />
|
||||
<field border="1" x="112.5" y="0.5" type="Numero" align="right" bg_color="#C0C0C0" width="4.5" id="112" pattern="2" hide_zero="1" text="#@,@@" />
|
||||
</section>
|
||||
</report>
|
@ -21,9 +21,18 @@ Picture = <ci01>
|
||||
Module = 8
|
||||
Flags = "F"
|
||||
Item_01 = "Tabella tipo ore", "ci0 -0 ORE", "F"
|
||||
Item_01 = "Tabella Listini", "ci0 -0 LIS", "F"
|
||||
Item_02 = "Gestione Listini Costi", "ci0 -1", "F"
|
||||
Item_03 = "Gestione Disponibilità", "ci0 -4", "F"
|
||||
Item_04 = "Gestione Predefiniti", "ci0 -5", "F"
|
||||
Item_05 = "Rilevazione ore preventivo", "ci2 -0", "F"
|
||||
Item_06 = "Rilevazione ore consuntivo", "ci2 -1", "F"
|
||||
Item_02 = "Tabella Listini", "ci0 -0 LIS", "F"
|
||||
Item_03 = "Gestione Listini Costi", "ci0 -1", "F"
|
||||
Item_04 = "Gestione Disponibilità", "ci0 -4", "F"
|
||||
Item_05 = "Gestione Predefiniti", "ci0 -5", "F"
|
||||
Item_06 = "Rilevazione ore preventivo", "ci2 -0", "F"
|
||||
Item_07 = "Rilevazione ore consuntivo", "ci2 -1", "F"
|
||||
Item_08 = "Stampe", [CIMENU_004]
|
||||
|
||||
[CIMENU_004]
|
||||
Caption = "Stampe Rilevazione Ore"
|
||||
Picture = <ci01>
|
||||
Module = 8
|
||||
Flags = "F"
|
||||
Item_01 = "Risorsa/Attrezzatura", "ci1 -2", ""
|
||||
Item_02 = "Commessa/CdC", "ci1 -3", ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user