Patch level : 10.1016

Files correlati     :  ve0.exe
Ricompilazione Demo : [ ]
Commento            :

Aggiunta nel tipo documento una elaborazion de eseguire dopo la stampa dalla gestione interattiva dei documenti


git-svn-id: svn://10.65.10.50/branches/R_10_00@22210 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2011-06-02 21:12:53 +00:00
parent 76420ade84
commit 9a71b85d71
5 changed files with 39 additions and 7 deletions

View File

@ -367,9 +367,9 @@ bool TMotore_application::menu(MENU_TAG mt)
return ok; return ok;
} }
void TMotore_application::do_elab( TDocumento& doc ) // C 90 void TMotore_application::do_elab( TDocumento& doc, bool stampa ) // C 90
{ {
const TString16 codelab = doc.tipo().elaborazione(); const TString16 codelab = stampa ? doc.tipo().elaborazione_stampa() : doc.tipo().elaborazione();
if (codelab.full()) if (codelab.full())
{ {
@ -1063,10 +1063,11 @@ bool TMotore_application::save_and_print(bool savedoc, TPrtype mode)
TExternal_app interattivo( commandline ); TExternal_app interattivo( commandline );
if (interattivo.run() == NOERR) if (interattivo.run() == NOERR)
{ {
TDocumento_mask& m = edit_mask();
TDocumento& maindoc = m.doc();
if (da_stampare) // Aggiorna stato documento se necessario if (da_stampare) // Aggiorna stato documento se necessario
{ {
TDocumento_mask& m = edit_mask();
TDocumento& maindoc = m.doc();
maindoc.read(); // Aggiorna STATO e MOVMAG generati da ve1 maindoc.read(); // Aggiorna STATO e MOVMAG generati da ve1
// Lo stato del documento vive di vita propria // Lo stato del documento vive di vita propria
@ -1076,6 +1077,7 @@ bool TMotore_application::save_and_print(bool savedoc, TPrtype mode)
m.set(F_STATO, str_sfs, true); m.set(F_STATO, str_sfs, true);
init_modify_mode(m); init_modify_mode(m);
} }
do_elab(maindoc, true);
} }
} }
else else

View File

@ -49,7 +49,7 @@ protected:
virtual void init_modify_mode( TMask& m ); virtual void init_modify_mode( TMask& m );
void load_auto_reopen_data(); void load_auto_reopen_data();
virtual int read( TMask& m ); virtual int read( TMask& m );
virtual void do_elab( TDocumento& doc ); virtual void do_elab( TDocumento& doc, bool stampa = false );
virtual int write( const TMask& m ); virtual int write( const TMask& m );
virtual int rewrite( const TMask& m ); virtual int rewrite( const TMask& m );
virtual bool remove(); virtual bool remove();

View File

@ -307,6 +307,7 @@ public:
const char stato_mov_finale() const {return get_char("S8"); } const char stato_mov_finale() const {return get_char("S8"); }
const char stato_provvigioni() const {return get("S3")[0]; } const char stato_provvigioni() const {return get("S3")[0]; }
const TString & elaborazione() const {return get("S3").mid(4,8); } const TString & elaborazione() const {return get("S3").mid(4,8); }
const TString & elaborazione_stampa() const {return get("S3").mid(12,8); }
const TString & caus_mov() const {return get("S9"); } const TString & caus_mov() const {return get("S9"); }
const TString & caus_anticipo() const {return get("S10"); } const TString & caus_anticipo() const {return get("S10"); }
const TString & tipi_iva_validi() const {return get("S11"); } const TString & tipi_iva_validi() const {return get("S11"); }

View File

@ -36,6 +36,8 @@
#define F_STATOCHI 153 #define F_STATOCHI 153
#define F_CODELAB 154 #define F_CODELAB 154
#define F_DESCELAB 155 #define F_DESCELAB 155
#define F_CODELABPR 156
#define F_DESCELABPR 157
#define F_STATOI_MOD_1 201 #define F_STATOI_MOD_1 201
#define F_STATOI_MOD_2 202 #define F_STATOI_MOD_2 202

View File

@ -1233,7 +1233,7 @@ END
STRING F_CODELAB 8 STRING F_CODELAB 8
BEGIN BEGIN
PROMPT 2 12 "Codice " PROMPT 2 12 "Elab. "
FLAG "U" FLAG "U"
FIELD S3[5,12] FIELD S3[5,12]
CHECKTYPE NORMAL CHECKTYPE NORMAL
@ -1248,7 +1248,7 @@ END
STRING F_DESCELAB 50 STRING F_DESCELAB 50
BEGIN BEGIN
PROMPT 20 12 "" PROMPT 28 12 ""
CHECKTYPE SEARCH CHECKTYPE SEARCH
WARNING "E' necessario specificare un valore" WARNING "E' necessario specificare un valore"
USE %ELD KEY 2 USE %ELD KEY 2
@ -1258,6 +1258,33 @@ BEGIN
COPY OUTPUT F_CODELAB COPY OUTPUT F_CODELAB
END END
STRING F_CODELABPR 8
BEGIN
PROMPT 2 13 "Elab.in stampa"
FLAG "U"
FIELD S3[13,20]
CHECKTYPE NORMAL
USE %ELD
INPUT CODTAB F_CODELABPR
DISPLAY "Codice@10" CODTAB
DISPLAY "Descrizione@50" S0
OUTPUT F_CODELABPR CODTAB
OUTPUT F_DESCELABPR S0
HELP "Codice dell'elaborazione differita da eseguire"
END
STRING F_DESCELABPR 50
BEGIN
PROMPT 28 13 ""
CHECKTYPE SEARCH
WARNING "E' necessario specificare un valore"
USE %ELD KEY 2
INPUT S0 F_DESCELABPR
DISPLAY "Descrizione@50" S0
DISPLAY "Codice" CODTAB
COPY OUTPUT F_CODELABPR
END
ENDPAGE ENDPAGE