本文整理汇总了PHP中TD::setPreviousOwner方法的典型用法代码示例。如果您正苦于以下问题:PHP TD::setPreviousOwner方法的具体用法?PHP TD::setPreviousOwner怎么用?PHP TD::setPreviousOwner使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TD
的用法示例。
在下文中一共展示了TD::setPreviousOwner方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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->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->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);
foreach ($td as $key => $value) {
switch ($key) {
case "provincialAssessorDate":
//.........这里部分代码省略.........
示例2: 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() == "") {
//.........这里部分代码省略.........