HcmPositionRecId SelfPosition;
HcmPositionHierarchy PositionHierarchy;
uctdatetime utcDT = dtatimeutlill::;
SelfPosition = HcmPositionWorkerAssignment::find(HcmWorkerPrimaryPosition::findByWorker(HcmWorker::findByPerson("current person").RecId).PositionAssignment).Position;
select validTimeState(utcDT) PositionHierarchy
where PositionHierarchy.Position == SelfPosition && PositionHierarchy.PositionHierarchyType != 0;
report to postion = HcmWorker::find(HcmWorkerPrimaryPosition::findByPositionAssignment(HcmPositionWorkerAssignment::findByPosition(PositionHierarchy.ParentPosition).RecId).Worker).Person;
HcmPositionHierarchy PositionHierarchy;
uctdatetime utcDT = dtatimeutlill::;
SelfPosition = HcmPositionWorkerAssignment::find(HcmWorkerPrimaryPosition::findByWorker(HcmWorker::findByPerson("current person").RecId).PositionAssignment).Position;
select validTimeState(utcDT) PositionHierarchy
where PositionHierarchy.Position == SelfPosition && PositionHierarchy.PositionHierarchyType != 0;
report to postion = HcmWorker::find(HcmWorkerPrimaryPosition::findByPositionAssignment(HcmPositionWorkerAssignment::findByPosition(PositionHierarchy.ParentPosition).RecId).Worker).Person;
No comments:
Post a Comment