Ejemplo n.º 1
0
 public function printExplorerAction()
 {
     $this->_helper->layout->setLayout('print');
     // $this->_helper->layout->disableLayout();
     $warehouse_data = new Model_HfDataMaster();
     if (isset($this->_request->do) && !empty($this->_request->do)) {
         $temp = $this->_request->do;
         $warehouse_data->temp = $temp;
         $arr_temp = $warehouse_data->getExplorerReport();
         //  App_Controller_Functions::pr($arr_temp);
         $this->view->month = $arr_temp['month'];
         $this->view->wh_id = $arr_temp['wh_id'];
         $this->view->loc_id = $arr_temp['loc_id'];
         $this->view->rpt_date = $arr_temp['rpt_date'];
         $this->view->yy = $arr_temp['yy'];
         $this->view->mm = $arr_temp['mm'];
         $this->view->dd = $arr_temp['dd'];
         $this->view->is_new_report = $arr_temp['is_new_rpt'];
         $this->view->prev_month_date = $arr_temp['prev_month_date'];
         $this->view->stakeholder_id = $arr_temp['stakeholder_id'];
         $this->view->warehouse_level = $arr_temp['warehouse_level'];
         $this->view->username = $this->_identity->getUserName();
         $wh = $this->_em->getRepository("Warehouses")->find($arr_temp['wh_id']);
         $this->view->warehousename = $wh->getWarehouseName();
         $this->view->print_title = "LMIS Explorer";
         // exit;
     }
 }