示例#1
0
文件: ODRecords.php 项目: armic/erpts
 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;
 }