Example #1
0
 /**
  * 获取单据列表
  *
  * @param string $sindate
  * @param string $eindate
  * @param string $soutdate
  * @param string $eoutdate
  * @param string $goodsName
  * @param string $code
  * @param string $billNo
  * @param string $inoutType
  * @return array
  */
 public function queryBillList($sdate = '', $edate = '', $goodsName = '', $code = '*', $billNo = '', $inoutType = '', $place = '', $billType = '')
 {
     try {
         $stoks = new StocksManagerAction();
         $result = $stoks->queryBillList($sdate, $edate, $goodsName, $code, $billNo, $inoutType, $place, $billType);
         $struct = $this->getStruct();
         $visible = array("_type_" => "INCLUDE", "data" => array("sysno", "billNo", "billDate", "billType", "place"));
         $struct["visible"] = $visible;
         $struct["item"] = array("sysno", "billNo", "billDate", "billType", "place");
         $struct["width"] = array("billNo" => 120);
         $rtn["struct"] = $struct;
         $rtn["data"] = $result;
         return $rtn;
     } catch (Exception $e) {
         system_out("StocksManager.queryBillList exception:" . $e);
         throw new Exception($e);
     }
 }