예제 #1
0
 public static function getOrderInfo()
 {
     $orderArr = $_GET['orderid'];
     $orderlist = explode(',', $orderArr);
     $num = count($orderlist);
     for ($ii = 0; $ii < $num; $ii++) {
         $mainData = PurchaseOrderModel::getMainOrderInfo($orderlist[$ii]);
         $recordnumber = $mainData[0]['recordnumber'];
         //跟踪号
         $purname = PurchaseOrderModel::getNameById($mainData[0]['purchaseuser_id']);
         //采购员名字
         $note = $mainData[0]['note'];
         //备注
         $rtnMainData['recordnumber'] = $recordnumber;
         $rtnMainData['purname'] = $purname;
         $rtnMainData['note'] = $note;
         $rtnDetailData = PurchaseOrderModel::getDetailOrderInfo($orderlist[$ii]);
         $rtnData[0] = $rtnMainData;
         $rtnData[1] = $rtnDetailData;
         $allData[$ii] = $rtnData;
     }
     return $allData;
 }