Example #1
0
 function FetchPermit($query)
 {
     $this->outarray = FetchArrayDB($query);
 }
 function ReplaceValueDef($taxfeeid, $owner_id, $business_id, $natureid)
 {
     $this->outselect = SelectDataWhereDB("tempassess a, ebpls_buss_complex b", "where a.taxfeeid=b.complex_tfoid and \n\t\t\t    a.owner_id={$owner_id} and a.business_id={$business_id} \n\t\t\t    and a.natureid={$natureid} and a.taxfeeid={$taxfeeid} and active=1");
     $rec = mysql_num_rows($this->outselect);
     if ($rec > 0) {
         $this->outarray = FetchArrayDB($this->outselect);
     } else {
         $this->outselect = SelectDataWhereDB("ebpls_buss_tfo a", "where a.tfoid = '{$taxfeeid}' and a.tfoindicator=1");
         $this->outarray = FetchArrayDB($this->outselect);
     }
 }
 function FetchBusinessArray($query)
 {
     $this->outarray = FetchArrayDB($query);
 }
Example #4
0
 function GetBranch($branch_id)
 {
     $this->outselect = SelectDataWhereDB("main_branch", "where branch_id = {$branch_id}");
     $this->outarray = FetchArrayDB($this->outselect);
 }