Patch level :4.0 830
Files correlati : Ricompilazione Demo : [ ] Commento :sistemato handler cms/cdc automatico git-svn-id: svn://10.65.10.50/trunk@15828 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
01c5f649e9
commit
78d685a2f8
@ -405,8 +405,10 @@ void TDocumento_mask::insert_anal_page()
|
||||
insert_anal_fields(*this, newpage, LF_COMMESSE, y, dlg, dlgd, cms_req);
|
||||
}
|
||||
}
|
||||
set_field_handler(_cms_end, codcms_handler);
|
||||
}
|
||||
if (_cms_start > 0 && _cdc_start > 0)
|
||||
set_field_handler(_cms_end, codcms_handler);
|
||||
|
||||
if (use_fsc && fasinfo.parent() <= 0)
|
||||
insert_anal_fields(*this, newpage, LF_FASI, y, dlg, dlgd, fsc_req);
|
||||
}
|
||||
|
@ -2178,11 +2178,11 @@ bool codcms_handler(TMask_field& f, KEY key)
|
||||
if ((key == K_TAB && f.focusdirty()) || key == K_ENTER)
|
||||
{
|
||||
const TRectype & curr = mask.efield(mask.cms_start()).browse()->cursor()->curr();
|
||||
const TString codcosto = curr.get(COMMESSE_CODCOSTO);
|
||||
const TString & codcms = curr.get(COMMESSE_CODCMS);
|
||||
|
||||
if (mask.cdc_start() >= 0 && mask.codcms() != codcms)
|
||||
{
|
||||
const TString codcosto = curr.get(COMMESSE_CODCOSTO);
|
||||
for (short i = mask.cdc_start(); i <= mask.cdc_end(); i++)
|
||||
{
|
||||
TEdit_field & e = mask.efield(i);
|
||||
|
Loading…
x
Reference in New Issue
Block a user