function displayAssessor() { $eRPTSSettingsDetails = new SoapObject(NCCBIZ . "eRPTSSettingsDetails.php", "urn:Object"); if (!($xmlStr = $eRPTSSettingsDetails->getERPTSSettingsDetails(1))) { // error xml } else { if (!($domDoc = domxml_open_mem($xmlStr))) { // error domDoc } else { $eRPTSSettings = new eRPTSSettings(); $eRPTSSettings->parseDomDocument($domDoc); // provincialAssessor if ($eRPTSSettings->getProvincialAssessorLastName() != "") { $this->formArray["provincialAssessorName"] = $eRPTSSettings->getProvincialAssessorFullName(); } else { $this->formArray["provincialAssessorName"] = ""; } if ($eRPTSSettings->getAssessorLastName() != "") { $this->formArray["cityMunicipalAssessorName"] = $eRPTSSettings->getAssessorFullName(); } else { $this->formArray["cityMunicipalAssessorName"] = ""; } } } }
function displayLGUInfo() { $eRPTSSettingsDetails = new SoapObject(NCCBIZ . "eRPTSSettingsDetails.php", "urn:Object"); if (!($xmlStr = $eRPTSSettingsDetails->getERPTSSettingsDetails(1))) { // error xml } else { if (!($domDoc = domxml_open_mem($xmlStr))) { // error domDoc } else { $eRPTSSettings = new eRPTSSettings(); $eRPTSSettings->parseDomDocument($domDoc); //RC 20091006 Add logic so if City, TD Assessor is City Assessor, else Provincial Assessor if ($eRPTSSettings->getLguType() == "City") { if ($eRPTSSettings->getAssessorLastName() != "") { $this->formArray["TDAssessorName"] = $eRPTSSettings->getAssessorFullName(); $this->formArray["TDApprovedDate"] = $this->formArray["cityMunicipalAssessorDate"]; $ordinanceCouncil = "Panglungsod"; } else { $this->formArray["TDAssessorName"] = ""; } } else { // provincialAssessor if ($eRPTSSettings->getProvincialAssessorLastName() != "") { $this->formArray["TDAssessorName"] = $eRPTSSettings->getProvincialAssessorFullName(); $this->formArray["TDApprovedDate"] = $this->formArray["provincialAssessorDate"]; $ordinanceCouncil = "Panlalawigan"; } else { $this->formArray["TDAssessorName"] = ""; } } $this->formArray["TDAssessorName"] = strtoupper($this->formArray["TDAssessorName"]); $this->formArray["notesLine3"] = $ordinanceCouncil . " under Ordinance No. " . $eRPTSSettings->getOrdinanceNo() . " dated " . $eRPTSSettings->getOrdinanceDate() . ". It does not and cannot by itself alone"; } } }
function initMasterSignatoryList($TempVar, $tempVar) { $this->tpl->set_block("rptsTemplate", $TempVar . "List", $TempVar . "ListBlock"); $eRPTSSettingsDetails = new SoapObject(NCCBIZ . "eRPTSSettingsDetails.php", "urn:Object"); if (!($xmlStr = $eRPTSSettingsDetails->getERPTSSettingsDetails(1))) { // error xml } else { if (!($domDoc = domxml_open_mem($xmlStr))) { // error domDoc } else { $eRPTSSettings = new eRPTSSettings(); $eRPTSSettings->parseDomDocument($domDoc); switch ($tempVar) { case "recommendingApproval": case "approvedBy": $this->formArray["recommendingApprovalID"] = $this->formArray["recommendingApproval"]; $this->formArray["approvedByID"] = $this->formArray["approvedBy"]; $this->tpl->set_var("id", $eRPTSSettings->getAssessorFullName()); $this->tpl->set_var("name", $eRPTSSettings->getAssessorFullName()); $this->formArray[$tempVar . "ID"] = $this->formArray[$tempVar]; $this->initSelected($tempVar . "ID", $eRPTSSettings->getAssessorFullName()); $this->tpl->parse($TempVar . "ListBlock", $TempVar . "List", true); // provincialAssessor if ($eRPTSSettings->getProvincialAssessorLastName() != "") { $this->formArray["recommendingApprovalID"] = $this->formArray["recommendingApproval"]; $this->formArray["approvedByID"] = $this->formArray["approvedBy"]; $this->tpl->set_var("id", $eRPTSSettings->getProvincialAssessorFullName()); $this->tpl->set_var("name", $eRPTSSettings->getProvincialAssessorFullName()); $this->formArray[$tempVar . "ID"] = $this->formArray[$tempVar]; $this->initSelected($tempVar . "ID", $eRPTSSettings->getProvincialAssessorFullName()); $this->tpl->parse($TempVar . "ListBlock", $TempVar . "List", true); } break; } } } $UserList = new SoapObject(NCCBIZ . "UserList.php", "urn:Object"); if (!($xmlStr = $UserList->getUserList(0, " WHERE (userType='Signatory' OR userType='Assessor') AND status='enabled'"))) { //$this->tpl->set_var("id", ""); //$this->tpl->set_var("name", "empty list"); //$this->tpl->parse($TempVar."ListBlock", $TempVar."List", true); } else { if (!($domDoc = domxml_open_mem($xmlStr))) { //$this->tpl->set_var("", ""); //$this->tpl->set_var("name", "empty list"); //$this->tpl->parse($TempVar."ListBlock", $TempVar."List", true); } else { $UserRecords = new UserRecords(); $UserRecords->parseDomDocument($domDoc); $list = $UserRecords->getArrayList(); foreach ($list as $key => $user) { $person = new Person(); $person->selectRecord($user->personID); $this->tpl->set_var("id", $user->personID); $this->tpl->set_var("name", $person->getFullName()); $this->formArray[$tempVar . "ID"] = $this->formArray[$tempVar]; $this->initSelected($tempVar . "ID", $user->personID); $this->tpl->parse($TempVar . "ListBlock", $TempVar . "List", true); } } } }