static void DateofJoining(HcmWorkerRecId _person = 22565420973,
HcmEmploymentType _referenceType = HcmEmploymentType::Employee)
{
HcmEmployment hcmEmployment;
OMOperatingUnit oMOperatingUnit;
;
if (_person)
{
select
firstonly hcmEmployment
index HcmEmployment_AK1
where
_referenceType == hcmEmployment.EmploymentType &&
_person == hcmEmployment.Worker;
//join oMOperatingUnit
//where
//oMOperatingUnit.OMOperatingUnitType == OMOperatingUnitType::Line &&
//oMOperatingUnit.OrganizationUnitId == hrpPartyPositionTableRelationship.OrganizationUnitId;
}
// return hrpPartyPositionTableRelationship.ValidFromDateTime;
info(strFmt("date of joining = %1", datetimeutil::applyTimeZoneOffset(hcmEmployment.ValidFrom,DateTimeUtil::getUserPreferredTimeZone())));
}
HcmEmploymentType _referenceType = HcmEmploymentType::Employee)
{
HcmEmployment hcmEmployment;
OMOperatingUnit oMOperatingUnit;
;
if (_person)
{
select
firstonly hcmEmployment
index HcmEmployment_AK1
where
_referenceType == hcmEmployment.EmploymentType &&
_person == hcmEmployment.Worker;
//join oMOperatingUnit
//where
//oMOperatingUnit.OMOperatingUnitType == OMOperatingUnitType::Line &&
//oMOperatingUnit.OrganizationUnitId == hrpPartyPositionTableRelationship.OrganizationUnitId;
}
// return hrpPartyPositionTableRelationship.ValidFromDateTime;
info(strFmt("date of joining = %1", datetimeutil::applyTimeZoneOffset(hcmEmployment.ValidFrom,DateTimeUtil::getUserPreferredTimeZone())));
}
No comments:
Post a Comment