本文整理汇总了PHP中AFS::setBldgTotalAssessedValue方法的典型用法代码示例。如果您正苦于以下问题:PHP AFS::setBldgTotalAssessedValue方法的具体用法?PHP AFS::setBldgTotalAssessedValue怎么用?PHP AFS::setBldgTotalAssessedValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AFS
的用法示例。
在下文中一共展示了AFS::setBldgTotalAssessedValue方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Main
//.........这里部分代码省略.........
$this->formArray["propertyType"] = "Machineries";
$this->displayMachineries($machineriesList);
$this->hideProperty('Land', 'land');
$this->hideProperty('PlantsTrees', 'plantsTrees');
$this->hideProperty('ImprovementsBuildings', 'improvementsBuildings');
} else {
$hideTD = true;
$this->displayLandPlantsTrees($landList, $plantsTreesList);
$this->displayImprovementsBuildingsMachineries($improvementsBuildingsList, $machineriesList);
$this->formArray["landTotalMarketValue"] = 0;
$this->formArray["landTotalAssessedValue"] = 0;
$this->formArray["plantTotalMarketValue"] = 0;
$this->formArray["plantTotalAssessedValue"] = 0;
$this->formArray["bldgTotalMarketValue"] = 0;
$this->formArray["bldgTotalAssessedValue"] = 0;
$this->formArray["machTotalMarketValue"] = 0;
$this->formArray["machTotalAssessedValue"] = 0;
}
}
}
}
if ($hideTD == false) {
// Display TD
$this->displayTD($afs->afsID);
} else {
// Hide TD
$this->tpl->set_block("rptsTemplate", "DeclarationOfProperty", "DeclarationOfPropertyBlock");
$this->tpl->set_var("DeclarationOfPropertyBlock", "");
}
$ODDetails = new SoapObject(NCCBIZ . "ODDetails.php", "urn:Object");
if (!($xmlStr = $ODDetails->getOD($this->formArray["odID"]))) {
exit("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 {
$od = new OD();
$od->parseDomDocument($domDoc);
foreach ($od as $key => $value) {
if ($key == "locationAddress" && is_object($value)) {
foreach ($value as $lkey => $lvalue) {
$this->formArray[$lkey] = $lvalue;
}
} else {
$this->formArray[$key] = $value;
}
}
$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);
}
}
}
}
}
}
$AFSEncode = new SoapObject(NCCBIZ . "AFSEncode.php", "urn:Object");
$afs = new AFS();
$afs->selectRecord($this->formArray["afsID"]);
$afs->setAfsID($this->formArray["afsID"]);
$afs->setLandTotalMarketValue($this->formArray["landTotalMarketValue"]);
$afs->setLandTotalAssessedValue($this->formArray["landTotalAssessedValue"]);
$afs->setPlantTotalMarketValue($this->formArray["plantTotalMarketValue"]);
$afs->setPlantTotalPlantAssessedValue($this->formArray["plantTotalAssessedValue"]);
$afs->setBldgTotalMarketValue($this->formArray["bldgTotalMarketValue"]);
$afs->setBldgTotalAssessedValue($this->formArray["bldgTotalAssessedValue"]);
$afs->setMachTotalMarketValue($this->formArray["machTotalMarketValue"]);
$afs->setMachTotalAssessedValue($this->formArray["machTotalAssessedValue"]);
$afs->setTotalMarketValue($this->formArray["totalMarketValue"]);
$afs->setTotalAssessedValue($this->formArray["totalAssessedValue"]);
$afs->setDomDocument();
$doc = $afs->getDomDocument();
$xmlStr = $doc->dump_mem(true);
//print_r($AFSEncode);
//echo $xmlStr;
if (!($ret = $AFSEncode->updateAFS($xmlStr))) {
echo "ret=" . $ret;
}
//echo $ret;
$this->setForm();
$this->setPageDetailPerms();
$this->tpl->set_var("uname", $this->user["uname"]);
$this->tpl->set_var("today", date("F j, Y"));
$this->tpl->set_var("Session", $this->sess->url("") . $this->sess->add_query(array("afsID" => $this->formArray["afsID"])));
$this->tpl->parse("templatePage", "rptsTemplate");
$this->tpl->finish("templatePage");
$this->tpl->p("templatePage");
}
示例2: Main
//.........这里部分代码省略.........
$this->tpl->set_var("defaultPlantsTreesListBlock", "");
$this->tpl->set_block("rptsTemplate", "togglePlantsTreesList", "togglePlantsTreesListBlock");
$this->tpl->set_var("togglePlantsTreesListBlock", "");
$this->tpl->set_block("rptsTemplate", "PlantsTreesList", "PlantsTreesListBlock");
$this->tpl->set_var("PlantsTreesListBlock", "");
}
//improvementsBuildings
$improvementsBuildingsList = $afs->getImprovementsBuildingsArray();
if (count($improvementsBuildingsList)) {
$this->displayImprovementsBuildingsList($improvementsBuildingsList);
} else {
$this->tpl->set_var("improvementsBuildingsCtr", 0);
$this->tpl->set_block("rptsTemplate", "defaultImprovementsBuildingsList", "defaultImprovementsBuildingsListBlock");
$this->tpl->set_var("defaultImprovementsBuildingsListBlock", "");
$this->tpl->set_block("rptsTemplate", "toggleImprovementsBuildingsList", "toggleImprovementsBuildingsListBlock");
$this->tpl->set_var("toggleImprovementsBuildingsListBlock", "");
$this->tpl->set_block("rptsTemplate", "ImprovementsBuildingsList", "ImprovementsBuildingsListBlock");
$this->tpl->set_var("ImprovementsBuildingsListBlock", "");
}
//machineries
$machineriesList = $afs->getMachineriesArray();
//print_r($machineriesList);
if (count($machineriesList)) {
$this->displayMachineriesList($machineriesList);
} else {
$this->tpl->set_var("machineriesCtr", 0);
$this->tpl->set_block("rptsTemplate", "defaultMachineriesList", "defaultMachineriesListBlock");
$this->tpl->set_var("defaultMachineriesListBlock", "");
$this->tpl->set_block("rptsTemplate", "toggleMachineriesList", "toggleMachineriesListBlock");
$this->tpl->set_var("toggleMachineriesListBlock", "");
$this->tpl->set_block("rptsTemplate", "MachineriesList", "MachineriesListBlock");
$this->tpl->set_var("MachineriesListBlock", "");
}
$ODDetails = new SoapObject(NCCBIZ . "ODDetails.php", "urn:Object");
if (!($xmlStr = $ODDetails->getOD($this->formArray["odID"]))) {
exit("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 {
$od = new OD();
$od->parseDomDocument($domDoc);
foreach ($od as $key => $value) {
if ($key == "locationAddress" && is_object($value)) {
foreach ($value as $lkey => $lvalue) {
$this->formArray[$lkey] = $lvalue;
}
} else {
$this->formArray[$key] = $value;
}
}
$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);
}
}
}
}
}
}
$AFSEncode = new SoapObject(NCCBIZ . "AFSEncode.php", "urn:Object");
$afs = new AFS();
$afs->setAfsID($this->formArray["afsID"]);
$afs->setLandTotalMarketValue($this->formArray["landTotalMarketValue"]);
$afs->setLandTotalAssessedValue($this->formArray["landTotalAssessedValue"]);
$afs->setPlantTotalMarketValue($this->formArray["plantTotalMarketValue"]);
$afs->setPlantTotalPlantAssessedValue($this->formArray["plantTotalAssessedValue"]);
$afs->setBldgTotalMarketValue($this->formArray["bldgTotalMarketValue"]);
$afs->setBldgTotalAssessedValue($this->formArray["bldgTotalAssessedValue"]);
$afs->setMachTotalMarketValue($this->formArray["machTotalMarketValue"]);
$afs->setMachTotalAssessedValue($this->formArray["machTotalAssessedValue"]);
$afs->setTotalMarketValue($this->formArray["totalMarketValue"]);
$afs->setTotalAssessedValue($this->formArray["totalAssessedValue"]);
$afs->setDomDocument();
$doc = $afs->getDomDocument();
$xmlStr = $doc->dump_mem(true);
//print_r($AFSEncode);
//echo $xmlStr;
if (!($ret = $AFSEncode->updateAFS($xmlStr))) {
echo "ret=" . $ret;
}
//echo $ret;
$this->setForm();
$this->tpl->set_var("Session", $this->sess->url("") . $this->sess->add_query(array("afsID" => $this->formArray["afsID"])));
$this->tpl->parse("templatePage", "rptsTemplate");
$this->tpl->finish("templatePage");
$this->tpl->p("templatePage");
}