public static function deletePerson_workingexperiance($obj_mainpacket)
 {
     $packet = $obj_mainpacket->packet;
     $WorkExpId = $packet[0];
     $msg = "failed";
     $result = 0;
     $result_WorkExpId = 0;
     $retResult = BL_managePerson_workingexperiance::getPerson_workingexperianceListByWorkExpId($WorkExpId);
     if ($retResult->type == 1) {
         $obj_Person_workingexperiance = $retResult->data[0];
         $obj_result2 = DAL_managePerson_workingexperiance::deletePerson_workingexperiance($obj_Person_workingexperiance->WorkExpId);
         if ($obj_result2->type == 1) {
             $result = 1;
             $result_WorkExpId = $obj_Person_workingexperiance->WorkExpId;
             $msg = "success";
         } else {
             $msg = "Sorry!!! Problem occured while deleting this Person_workingexperiance";
         }
     } else {
         $msg = "Sorry!!! The Person_workingexperiance you are tring to delete is not found";
     }
     $obj_mainpacket->returnValues = array($result, $obj_Person_workingexperiance->WorkExpId, $msg);
     $obj_mainpacket->main_setPacket();
 }
function getPerson_workingexperianceByWorkExpId($sessionkey, $appcode, $id)
{
    $main_result = "<VPROFILERESULT>";
    $main_result .= "<AUTHSTATUS>0</AUTHSTATUS>";
    $userId = ValidateSession($sessionkey, $appcode);
    if ($userId > -1) {
        $main_result .= "<AUTHSTATUS>1</AUTHSTATUS>";
        $result = BL_managePerson_workingexperiance::getPerson_workingexperianceListByWorkExpId($id);
        if ($result->type == 1) {
            $arr_Person_workingexperianceList = $result->data;
            if (count($arr_Person_workingexperianceList) > 0) {
                $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
                foreach ($arr_Person_workingexperianceList as $obj_Person_workingexperiance) {
                    $main_result .= getPerson_workingexperianceXml($obj_Person_workingexperiance);
                }
            } else {
                $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
            }
        } else {
            $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
        }
    }
    $main_result .= "</VPROFILERESULT>";
    return $main_result;
}