コード例 #1
0
 public function ajaxStockStatusByItemAction()
 {
     $data_arr = explode('|', $this->_request->getParam('param'));
     $wh_id = $data_arr[0];
     $item = $data_arr[1];
     $date = $data_arr[2];
     $type = $data_arr[3];
     $wh_data = new Model_HfDataMaster();
     $params["date"] = $date;
     $params["item"] = $item;
     $params["wh_id"] = $wh_id;
     $wh_data->form_values = $params;
     if ($type == 1) {
         $data = $wh_data->getReceiveWarehouses();
     } else {
         $data = $wh_data->getIssueWarehouses();
     }
     $this->view->data = $data;
     $this->view->type = $type;
 }