Patch level : 10.0 288
Files correlati : ve0.exe pe0.exe Ricompilazione Demo : [ ] Commento : Salvato l'ultimo documento nel pragrafo di modulo in moodo che i es. documenti lavanderia non vengagano richiamati da ve0 Preventivi/incarichi (Dinamica) (copia righe) git-svn-id: svn://10.65.10.50/trunk@18776 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
85d1b0cf2c
commit
6c4c41ce69
@ -334,9 +334,9 @@ bool TGestione_preventivo_msk::pe_incolla_handler(TMask_field& f, KEY k)
|
||||
if (i > mask._clipboard_row && orig_level >= row_level)
|
||||
break;
|
||||
const TRiga_documento & row = doc[i];
|
||||
TRiga_documento & new_row = doc.insert_row(start_row, row.get(RDOC_TIPORIGA));
|
||||
|
||||
sh.insert(start_row - 1);
|
||||
sh.insert(start_row - 1, false, true);
|
||||
TRiga_documento & new_row = doc[start_row];
|
||||
doc.copy_data(new_row, row);
|
||||
row_level += level_offset;
|
||||
new_row.put(RDOC_LEVEL, row_level);
|
||||
@ -348,21 +348,7 @@ bool TGestione_preventivo_msk::pe_incolla_handler(TMask_field& f, KEY k)
|
||||
i++;
|
||||
}
|
||||
|
||||
for (i = 1; i <= doc.physical_rows(); i++)
|
||||
{
|
||||
const int row_level = doc[i].get_int(RDOC_LEVEL);
|
||||
const bool prodfin = row_level == 0;
|
||||
const bool price_enabled = (i == doc.physical_rows()) || (row_level >= doc[i + 1].get_int(RDOC_LEVEL));
|
||||
short id;
|
||||
|
||||
sh.enable_cell(i - 1, sh.cid2index(FR_PREZZO), price_enabled);
|
||||
sh.enable_cell(i - 1, sh.cid2index(FR_JOLLY2), price_enabled);
|
||||
for (id = FR_CDC1; id < FR_CDC12; id++)
|
||||
sh.enable_cell(i - 1, id, prodfin);
|
||||
for (id = FR_DESCDC1; id < FR_DESCDC12; id++)
|
||||
sh.enable_cell(i - 1, id, prodfin);
|
||||
mask.highlight_row(i - 1, COLOR_INVALID, COLOR_INVALID, true, false);
|
||||
}
|
||||
mask.highlight();
|
||||
sh.force_update();
|
||||
}
|
||||
mask._clipboard_row = -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user