Description: Here
I have given simple demonstration to get worker id, name etc... If you have
worker personnel Number, Name, id etc. then you can find another information.
Code:-
info(strFmt("%1",DirPerson::find(HcmWorker::findByPersonnelNumber("000123").Person).Name)); info(strFmt("%1",HcmWorker::findByPersonnelNumber("000123").RecId)); info(strFmt("%1",curUserId())); select * from UserInfo where UserInfo.id == curUserId(); if(UserInfo.id != '') { info(strFmt("%1",HcmWorker::findByPerson(DirPerson::find(DirPartyTable::findByName(UserInfo.name).RecId).RecId).PersonnelNumber)); }
Thanks for comments.....