Patch level :10.0

Files correlati     :lv0400.msk,lv0400.exe
Ricompilazione Demo : [ ]
Commento            :Aggiunta dettaglio su testata contratti


git-svn-id: svn://10.65.10.50/trunk@18048 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
rajitgill 2009-01-20 09:42:36 +00:00
parent 9da48e0d59
commit 311f36a4db
3 changed files with 53 additions and 18 deletions

View File

@ -59,6 +59,13 @@ bool TContratti_msk::on_art_select()
rowmask.set(S_CALCCONS,"0");
row.add("0",ss.cid2index(S_CALCCONS));
for (short id=F_IMPFISART; id<=F_IMPFISART+30; id++)
{
const int pos=id2pos(id);
if (pos>0)
fld(pos).set(row.get(ss.cid2index(id-400)));
}
return true;
}
@ -102,6 +109,7 @@ bool TContratti_msk:: on_field_event(TOperable_field& o,TField_event e,long joll
row.add(o.get(),ss.cid2index(S_CODART));
row.add(um,S_UM);
on_art_select();
}
}
else
@ -109,7 +117,31 @@ bool TContratti_msk:: on_field_event(TOperable_field& o,TField_event e,long joll
on_art_select();
}
break;
default:break;
case F_RIGHE:
if (e==se_enter)
{
TSheet_field& ss=(TSheet_field&)o;
TToken_string& row=ss.row(ss.selected());
for (short id=F_IMPFISART; id<=F_IMPFISART+30; id++)
{
const int pos=id2pos(id);
if (pos>0)
fld(pos).set(row.get(ss.cid2index(id-400)));
}
}
break;
default:
if (e==fe_modify && o.dlg()>500 && o.dlg() != F_CAUSLAVDESCRIG)
{
TSheet_field& ss = sfield(F_RIGHE);
const short rowid = o.dlg()-400;
const int index= ss.cid2index(rowid);
const int sel=ss.selected();
ss.row(sel).add(o.get(),index);
ss.force_update(sel);
}
break;
}
return true;

View File

@ -40,22 +40,25 @@
#define F_INDSPED 238
#define F_INDIR 239
#define F_PROPOSTA 240
#define F_IMPFISART 241
#define F_PREZDAN 242
#define F_VALCONV 243
#define F_ARTBLOC 244
#define F_CALCCONS 245
#define F_TIPOFORF 246
#define F_NOLCIC 247
#define F_VCARTCLI 248
#define F_MINCIC 249
#define F_FORFPERCL 250
#define F_CAUSLAVRIG 251
#define F_CAUSLAVDESCRIG 252
#define F_TIPONOL 253
#define F_RITAUDTTMPRIG 254
#define F_FATTKG 255
#define F_ARROT 256
// Campi del dettalio sotto lo spreadsheet
#define F_CAUSLAVDESCRIG 513
#define F_IMPFISART 514
#define F_PREZDAN 515
#define F_VALCONV 516
#define F_ARTBLOC 517
#define F_CALCCONS 518
#define F_TIPOFORF 519
#define F_NOLCIC 520
#define F_VCARTCLI 521
#define F_MINCIC 522
#define F_FORFPERCL 523
#define F_CAUSLAVRIG 524
#define F_TIPONOL 525
#define F_RITAUDTTMPRIG 526
#define F_FATTKG 527
#define F_ARROT 528
#define S_CODART 101
#define S_DESCR 102

View File

@ -150,7 +150,7 @@ BEGIN
ITEM "Arrotond."
END
GROUPBOX DLG_NULL 80 10
GROUPBOX DLG_NULL 80 9
BEGIN
PROMPT 1 13 "@b Dettaglio"
END