Hi,
Add tableName.validTimeStateUpdateMode(ValidTimeStateUpdate::Correction);
static void Job511(Args _args)
{
EmplContract emplContract;
utcdatetime minDateTime = DateTimeUtil::minValue() , maxDateTime = DateTimeUtil::maxValue();
ttsBegin;
While select forUpdate
* from emplContract
where emplContract.AnnualLeave == ""
{
emplContract.validTimeStateUpdateMode(ValidTimeStateUpdate::Correction);
emplContract.AnnualLeave = "اجازة السنوية";
emplContract.update();
}
ttsCommit;
}
Regards
Add tableName.validTimeStateUpdateMode(ValidTimeStateUpdate::Correction);
inside the tts.
{
EmplContract emplContract;
utcdatetime minDateTime = DateTimeUtil::minValue() , maxDateTime = DateTimeUtil::maxValue();
ttsBegin;
While select forUpdate
* from emplContract
where emplContract.AnnualLeave == ""
{
emplContract.validTimeStateUpdateMode(ValidTimeStateUpdate::Correction);
emplContract.AnnualLeave = "اجازة السنوية";
emplContract.update();
}
ttsCommit;
}
Regards
No comments:
Post a Comment