Пример #1
0
 function LandFAAS($http_post_vars, $afsID = "", $propertyID = "", $formAction = "", $sess)
 {
     $this->sess = $sess;
     $this->tpl = new rpts_Template(getcwd(), "keep");
     $this->tpl->set_file("rptsTemplate", "LandFAAS.htm");
     $this->tpl->set_var("TITLE", "Encode Land");
     $this->formArray = array("afsID" => $afsID, "propertyID" => $propertyID, "arpNumber" => "", "propertyIndexNumber" => "", "propertyAdministrator" => "", "personID" => "", "lastName" => "", "firstName" => "", "middleName" => "", "gender" => "", "birth_month" => date("n"), "birth_day" => date("j"), "birth_year" => date("Y"), "maritalStatus" => "", "tin" => "", "addressID" => "", "number" => "", "street" => "", "barangay" => "", "district" => "", "municipalityCity" => "", "province" => "", "telephone" => "", "mobileNumber" => "", "email" => "", "verifiedByID" => "", "verifiedBy" => "", "verifiedByName" => "", "plottingsByID" => "", "plottingsBy" => "", "plottingsByName" => "", "notedByID" => "", "notedBy" => "", "notedByName" => "", "marketValue" => "", "kind" => "", "actualUse" => "", "adjustedMarketValue" => "", "assessmentLevel" => "", "assessedValue" => "", "previousOwner" => "", "previousAssessedValue" => "", "taxability" => "", "effectivity" => "", "appraisedByID" => "", "appraisedBy" => "", "appraisedByName" => "", "appraisedByDate" => "", "recommendingApprovalID" => "", "recommendingApproval" => "", "recommendingApprovalName" => "", "recommendingApprovalDate" => "", "approvedByID" => "", "approvedBy" => "", "approvedByName" => "", "approvedByDate" => "", "memoranda" => "", "postingDate" => "", "octTctNumber" => "", "surveyNumber" => "", "north" => "", "east" => "", "south" => "", "west" => "", "classification" => "", "subClass" => "", "area" => "", "unitValue" => "", "adjustmentFactor" => "", "percentAdjustment" => "", "valueAdjustment" => "", "as_month" => date("n"), "as_day" => date("j"), "as_year" => date("Y"), "re_month" => date("n"), "re_day" => date("j"), "re_year" => date("Y"), "av_month" => date("n"), "av_day" => date("j"), "av_year" => date("Y"), "formAction" => $formAction);
     foreach ($http_post_vars as $key => $value) {
         $this->formArray[$key] = $value;
         //echo $key." = ".$this->formArray[$key]."<br>";
     }
     $as_dateStr = $this->formArray["as_year"] . "-" . putPreZero($this->formArray["as_month"]) . "-" . putPreZero($this->formArray["as_day"]);
     $this->formArray["appraisedByDate"] = $as_dateStr;
     $re_dateStr = $this->formArray["re_year"] . "-" . putPreZero($this->formArray["re_month"]) . "-" . putPreZero($this->formArray["re_day"]);
     $this->formArray["recommendingApprovalDate"] = $re_dateStr;
     $av_dateStr = $this->formArray["av_year"] . "-" . putPreZero($this->formArray["av_month"]) . "-" . putPreZero($this->formArray["av_day"]);
     $this->formArray["approvedByDate"] = $av_dateStr;
     $AssessorList = new SoapObject(NCCBIZ . "AssessorList.php", "urn:Object");
     if (!($xmlStr = $AssessorList->getAssessorList())) {
         $this->tpl->set_block("rptsTemplate", "Dropdown", "DropdownBlock");
         $this->tpl->set_var("DropdownBlock", "page not found");
     } else {
         if (!($domDoc = domxml_open_mem($xmlStr))) {
             $this->tpl->set_block("rptsTemplate", "Dropdown", "DropdownBlock");
             $this->tpl->set_var("DropdownBlock", "error xmlDoc");
         } else {
             $assessorRecords = new AssessorRecords();
             $assessorRecords->parseDomDocument($domDoc);
             $this->assessorList = $assessorRecords->getArrayList();
         }
     }
 }
Пример #2
0
 function searchAssessor($searchKey, $page = 0)
 {
     if ($page > 0) {
         $page = ($page - 1) * PAGE_BY;
         $limit = "LIMIT {$page}," . PAGE_BY;
     }
     $fields = array("firstName", "middleName", "lastName");
     $assessorRecords = new AssessorRecords();
     if ($assessorRecords->searchRecords($searchKey, $fields, $limit)) {
         if (!($domDoc = $assessorRecords->getDomDocument())) {
             return false;
         } else {
             $xmlStr = $domDoc->dump_mem(true);
             return $xmlStr;
         }
     } else {
         return false;
     }
 }