當前位置: 首頁>>代碼示例>>PHP>>正文


PHP TD::getArchive方法代碼示例

本文整理匯總了PHP中TD::getArchive方法的典型用法代碼示例。如果您正苦於以下問題:PHP TD::getArchive方法的具體用法?PHP TD::getArchive怎麽用?PHP TD::getArchive使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在TD的用法示例。


在下文中一共展示了TD::getArchive方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getTDListOf

 function getTDListOf($id, $type, $year)
 {
     $owner = new Owner();
     eval("\$ownerIDArray = \$owner->selectOwner" . $type . "(" . $id . ");");
     if ($ownerIDArray) {
         $odArray = "";
         foreach ($ownerIDArray as $key => $value) {
             eval("\$odID = \$owner->selectOD" . $type . "({$value});");
             if ($odID) {
                 $odArray[] = $odID;
             }
         }
         unset($owner);
         if ($odArray) {
             $afsArray = "";
             foreach ($odArray as $key => $value) {
                 $afs = new AFS();
                 $odHistoryRecords = new OdHistoryRecords();
                 $afsID = $afs->checkAFSYear($value, $year);
                 $odHistoryArr = $odHistoryRecords->selectSuccOD($value, $year);
                 if ($odHistoryArr) {
                     $latestAfs = true;
                     foreach ($odHistoryArr as $k => $v) {
                         if ($afs->checkAFSYear($v, $year)) {
                             $latestAfs = false;
                         }
                     }
                     if ($latestAfs) {
                         $afsIDArray[] = $afsID;
                     }
                 } else {
                     if ($afsID != "") {
                         $afsIDArray[] = $afsID;
                     }
                 }
             }
             unset($afs);
             if ($afsIDArray) {
                 $tdRecords = new TDRecords();
                 $tdIDArray = "";
                 foreach ($afsIDArray as $tkey => $tvalue) {
                     $td = new TD();
                     if ($td->selectRecord("", $tvalue)) {
                         // added the following if($td->getArchive()!="true") line on September 10, 2005 to..
                         // ..omit 'cancelled' TDs and other TDs that went through a transaction in..
                         // ..creating new RPTOPs.
                         if ($td->getArchive() != "true") {
                             $tdIDArray[] = $td->getTdID();
                         }
                     }
                     unset($td);
                 }
                 $ret = $tdIDArray;
             } else {
                 $ret = false;
             }
         } else {
             $ret = false;
         }
     } else {
         $ret = false;
     }
     return $ret;
 }
開發者ID:armic,項目名稱:erpts,代碼行數:64,代碼來源:RPTOPBatchRecords.php


注:本文中的TD::getArchive方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。