public static function updatePerson_alresult2($ALResultId, $SubjectId, $SchoolId, $Grade, $Language, $DateTime, $PersonId)
 {
     $obj_retResult = new returnResult();
     $obj_newPerson_alresult = new Person_alresult();
     $obj_newPerson_alresult->ALResultId = $ALResultId;
     $obj_newPerson_alresult->SubjectId = $SubjectId;
     $obj_newPerson_alresult->SchoolId = $SchoolId;
     $obj_newPerson_alresult->Grade = $Grade;
     $obj_newPerson_alresult->Language = $Language;
     $obj_newPerson_alresult->DateTime = $DateTime;
     $obj_newPerson_alresult->PersonId = $PersonId;
     $issuccess = DAL_managePerson_alresult::updatePerson_alresult($obj_newPerson_alresult);
     if ($issuccess) {
         $obj_retResult->type = 1;
         //	$obj_retResult->data = BL_managePerson_alresult::getPerson_alresultByALResultId($obj_newPerson_alresult->ALResultId);
         $obj_retResult->msg = "Person_alresult updation is Success";
     } else {
         $obj_retResult->type = 0;
         $obj_retResult->msg = "Person_alresult updation is Failed";
     }
     return $obj_retResult;
 }
function updatePerson_alresult($sessionkey, $appcode, $Person_alresultdata)
{
    $main_result = "<VPROFILERESULT>";
    $main_result .= "<AUTHSTATUS>0</AUTHSTATUS>";
    $userId = ValidateSession($sessionkey, $appcode);
    if ($userId > -1) {
        $main_result = "<AUTHSTATUS>1</AUTHSTATUS>";
        $obj_Person_alresult = new Person_alresult();
        foreach ($Userdata["[UPPERTEMPLATENAME"] as $key => $child) {
            switch ($key) {
                case "ALRESULTID":
                    $obj_Person_alresult->ALResultId = $child;
                    break;
                case "SUBJECTID":
                    $obj_Person_alresult->SubjectId = $child;
                    break;
                case "SCHOOLID":
                    $obj_Person_alresult->SchoolId = $child;
                    break;
                case "GRADE":
                    $obj_Person_alresult->Grade = $child;
                    break;
                case "LANGUAGE":
                    $obj_Person_alresult->Language = $child;
                    break;
                case "DATETIME":
                    $obj_Person_alresult->DateTime = $child;
                    break;
                case "PERSONID":
                    $obj_Person_alresult->PersonId = $child;
                    break;
            }
        }
        $obj_retResult_Person_alresult = DAL_managePerson_alresult::updatePerson_alresult($obj_Person_alresult);
        if ($obj_retResult_Person_alresult->type == 1) {
            $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
            $main_result .= getPerson_alresultXml($obj_retResult_Person_alresult->data);
        } else {
            $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
        }
    }
    $main_result .= "</VPROFILERESULT>";
    return $main_result;
}