• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP TD类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中TD的典型用法代码示例。如果您正苦于以下问题:PHP TD类的具体用法?PHP TD怎么用?PHP TD使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了TD类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: getPropertyTypeFromOD

 function getPropertyTypeFromOD($od)
 {
     $AFSEncode = new SoapObject(NCCBIZ . "AFSEncode.php", "urn:Object");
     $TDDetails = new SoapObject(NCCBIZ . "TDDetails.php", "urn:Object");
     if ($afsID = $AFSEncode->getAfsID($od->getOdID())) {
         if ($xmlStr = $TDDetails->getTDFromAfsID($afsID)) {
             $td = new TD();
             if ($domDoc = domxml_open_mem($xmlStr)) {
                 $td->parseDomDocument($domDoc);
                 $propertyType = $td->getPropertyType();
             }
         }
     }
     switch ($propertyType) {
         case "Land":
             $propertyType = "L/P";
             break;
         case "ImprovementsBuildings":
             $propertyType = "I/B";
             break;
         case "Machineries":
             $propertyType = "M";
             break;
         default:
             $propertyType = "-";
             break;
     }
     return $propertyType;
 }
开发者ID:armic,项目名称:erpts,代码行数:29,代码来源:ODList.php


示例2: generateTDHistory

 function generateTDHistory($tdID)
 {
     $td = new TD();
     $td->selectRecord($tdID);
     $afsID = $td->getAfsID();
     //		echo("afsID=$afsID<br>");
     $afs = new AFS();
     $afs->selectRecord($afsID);
     $odID = $afs->getOdID();
     //	echo("odID=$odID<br>");
     $condition = sprintf(" WHERE presentODID='%s' ", fixQuotes($odID));
     $odHistoryRecords = new ODHistoryRecords();
     $odHistoryRecords->selectRecords($condition);
     if (count($odHistoryRecords->arrayList) > 0) {
         //	echo("count>0<br>");
         foreach ($odHistoryRecords->arrayList as $key => $odHistory) {
             $previousODID = $odHistory->getPreviousODID();
             $presentODID = $odHistory->getPresentODID();
             $previousAFS = new AFS();
             $previousAFS->selectRecord($afsID = "", $limit = "", $previousODID);
             $previousAFSID = $previousAFS->getAfsID();
             $previousTD = new TD();
             $previousTD->selectRecord($tdID = "", $previousAFSID);
             $previousTDID = $previousTD->getTdID();
             $this->tdHistory[] = $previousTD;
             $this->generateTDHistory($previousTDID);
         }
     } else {
         //echo("count==0<br>");
         return false;
     }
 }
开发者ID:armic,项目名称:erpts,代码行数:32,代码来源:tdHistory.php


示例3: Main

 function Main()
 {
     $fp = fopen("batchCalculate.log", "w") or die("Couldn't create new file");
     $rptopID = isset($_POST['rptopID']) ? $_POST['rptopID'] : $_GET['rptopID'];
     if (is_array($rptopID)) {
         foreach ($rptopID as $key => $id) {
             $RPTOPDetails = new SoapObject(NCCBIZ . "RPTOPDetails.php", "urn:Object");
             if (!($xmlStr = $RPTOPDetails->getRPTOP($id))) {
                 exit("xml failed");
             } else {
                 fwrite($fp, "\r\nrptopid: " . $id . "\r\n");
                 if (!($domDoc = domxml_open_mem($xmlStr))) {
                     echo "error xmlDoc";
                 } else {
                     $rptop = new RPTOP();
                     $td = new TD();
                     $rptop->parseDomDocument($domDoc);
                     foreach ($rptop as $key => $rvalue) {
                         if ($key == "tdArray") {
                             $tdCtr = 0;
                             if (count($rvalue)) {
                                 foreach ($rvalue as $tkey => $tvalue) {
                                     $td->selectRecord($tvalue->getTdID());
                                     $assessedValue = number_format($td->getAssessedValue(), 2, ".", "");
                                     $taxDue = new Dues($tvalue->getTdID(), $rptop->getTaxableYear());
                                     $taxDue->setBasic($assessedValue);
                                     $taxDue->setSEF($assessedValue);
                                     $taxDue->setIdleStatus($idleStatus);
                                     if ($taxDue->getIdleStatus()) {
                                         $taxDue->setIdle($assessedValue);
                                     } else {
                                         $taxDue->setIdle(0);
                                     }
                                     $taxDue->store();
                                     echo $id;
                                     echo "=>";
                                     echo $tvalue->getTdID();
                                     echo "<br>";
                                     fwrite($fp, "TD: " . $tvalue->getTdID() . "...PROCESSED COMPLETE\r\n");
                                     $tdCtr++;
                                 }
                             }
                         }
                     }
                 }
             }
         }
         header("Location: batchCalculateDone.php" . $this->sess->url(""));
         exit;
     }
 }
