static void creatingApplicant(Args _args)
{
HcmApplicant hcmApplicant;
DirPerson dirperson;
DirPersonName dirPersonName;
NumberSeq sequence;
HcmApplicantId applicantId;
RecId person, dirPersonRecid;
DirPartyRecId partyRecId;
Name personName;
personName = “Khadar” +” ” +”shaikh”+ ” ” + “test”;
partyRecId = DirPartyTable::createNew( DirPartyType::Person, personName).RecId;
dirPersonRecId = DirPerson::find(partyRecId).RecId;
dirPersonName.FirstName = “Khadar”;
dirPersonName.MiddleName = “shaikh”;
dirPersonName.LastName = “test”;
dirPersonName.Person = dirPersonRecId;
if (dirPersonName.validateWrite())
{
dirPersonName.insert();
}
sequence = NumberSeq::newGetNum( HRMParameters::numRefApplicantId());
applicantId = sequence.num();
hcmApplicant.ApplicantId = applicantId;
if(dirPersonRecId != hcmApplicant.Person)
{
hcmApplicant.Person = dirPersonRecId;
hcmApplicant.insert();
}
}
{
HcmApplicant hcmApplicant;
DirPerson dirperson;
DirPersonName dirPersonName;
NumberSeq sequence;
HcmApplicantId applicantId;
RecId person, dirPersonRecid;
DirPartyRecId partyRecId;
Name personName;
personName = “Khadar” +” ” +”shaikh”+ ” ” + “test”;
partyRecId = DirPartyTable::createNew( DirPartyType::Person, personName).RecId;
dirPersonRecId = DirPerson::find(partyRecId).RecId;
dirPersonName.FirstName = “Khadar”;
dirPersonName.MiddleName = “shaikh”;
dirPersonName.LastName = “test”;
dirPersonName.Person = dirPersonRecId;
if (dirPersonName.validateWrite())
{
dirPersonName.insert();
}
sequence = NumberSeq::newGetNum( HRMParameters::numRefApplicantId());
applicantId = sequence.num();
hcmApplicant.ApplicantId = applicantId;
if(dirPersonRecId != hcmApplicant.Person)
{
hcmApplicant.Person = dirPersonRecId;
hcmApplicant.insert();
}
}
No comments:
Post a Comment