Patch level : 10.0 164

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :

Bug  	 0000974

 	  	 se dall'inserimento documenti clicco su stampa ed il modulo indicato nel tipo documento non esiste non viene dato nessun errore, semplicemente il bottone non produce effetto.


git-svn-id: svn://10.65.10.50/trunk@17657 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2008-11-17 14:26:13 +00:00
parent daaf40557d
commit 89bf1132d4
2 changed files with 16 additions and 7 deletions

View File

@ -179,13 +179,17 @@ void TMotore_application::init_modify_mode( TMask& m )
enable_menu_item(M_FILE_PRINT, provv == "D" && enable_print); enable_menu_item(M_FILE_PRINT, provv == "D" && enable_print);
if (provv[0] == 'P') if (provv[0] == 'P')
{ {
m.hide(DLG_PRINT); // m.hide(DLG_PRINT);
m.show(DLG_CONFERMA); // m.show(DLG_CONFERMA);
m.disable(DLG_PRINT);
m.enable(DLG_CONFERMA);
} }
else else
{ {
m.show(DLG_PRINT); // m.show(DLG_PRINT);
m.hide(DLG_CONFERMA); // m.hide(DLG_CONFERMA);
m.enable(DLG_PRINT);
m.disable(DLG_CONFERMA);
m.enable(DLG_PRINT, enable_print); m.enable(DLG_PRINT, enable_print);
} }
m.enable(DLG_ELABORA); m.enable(DLG_ELABORA);
@ -975,6 +979,11 @@ void TMotore_application::print()
} }
} }
} }
else
{
rep.ext("");
message_box("Il profilo %s non esiste", (const char *) rep);
}
} }
} }

View File

@ -159,7 +159,7 @@ bool TRiga_documento::_rit_calc = false;
TRiga_documento::TRiga_documento(TDocumento* doc, const char * tipo) TRiga_documento::TRiga_documento(TDocumento* doc, const char * tipo)
: TAuto_variable_rectype(LF_RIGHEDOC), _doc(doc) : TAuto_variable_rectype(LF_RIGHEDOC), _doc(doc)
{ {
set_memo_fld("G1"); set_memo_fld("RG1");
if (tipo) if (tipo)
set_tipo(tipo); set_tipo(tipo);
} }
@ -168,7 +168,7 @@ TRiga_documento::TRiga_documento(const TRiga_documento & row)
: TAuto_variable_rectype(LF_RIGHEDOC), _doc(NULL) : TAuto_variable_rectype(LF_RIGHEDOC), _doc(NULL)
{ {
set_memo_fld("G1"); set_memo_fld("RG1");
copy(row); copy(row);
} }
@ -176,7 +176,7 @@ TRiga_documento::TRiga_documento(const TRiga_documento& rec, TDocumento* doc,
const char * tipo) const char * tipo)
: TAuto_variable_rectype(rec), _doc(doc) : TAuto_variable_rectype(rec), _doc(doc)
{ {
set_memo_fld("G1"); set_memo_fld("RG1");
if (tipo) if (tipo)
set_tipo(tipo); set_tipo(tipo);
} }