开发者ID:armic,项目名称:erpts,代码行数:51,代码来源:batchCalculate2.php


示例4: getOdIDFromTdID

 function getOdIDFromTdID($tdID)
 {
     $ret = false;
     $td = new TD();
     if ($td->selectRecord($tdID)) {
         $afsID = $td->getAfsID();
         if ($afs = new AFS()) {
             $afs->selectRecord($afsID);
             $odID = $afs->getOdID();
             $ret = $odID;
         }
     }
     return $ret;
 }
开发者ID:armic,项目名称:erpts,代码行数:14,代码来源:ODDetails.php


示例5: getTDNumber

 function getTDNumber($tdID, $backtaxTDID)
 {
     if ($tdID != "") {
         $td = new TD();
         $td->selectRecord($tdID);
         $tdNumber = $td->getTaxDeclarationNumber();
     } else {
         if ($backtaxTDID != "") {
             $backtaxTD = new BacktaxTD();
             $backtaxTD->selectRecord("", $backtaxTDID);
             $tdNumber = $backtaxTD->getTDNumber();
         }
     }
     return $tdNumber;
 }
开发者ID:armic,项目名称:erpts,代码行数:15,代码来源:PaymentDetails.php


示例6: getPropertyTypeFromOD

 function getPropertyTypeFromOD($od)
 {
     $AFSEncode = new SoapObject(NCCBIZ . "AFSEncode.php", "urn:Object");
     $TDDetails = new SoapObject(NCCBIZ . "TDDetails.php", "urn:Object");
     if ($afsID = $AFSEncode->getAfsID($od->getOdID())) {
         if ($xmlStr = $TDDetails->getTDFromAfsID($afsID)) {
             $td = new TD();
             if ($domDoc = domxml_open_mem($xmlStr)) {
                 $td->parseDomDocument($domDoc);
                 return $td->getPropertyType();
             }
         }
     }
     return false;
 }
开发者ID:armic,项目名称:erpts,代码行数:15,代码来源:ODList.php


示例7: email_fw_webmail_box

function email_fw_webmail_box($USER_ID)
{
    $EMAIL_FW_WEBMAIL_BOX = "";
    $FROM_MAIL_ID = "";
    $FROM_WEBMAIL_BOX_DEFAULT = "";
    $EMAIL_FW_WEBMAIL_BOX_ARRAY = array();
    $query = "select * from webmail where USER_ID='" . $USER_ID . "' and EMAIL_PASS!='' order by IS_DEFAULT desc";
    $cursor = exequery(TD::conn(), $query);
    while ($ROW = mysql_fetch_array($cursor)) {
        $MAIL_ID = $ROW['MAIL_ID'];
        $EMAIL = $ROW['EMAIL'];
        $IS_DEFAULT = $ROW['IS_DEFAULT'];
        $RECV_FW = $ROW['RECV_FW'];
        if ($FROM_WEBMAIL_BOX_DEFAULT == "") {
            $FROM_WEBMAIL_BOX_DEFAULT = $EMAIL;
            $FROM_MAIL_ID = $MAIL_ID;
        }
        if ($RECV_FW == 1) {
            $EMAIL_FW_WEBMAIL_BOX .= $EMAIL . ",";
        }
    }
    $EMAIL_FW_WEBMAIL_BOX_ARRAY[] = $FROM_WEBMAIL_BOX_DEFAULT;
    $EMAIL_FW_WEBMAIL_BOX_ARRAY[] = $EMAIL_FW_WEBMAIL_BOX;
    $EMAIL_FW_WEBMAIL_BOX_ARRAY[] = $FROM_MAIL_ID;
    return $EMAIL_FW_WEBMAIL_BOX_ARRAY;
}
开发者ID:sany217,项目名称:WeiXin,代码行数:26,代码来源:submit.php


