function updatePerson_property($sessionkey, $appcode, $Person_propertydata)
{
    $main_result = "<VPROFILERESULT>";
    $main_result .= "<AUTHSTATUS>0</AUTHSTATUS>";
    $userId = ValidateSession($sessionkey, $appcode);
    if ($userId > -1) {
        $main_result = "<AUTHSTATUS>1</AUTHSTATUS>";
        $obj_Person_property = new Person_property();
        foreach ($Userdata["[UPPERTEMPLATENAME"] as $key => $child) {
            switch ($key) {
                case "PROPERTYID":
                    $obj_Person_property->PropertyId = $child;
                    break;
                case "PROPERTYNAME":
                    $obj_Person_property->PropertyName = $child;
                    break;
                case "PROPERTYTYPE":
                    $obj_Person_property->PropertyType = $child;
                    break;
                case "ASSESSVALUE":
                    $obj_Person_property->AssessValue = $child;
                    break;
                case "DESCRIPTION":
                    $obj_Person_property->Description = $child;
                    break;
            }
        }
        $obj_retResult_Person_property = DAL_managePerson_property::updatePerson_property($obj_Person_property);
        if ($obj_retResult_Person_property->type == 1) {
            $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
            $main_result .= getPerson_propertyXml($obj_retResult_Person_property->data);
        } else {
            $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
        }
    }
    $main_result .= "</VPROFILERESULT>";
    return $main_result;
}
 public static function updatePerson_property2($PropertyId, $PropertyName, $PropertyType, $AssessValue, $Description)
 {
     $obj_retResult = new returnResult();
     $obj_newPerson_property = new Person_property();
     $obj_newPerson_property->PropertyId = $PropertyId;
     $obj_newPerson_property->PropertyName = $PropertyName;
     $obj_newPerson_property->PropertyType = $PropertyType;
     $obj_newPerson_property->AssessValue = $AssessValue;
     $obj_newPerson_property->Description = $Description;
     $issuccess = DAL_managePerson_property::updatePerson_property($obj_newPerson_property);
     if ($issuccess) {
         $obj_retResult->type = 1;
         //	$obj_retResult->data = BL_managePerson_property::getPerson_propertyByPropertyId($obj_newPerson_property->PropertyId);
         $obj_retResult->msg = "Person_property updation is Success";
     } else {
         $obj_retResult->type = 0;
         $obj_retResult->msg = "Person_property updation is Failed";
     }
     return $obj_retResult;
 }