当前位置: 首页>>代码示例>>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;未经允许,请勿转载。