本文整理汇总了PHP中AFS::getImprovementsBuildingsArray方法的典型用法代码示例。如果您正苦于以下问题:PHP AFS::getImprovementsBuildingsArray方法的具体用法?PHP AFS::getImprovementsBuildingsArray怎么用?PHP AFS::getImprovementsBuildingsArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AFS
的用法示例。
在下文中一共展示了AFS::getImprovementsBuildingsArray方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Main
//.........这里部分代码省略.........
$this->tpl->set_var("propertyType",$tvalue->getPropertyType());
$this->tpl->set_var("basicTax","");
$this->tpl->set_var("sefTax", "");
$this->tpl->set_var("total", "");
//$this->tpl->set_var("basicTax",$tvalue->getBasicTax());
//$this->tpl->set_var("sefTax",$tvalue->getSefTax());
//$this->tpl->set_var("total",$tvalue->getTotal());
*/
$this->tdRecord["arpNumber"] = $tvalue->getTaxDeclarationNumber();
$AFSDetails = new SoapObject(NCCBIZ . "AFSDetails.php", "urn:Object");
if (!($xmlStr = $AFSDetails->getAFS($tvalue->getAfsID()))) {
//$this->tpl->set_block("rptsTemplate", "AFSTable", "AFSTableBlock");
//$this->tpl->set_var("AFSTableBlock", "afs not found");
} else {
//echo $xmlStr;
if (!($domDoc = domxml_open_mem($xmlStr))) {
//$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
//$this->tpl->set_var("OwnerListTableBlock", "error xmlDoc");
} else {
$afs = new AFS();
$afs->parseDomDocument($domDoc);
$odID = $afs->getOdID();
$od = new OD();
$od->selectRecord($odID);
if (is_object($od->locationAddress)) {
$locationAddress = $od->getLocationAddress();
$this->tdRecord["location"] = $locationAddress->getBarangay() . ", " . $locationAddress->getMunicipalityCity();
}
switch ($tvalue->getPropertyType()) {
case "ImprovementsBuildings":
if (is_array($afs->getImprovementsBuildingsArray())) {
$improvementsBuildings = $afs->improvementsBuildingsArray[0];
$actualUse = $improvementsBuildings->getActualUse();
if (is_numeric($actualUse)) {
$improvementsBuildingsActualUses = new ImprovementsBuildingsActualUses();
$improvementsBuildingsActualUses->selectRecord($actualUse);
$actualUse = $improvementsBuildingsActualUses->getCode();
//$actualUse = $improvementsBuildingsActualUses->getDescription();
}
$this->tdRecord["class"] = $actualUse;
}
break;
case "Machineries":
if (is_array($afs->getMachineriesArray())) {
$machineries = $afs->machineriesArray[0];
$actualUse = $machineries->getActualUse();
if (is_numeric($actualUse)) {
$machineriesActualUses = new MachineriesActualUses();
$machineriesActualUses->selectRecord($actualUse);
$actualUse = $machineriesActualUses->getCode();
//$actualUse = $machineriesActualUses->getDescription();
}
$this->tdRecord["class"] = $actualUse;
}
break;
case "Land":
default:
if (is_array($afs->getLandArray())) {
$land = $afs->landArray[0];
$actualUse = $land->getActualUse();
if (is_numeric($actualUse)) {
$landActualUses = new LandActualUses();
$landActualUses->selectRecord($actualUse);
示例2: Main
function Main()
{
$AFSDetails = new SoapObject(NCCBIZ . "AFSDetails.php", "urn:Object");
if (!($xmlStr = $AFSDetails->getAFS($this->formArray["afsID"]))) {
exit("afs not found");
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
exit("error xmlDoc");
} else {
$afs = new AFS();
$afs->parseDomDocument($domDoc);
$this->formArray["propertyIndexNumber"] = $afs->getPropertyIndexNumber();
$this->formArray["arpNumber"] = $afs->getArpNumber();
$this->formArray["effectivity"] = $afs->getEffectivity();
if ($afs->getTaxability() == "Taxable") {
$this->formArray["isTaxable"] = "X";
$this->formArray["isExempt"] = " ";
} else {
if ($afs->getTaxability() == "Exempt") {
$this->formArray["isExempt"] = "X";
$this->formArray["isTaxable"] = " ";
}
}
$this->displayODAFS($this->formArray["afsID"]);
$this->displayTDDetails();
// if propertyType is "Land", grab Land values plus PlantsTrees values
// if propertyType is "ImprovementsBuildings" or "Machineries", system should later on grab
// "Land" from another AFS from based on bldg->landPin or mach->landPin field
// still needs to be resolved whether to do it this way or not
switch ($this->formArray["propertyType"]) {
case "Land":
$landList = $afs->getLandArray();
$plantsTreesList = $afs->getPlantsTreesArray();
if (is_array($landList)) {
$this->displayLandDetails($landList);
$this->displayLandList($landList);
}
if (is_array($plantsTreesList)) {
$this->displayPlantsTreesList($plantsTreesList);
}
break;
case "ImprovementsBuildings":
$improvementsBuildingsList = $afs->getImprovementsBuildingsArray();
if (is_array($improvementsBuildingsList)) {
$this->displayImprovementsBuildingsList($improvementsBuildingsList);
}
break;
case "Machineries":
$machineriesList = $afs->getMachineriesArray();
if (is_array($machineriesList)) {
$this->displayMachineriesList($machineriesList);
}
break;
}
// UNCOMMENT LINES TO GRAB totalMarketValue and totalAssessedValue from AFS object instead of
// computing from each property:
//$this->formArray["totalMarketValue"] = $afs->getTotalMarketValue();
//$this->formArray["totalAssessedValue"] = $afs->getTotalAssessedValue();
$this->formArray["totalAssessedValueInWords"] = makewords($this->formArray["totalAssessedValue"]);
}
}
$this->setForm();
$this->tpl->parse("templatePage", "rptsTemplate");
$this->tpl->finish("templatePage");
$testpdf = new PDFWriter();
$testpdf->setOutputXML($this->tpl->get("templatePage"), "test");
if (isset($this->formArray["print"])) {
$testpdf->writePDF($name);
//,$this->formArray["print"]);
} else {
$testpdf->writePDF($name);
}
// header("location: ".$testpdf->pdfPath);
exit;
}
示例3: Main
function Main()
{
$AFSDetails = new SoapObject(NCCBIZ . "AFSDetails.php", "urn:Object");
if (!($xmlStr = $AFSDetails->getAFS($this->formArray["afsID"]))) {
exit("afs not found");
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
exit("error xmlDoc");
} else {
$afs = new AFS();
$afs->parseDomDocument($domDoc);
$this->displayODAFS($this->formArray["afsID"]);
$this->formArray["propertyIndexNumber"] = $afs->propertyIndexNumber;
//inserted this code for arpNumber - renonj
$this->formArray["arpNumber"] = $afs->getArpNumber();
$this->formArray["taxability"] = $afs->getTaxability();
//Inserted by CHT 07292008
if ($afs->getTaxability() == "Taxable") {
$this->formArray["isTaxable"] = "X";
$this->formArray["isExempt"] = " ";
} else {
if ($afs->getTaxability() == "Exempt") {
$this->formArray["isExempt"] = "X";
$this->formArray["isTaxable"] = " ";
}
}
//End
//land
$landList = $afs->getLandArray();
if (count($landList)) {
$this->displayLandList($landList);
}
//plantsTrees
$plantsTreesList = $afs->getPlantsTreesArray();
if (count($plantsTreesList)) {
$this->displayPlantsTreesList($plantsTreesList);
}
//improvementsBuildings
$improvementsBuildingsList = $afs->getImprovementsBuildingsArray();
if (count($improvementsBuildingsList)) {
$this->displayImprovementsBuildingsList($improvementsBuildingsList);
}
//machineries
$machineriesList = $afs->getMachineriesArray();
if (count($machineriesList)) {
$this->displayMachineriesList($machineriesList);
}
$this->displayAssessedValues($landList, $plantsTreesList, $improvementsBuildingsList, $machineriesList);
$this->displayLGUInfo();
}
}
$this->setForm();
$this->tpl->parse("templatePage", "rptsTemplate");
$this->tpl->finish("templatePage");
$testpdf = new PDFWriter();
$testpdf->setOutputXML($this->tpl->get("templatePage"), "test");
if (isset($this->formArray["print"])) {
$testpdf->writePDF("TDSummary.pdf");
//,$this->formArray["print"]);
} else {
$testpdf->writePDF("TDSummary.pdf");
}
// header("location: ".$testpdf->pdfPath);
exit;
}
示例4: Main
function Main()
{
switch ($this->formArray["formAction"]) {
case "remove":
if (count($this->formArray["landID"])) {
//print_r($this->formArray["landID"]);
$LandList = new SoapObject(NCCBIZ . "LandList.php", "urn:Object");
if (!($deletedRows = $LandList->removeLand($this->formArray["landID"]))) {
$this->tpl->set_var("msg", "SOAP failed");
} else {
$this->tpl->set_var("msg", $deletedRows . " records deleted");
}
} else {
$this->tpl->set_var("msg", "0 records deleted");
}
if (count($this->formArray["plantsTreesID"])) {
//print_r($this->formArray["plantsTreesID"]);
$PlantsTreesList = new SoapObject(NCCBIZ . "PlantsTreesList.php", "urn:Object");
if (!($deletedRows = $PlantsTreesList->removePlantsTrees($this->formArray["plantsTreesID"]))) {
$this->tpl->set_var("msg", "SOAP failed");
} else {
$this->tpl->set_var("msg", $deletedRows . " records deleted");
}
} else {
$this->tpl->set_var("msg", "0 records deleted");
}
if (count($this->formArray["machineriesID"])) {
//print_r($this->formArray["machineriesID"]);
$MachineriesList = new SoapObject(NCCBIZ . "MachineriesList.php", "urn:Object");
if (!($deletedRows = $MachineriesList->removeMachineries($this->formArray["machineriesID"]))) {
$this->tpl->set_var("msg", "SOAP failed");
} else {
$this->tpl->set_var("msg", $deletedRows . " records deleted");
}
} else {
$this->tpl->set_var("msg", "0 records deleted");
}
if (count($this->formArray["improvementsBuildingsID"])) {
//print_r($this->formArray["improvementsBuildingsID"]);
$ImprovementsBuildingsList = new SoapObject(NCCBIZ . "ImprovementsBuildingsList.php", "urn:Object");
if (!($deletedRows = $ImprovementsBuildingsList->removeImprovementsBuildings($this->formArray["improvementsBuildingsID"]))) {
$this->tpl->set_var("msg", "SOAP failed");
} else {
$this->tpl->set_var("msg", $deletedRows . " records deleted");
}
} else {
$this->tpl->set_var("msg", "0 records deleted");
}
if (count($this->formArray["storeyID"])) {
//print_r($this->formArray["storeyID"]);
$StoreyList = new SoapObject(NCCBIZ . "StoreyList.php", "urn:Object");
if (!($deletedRows = $StoreyList->removeStorey($this->formArray["storeyID"]))) {
$this->tpl->set_var("msg", "SOAP failed");
} else {
$this->tpl->set_var("msg", $deletedRows . " records deleted");
}
} else {
$this->tpl->set_var("msg", "0 records deleted");
}
header("location: AFSDetails.php" . $this->sess->url("") . $this->sess->add_query(array("afsID" => $this->formArray["afsID"])));
exit;
break;
default:
$this->tpl->set_var("msg", "");
}
$AFSDetails = new SoapObject(NCCBIZ . "AFSDetails.php", "urn:Object");
if (!($xmlStr = $AFSDetails->getAFS($this->formArray["afsID"]))) {
$this->tpl->set_block("rptsTemplate", "AFSTable", "AFSTableBlock");
$this->tpl->set_var("AFSTableBlock", "afs not found");
} else {
//echo $xmlStr;
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
$this->tpl->set_var("OwnerListTableBlock", "error xmlDoc");
} else {
$afs = new AFS();
$afs->parseDomDocument($domDoc);
//print_r($afs);
foreach ($afs as $key => $value) {
$this->formArray[$key] = $value;
$this->formArray["totalMarketValue"] = 0;
$this->formArray["totalAssessedValue"] = 0;
}
//TD
$this->displayTD($afs->afsID);
$landList = $afs->getLandArray();
$plantsTreesList = $afs->getPlantsTreesArray();
$improvementsBuildingsList = $afs->getImprovementsBuildingsArray();
$machineriesList = $afs->getMachineriesArray();
if (count($landList)) {
$this->displayLandPlantsTrees($landList, $plantsTreesList);
$this->hideProperty('ImprovementsBuildings', 'improvementsBuildings');
$this->hideProperty('Machineries', 'machineries');
} else {
if (count($plantsTreesList)) {
$this->displayLandPlantsTrees($landList, $plantsTreesList);
$this->hideProperty('ImprovementsBuildings', 'improvementsBuildings');
$this->hideProperty('Machineries', 'machineries');
} else {
if (count($improvementsBuildingsList)) {
//.........这里部分代码省略.........
示例5: getTDNumberListLine
function getTDNumberListLine($td)
{
if (is_object($td)) {
$tdNumber = $td->getTaxDeclarationNumber();
$propertyType = $td->getPropertyType();
$afsID = $td->getAfsID();
// get classification
$AFSDetails = new SoapObject(NCCBIZ . "AFSDetails.php", "urn:Object");
if (!($xmlStr = $AFSDetails->getAFS($afsID))) {
$classification = "";
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
$classification = "";
} else {
$afs = new AFS();
$afs->parseDomDocument($domDoc);
switch ($propertyType) {
case "ImprovementsBuildings":
$improvementsBuildingsArray = $afs->getImprovementsBuildingsArray();
if (is_array($improvementsBuildingsArray)) {
$classification = $improvementsBuildingsArray[0]->getActualUse();
if (is_numeric($classification)) {
$classification = $this->getImprovementsBuildingsActualUsesText($classification);
}
}
break;
case "Machineries":
$machineriesArray = $afs->getMachineriesArray();
if (is_array($machineriesArray)) {
$classification = $machineriesArray[0]->getActualUse();
if (is_numeric($classification)) {
$classification = $this->getMachineriesActualUsesText($classification);
}
}
break;
case "Land":
default:
$landArray = $afs->getLandArray();
$plantsTreesArray = $afs->getPlantsTreesArray();
if (is_array($landArray)) {
$classification = $landArray[0]->getActualUse();
if (is_numeric($classification)) {
$classification = $this->getLandActualUsesText($classification);
}
} else {
if (is_array($plantsTreesArray)) {
$classification = $plantsArray[0]->getActualUse();
if (is_numeric($classification)) {
$classification = $this->getPlantsTreesActualUsesText($classification);
}
}
}
}
}
}
$tdNumberListLine = $tdNumber . " --- " . $propertyType . " --- " . $classification;
return $tdNumberListLine;
}
return "";
}
示例6: Main
function Main()
{
$AFSDetails = new SoapObject(NCCBIZ . "AFSDetails.php", "urn:Object");
if (!($xmlStr = $AFSDetails->getAFS($this->formArray["afsID"]))) {
exit("afs not found");
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
exit("error xmlDoc");
} else {
$afs = new AFS();
$afs->parseDomDocument($domDoc);
$this->displayODAFS($this->formArray["afsID"]);
$this->formArray["propertyIndexNumber"] = $afs->propertyIndexNumber;
//land
$landList = $afs->getLandArray();
if (count($landList)) {
$this->displayLandList($landList);
}
//plantsTrees
$plantsTreesList = $afs->getPlantsTreesArray();
if (count($plantsTreesList)) {
$this->displayPlantsTreesList($plantsTreesList);
}
//improvementsBuildings
$improvementsBuildingsList = $afs->getImprovementsBuildingsArray();
if (count($improvementsBuildingsList)) {
$this->displayImprovementsBuildingsList($improvementsBuildingsList);
}
//machineries
$machineriesList = $afs->getMachineriesArray();
if (count($machineriesList)) {
$this->displayMachineriesList($machineriesList);
}
$this->displayAssessedValues($landList, $plantsTreesList, $improvementsBuildingsList, $machineriesList);
$this->displayAssessor();
}
}
$this->setForm();
$this->tpl->parse("templatePage", "rptsTemplate");
$this->tpl->finish("templatePage");
$testpdf = new PDFWriter();
$testpdf->setOutputXML($this->tpl->get("templatePage"), "test");
if (isset($this->formArray["print"])) {
$testpdf->writePDF($name);
//,$this->formArray["print"]);
} else {
$testpdf->writePDF($name);
}
// header("location: ".$testpdf->pdfPath);
exit;
}
示例7: Main
//.........这里部分代码省略.........
// error domDoc
} else {
$afs = new AFS();
$afs->parseDomDocument($domDoc);
$this->formArray["odID"] = $afs->getOdID();
$od = new OD();
$od->selectRecord($this->formArray["odID"]);
$locationNumber = $od->locationAddress->getNumber();
$locationStreet = $od->locationAddress->getStreet();
$locationBarangay = $od->locationAddress->getBarangay();
$locationDistrict = $od->locationAddress->getDistrict();
$locationMunicipalityCity = $od->locationAddress->getMunicipalityCity();
$locationProvince = $od->locationAddress->getProvince();
$this->formArray["location" . $tdCtr] = $locationNumber . " " . $locationStreet . " " . $locationBarangay;
// word wrap location
if (strlen($this->formArray["location" . $tdCtr]) > 26) {
$this->formArray["location" . $tdCtr . "a"] = $locationNumber . " " . $locationStreet;
$this->formArray["location" . $tdCtr . "b"] = $locationBarangay;
$this->formArray["location" . $tdCtr] = "";
}
$this->formArray["province"] = $locationProvince;
$this->formArray["municipalityCity"] = strtoupper($locationMunicipalityCity);
$this->formArray["area" . $tdCtr] = $od->getLandArea();
$this->formArray["lotNo" . $tdCtr] = $od->getLotNumber();
$this->formArray["pin" . $tdCtr] = $afs->getPropertyIndexNumber();
// word wrap pin
if (strlen($this->formArray["pin" . $tdCtr]) > 25) {
$this->formArray["pin" . $tdCtr . "a"] = substr($this->formArray["pin" . $tdCtr], 0, 25);
$this->formArray["pin" . $tdCtr . "b"] = substr($this->formArray["pin" . $tdCtr], 25);
$this->formArray["pin" . $tdCtr] = "";
}
$landList = $afs->getLandArray();
$plantsTreesList = $afs->getPlantsTreesArray();
$improvementsBuildingsList = $afs->getImprovementsBuildingsArray();
$machineriesList = $afs->getMachineriesArray();
$kind = "";
$actualUse = "";
if (count($landList)) {
$kind = "Land";
$land = $landList[0];
$actualUse = $land->getActualUse();
$landActualUses = new LandActualUses();
$landActualUses->selectRecord($actualUse);
$actualUse = $landActualUses->getDescription();
$actualUseReportCode = $landActualUses->getReportCode();
} else {
if (count($plantsTreesList)) {
$kind = "Land";
$plantsTrees = $plantsTreesList[0];
$actualUse = $plantsTrees->getActualUse();
$plantsTreesActualUses = new PlantsTreesActualUses();
$plantsTreesActualUses->selectRecord($actualUse);
$actualUse = $plantsTreesActualUses->getDescription();
$actualUseReportCode = $plantsTreesActualUses->getReportCode();
} else {
if (count($improvementsBuildingsList)) {
$kind = "Improvements/Buildings";
$improvementsBuildings = $improvementsBuildingsList[0];
$actualUse = $improvementsBuildings->getActualUse();
$improvementsBuildingsActualUses = new ImprovementsBuildingsActualUses();
$improvementsBuildingsActualUses->selectRecord($actualUse);
$actualUse = $improvementsBuildingsActualUses->getDescription();
$actualUseReportCode = $improvementsBuildingsActualUses->getReportCode();
} else {
if (count($machineriesList)) {
$kind = "Machineries";
示例8: Main
function Main()
{
$AFSDetails = new SoapObject(NCCBIZ . "AFSDetails.php", "urn:Object");
if (!($xmlStr = $AFSDetails->getAFS($this->formArray["afsID"]))) {
exit("afs not found");
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
exit("error xmlDoc");
} else {
$afs = new AFS();
$afs->parseDomDocument($domDoc);
$this->formArray["arpNumber"] = $afs->arpNumber;
$this->formArray["propertyIndexNumber"] = $afs->propertyIndexNumber;
$this->formArray["taxability"] = $afs->taxability;
$this->formArray["effectivity"] = $afs->effectivity;
$this->displayODAFS($this->formArray["afsID"]);
$this->displayTD($this->formArray["afsID"]);
$improvementsBuildingsList = $afs->getImprovementsBuildingsArray();
if (count($improvementsBuildingsList)) {
$this->displayImprovementsBuildingsList($improvementsBuildingsList);
}
}
}
$this->setForm();
$this->tpl->parse("templatePage", "rptsTemplate");
$this->tpl->finish("templatePage");
$testpdf = new PDFWriter();
$testpdf->setOutputXML($this->tpl->get("templatePage"), "test");
if (isset($this->formArray["print"])) {
$testpdf->writePDF($name);
//,$this->formArray["print"]);
} else {
$testpdf->writePDF($name);
}
// header("location: ".$testpdf->pdfPath);
exit;
}
示例9: Main
//.........这里部分代码省略.........
// error domDoc
} else {
$afs = new AFS();
$afs->parseDomDocument($domDoc);
$this->formArray["odID"] = $afs->getOdID();
$od = new OD();
$od->selectRecord($this->formArray["odID"]);
$locationNumber = $od->locationAddress->getNumber();
$locationStreet = $od->locationAddress->getStreet();
$locationBarangay = $od->locationAddress->getBarangay();
$locationDistrict = $od->locationAddress->getDistrict();
$locationMunicipalityCity = $od->locationAddress->getMunicipalityCity();
$locationProvince = $od->locationAddress->getProvince();
$this->formArray["location" . $tdCtr] = $locationNumber . " " . $locationStreet . " " . $locationBarangay;
// word wrap location
if (strlen($this->formArray["location" . $tdCtr]) > 26) {
$this->formArray["location" . $tdCtr . "a"] = $locationNumber . " " . $locationStreet;
$this->formArray["location" . $tdCtr . "b"] = $locationBarangay;
$this->formArray["location" . $tdCtr] = "";
}
$this->formArray["province"] = $locationProvince;
$this->formArray["municipalityCity"] = strtoupper($locationMunicipalityCity);
$this->formArray["area" . $tdCtr] = $od->getLandArea();
$this->formArray["lotNo" . $tdCtr] = $od->getLotNumber();
$this->formArray["pin" . $tdCtr] = $afs->getPropertyIndexNumber();
// word wrap pin
if (strlen($this->formArray["pin" . $tdCtr]) > 13) {
$this->formArray["pin" . $tdCtr . "a"] = substr($this->formArray["pin" . $tdCtr], 0, 12);
$this->formArray["pin" . $tdCtr . "b"] = substr($this->formArray["pin" . $tdCtr], 12);
$this->formArray["pin" . $tdCtr] = "";
}
$landList = $afs->getLandArray();
$plantsTreesList = $afs->getPlantsTreesArray();
$improvementsBuildingsList = $afs->getImprovementsBuildingsArray();
$machineriesList = $afs->getMachineriesArray();
$kind = "";
$actualUse = "";
if (count($landList)) {
$kind = "Land";
$land = $landList[0];
$actualUse = $land->getActualUse();
$landActualUses = new LandActualUses();
$landActualUses->selectRecord($actualUse);
$actualUse = $landActualUses->getDescription();
$actualUseReportCode = $landActualUses->getReportCode();
} else {
if (count($plantsTreesList)) {
$kind = "Land";
$plantsTrees = $plantsTreesList[0];
$actualUse = $plantsTrees->getActualUse();
$plantsTreesActualUses = new PlantsTreesActualUses();
$plantsTreesActualUses->selectRecord($actualUse);
$actualUse = $plantsTreesActualUses->getDescription();
$actualUseReportCode = $plantsTreesActualUses->getReportCode();
} else {
if (count($improvementsBuildingsList)) {
$kind = "Improvements/Buildings";
$improvementsBuildings = $improvementsBuildingsList[0];
$actualUse = $improvementsBuildings->getActualUse();
$improvementsBuildingsActualUses = new ImprovementsBuildingsActualUses();
$improvementsBuildingsActualUses->selectRecord($actualUse);
$actualUse = $improvementsBuildingsActualUses->getDescription();
$actualUseReportCode = $improvementsBuildingsActualUses->getReportCode();
} else {
if (count($machineriesList)) {
$kind = "Machineries";
示例10: Main
function Main()
{
$RPTOPDetails = new SoapObject(NCCBIZ . "RPTOPDetails.php", "urn:Object");
if (!($xmlStr = $RPTOPDetails->getRPTOP($this->formArray["rptopID"]))) {
exit("xml failed");
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
exit("error domDoc");
} else {
$rptop = new RPTOP();
$rptop->parseDomDocument($domDoc);
foreach ($rptop as $key => $value) {
switch ($key) {
case "owner":
if (is_a($value, "Owner")) {
$this->formArray["ownerID"] = $rptop->owner->getOwnerID();
$xmlStr = $rptop->owner->domDocument->dump_mem(true);
if (!$xmlStr) {
$this->formArray["ownerName"] = "";
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->formArray["ownerName"] = "";
} else {
$this->displayOwnerList($domDoc);
}
}
} else {
$this->formArray["ownerNames"] = "";
}
break;
case "tdArray":
$tdCtr = 0;
if (count($value)) {
foreach ($value as $tkey => $tvalue) {
$this->tdRecord["arpNumber"] = $tvalue->getTaxDeclarationNumber();
$AFSDetails = new SoapObject(NCCBIZ . "AFSDetails.php", "urn:Object");
if (!($xmlStr = $AFSDetails->getAFS($tvalue->getAfsID()))) {
// error xml
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
// error domDoc
} else {
$afs = new AFS();
$afs->parseDomDocument($domDoc);
$odID = $afs->getOdID();
$od = new OD();
$od->selectRecord($odID);
if (is_object($od->locationAddress)) {
$locationAddress = $od->getLocationAddress();
$this->tdRecord["location"] = $locationAddress->getBarangay() . ", " . $locationAddress->getMunicipalityCity();
}
$this->tdRecord["assessedValue"] = $afs->getTotalAssessedValue();
switch ($tvalue->getPropertyType()) {
case "ImprovementsBuildings":
if (is_array($afs->getImprovementsBuildingsArray())) {
$improvementsBuildings = $afs->improvementsBuildingsArray[0];
$actualUse = $improvementsBuildings->getActualUse();
if (is_numeric($actualUse)) {
$improvementsBuildingsActualUses = new ImprovementsBuildingsActualUses();
$improvementsBuildingsActualUses->selectRecord($actualUse);
$actualUse = $improvementsBuildingsActualUses->getCode();
//$actualUse = $improvementsBuildingsActualUses->getDescription();
}
$this->tdRecord["class"] = $actualUse;
}
break;
case "Machineries":
if (is_array($afs->getMachineriesArray())) {
$machineries = $afs->machineriesArray[0];
$actualUse = $machineries->getActualUse();
if (is_numeric($actualUse)) {
$machineriesActualUses = new MachineriesActualUses();
$machineriesActualUses->selectRecord($actualUse);
$actualUse = $machineriesActualUses->getCode();
//$actualUse = $machineriesActualUses->getDescription();
}
$this->tdRecord["class"] = $actualUse;
}
break;
case "Land":
default:
if (is_array($afs->getLandArray())) {
$land = $afs->landArray[0];
$actualUse = $land->getActualUse();
if (is_numeric($actualUse)) {
$landActualUses = new LandActualUses();
$landActualUses->selectRecord($actualUse);
$actualUse = $landActualUses->getCode();
//$actualUse = $landActualUses->getDescription();
}
$this->tdRecord["class"] = $actualUse;
} else {
if (is_array($afs->getPlantsTreesArray())) {
if (is_numeric($actualUse)) {
$plantsTreesActualUses = new PlantsTreesActualUses();
$plantsTreesActualUses->selectRecord($actualUse);
$actualUse = $plantsTreesActualUses->getCode();
//$actualUse = $plantsTreesActualUses->getDescription();
}
$this->tdRecord["class"] = $actualUse;
//.........这里部分代码省略.........