Patch level :
Files correlati : Ricompilazione Demo : [ ] Commento : 0000790 stampa della tabella delle categorie A mio parere sarebbe utile una stampa delle categorie cespiti con i relativi conti di contabilità. Sistemato problema legato alle specie con il carattere spazio! git-svn-id: svn://10.65.10.50/trunk@16132 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
f22bfba23f
commit
0ae593f931
@ -49,9 +49,30 @@ bool TTrasf_mov_ce_cg_mask::on_field_event(TOperable_field& o, TField_event e, l
|
||||
}
|
||||
|
||||
if (datacalc < data_ini_es || datacalc > data_fine_es)
|
||||
return error_box("La data di calcolo deve appartenere all'esercizio selezionato!");
|
||||
return error_box(TR("La data di calcolo deve appartenere all'esercizio selezionato!"));
|
||||
}
|
||||
break;
|
||||
case F_DATAREG:
|
||||
if (e == fe_modify || e == fe_close)
|
||||
{
|
||||
const int ese = get_int(F_ESERCIZIO);
|
||||
TDate datalim;
|
||||
TEsercizi_contabili esc;
|
||||
const int nesen = esc.next(ese);
|
||||
if (nesen > 0)
|
||||
{
|
||||
datalim = esc[nesen].fine();
|
||||
}
|
||||
else
|
||||
{
|
||||
datalim = esc[ese].fine();
|
||||
datalim.addyear(1);
|
||||
}
|
||||
TDate datareg = o.get();
|
||||
if (datareg > datalim)
|
||||
return error_box(FR("La data registrazione deve essere inferiore al %s"), datalim.string());
|
||||
|
||||
}
|
||||
default: break;
|
||||
}
|
||||
return true;
|
||||
|
@ -135,6 +135,8 @@ BEGIN
|
||||
PROMPT 2 11 "Data registrazione "
|
||||
FLAGS "A"
|
||||
CHECKTYPE REQUIRED
|
||||
VALIDATE DATE_CMP_FUNC >= DATACALC
|
||||
WARNING "La data di registrazione non puo' essere inferiore alla data di calcolo"
|
||||
END
|
||||
|
||||
BOOLEAN F_KILLOLD
|
||||
|
@ -80,6 +80,7 @@ Picture = <ce00>
|
||||
Module = 11
|
||||
Flags = ""
|
||||
Item_01 = "Categorie Collegamento Contabilita'", "ce0 -0 ccc", "F"
|
||||
Item_03 = "Stampa Categorie Coll. Cont.", "ba3 -1 ccc" , ""
|
||||
Item_02 = "Trasferimento movimenti", "ce4 -3", "F"
|
||||
|
||||
[CEMENU_009]
|
||||
|
12
ce/cestccc.h
Executable file
12
ce/cestccc.h
Executable file
@ -0,0 +1,12 @@
|
||||
#define F_INIZIO 101 // GRUPPO I
|
||||
#define F_INIZIO2 102 // SPECIE I
|
||||
#define F_INIZIO3 103 // CATEGORIA I
|
||||
#define F_FINE 104 // GRUPPO F
|
||||
#define F_FINE2 105 // SPECIE F
|
||||
#define F_FINE3 106 // CATEGORIA F
|
||||
#define F_D_INIZIO 107 // DES GRUPPO I
|
||||
#define F_D_INIZIO2 108 // DES SPECIE I
|
||||
#define F_D_INIZIO3 109 // DES CATEGORIA I
|
||||
#define F_D_FINE 110 // DES GRUPPO F
|
||||
#define F_D_FINE2 111 // DES SPECIE F
|
||||
#define F_D_FINE3 112 // DES CATEGORIA F
|
114
ce/cestccc.rep
Executable file
114
ce/cestccc.rep
Executable file
@ -0,0 +1,114 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<report name="cestccc" orientation="2" lpi="6">
|
||||
<font face="Courier New" size="10" />
|
||||
<section type="Head">
|
||||
<field type="Testo" valign="center" align="center" width="96" height="2" text="Tabella Categorie Collegamento Cespiti Contabilita'">
|
||||
<font face="Courier New" bold="1" size="14" />
|
||||
</field>
|
||||
<field border="2" x="1" y="2.5" type="Linea" width="114" height="0" />
|
||||
<field x="68" y="2.5" type="Testo" width="24" pattern="1" text="GruppoF;ContoF;Sottoconto">
|
||||
<font face="Courier New" bold="1" size="10" />
|
||||
</field>
|
||||
<field x="2" y="3" type="Testo" width="2" text="Gr">
|
||||
<font face="Courier New" bold="1" size="10" />
|
||||
</field>
|
||||
<field x="5" y="3" type="Testo" width="2" text="Sp">
|
||||
<font face="Courier New" bold="1" size="10" />
|
||||
</field>
|
||||
<field x="10" y="3" type="Testo" width="3" text="Cat">
|
||||
<font face="Courier New" bold="1" size="10" />
|
||||
</field>
|
||||
<field x="14" y="3" type="Testo" width="12" text="Descrizione">
|
||||
<font face="Courier New" bold="1" size="10" />
|
||||
</field>
|
||||
<field x="45" y="3.5" type="Testo" width="12" pattern="1" text="Immobilizzo">
|
||||
<font face="Courier New" bold="1" size="10" />
|
||||
</field>
|
||||
<field x="59.5" y="3.5" type="Testo" width="12" pattern="1" text="Fondo">
|
||||
<font face="Courier New" bold="1" size="10" />
|
||||
</field>
|
||||
<field x="74" y="3.5" type="Testo" width="12" pattern="1" text="Amm.Normali">
|
||||
<font face="Courier New" bold="1" size="10" />
|
||||
</field>
|
||||
<field x="88.5" y="3.5" type="Testo" width="12" pattern="1" text="Amm.Anticip.">
|
||||
<font face="Courier New" bold="1" size="10" />
|
||||
</field>
|
||||
<field x="103" y="3.5" type="Testo" width="12" pattern="1" text="Amm.Accel.">
|
||||
<font face="Courier New" bold="1" size="10" />
|
||||
</field>
|
||||
<field border="2" x="1" y="4.5" type="Linea" width="114" height="0" />
|
||||
</section>
|
||||
<section type="Head" level="1" />
|
||||
<section type="Body" />
|
||||
<section type="Body" level="1">
|
||||
<field x="2" type="Stringa" link="CCC.CODTAB[1,2]" width="2">
|
||||
<source>CODTAB[1,2]</source>
|
||||
</field>
|
||||
<field x="5" type="Stringa" link="CCC.CODTAB[3,6]" width="4">
|
||||
<source>CODTAB[3,6]</source>
|
||||
</field>
|
||||
<field x="10" type="Stringa" link="CCC.CODTAB[7,8]" width="2">
|
||||
<source>CODTAB[7,8]</source>
|
||||
</field>
|
||||
<field x="14" type="Stringa" dynamic_height="1" width="30" height="2">
|
||||
<prescript description="B1.0 PRESCRIPT">MESSAGE _TABLEREAD,%CAC,CODTAB,S0</prescript>
|
||||
</field>
|
||||
<field x="45" type="Stringa" align="right" width="3">
|
||||
<source>S1[1,3]</source>
|
||||
</field>
|
||||
<field x="48.5" type="Stringa" align="right" width="3">
|
||||
<source>S1[4,6]</source>
|
||||
</field>
|
||||
<field x="52" type="Stringa" align="right" width="6">
|
||||
<source>S1[7,12]</source>
|
||||
</field>
|
||||
<field x="59.5" type="Stringa" align="right" width="3">
|
||||
<source>S1[13,15]</source>
|
||||
</field>
|
||||
<field x="63" type="Stringa" align="right" width="3">
|
||||
<source>S1[16,18]</source>
|
||||
</field>
|
||||
<field x="66.5" type="Stringa" align="right" width="6">
|
||||
<source>S1[19,24]</source>
|
||||
</field>
|
||||
<field x="74" type="Stringa" align="right" width="3">
|
||||
<source>S1[25,27]</source>
|
||||
</field>
|
||||
<field x="77.5" type="Stringa" align="right" width="3">
|
||||
<source>S1[28,30]</source>
|
||||
</field>
|
||||
<field x="81" type="Stringa" align="right" width="6">
|
||||
<source>S1[31,36]</source>
|
||||
</field>
|
||||
<field x="88.5" type="Stringa" align="right" width="3">
|
||||
<source>S1[37,39]</source>
|
||||
</field>
|
||||
<field x="92" type="Stringa" align="right" width="3">
|
||||
<source>S1[40,42]</source>
|
||||
</field>
|
||||
<field x="95.5" type="Stringa" align="right" width="6">
|
||||
<source>S1[43,48]</source>
|
||||
</field>
|
||||
<field x="103" type="Stringa" align="right" width="3">
|
||||
<source>S1[49,51]</source>
|
||||
</field>
|
||||
<field x="106.5" type="Stringa" align="right" width="3">
|
||||
<source>S1[52,54]</source>
|
||||
</field>
|
||||
<field x="110" type="Stringa" align="right" width="6">
|
||||
<source>S1[54,60]</source>
|
||||
</field>
|
||||
</section>
|
||||
<section type="Foot" height="3">
|
||||
<field border="2" x="1" y="0.5" type="Linea" width="93" height="0" />
|
||||
<field x="2" y="1" type="Data" width="10">
|
||||
<source>#SYSTEM.DATE</source>
|
||||
</field>
|
||||
<field x="90" y="1" type="Numero" align="right" width="3">
|
||||
<source>#PAGE</source>
|
||||
</field>
|
||||
<field border="2" x="1" y="2.5" type="Linea" width="93" height="0" />
|
||||
</section>
|
||||
<section type="Foot" level="1" />
|
||||
<sql>USE CCC</sql>
|
||||
</report>
|
59
ce/cestccc.uml
Executable file
59
ce/cestccc.uml
Executable file
@ -0,0 +1,59 @@
|
||||
//definizione maschera per stampa tabella CATEGORIE COLLEGAMENTO CESPITI CONTABILITA'
|
||||
#include "cestccc.h"
|
||||
|
||||
PAGE "Stampa Categorie Collegamento Cespiti Contabilita'" -1 -1 78 12
|
||||
|
||||
STRING F_INIZIO 8
|
||||
BEGIN
|
||||
PROMPT 2 2 "Da Categoria "
|
||||
FLAGS "UZ"
|
||||
FIELD CODTAB
|
||||
USE CCC KEY 1
|
||||
INPUT CODTAB F_INIZIO
|
||||
DISPLAY "Categoria" CODTAB
|
||||
DISPLAY "Descrizione@50" S0
|
||||
OUTPUT F_INIZIO CODTAB
|
||||
OUTPUT F_D_INIZIO S0
|
||||
GROUP 1
|
||||
CHECKTYPE NORMAL
|
||||
END
|
||||
|
||||
STRING F_D_INIZIO 60 50
|
||||
BEGIN
|
||||
PROMPT 26 2 ""
|
||||
FLAGS "D"
|
||||
END
|
||||
|
||||
STRING F_FINE 8
|
||||
BEGIN
|
||||
PROMPT 2 6 "A Categoria "
|
||||
FLAGS "UZ"
|
||||
FIELD CODTAB
|
||||
USE CCC KEY 1
|
||||
INPUT CODTAB F_FINE
|
||||
DISPLAY "Categoria" CODTAB
|
||||
DISPLAY "Descrizione@50" S0
|
||||
OUTPUT F_FINE CODTAB
|
||||
OUTPUT F_D_FINE S0
|
||||
GROUP 2
|
||||
CHECKTYPE NORMAL
|
||||
END
|
||||
|
||||
STRING F_D_FINE 60 50
|
||||
BEGIN
|
||||
PROMPT 26 6 ""
|
||||
FLAGS "D"
|
||||
END
|
||||
|
||||
BUTTON DLG_OK 10 2
|
||||
BEGIN
|
||||
PROMPT -12 -1 ""
|
||||
END
|
||||
|
||||
BUTTON DLG_QUIT 10 2
|
||||
BEGIN
|
||||
PROMPT -22 -1 ""
|
||||
END
|
||||
|
||||
ENDPAGE
|
||||
ENDMASK
|
Loading…
x
Reference in New Issue
Block a user