function updatePerson_educationlevel($sessionkey, $appcode, $Person_educationleveldata)
{
    $main_result = "<VPROFILERESULT>";
    $main_result .= "<AUTHSTATUS>0</AUTHSTATUS>";
    $userId = ValidateSession($sessionkey, $appcode);
    if ($userId > -1) {
        $main_result = "<AUTHSTATUS>1</AUTHSTATUS>";
        $obj_Person_educationlevel = new Person_educationlevel();
        foreach ($Userdata["[UPPERTEMPLATENAME"] as $key => $child) {
            switch ($key) {
                case "EDUCATIONLEVELID":
                    $obj_Person_educationlevel->EducationLevelId = $child;
                    break;
                case "SCHOOLID":
                    $obj_Person_educationlevel->SchoolId = $child;
                    break;
                case "STARTYEAR":
                    $obj_Person_educationlevel->StartYear = $child;
                    break;
                case "STARTCLASS":
                    $obj_Person_educationlevel->StartClass = $child;
                    break;
                case "ENDYEAR":
                    $obj_Person_educationlevel->EndYear = $child;
                    break;
                case "ENDCLASS":
                    $obj_Person_educationlevel->EndClass = $child;
                    break;
                case "PERSONID":
                    $obj_Person_educationlevel->PersonId = $child;
                    break;
            }
        }
        $obj_retResult_Person_educationlevel = DAL_managePerson_educationlevel::updatePerson_educationlevel($obj_Person_educationlevel);
        if ($obj_retResult_Person_educationlevel->type == 1) {
            $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
            $main_result .= getPerson_educationlevelXml($obj_retResult_Person_educationlevel->data);
        } else {
            $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
        }
    }
    $main_result .= "</VPROFILERESULT>";
    return $main_result;
}
 public static function updatePerson_educationlevel2($EducationLevelId, $SchoolId, $StartYear, $StartClass, $EndYear, $EndClass, $PersonId)
 {
     $obj_retResult = new returnResult();
     $obj_newPerson_educationlevel = new Person_educationlevel();
     $obj_newPerson_educationlevel->EducationLevelId = $EducationLevelId;
     $obj_newPerson_educationlevel->SchoolId = $SchoolId;
     $obj_newPerson_educationlevel->StartYear = $StartYear;
     $obj_newPerson_educationlevel->StartClass = $StartClass;
     $obj_newPerson_educationlevel->EndYear = $EndYear;
     $obj_newPerson_educationlevel->EndClass = $EndClass;
     $obj_newPerson_educationlevel->PersonId = $PersonId;
     $issuccess = DAL_managePerson_educationlevel::updatePerson_educationlevel($obj_newPerson_educationlevel);
     if ($issuccess) {
         $obj_retResult->type = 1;
         //	$obj_retResult->data = BL_managePerson_educationlevel::getPerson_educationlevelByEducationLevelId($obj_newPerson_educationlevel->EducationLevelId);
         $obj_retResult->msg = "Person_educationlevel updation is Success";
     } else {
         $obj_retResult->type = 0;
         $obj_retResult->msg = "Person_educationlevel updation is Failed";
     }
     return $obj_retResult;
 }