示例8: 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["previousOwner"] = $td->getPreviousOwner();
             $this->formArray["previousAssessedValue"] = $td->getPreviousAssessedValue();
         }
     }
 }
开发者ID:armic,项目名称:erpts,代码行数:16,代码来源:PrintImprovementsBuildingsFAAS.php


示例9: add_task

function add_task($file, $code)
{
    $qry = "SELECT * FROM office_task WHERE TASK_CODE='{$code}'";
    $csr = exequery(TD::conn(), $qry);
    if ($row = mysql_fetch_array($csr)) {
    } else {
        $qry = "INSERT INTO `office_task` (`TASK_TYPE`, `INTERVAL`, `EXEC_TIME`, `LAST_EXEC`,\n\t\t\t\t`EXEC_FLAG`, `EXEC_MSG`, `TASK_URL`, `TASK_NAME`, `TASK_DESC`, `TASK_CODE`, `USE_FLAG`,\n\t\t\t\t`SYS_TASK`, `EXT_DATA`) VALUES(\n\t\t\t\t'0',\n\t\t\t\t1,\n\t\t\t\t'00:00:00',\n\t\t\t\t'0000-00-00 00:00:00',\n\t\t\t\t1,\n\t\t\t\t'0000-00-00 00:00:00',\n\t\t\t\t'{$file}',\n\t\t\t\t'即时通讯离线消息推送',\n\t\t\t\t'定时将OA精灵离线消息推送到微信企业号',\n\t\t\t\t'{$code}',\n\t\t\t\t'1',\n\t\t\t\t'0',\n\t\t\t\t'')";
        exequery(TD::conn(), $qry);
        //Add system parameter
        include_once "inc/utility_all.php";
        add_sys_para(array("WEIXINQY_MSGCHECK_TIME" => ""));
    }
}
开发者ID:sany217,项目名称:WeiXin,代码行数:13,代码来源:install.php


示例10: getAfsID

 function getAfsID($tdID)
 {
     $td = new TD();
     $td->selectRecord($tdID);
     $propertyID = $td->propertyID;
     $propertyType = $td->propertyType;
     switch ($propertyType) {
         case "Land":
             $property = new Land();
             break;
         case "PlantsTrees":
             $property = new PlantsTrees();
             break;
         case "ImprovementsBuildings":
             $property = new ImprovementsBuildings();
             break;
         case "Machineries":
             $property = new Machineries();
             break;
     }
     $property->selectRecord($propertyID);
     $afsID = $property->afsID;
     return $afsID;
 }
开发者ID:armic,项目名称:erpts,代码行数:24,代码来源:TDEncode.php


示例11: createUser

 public function createUser($user_id)
 {
     $user_ids = "";
     $user_arr = explode(",", $user_id);
     foreach ($user_arr as $key => $value) {
         $user_ids .= "'" . $value . "',";
     }
     $user_ids = rtrim($user_ids, ",");
     $sync = array();
     $query = "SELECT USER_ID,USER_NAME,DEPT_ID,DEPT_ID_OTHER,USER_PRIV_NAME,USER_PRIV,MOBIL_NO,SEX,TEL_NO_DEPT,EMAIL FROM USER where USER_ID IN (" . $user_ids . ")";
     $cursor = exequery(TD::conn(), $query);
     while ($ROW = mysql_fetch_array($cursor)) {
         $USER_ID = $ROW['USER_ID'];
         $USER_NAME = $ROW['USER_NAME'];
         $DEPT_ID = $ROW['DEPT_ID'];
         $DEPT_ID_OTHER = $ROW['DEPT_ID_OTHER'];
         $USER_PRIV_NAME = $ROW['USER_PRIV_NAME'];
         $USER_PRIV = $ROW['USER_PRIV'];
         $MOBIL_NO = $ROW['MOBIL_NO'];
         $SEX = $ROW['SEX'];
         $TEL_NO_DEPT = $ROW['TEL_NO_DEPT'];
         $EMAIL = $ROW['EMAIL'];
         if ($EMAIL == "" && !preg_match("/^([+-]?)\\d*\\.?\\d+\$/", $MOBIL_NO)) {
             $sync['failed'][] = sprintf("%s(%s)", $USER_NAME, $this->deptinfo[$DEPT_ID]['dept_name']);
         } else {
             $_dept = array();
             $_dept[] = $this->deptinfo[$DEPT_ID]['weixin_dept_id'];
             if ($DEPT_ID_OTHER != "") {
                 $_dept_arr = array_filter(explode(",", $DEPT_ID_OTHER));
                 foreach ($_dept_arr as $key => $value) {
                     $_dept[] = $this->deptinfo[$value]['weixin_dept_id'];
                 }
             }
             $rs = $this->postData($this->url['create'], array("userid" => $USER_ID, "name" => $USER_NAME, "department" => $_dept, "position" => $USER_PRIV_NAME, "mobile" => preg_match("/^([+-]?)\\d*\\.?\\d+\$/", $MOBIL_NO) ? $MOBIL_NO : "", "gender" => $SEX, "tel" => $TEL_NO_DEPT, "email" => $EMAIL));
             if ($rs['errcode'] == 0) {
                 $sync['success'][] = sprintf("%s(%s)", $USER_NAME, $this->deptinfo[$DEPT_ID]['dept_name']);
             } else {
                 if ($rs['errcode'] == 60102) {
                     $sync['exists'][] = sprintf("%s(%s)", $USER_NAME, $this->deptinfo[$DEPT_ID]['dept_name']);
                 }
             }
         }
     }
     parent::logs("user_import", serialize($sync));
     return array("success" => count($sync['success']), "failed" => count($sync['failed']), "exists" => count($sync['exists']));
 }
