function getLocation_resourcesByResourceId($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_manageLocation_resources::getLocation_resourcesListByResourceId($id);
        if ($result->type == 1) {
            $arr_Location_resourcesList = $result->data;
            if (count($arr_Location_resourcesList) > 0) {
                $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
                foreach ($arr_Location_resourcesList as $obj_Location_resources) {
                    $main_result .= getLocation_resourcesXml($obj_Location_resources);
                }
            } else {
                $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
            }
        } else {
            $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
        }
    }
    $main_result .= "</VPROFILERESULT>";
    return $main_result;
}
function getVillage_industrialByBusinessId($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_manageVillage_industrial::getVillage_industrialListByBusinessId($id);
        if ($result->type == 1) {
            $arr_Village_industrialList = $result->data;
            if (count($arr_Village_industrialList) > 0) {
                $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
                foreach ($arr_Village_industrialList as $obj_Village_industrial) {
                    $main_result .= getVillage_industrialXml($obj_Village_industrial);
                }
            } else {
                $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
            }
        } else {
            $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
        }
    }
    $main_result .= "</VPROFILERESULT>";
    return $main_result;
}
function getPerson_olresultByOLResultId($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_olresult::getPerson_olresultListByOLResultId($id);
        if ($result->type == 1) {
            $arr_Person_olresultList = $result->data;
            if (count($arr_Person_olresultList) > 0) {
                $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
                foreach ($arr_Person_olresultList as $obj_Person_olresult) {
                    $main_result .= getPerson_olresultXml($obj_Person_olresult);
                }
            } else {
                $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
            }
        } else {
            $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
        }
    }
    $main_result .= "</VPROFILERESULT>";
    return $main_result;
}
Exemplo n.º 4
0
function getGroupByGroupId($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_manageGroup::getGroupListByGroupId($id);
        if ($result->type == 1) {
            $arr_GroupList = $result->data;
            if (count($arr_GroupList) > 0) {
                $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
                foreach ($arr_GroupList as $obj_Group) {
                    $main_result .= getGroupXml($obj_Group);
                }
            } else {
                $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
            }
        } else {
            $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
        }
    }
    $main_result .= "</VPROFILERESULT>";
    return $main_result;
}
function getHigherstudysubjectsBySubjectId($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_manageHigherstudysubjects::getHigherstudysubjectsListBySubjectId($id);
        if ($result->type == 1) {
            $arr_HigherstudysubjectsList = $result->data;
            if (count($arr_HigherstudysubjectsList) > 0) {
                $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
                foreach ($arr_HigherstudysubjectsList as $obj_Higherstudysubjects) {
                    $main_result .= getHigherstudysubjectsXml($obj_Higherstudysubjects);
                }
            } else {
                $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
            }
        } else {
            $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
        }
    }
    $main_result .= "</VPROFILERESULT>";
    return $main_result;
}
function getOrganizationtypeByOrganizationTypeId($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_manageOrganizationtype::getOrganizationtypeListByOrganizationTypeId($id);
        if ($result->type == 1) {
            $arr_OrganizationtypeList = $result->data;
            if (count($arr_OrganizationtypeList) > 0) {
                $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
                foreach ($arr_OrganizationtypeList as $obj_Organizationtype) {
                    $main_result .= getOrganizationtypeXml($obj_Organizationtype);
                }
            } else {
                $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
            }
        } else {
            $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
        }
    }
    $main_result .= "</VPROFILERESULT>";
    return $main_result;
}
function getTraditionalknowledgecategoryByCategoryId($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_manageTraditionalknowledgecategory::getTraditionalknowledgecategoryListByCategoryId($id);
        if ($result->type == 1) {
            $arr_TraditionalknowledgecategoryList = $result->data;
            if (count($arr_TraditionalknowledgecategoryList) > 0) {
                $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
                foreach ($arr_TraditionalknowledgecategoryList as $obj_Traditionalknowledgecategory) {
                    $main_result .= getTraditionalknowledgecategoryXml($obj_Traditionalknowledgecategory);
                }
            } else {
                $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
            }
        } else {
            $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
        }
    }
    $main_result .= "</VPROFILERESULT>";
    return $main_result;
}
function getSociety_memberByMemberId($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_manageSociety_member::getSociety_memberListByMemberId($id);
        if ($result->type == 1) {
            $arr_Society_memberList = $result->data;
            if (count($arr_Society_memberList) > 0) {
                $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
                foreach ($arr_Society_memberList as $obj_Society_member) {
                    $main_result .= getSociety_memberXml($obj_Society_member);
                }
            } else {
                $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
            }
        } else {
            $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
        }
    }
    $main_result .= "</VPROFILERESULT>";
    return $main_result;
}
Exemplo n.º 9
0
function FetchUserEmail($Action)
{
    $Email = ValidateSession($Action);
    echo json_encode($Email);
}
Exemplo n.º 10
0
function getWebservicecallByid($sessionkey, $appcode, $id)
{
    $main_result = "<AUTHSTATUS>0</AUTHSTATUS>";
    $userId = ValidateSession($sessionkey, $appcode);
    if ($userId > -1) {
        $main_result .= "<AUTHSTATUS>1</AUTHSTATUS>";
        $result = BL_manageWebservicecall::getWebservicecallListByid($id);
        if ($result->type == 1) {
            $arr_WebservicecallList = $result->data;
            if (count($arr_WebservicecallList) > 0) {
                $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
                $main_result .= "<WEBSERVICECALLLIST>";
                foreach ($arr_WebservicecallList as $obj_Webservicecall) {
                    $main_result .= getWebservicecallXml($obj_Webservicecall);
                }
                $main_result .= "</WEBSERVICECALLLIST>";
            } else {
                $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
            }
        } else {
            $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
        }
    }
    return $main_result;
}