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


PHP TD::archiveRecord方法代碼示例

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


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

示例1: cancelRPU

 function cancelRPU($odID, $userID, $transactionCode = "CA")
 {
     $od = new OD();
     $od->selectRecord($odID);
     $od->archive = "true";
     $od->modifiedBy = $userID;
     $od->transactionCode = $transactionCode;
     $afs = new AFS();
     $afs->selectRecord("", "", $odID);
     $afsID = $afs->afsID;
     $afs->archive = "true";
     $afs->modifiedBy = $userID;
     // NCC Modification checked and implemented by K2 : November 16, 2005
     // details:
     //    added lines 70-76, 79 ($td related)
     $td = new TD();
     $td->selectRecord("", $afsID);
     $tdID = $td->tdID;
     $td->archive = "true";
     $td->modifiedBy = $userID;
     $od->cancelRecord($odID, "true", $userID, $transactionCode);
     $afs->archiveRecord($afsID, "true", $userID);
     $td->archiveRecord($tdID, "true", $userID);
     return true;
 }
開發者ID:armic,項目名稱:erpts,代碼行數:25,代碼來源:RPUEncode.php

示例2: archiveRecords

 function archiveRecords($tdIDArray = "", $archiveValue = "", $userID = "")
 {
     $td = new TD();
     $ret = false;
     foreach ($tdIDArray as $key => $value) {
         if ($td->archiveRecord($value, $archiveValue, $userID)) {
             $ret = true;
         }
     }
     return $ret;
 }
開發者ID:armic,項目名稱:erpts,代碼行數:11,代碼來源:TDRecords.php

示例3: archiveRecords

 function archiveRecords($odIDArray = "", $archiveValue = "", $userID = "")
 {
     $od = new OD();
     $ret = false;
     foreach ($odIDArray as $key => $odID) {
         if ($od->archiveRecord($odID, $archiveValue, $userID)) {
             // archive AFS
             $afs = new AFS();
             if ($afsID = $afs->checkAfsID($odID)) {
                 $afs->archiveRecord($afsID, $archiveValue, $userID);
             }
             // archive TD
             $td = new TD();
             if ($tdID = $td->checkTdID($afsID)) {
                 $td->archiveRecord($tdID, $archiveValue, $userID);
             }
         }
         $ret = true;
     }
     return $ret;
 }
開發者ID:armic,項目名稱:erpts,代碼行數:21,代碼來源:ODRecords.php


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