Ejemplo n.º 1
0
 function getMachineriesDepreciationDetails($machineriesDepreciationID)
 {
     $machineriesDepreciation = new MachineriesDepreciation();
     $machineriesDepreciation->selectRecord($machineriesDepreciationID);
     if (!($domDoc = $machineriesDepreciation->getDomDocument())) {
         return false;
     } else {
         $xmlStr = $domDoc->dump_mem(true);
         return $xmlStr;
     }
 }
Ejemplo n.º 2
0
 function updateStatus($statusIDArray = "")
 {
     $rows = 0;
     $this->selectRecords();
     foreach ($this->arrayList as $key => $value) {
         $value->status = "inactive";
         $value->updateRecord();
     }
     foreach ($statusIDArray as $key => $value) {
         $machineriesDepreciation = new MachineriesDepreciation();
         $machineriesDepreciation->selectRecord($value);
         $machineriesDepreciation->status = "active";
         $machineriesDepreciation->updateRecord();
         $rows++;
     }
     return $rows;
 }