While select ForUpdate in x++ :
void Batal()
{
GG_FPJVoucher Get_GG_FPJVoucher, getRemarked;
voucher _voucher;
;
Get_GG_FPJVoucher = GG_FPJVoucher_ds.getFirst(true);
while(Get_GG_FPJVoucher)
{
_voucher = Get_GG_FPJVoucher.Voucher;
ttsbegin;
while select forupdate getRemarked where getRemarked.Voucher == _voucher
{
getRemarked.BIT_Batal = noyescombo::Yes;
getRemarked.update();
}
ttscommit;
Get_GG_FPJVoucher = GG_FPJVoucher_ds.getNext();
}
GG_FPJVoucher_ds.executeQuery();
}
void Batal()
{
GG_FPJVoucher Get_GG_FPJVoucher, getRemarked;
voucher _voucher;
;
Get_GG_FPJVoucher = GG_FPJVoucher_ds.getFirst(true);
while(Get_GG_FPJVoucher)
{
_voucher = Get_GG_FPJVoucher.Voucher;
ttsbegin;
while select forupdate getRemarked where getRemarked.Voucher == _voucher
{
getRemarked.BIT_Batal = noyescombo::Yes;
getRemarked.update();
}
ttscommit;
Get_GG_FPJVoucher = GG_FPJVoucher_ds.getNext();
}
GG_FPJVoucher_ds.executeQuery();
}
0 comments:
Post a Comment