Patch level : 10.0 NO PATCH

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :


git-svn-id: svn://10.65.10.50/trunk@19728 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2009-12-04 10:29:04 +00:00
parent 41c53c6125
commit f45aa0e1d0

View File

@ -215,6 +215,11 @@ public:
//ON_KEY: metodo che gestisce i tatsi funzione
bool TEvasione_ter_msk::on_key(KEY key)
{
/*TString str;
str << key;
message_box(str);*/
if (key >= K_F3 && key <= K_F7)
{
FOR_EACH_MASK_FIELD(*this, i, f)
@ -241,6 +246,18 @@ void TEvasione_ter_msk::precarica_righe()
TBuono_prelievo doc(kdoc);
const TString4 stato = cache().get("%TIP", ini_get_string(CONFIG_DITTA, "lv", "TIPODOC_PRE", NULL, 0), "S2").mid(2,1);
if (doc.get(DOC_STATO) == stato)
{
TString str;
str << "Il documento " << get_long(F_TNDOC) << " è già stato evaso";
warning_box(str);
set(F_TNDOC, 0L, 1);
return;
}
TDate oggi(TODAY);
FOR_EACH_PHYSICAL_RDOC(doc, i, row)
@ -868,10 +885,10 @@ bool TEvasione_ter_msk::on_field_event(TOperable_field& f, TField_event e, long
break;
case F_TNDOC:
{
TString cazzone = get(F_TNDOC);
if (e == fe_modify)
if (!f.empty())
if (f.get_long() > 0)
{
//f.check();
hide(F_TCODNUM);
hide(F_TTPDOC);
hide(F_TDESCR);