Patch level : 12.0 534

Files correlati     : sc
Commento            : Sistemato crash in ricerca denominazione per clienti

git-svn-id: svn://10.65.10.50/branches/R_10_00@24377 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
mtollari 2018-02-14 15:00:10 +00:00
parent 24aad5f024
commit 0a0ca49da3

View File

@ -67,9 +67,8 @@ TSelection_mask::TSelection_mask(const char* name)
_cli_sh_k1 = new TCursor_sheet(_cli_cur_k1, " |CODCF|RAGSOC|PAIV", TR("Selezione cliente per codice"),
"@1|Codice|Ragione Sociale@50",0,1);
_cli_sh_k2 = new TCursor_sheet(_cli_cur_k2, " |RAGSOC|CODCF", "Selezione clienti per ragione sociale",
_cli_sh_k2 = new TCursor_sheet(_cli_cur_k2, " |RAGSOC|CODCF", "Selezione cliente per ragione sociale",
"@1|Ragione Sociale@50|Codice",0,1);
_cli_sh_k2->add_checkbutton(SC_CLIFO+500, 0, "", 68, 0, 2, 1, "", 10112, 10113).set_handler(sc_filter_handler);
if (id2pos(SC_CLIFO) >= 0)
@ -495,7 +494,8 @@ bool TSelection_mask::fdfrom_handler(TMask_field& f, KEY k)
const TString& value = f.get();
c.cursor()->curr().put(fld, value);
c.cursor()->read();
c.set(SC_CLIFO, value, 0x3);
if(c.find_by_id(SC_CLIFO) != NULL)
c.set(SC_CLIFO, value, 0x3);
c.disable_check();
c.disable(DLG_USER);
if (c.run() == K_ENTER)
@ -531,7 +531,8 @@ bool TSelection_mask::fdto_handler(TMask_field& f, KEY k)
const TString& value = f.get();
c.cursor()->curr().put(fld, value);
c.cursor()->read();
c.set(SC_CLIFO, value, 0x3);
if (c.find_by_id(SC_CLIFO) != NULL)
c.set(SC_CLIFO, value, 0x3);
c.disable_check();
c.disable(DLG_USER);
if (c.run() == K_ENTER)