/**
  * WhGoodsAssignAct::printAssignList()
  * 标记调拨单为待配货
  * @return void
  */
 public function act_printAssignList()
 {
     $ids = is_array($_POST['ids']) ? $_POST['ids'] : array();
     if (!empty($ids)) {
         $idNums = count($ids);
         $ids = implode(',', $ids);
         $where1 = " and a.id in({$ids}) and a.status = 100";
         $assignList1 = WhGoodsAssignModel::getRowAllNumber($where1);
         //获取选定的调拨单中所有待处理状态的总数
         $where2 = " and a.id in({$ids}) and a.status = 103";
         $assignList2 = WhGoodsAssignModel::getRowAllNumber($where2);
         //获取选定的调拨单中所有待打印调拨出库单的总数
         if ($assignList1 != $idNums && $assignList2 != $idNums) {
             self::$errCode = 401;
             self::$errMsg = '请选择待处理或待打印出库单状态的调拨单!';
             return FALSE;
         }
         $status = $assignList1 == $idNums ? 101 : 104;
         //下级状态对应编号
         $info = WhGoodsAssignModel::updateAssignStatus($ids, $status, $_SESSION['userId']);
         if ($info) {
             self::$errCode = 200;
             self::$errMsg = '状态更新成功!';
             return TRUE;
         } else {
             self::$errCode = 402;
             self::$errMsg = '状态更新失败!';
             return FALSE;
         }
     } else {
         self::$errCode = 403;
         self::$errMsg = '数据不正确!';
         return FALSE;
     }
 }