本文整理汇总了PHP中AFS::checkOdID方法的典型用法代码示例。如果您正苦于以下问题:PHP AFS::checkOdID方法的具体用法?PHP AFS::checkOdID怎么用?PHP AFS::checkOdID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AFS
的用法示例。
在下文中一共展示了AFS::checkOdID方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getOdID
function getOdID($afsID)
{
$afs = new AFS();
if (!($odID = $afs->checkOdID($afsID))) {
return false;
} else {
return $odID;
}
}
示例2: Main
//.........这里部分代码省略.........
} else {
//echo $xmlStr;
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
$this->tpl->set_var("OwnerListTableBlock", "error xmlDoc");
} else {
$plantsTrees = new PlantsTrees();
$plantsTrees->parseDomDocument($domDoc);
//$plantsTrees->selectRecord($propertyID);
$this->formArray["plantTotalMarketValue"] += tofloat($plantsTrees->getMarketValue());
$this->formArray["plantTotalAssessedValue"] += tofloat($plantsTrees->getAssessedValue());
$this->displayPlantsTrees($plantsTrees);
}
}
$this->tpl->set_var("LandBlock", "");
$this->tpl->set_var("ImprovementsBuildingsBlock", "");
$this->tpl->set_var("MachineriesBlock", "");
break;
case "ImprovementsBuildings":
$ImprovementsBuildingsDetails = new SoapObject(NCCBIZ . "ImprovementsBuildingsDetails.php", "urn:Object");
if (!($xmlStr = $ImprovementsBuildingsDetails->getImprovementsBuildings($propertyID))) {
echo "xml failed";
} else {
//echo $xmlStr;
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
$this->tpl->set_var("OwnerListTableBlock", "error xmlDoc");
} else {
$improvementsBuildings = new ImprovementsBuildings();
$improvementsBuildings->parseDomDocument($domDoc);
//$improvementsBuildings->selectRecord($propertyID);
$this->formArray["bldgTotalMarketValue"] += tofloat($improvementsBuildings->getMarketValue());
$this->formArray["bldgTotalAssessedValue"] += tofloat($improvementsBuildings->getAssessedValue());
$this->displayImprovementsBuildings($improvementsBuildings);
}
}
$this->tpl->set_var("LandBlock", "");
$this->tpl->set_var("PlantsTreesBlock", "");
$this->tpl->set_var("MachineriesBlock", "");
break;
case "Machineries":
$MachineriesDetails = new SoapObject(NCCBIZ . "MachineriesDetails.php", "urn:Object");
if (!($xmlStr = $MachineriesDetails->getMachineries($propertyID))) {
echo "xml failed";
} else {
//echo $xmlStr;
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
$this->tpl->set_var("OwnerListTableBlock", "error xmlDoc");
} else {
$machineries = new Machineries();
$machineries->parseDomDocument($domDoc);
//$machineries->selectRecord($propertyID);
$this->formArray["machTotalMarketValue"] += tofloat($machineries->getMarketValue());
$this->formArray["machTotalAssessedValue"] += tofloat($machineries->getAssessedValue());
$this->displayMachineries($machineries);
}
}
$this->tpl->set_var("LandBlock", "");
$this->tpl->set_var("PlantsTreesBlock", "");
$this->tpl->set_var("ImprovementsBuildingsBlock", "");
break;
default:
$this->tpl->set_block("TDList", "Land", "LandBlock");
$this->tpl->set_var("LandBlock", "");
$this->tpl->set_block("TDList", "PlantsTrees", "PlantsTreesBlock");
$this->tpl->set_var("PlantsTreesBlock", "");
$this->tpl->set_block("TDList", "ImprovementsBuildings", "ImprovementsBuildingsBlock");
$this->tpl->set_var("ImprovementsBuildingsBlock", "");
$this->tpl->set_block("TDList", "Machineries", "MachineriesBlock");
$this->tpl->set_var("MachineriesBlock", "");
$this->tpl->set_block("TDList", "TD", "TDBlock");
$this->tpl->set_var("TDBlock", "");
}
$TDEncode = new SoapObject(NCCBIZ . "TDEncode.php", "urn:Object");
$this->formArray["afsID"] = $TDEncode->getAfsID($this->formArray["tdID"]);
$afs = new AFS();
$this->formArray["odID"] = $afs->checkOdID($this->formArray["afsID"]);
$ODEncode = new SoapObject(NCCBIZ . "ODEncode.php", "urn:Object");
$this->formArray["ownerID"] = $ODEncode->getOwnerID($this->formArray["odID"]);
$OwnerList = new SoapObject(NCCBIZ . "OwnerList.php", "urn:Object");
if (!($xmlStr = $OwnerList->getOwnerList($this->formArray["ownerID"]))) {
//exit(print_r($OwnerList));
$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
$this->tpl->set_var("OwnerListTableBlock", "");
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
$this->tpl->set_var("OwnerListTableBlock", "error xmlDoc");
} else {
$this->displayOwnerList($domDoc);
}
}
$this->setForm();
$this->tpl->parse("TDListBlock", "TDList", true);
$this->tpl->set_var("Session", $this->sess->url("") . $this->sess->add_query(array("tdID" => $this->formArray["rtdID"])));
$this->tpl->parse("templatePage", "rptsTemplate");
$this->tpl->finish("templatePage");
$this->tpl->p("templatePage");
}