开发者ID:sany217,项目名称:WeiXin,代码行数:46,代码来源:weixinqy.user.funcs.php


示例12: getTDArrayFromCompany

 function getTDArrayFromCompany($companyID)
 {
     $this->setDB();
     $sql = sprintf("SELECT DISTINCT(Owner.odID) as odID" . " FROM Owner,OwnerCompany " . " WHERE " . " Owner.ownerID = OwnerCompany.ownerID AND " . " OwnerCompany.companyID = '%s' ", $companyID);
     $this->db->query($sql);
     while ($this->db->next_record()) {
         $od = new OD();
         if ($od->selectRecord($this->db->f("odID"))) {
             $this->ODArray[] = $od;
             $afs = new AFS();
             if ($afs->selectRecord("", "", $od->getOdID(), "")) {
                 $td = new TD();
                 if ($td->selectRecord("", $afs->getAfsID(), "", "", "")) {
                     $tdArray[] = $td;
                 }
             }
         }
     }
     if (!is_array($tdArray)) {
         $tdArray = false;
     }
     return $tdArray;
 }
开发者ID:armic,项目名称:erpts,代码行数:23,代码来源:CertificateOfLandHoldingPrint.php


示例13: 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
             $td = $this->updateTDCancelsTDNumber($td);
             $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;
             $this->tpl->set_var("previousOwner", $td->previousOwner);
             if ($td->previousAssessedValue != "") {
                 $this->tpl->set_var("previousAssessedValue", number_format(toFloat($td->previousAssessedValue), 2, ".", ","));
             }
             $this->tpl->set_var("TDDBEmptyBlock", "");
             $this->tpl->parse("TDTableBlock", "TDTable", true);
         }
     }
 }
开发者ID:armic,项目名称:erpts,代码行数:89,代码来源:RPTOPAFSDetails.php


示例14: getTD

 function getTD($tdID)
 {
     $TDDetails = new SoapObject(NCCBIZ . "TDDetails.php", "urn:Object");
     if (!($xmlStr = $TDDetails->getTD($tdID))) {
         // error xmlStr
     } else {
         if (!($domDoc = domxml_open_mem($xmlStr))) {
             // error domDoc
         } else {
             $td = new TD();
             $td->parseDomDocument($domDoc);
             return $td;
         }
     }
 }
开发者ID:armic,项目名称:erpts,代码行数:15,代码来源:PrintReceiptDetailsPDF.php


