本文整理汇总了PHP中TD::getCancelsTDNumber方法的典型用法代码示例。如果您正苦于以下问题:PHP TD::getCancelsTDNumber方法的具体用法?PHP TD::getCancelsTDNumber怎么用?PHP TD::getCancelsTDNumber使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TD
的用法示例。
在下文中一共展示了TD::getCancelsTDNumber方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: displayTDDetails
function displayTDDetails()
{
$afsID = $this->formArray["afsID"];
$TDDetails = new SoapObject(NCCBIZ . "TDDetails.php", "urn:Object");
if (!($xmlStr = $TDDetails->getTD("", $afsID, "", ""))) {
// error xml
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
// error domDoc
} else {
$td = new TD();
$td->parseDomDocument($domDoc);
$this->formArray["taxDeclarationNumber"] = $td->getTaxDeclarationNumber();
$this->formArray["memoranda"] = $td->getMemoranda();
$this->formArray["cancelsTDNumber"] = $td->getCancelsTDNumber();
//cityMunicipalAssessor
if (is_numeric($td->getCityMunicipalAssessor())) {
$cityMunicipalAssessor = new Person();
$cityMunicipalAssessor->selectRecord($td->cityMunicipalAssessor);
$this->formArray["cityAssessor"] = $cityMunicipalAssessor->getFullName();
} else {
$this->formArray["cityAssessor"] = $td->getCityMunicipalAssessor;
}
$this->formArray["propertyType"] = $td->getPropertyType();
}
}
}
示例2: displayTD
function displayTD($afsID)
{
$this->tpl->set_block("rptsTemplate", "TDTable", "TDTableBlock");
$this->tpl->set_block("rptsTemplate", "TDDBEmpty", "TDDBEmptyBlock");
$TDDetails = new SoapObject(NCCBIZ . "TDDetails.php", "urn:Object");
if (!($xmlStr = $TDDetails->getTDFromAfsID($this->formArray["afsID"]))) {
$this->tpl->set_var("tdID", "");
$this->tpl->set_var("TDTableBlock", "");
$this->tpl->parse("TDDBEmptyBlock", "TDDBEmpty", true);
} else {
//echo $xmlStr;
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_var("tdID", "");
$this->tpl->set_var("TDTableBlock", "");
$this->tpl->parse("TDDBEmptyBlock", "TDDBEmpty", true);
} else {
$td = new TD();
$td->parseDomDocument($domDoc);
// update Cancels/CanceledBy TDNumber
if ($td->getCancelsTDNumber() == "") {
$td = $this->updateTDCancelsTDNumber($td);
}
if ($td->getCanceledByTDNumber() == "") {
$td = $this->updateTDCanceledByTDNumber($td);
}
$this->formArray["tdID"] = $td->tdID;
$this->formArray["taxDeclarationNumber"] = $td->taxDeclarationNumber;
//provincialAssessor
if (is_numeric($td->provincialAssessor)) {
$provincialAssessor = new Person();
$provincialAssessor->selectRecord($td->provincialAssessor);
$this->formArray["provincialAssessor"] = $provincialAssessor->getFullName();
} else {
$this->formArray["provincialAssessor"] = $td->provincialAssessor;
}
//provincialAssessorDate
if ($td->provincialAssessorDate) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $td->provincialAssessorDate);
$this->formArray["pa_yearValue"] = removePreZero($dateArr["year"]);
eval(MONTH_ARRAY);
//$monthArray
$this->formArray["pa_month"] = $monthArray[removePreZero($dateArr["month"])];
$this->formArray["pa_dayValue"] = removePreZero($dateArr["day"]);
} else {
$this->formArray["pa_yearValue"] = "";
$this->formArray["pa_month"] = "";
$this->formArray["pa_dayValue"] = "";
}
//cityMunicipalAssessor
if (is_numeric($td->cityMunicipalAssessor)) {
$cityMunicipalAssessor = new Person();
$cityMunicipalAssessor->selectRecord($td->cityMunicipalAssessor);
$this->formArray["cityMunicipalAssessor"] = $cityMunicipalAssessor->getFullName();
} else {
$this->formArray["cityMunicipalAssessor"] = $td->cityMunicipalAssessor;
}
//cityMunicipalAssessorDate
if ($td->cityMunicipalAssessorDate) {
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $td->cityMunicipalAssessorDate);
$this->formArray["cm_yearValue"] = removePreZero($dateArr["year"]);
eval(MONTH_ARRAY);
//$monthArray
$this->formArray["cm_month"] = $monthArray[removePreZero($dateArr["month"])];
$this->formArray["cm_dayValue"] = removePreZero($dateArr["day"]);
} else {
$this->formArray["cm_yearValue"] = "";
$this->formArray["cm_month"] = "";
$this->formArray["cm_dayValue"] = "";
}
$this->formArray["cancelsTDNumber"] = $td->cancelsTDNumber;
$this->formArray["canceledByTDNumber"] = $td->canceledByTDNumber;
$this->formArray["taxBeginsWithTheYear"] = $td->taxBeginsWithTheYear;
$this->formArray["ceasesWithTheYear"] = $td->ceasesWithTheYear;
//enteredInRPARForBy
if (is_numeric($td->enteredInRPARForBy)) {
$enteredInRPARForBy = new Person();
$enteredInRPARForBy->selectRecord($td->enteredInRPARForBy);
$this->formArray["enteredInRPARForBy"] = $enteredInRPARForBy->getFullName();
} else {
$this->formArray["enteredInRPARForBy"] = $td->enteredInRPARForBy;
}
$this->formArray["enteredInRPARForYear"] = $td->enteredInRPARForYear;
$this->formArray["previousOwner"] = $td->previousOwner;
$this->formArray["previousAssessedValue"] = $td->previousAssessedValue;
if ($td->previousAssessedValue != "") {
$this->tpl->set_var("previousAssessedValue", number_format(toFloat($td->previousAssessedValue), 2, ".", ","));
}
$this->tpl->set_var("memoranda", $td->memoranda);
$this->tpl->set_var("TDDBEmptyBlock", "");
$this->tpl->parse("TDTableBlock", "TDTable", true);
}
}
}
示例3: Main
function Main()
{
switch ($this->formArray["formAction"]) {
case "view":
$ODList = new SoapObject(NCCBIZ . "ODList.php", "urn:Object");
$condition = "";
if ($this->formArray["filterByLocation"] == "true") {
if ($condition == "") {
$condition = " WHERE ";
}
$condition .= $this->filterLocationAddress();
} else {
$this->tpl->set_block("rptsTemplate", "FilterLocationDetails", "FilterLocationDetailsBlock");
$this->tpl->set_var("FilterLocationDetailsBlock", "");
}
if ($this->formArray["filterByDate"] == "true") {
if ($condition == "") {
$condition = " WHERE ";
} else {
$condition .= " AND ";
}
$condition .= $this->filterDate();
} else {
$this->tpl->set_block("rptsTemplate", "FilterDateDetails", "FilterDateDetailsBlock");
$this->tpl->set_var("FilterDateDetailsBlock", "");
}
$condition .= $this->filterArchives();
$odRecords = new ODRecords();
// paging
if (!($count = $odRecords->countRecords($condition))) {
$this->tpl->set_block("rptsTemplate", "PageNavigationOne", "PageNavigationOneBlock");
$this->tpl->set_var("PageNavigationOneBlock", "");
} else {
$numOfPages = ceil($count / PAGE_BY);
$this->tpl->set_var("currentPage", $this->formArray["page"]);
$this->tpl->set_var("numOfPages", $numOfPages);
$this->tpl->set_block("rptsTemplate", "PageListOne", "PageListOneBlock");
for ($p = 1; $p <= $numOfPages; $p++) {
$this->tpl->set_var("page", $p);
$this->initSelected("page", $p);
$this->tpl->parse("PageListOneBlock", "PageListOne", true);
}
}
if ($this->formArray["page"] > 0) {
$initialLimit = ($this->formArray["page"] - 1) * PAGE_BY;
$condition .= " LIMIT " . $initialLimit . "," . PAGE_BY;
}
// listing
if (!$odRecords->selectRecords($condition)) {
$this->tpl->set_block("rptsTemplate", "NotFound", "NotFoundBlock");
$this->tpl->set_var("message", "properties not found");
$this->tpl->parse("NotFoundBlock", "NotFound", true);
$this->tpl->set_block("rptsTemplate", "Report", "ReportBlock");
$this->tpl->set_var("ReportBlock", "");
} else {
$list = $odRecords->getArrayList();
if (count($list)) {
$this->tpl->set_block("rptsTemplate", "NotFound", "NotFoundBlock");
$this->tpl->set_var("NotFoundBlock", "");
$this->tpl->set_block("rptsTemplate", "ReportList", "ReportListBlock");
foreach ($list as $key => $value) {
$this->formArray["odID"] = $value->getOdID();
$this->tpl->set_var("odID", $value->getOdID());
$afs = $this->getAFSDetails($value->getOdID());
if (is_object($afs)) {
$this->tpl->set_var("propertyIndexNumber", $afs->getPropertyIndexNumber());
$this->tpl->set_var("arpNumber", $afs->getArpNumber());
$this->formArray["odID"] = $value->getOdID();
$this->formArray["afsID"] = $afs->getAfsID();
//$od = $this->getODDetails($value->getOdID());
$this->tpl->set_var("transactionCode", $value->getTransactionCode());
$td = new TD();
if ($td->selectRecord("", $this->formArray["afsID"])) {
$this->tpl->set_var("taxDeclarationNumber", $td->getTaxDeclarationNumber());
} else {
$this->tpl->set_var("taxDeclarationNumber", "");
}
$this->tpl->set_var("area", $value->getLandArea());
$this->tpl->set_var("marketValue", number_format($afs->getTotalMarketValue()));
$this->tpl->set_var("assessedValue", number_format($afs->getTotalAssessedValue(), 2, '.', ','));
$this->tpl->set_var("cancelsTDNumber", $td->getCancelsTDNumber());
$this->tpl->set_var("previousAssessedValue", $td->getPreviousAssessedValue());
$this->tpl->set_var("previousOwner", $td->getPreviousOwner());
$this->tpl->set_var("canceledByTDNumber", $td->getCanceledByTDNumber());
$landList = $afs->getLandArray();
$plantsTreesList = $afs->getPlantsTreesArray();
$improvementsBuildingsList = $afs->getImprovementsBuildingsArray();
$machineriesList = $afs->getMachineriesArray();
$this->tpl->set_var("taxability", $afs->getTaxability());
$this->tpl->set_var("effectivity", $afs->getEffectivity());
$kind = "";
$class = "";
if (count($landList)) {
$kind = "Land";
$land = $landList[0];
$class = $land->getClassification();
$landClasses = new LandClasses();
$landClasses->selectRecord($class);
$class = $landClasses->getDescription();
} else {
//.........这里部分代码省略.........
示例4: displayTD
function displayTD($afsID)
{
$TDDetails = new SoapObject(NCCBIZ . "TDDetails.php", "urn:Object");
if (!($xmlStr = $TDDetails->getTDFromAfsID($this->formArray["afsID"]))) {
// xml failed
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
// error domDoc
} else {
$td = new TD();
$td->parseDomDocument($domDoc);
$this->formArray["memoranda"] = $td->getMemoranda();
$this->formArray["taxDeclarationNumber"] = $td->getTaxDeclarationNumber();
$this->formArray["cancelsTDNumber"] = $td->getCancelsTDNumber();
$this->formArray["previousOwner"] = $td->getPreviousOwner();
$this->formArray["previousAssessedValue"] = $td->getPreviousAssessedValue();
}
}
}
示例5: Main
function Main()
{
//echo $this->formArray["formAction"];
switch ($this->formArray["formAction"]) {
case "save":
$TDEncode = new SoapObject(NCCBIZ . "TDEncode.php", "urn:Object");
if ($this->formArray["tdID"] != "") {
$TDDetails = new SoapObject(NCCBIZ . "TDDetails.php", "urn:Object");
if (!($xmlStr = $TDDetails->getTD($this->formArray["tdID"]))) {
$this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
$this->tpl->set_var("TableBlock", "record not found");
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
$this->tpl->set_var("TableBlock", "error xmlDoc");
} else {
$td = new TD();
$td->parseDomDocument($domDoc);
$td->setTdID($this->formArray["tdID"]);
$td->setAfsID($this->formArray["afsID"]);
$td->setPropertyID($this->formArray["propertyID"]);
$td->setPropertyType($this->formArray["propertyType"]);
$td->setTaxDeclarationNumber($this->formArray["taxDeclarationNumber"]);
$td->setProvincialAssessor($this->formArray["provincialAssessorID"]);
$td->setProvincialAssessorDate($this->formArray["provincialAssessorDate"]);
$td->setCityMunicipalAssessor($this->formArray["cityMunicipalAssessorID"]);
$td->setCityMunicipalAssessorDate($this->formArray["cityMunicipalAssessorDate"]);
$td->setCancelsTDNumber($this->formArray["cancelsTDNumber"]);
$td->setCanceledByTDNumber($this->formArray["canceledByTDNumber"]);
$td->setTaxBeginsWithTheYear($this->formArray["taxBeginsWithTheYear"]);
$td->setCeasesWithTheYear($this->formArray["ceasesWithTheYear"]);
$td->setEnteredInRPARForYear($this->formArray["enteredInRPARForYear"]);
$td->setEnteredInRPARForBy($this->formArray["enteredInRPARForByID"]);
$td->setPreviousOwner($this->formArray["previousOwner"]);
$td->setPreviousAssessedValue($this->formArray["previousAssessedValue"]);
$td->setMemoranda($this->formArray["memoranda"]);
$td->setCreatedBy($this->userID);
$td->setModifiedBy($this->userID);
$td->setDomDocument();
$doc = $td->getDomDocument();
$xmlStr = $doc->dump_mem(true);
//exit($xmlStr);
if (!($ret = $TDEncode->updateTD($xmlStr))) {
exit("error update");
}
}
}
} else {
$td = new TD();
$td->parseDomDocument($domDoc);
//$td->setTdID($this->formArray["tdID"]);
$td->setAfsID($this->formArray["afsID"]);
$td->setPropertyID($this->formArray["propertyID"]);
$td->setPropertyType($this->formArray["propertyType"]);
$td->setTaxDeclarationNumber($this->formArray["taxDeclarationNumber"]);
$td->setProvincialAssessor($this->formArray["provincialAssessorID"]);
$td->setProvincialAssessorDate($this->formArray["provincialAssessorDate"]);
$td->setCityMunicipalAssessor($this->formArray["cityMunicipalAssessorID"]);
$td->setCityMunicipalAssessorDate($this->formArray["cityMunicipalAssessorDate"]);
$td->setCancelsTDNumber($this->formArray["cancelsTDNumber"]);
$td->setCanceledByTDNumber($this->formArray["canceledByTDNumber"]);
$td->setTaxBeginsWithTheYear($this->formArray["taxBeginsWithTheYear"]);
$td->setCeasesWithTheYear($this->formArray["ceasesWithTheYear"]);
$td->setEnteredInRPARForYear($this->formArray["enteredInRPARForYear"]);
$td->setEnteredInRPARForBy($this->formArray["enteredInRPARForByID"]);
$td->setPreviousOwner($this->formArray["previousOwner"]);
$td->setPreviousAssessedValue($this->formArray["previousAssessedValue"]);
$td->setMemoranda($this->formArray["memoranda"]);
$td->setCreatedBy($this->userID);
$td->setModifiedBy($this->userID);
$td->setDomDocument();
$doc = $td->getDomDocument();
$xmlStr = $doc->dump_mem(true);
//echo $xmlStr;
if (!($ret = $TDEncode->saveTD($xmlStr))) {
echo "Error saving";
}
}
$this->formArray["propertyID"] = $ret;
header("location: TDClose.php" . $this->sess->url("") . $this->sess->add_query(array("afsID" => $this->formArray["afsID"])));
exit($ret);
break;
case "cancel":
header("location: TDList.php");
exit;
break;
default:
if ($this->formArray["tdID"]) {
$TDDetails = new SoapObject(NCCBIZ . "TDDetails.php", "urn:Object");
if (!($xmlStr = $TDDetails->getTD($this->formArray["tdID"]))) {
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 {
$td = new TD();
$td->parseDomDocument($domDoc);
if ($td->getCancelsTDNumber() == "") {
//.........这里部分代码省略.........