本文整理汇总了PHP中AFS::getArpNumber方法的典型用法代码示例。如果您正苦于以下问题:PHP AFS::getArpNumber方法的具体用法?PHP AFS::getArpNumber怎么用?PHP AFS::getArpNumber使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AFS
的用法示例。
在下文中一共展示了AFS::getArpNumber方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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;
}
示例2: displayLandPINDetails
function displayLandPINDetails()
{
// attempt to capture AFS with associated landPIN
$afs = new AFS();
if ($afs->selectRecord("", "", "", "WHERE " . AFS_TABLE . ".propertyIndexNumber = '" . fixQuotes($this->formArray["landPIN"]) . "'")) {
// attempt to capture first landOwner name
$od = new OD();
if ($od->selectRecord($afs->getOdID())) {
if (is_object($od->owner)) {
if (is_array($od->owner->personArray)) {
$personArray = $od->owner->personArray;
$landOwnerPerson = $personArray[0];
$this->formArray["landOwner"] = $landOwnerPerson->getFullName();
} else {
if (is_array($od->owner->companyArray)) {
$companyArray = $od->owner->companyArray;
$landOwnerCompany = $companyArray[0];
$this->formArray["landOwner"] = $landOwnerCompany->getCompanyName();
}
}
}
}
// capture landArpNumber
$this->formArray["landArpNumber"] = $afs->getArpNumber();
// capture first land details
if (is_array($afs->landArray)) {
$landArray = $afs->landArray;
$land = $landArray[0];
$this->formArray["landSurveyNumber"] = $land->getSurveyNumber();
$this->formArray["landArea"] = $land->getArea() . " " . $land->getUnit();
}
} else {
$this->formArray["landOwner"] = "";
$this->formArray["landSurveyNumber"] = "";
$this->formArray["landArpNumber"] = "";
$this->formArray["landArea"] = "";
}
}
示例3: displayRecords
function displayRecords()
{
$this->selectRecords();
$this->tpl->set_block("rptsTemplate", "OwnerPersonList", "OwnerPersonListBlock");
$this->tpl->set_block("OwnerPersonList", "ODList", "ODListBlock");
foreach ($this->arrayList as $person) {
$this->tpl->set_var("personID", $person->getPersonID());
$this->tpl->set_var("lastName", $person->getLastName());
$this->tpl->set_var("firstName", $person->getFirstName());
$this->tpl->set_var("middleName", $person->getMiddleName());
$this->tpl->set_var("gender", $person->getGender());
$this->tpl->set_var("birthday", $person->getBirthday());
$this->tpl->set_var("maritalStatus", $person->getMaritalStatus());
$this->tpl->set_var("tin", $person->getTin());
$this->tpl->set_var("telephone", $person->getTelephone());
$this->tpl->set_var("mobileNumber", $person->getMobileNumber());
$this->tpl->set_var("email", $person->getEmail());
if (is_array($person->addressArray)) {
$address = $person->addressArray[0];
$this->tpl->set_var("address", $address->getFullAddress());
}
// capture OD, AFS, and TD info
$this->setDB();
$sql = sprintf("SELECT DISTINCT(Owner.odID) as odID" . " FROM Owner,OwnerPerson " . " WHERE " . " Owner.ownerID = OwnerPerson.ownerID AND " . " OwnerPerson.personID = '%s' ", $person->getPersonID());
$this->db->query($sql);
while ($this->db->next_record()) {
$od = new OD();
if ($od->selectRecord($this->db->f("odID"))) {
$this->ODArray[] = $od;
$this->tpl->set_var("odID", $od->getOdID());
if (is_object($od->locationAddress)) {
$this->tpl->set_var("locationAddress", $od->locationAddress->getFullAddress());
} else {
$this->tpl->set_var("locationAddress", "");
}
$afs = new AFS();
if ($afs->selectRecord("", "", $od->getOdID(), "")) {
$this->tpl->set_var("afsID", $afs->getAfsID());
$this->tpl->set_var("propertyIndexNumber", $afs->getPropertyIndexNumber());
$this->tpl->set_var("arpNumber", $afs->getArpNumber());
if (is_array($afs->landArray)) {
$this->displayLandList($afs->landArray);
}
if (is_array($afs->plantsTreesArray)) {
$this->displayPlantsTreesList($afs->plantsTreesArray);
}
if (is_array($afs->improvementsBuildingsArray)) {
$this->displayImprovementsBuildingsList($afs->improvementsBuildingsArray);
}
if (is_array($afs->machineriesArray)) {
$this->displayMachineriesList($afs->machineriesArray);
}
$td = new TD();
if ($td->selectRecord("", $afs->getAfsID(), "", "", "")) {
$this->tpl->set_var("tdID", $td->getTdID());
$this->tpl->set_var("taxDeclarationNumber", $td->getTaxDeclarationNumber());
$this->tpl->set_var("propertyType", $td->getPropertyType());
}
}
unset($td);
unset($afs);
unset($od);
$this->tpl->parse("ODListBlock", "ODList", true);
}
}
$this->tpl->parse("OwnerPersonListBlock", "OwnerPersonList", true);
$this->tpl->set_var("ODListBlock", "");
$this->clearPropertyElements();
unset($this->ODArray);
unset($this->AFSArray);
unset($this->TDArray);
unset($this->db);
}
}
示例4: 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;
}
示例5: Main
function Main()
{
switch ($this->formArray["formAction"]) {
case "save":
$AFSDetails = new SoapObject(NCCBIZ . "AFSDetails.php", "urn:Object");
if (!($xmlStr = $AFSDetails->getAFS($this->formArray["afsID"]))) {
exit("error xml");
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
exit("error domDoc");
} else {
$AFSEncode = new SoapObject(NCCBIZ . "AFSEncode.php", "urn:Object");
$afs = new AFS();
$afs->parseDomDocument($domDoc);
$afs->setArpNumber($this->formArray["arpNumber"]);
$afs->setPropertyIndexNumber($this->formArray["propertyIndexNumber"]);
$afs->setTaxability($this->formArray["taxability"]);
$afs->setEffectivity($this->formArray["effectivity"]);
$afs->setDomDocument();
$doc = $afs->getDomDocument();
$xmlStr = $doc->dump_mem(true);
if (!($ret = $AFSEncode->updateAFS($xmlStr))) {
exit("error update");
}
}
}
header("location: RPUIdentificationClose.php" . $this->sess->url("") . $this->sess->add_query(array("afsID" => $this->formArray["afsID"])));
exit;
break;
default:
$AFSDetails = new SoapObject(NCCBIZ . "AFSDetails.php", "urn:Object");
$AFSDetails = new SoapObject(NCCBIZ . "AFSDetails.php", "urn:Object");
if (!($xmlStr = $AFSDetails->getAFS($this->formArray["afsID"]))) {
exit("error xml");
} else {
//echo $xmlStr;
if (!($domDoc = domxml_open_mem($xmlStr))) {
exit("error domDoc");
} else {
$afs = new AFS();
$afs->parseDomDocument($domDoc);
$this->formArray["afsID"] = $afs->getAfsID();
$this->formArray["arpNumber"] = $afs->getArpNumber();
$this->formArray["taxability"] = $afs->getTaxability();
$this->formArray["effectivity"] = $afs->getEffectivity();
$this->formArray["propertyIndexNumber"] = $afs->getPropertyIndexNumber();
}
}
break;
}
$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");
}