示例15: Main

 function Main()
 {
     $RPTOPDetails = new SoapObject(NCCBIZ . "RPTOPDetails.php", "urn:Object");
     if (!($xmlStr = $RPTOPDetails->getRPTOP($this->formArray["rptopID"]))) {
         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 {
             $rptop = new RPTOP();
             $td = new TD();
             $rptop->parseDomDocument($domDoc);
             foreach ($rptop as $key => $value) {
                 switch ($key) {
                     case "owner":
                         //$RPTOPEncode = new SoapObject(NCCBIZ."RPTOPEncode.php", "urn:Object");
                         if (is_a($value, "Owner")) {
                             $this->formArray["ownerID"] = $rptop->owner->getOwnerID();
                             $xmlStr = $rptop->owner->domDocument->dump_mem(true);
                             if (!$xmlStr) {
                                 $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);
                                 }
                             }
                         } else {
                             $this->tpl->set_block("rptsTemplate", "PersonList", "PersonListBlock");
                             $this->tpl->set_var("PersonListBlock", "");
                             $this->tpl->set_block("rptsTemplate", "CompanyList", "CompanyListBlock");
                             $this->tpl->set_var("CompanyListBlock", "");
                         }
                         break;
                     case "cityAssessor":
                         if (is_a($value, Assessor)) {
                             $this->tpl->set_var("cityAssessorID", $value->getAssessorID());
                             $this->tpl->set_var("cityAssessorName", $value->getFullName());
                             $this->formArray["cityAssessorName"] = $value->getFullName();
                         } else {
                             $this->tpl->set_var($key, "");
                         }
                         break;
                     case "cityTreasurer":
                         if (is_a($value, Assessor)) {
                             $this->tpl->set_var("cityTreasurerID", $value->getAssessorID());
                             $this->tpl->set_var("cityTreasurerName", $value->getFullName());
                             $this->formArray["cityTreasurerName"] = $value->getFullName();
                         } else {
                             $this->tpl->set_var($key, "");
                         }
                         break;
                     case "tdArray":
                         //$this->tpl->set_block("rptsTemplate", "defaultTDList", "defaultTDListBlock");
                         //$this->tpl->set_block("rptsTemplate", "toggleTDList", "toggleTDListBlock");
                         $this->tpl->set_block("rptsTemplate", "TDList", "TDListBlock");
                         $tdCtr = 0;
                         //echo("count=".count($value)."<br>");
                         if (count($value)) {
                             $this->tpl->set_block("rptsTemplate", "TDDBEmpty", "TDDBEmptyBlock");
                             $this->tpl->set_var("TDDBEmptyBlock", "");
                             $this->tpl->set_block("TDList", "Land", "LandBlock");
                             $this->tpl->set_block("TDList", "PlantsTrees", "PlantsTreesBlock");
                             $this->tpl->set_block("TDList", "ImprovementsBuildings", "ImprovementsBuildingsBlock");
                             $this->tpl->set_block("TDList", "Machineries", "MachineriesBlock");
                             foreach ($value as $tkey => $tvalue) {
                                 $td->selectRecord($tvalue->getTdID());
                                 $assessedValue = number_format($td->getAssessedValue(), 2, ".", "");
                                 $propertyType = $td->getPropertyType();
                                 $afsID = $td->getAfsID();
                                 $afs = new AFS();
                                 $afs->selectRecord($afsID);
                                 $PropertyIndexNumber = $afs->getPropertyIndexNumber();
                                 $idleStatus = $td->getIdleStatus();
                                 $formAssessedValue = number_format($td->getAssessedValue(), 2);
                                 if ($propertyType == "Land") {
                                     $formValues['assessedValueLand'] = $formAssessedValue;
                                     $formValues['assessedValueOthers'] = "";
                                 } else {
                                     $formValues['assessedValueLand'] = "";
                                     $formValues['assessedValueOthers'] = $formAssessedValue;
                                 }
                                 $formValues['assessedValue'] = $formAssessedValue;
                                 $formValues['propertyType'] = $propertyType;
                                 $taxDue = new Dues($tvalue->getTdID(), $this->formArray['taxableYear']);
                                 $taxDue->setBasic($assessedValue);
                                 $taxDue->setSEF($assessedValue);
                                 $taxDue->setIdleStatus($idleStatus);
                                 if ($taxDue->getIdleStatus()) {
                                     $taxDue->setIdle($assessedValue);
                                 } else {
                                     $taxDue->setIdle(0);
                                 }
                                 $taxDue->store();
                                 $dueValues['basic'] = number_format($taxDue->getBasic(), 2);
//.........这里部分代码省略.........
开发者ID:armic,项目名称:erpts,代码行数:101,代码来源:_CalculateRPTOP2.php


示例16: displayTDDetails

 function displayTDDetails($propertyType)
 {
     $afsID = $this->formArray["afsID"];
     $propertyID = $this->formArray["propertyID"];
     $TDDetails = new SoapObject(NCCBIZ . "TDDetails.php", "urn:Object");
     if (!($xmlStr = $TDDetails->getTD("", $afsID, $propertyID, $propertyType))) {
         $this->formArray["tdNumber"] = "";
         $this->formArray["tdID"] = "";
         $this->formArray["propertyType"] = $propertyType;
     } else {
         if (!($domDoc = domxml_open_mem($xmlStr))) {
             $this->formArray["tdNumber"] = "";
             $this->formArray["tdID"] = "";
             $this->formArray["propertyType"] = $propertyType;
         } else {
             $td = new TD();
             $td->parseDomDocument($domDoc);
             $this->formArray["tdNumber"] = $td->getTaxDeclarationNumber();
             foreach ($td as $tdkey => $tdvalue) {
                 switch ($tdkey) {
                     case "provincialAssessor":
                         if (is_a($tdvalue, Assessor)) {
                             $this->formArray["provincialAssessorID"] = $tdvalue->getAssessorID();
                             $this->formArray["provincialAssessorName"] = $tdvalue->getFullName();
                         } else {
                             $this->formArray[$tdkey] = "";
                         }
                         break;
                     case "provincialAssessorDate":
                         if (true) {
                             list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $tdvalue);
                             $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[$tdkey] = "";
                         }
                         break;
                     case "cityMunicipalAssessor":
                         if (is_a($tdvalue, Assessor)) {
                             $this->formArray["cityMunicipalAssessorID"] = $tdvalue->getAssessorID();
                             $this->formArray["cityMunicipalAssessorName"] = $tdvalue->getFullName();
                         } else {
                             $this->formArray[$tdkey] = "";
                         }
                         break;
                     case "cityMunicipalAssessorDate":
                         if (true) {
                             list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $tdvalue);
                             $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[$tdkey] = "";
                         }
                         break;
                     case "enteredInRPARForBy":
                         if (is_a($tdvalue, Assessor)) {
                             $this->formArray["enteredInRPARForByID"] = $tdvalue->getAssessorID();
                             $this->formArray["enteredInRPARForByName"] = $tdvalue->getFullName();
                         } else {
                             $this->formArray[$tdkey] = "";
                         }
                         break;
                     default:
                         $this->formArray[$tdkey] = $tdvalue;
                 }
             }
         }
     }
 }
开发者ID:armic,项目名称:erpts,代码行数:75,代码来源:PrintTDsumm.php


示例17: exequery

     $cursor = exequery(TD::conn(), $query);
     while ($ROW = mysql_fetch_array($cursor)) {
         if (!find_id($USER_ID_STR, $ROW['USER_ID'])) {
             $USER_ID_STR .= $ROW['USER_ID'] . ",";
         }
     }
 }
 $MY_ARRAY_DEPT = explode(",", $TO_ID);
 $ARRAY_COUNT_DEPT = sizeof($MY_ARRAY_DEPT);
 $I = 0;
 for (; $I < $ARRAY_COUNT_DEPT; ++$I) {
     if ($MY_ARRAY_DEPT[$I] == "") {
         continue;
     }
     $query_d = "select USER_ID from USER where (NOT_LOGIN = 0 or NOT_MOBILE_LOGIN = 0) and find_in_set('" . $MY_ARRAY_DEPT[$I] . "',DEPT_ID_OTHER)";
     $cursor_d = exequery(TD::conn(), $query_d);
     while ($ROWD = mysql_fetch_array($cursor_d)) {
         if (!find_id($USER_ID_STR, $ROWD['USER_ID'])) {
             $USER_ID_STR .= $ROWD['USER_ID'] . ",";
         }
     }
 }
 $USER_ID_STR_ARRAY = explode(",", $USER_ID_STR);
 $USER_ID_STR_ARRAY_COUNT = sizeof($USER_ID_STR_ARRAY);
 $I = 0;
 for (; $I < $USER_ID_STR_ARRAY_COUNT; ++$I) {
     if (!($USER_ID_STR_ARRAY[$I] == "")) {
         $FUNC_ID_STR = getfunmenubyuserid($USER_ID_STR_ARRAY[$I]);
         if (!find_id($FUNC_ID_STR, 4)) {
             $USER_ID_STR = str_replace($USER_ID_STR_ARRAY[$I], "", $USER_ID_STR);
         }
开发者ID:sany217,项目名称:WeiXin,代码行数:31,代码来源:update.php


示例18: Main

 function Main()
 {
     switch ($this->formArray["formAction"]) {
         case "save":
             $DueEncode = new SoapObject(NCCBIZ . "DueEncode.php", "urn:Object");
             if ($this->formArray["dueID"] != "") {
                 $DueDetails = new SoapObject(NCCBIZ . "DueDetails.php", "urn:Object");
                 if (!($xmlStr = $DueDetails->getDue($this->formArray["dueID"]))) {
                     $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 {
                         $dueArray = $this->setDues();
                         foreach ($dueArray as $due) {
                             $doc = $due->getDomDocument();
                             $xmlStr = $doc->dump_mem(true);
                             if (!($ret = $DueEncode->updateDue($xmlStr))) {
                                 exit("error update");
                             }
                             unset($doc);
                             unset($xmlStr);
                         }
                     }
                 }
             } else {
                 $dueArray = $this->setDues();
                 foreach ($dueArray as $due) {
                     $doc = $due->getDomDocument();
                     $xmlStr = $doc->dump_mem(true);
                     if (!($ret = $DueEncode->saveDue($xmlStr))) {
                         exit("error saving");
                     }
                     unset($doc);
                     unset($xmlStr);
                 }
             }
             $this->formArray["dueID"] = $ret;
             header("location: DueClose.php" . $this->sess->url("") . $this->sess->add_query(array("rptopID" => $this->formArray["rptopID"])));
             exit($ret);
             break;
         default:
             // grab current tax rates from TreasurySettings
             $treasurySettings = new TreasurySettings();
             $treasurySettings->selectRecord();
             $this->formArray["masterBasicTaxRate"] = $treasurySettings->getPctRPTax();
             $this->formArray["masterSEFTaxRate"] = $treasurySettings->getPctSEF();
             $this->formArray["masterIdleTaxRate"] = $treasurySettings->getPctIdle();
             $this->formArray["discountPeriod"] = $treasurySettings->getDiscountPeriod();
             $TDDetails = new SoapObject(NCCBIZ . "TDDetails.php", "urn:Object");
             if (!($xmlStr = $TDDetails->getTD($this->formArray["tdID"]))) {
                 // xml failed
             } else {
                 if (!($domDoc = domxml_open_mem($xmlStr))) {
                     // domDoc empty
                 } else {
                     $td = new TD();
                     $td->parseDomDocument($domDoc);
                     $this->formArray["afsID"] = $td->getAfsID();
                     $this->formArray["taxDeclarationNumber"] = $td->getTaxDeclarationNumber();
                     $this->formArray["taxBeginsWithTheYear"] = $td->getTaxBeginsWithTheYear();
                 }
             }
             unset($xmlStr);
             unset($domDoc);
             $AFSDetails = new SoapObject(NCCBIZ . "AFSDetails.php", "urn:Object");
             if (!($xmlStr = $AFSDetails->getAFS($this->formArray["afsID"]))) {
                 // xml failed
             } else {
                 if (!($domDoc = domxml_open_mem($xmlStr))) {
                     // domDoc empty
                 } else {
                     $afs = new AFS();
                     $afs->parseDomDocument($domDoc);
                     $this->formArray["assessedValue"] = $afs->getTotalAssessedValue();
                     $this->formArray["taxability"] = $afs->getTaxability();
                     $this->formArray["effectivity"] = $afs->getEffectivity();
                     $this->formArray["propertyType"] = $td->getPropertyType();
                     $this->formArray["idle"] = "No";
                     if ($td->getPropertyType() == "Land") {
                         if (is_array($afs->landArray)) {
                             // if land is stripped
                             if (count($afs->landArray) > 1) {
                                 foreach ($afs->landArray as $land) {
                                     if ($land->getIdle() == "Yes") {
                                         $this->formArray["idle"] = "Yes";
                                         break;
                                     }
                                 }
                             } else {
                                 $this->formArray["idle"] = $afs->landArray[0]->getIdle();
                             }
                         }
                     }
                     if ($this->formArray["idle"] == "") {
                         $this->formArray["idle"] = "No";
                     }
                 }
//.........这里部分代码省略.........
开发者ID:armic,项目名称:erpts,代码行数:101,代码来源:DueEncode.php<

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP TElement类代码示例发布时间:2022-05-23
下一篇:
PHP TCriteria类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap