function updateGroupmissiontype($sessionkey, $appcode, $Groupmissiontypedata)
{
    $main_result = "<VPROFILERESULT>";
    $main_result .= "<AUTHSTATUS>0</AUTHSTATUS>";
    $userId = ValidateSession($sessionkey, $appcode);
    if ($userId > -1) {
        $main_result = "<AUTHSTATUS>1</AUTHSTATUS>";
        $obj_Groupmissiontype = new Groupmissiontype();
        foreach ($Userdata["[UPPERTEMPLATENAME"] as $key => $child) {
            switch ($key) {
                case "GROUPMISSIONTYPEID":
                    $obj_Groupmissiontype->GroupMissionTypeId = $child;
                    break;
                case "GROUPMISSIONTYPENAME":
                    $obj_Groupmissiontype->GroupMissionTypeName = $child;
                    break;
                case "DESCRIPTION":
                    $obj_Groupmissiontype->Description = $child;
                    break;
            }
        }
        $obj_retResult_Groupmissiontype = DAL_manageGroupmissiontype::updateGroupmissiontype($obj_Groupmissiontype);
        if ($obj_retResult_Groupmissiontype->type == 1) {
            $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
            $main_result .= getGroupmissiontypeXml($obj_retResult_Groupmissiontype->data);
        } else {
            $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
        }
    }
    $main_result .= "</VPROFILERESULT>";
    return $main_result;
}
 public static function updateGroupmissiontype2($GroupMissionTypeId, $GroupMissionTypeName, $Description)
 {
     $obj_retResult = new returnResult();
     $obj_newGroupmissiontype = new Groupmissiontype();
     $obj_newGroupmissiontype->GroupMissionTypeId = $GroupMissionTypeId;
     $obj_newGroupmissiontype->GroupMissionTypeName = $GroupMissionTypeName;
     $obj_newGroupmissiontype->Description = $Description;
     $issuccess = DAL_manageGroupmissiontype::updateGroupmissiontype($obj_newGroupmissiontype);
     if ($issuccess) {
         $obj_retResult->type = 1;
         //	$obj_retResult->data = BL_manageGroupmissiontype::getGroupmissiontypeByGroupMissionTypeId($obj_newGroupmissiontype->GroupMissionTypeId);
         $obj_retResult->msg = "Groupmissiontype updation is Success";
     } else {
         $obj_retResult->type = 0;
         $obj_retResult->msg = "Groupmissiontype updation is Failed";
     }
     return $obj_retResult;
 }