public static function deleteVillage_service($obj_mainpacket)
 {
     $packet = $obj_mainpacket->packet;
     $BusinessId = $packet[0];
     $msg = "failed";
     $result = 0;
     $result_BusinessId = 0;
     $retResult = BL_manageVillage_service::getVillage_serviceListByBusinessId($BusinessId);
     if ($retResult->type == 1) {
         $obj_Village_service = $retResult->data[0];
         $obj_result2 = DAL_manageVillage_service::deleteVillage_service($obj_Village_service->BusinessId);
         if ($obj_result2->type == 1) {
             $result = 1;
             $result_BusinessId = $obj_Village_service->BusinessId;
             $msg = "success";
         } else {
             $msg = "Sorry!!! Problem occured while deleting this Village_service";
         }
     } else {
         $msg = "Sorry!!! The Village_service you are tring to delete is not found";
     }
     $obj_mainpacket->returnValues = array($result, $obj_Village_service->BusinessId, $msg);
     $obj_mainpacket->main_setPacket();
 }
function getVillage_serviceByBusinessId($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_service::getVillage_serviceListByBusinessId($id);
        if ($result->type == 1) {
            $arr_Village_serviceList = $result->data;
            if (count($arr_Village_serviceList) > 0) {
                $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
                foreach ($arr_Village_serviceList as $obj_Village_service) {
                    $main_result .= getVillage_serviceXml($obj_Village_service);
                }
            } else {
                $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
            }
        } else {
            $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
        }
    }
    $main_result .= "</VPROFILERESULT>";
    return $main_result;
}