function updatePerson_workingexperiance($sessionkey, $appcode, $Person_workingexperiancedata) { $main_result = "<VPROFILERESULT>"; $main_result .= "<AUTHSTATUS>0</AUTHSTATUS>"; $userId = ValidateSession($sessionkey, $appcode); if ($userId > -1) { $main_result = "<AUTHSTATUS>1</AUTHSTATUS>"; $obj_Person_workingexperiance = new Person_workingexperiance(); foreach ($Userdata["[UPPERTEMPLATENAME"] as $key => $child) { switch ($key) { case "WORKEXPID": $obj_Person_workingexperiance->WorkExpId = $child; break; case "COMPANYID": $obj_Person_workingexperiance->CompanyId = $child; break; case "STARTDATE": $obj_Person_workingexperiance->StartDate = $child; break; case "ENDDATE": $obj_Person_workingexperiance->EndDate = $child; break; case "POSITION": $obj_Person_workingexperiance->Position = $child; break; case "PERSONID": $obj_Person_workingexperiance->PersonId = $child; break; } } $obj_retResult_Person_workingexperiance = DAL_managePerson_workingexperiance::updatePerson_workingexperiance($obj_Person_workingexperiance); if ($obj_retResult_Person_workingexperiance->type == 1) { $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>"; $main_result .= getPerson_workingexperianceXml($obj_retResult_Person_workingexperiance->data); } else { $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>"; } } $main_result .= "</VPROFILERESULT>"; return $main_result; }
public static function updatePerson_workingexperiance2($WorkExpId, $CompanyId, $StartDate, $EndDate, $Position, $PersonId) { $obj_retResult = new returnResult(); $obj_newPerson_workingexperiance = new Person_workingexperiance(); $obj_newPerson_workingexperiance->WorkExpId = $WorkExpId; $obj_newPerson_workingexperiance->CompanyId = $CompanyId; $obj_newPerson_workingexperiance->StartDate = $StartDate; $obj_newPerson_workingexperiance->EndDate = $EndDate; $obj_newPerson_workingexperiance->Position = $Position; $obj_newPerson_workingexperiance->PersonId = $PersonId; $issuccess = DAL_managePerson_workingexperiance::updatePerson_workingexperiance($obj_newPerson_workingexperiance); if ($issuccess) { $obj_retResult->type = 1; // $obj_retResult->data = BL_managePerson_workingexperiance::getPerson_workingexperianceByWorkExpId($obj_newPerson_workingexperiance->WorkExpId); $obj_retResult->msg = "Person_workingexperiance updation is Success"; } else { $obj_retResult->type = 0; $obj_retResult->msg = "Person_workingexperiance updation is Failed"; } return $obj_retResult; }