コード例 #1
0
 public function coldChainCapacityProductAction()
 {
     $this->_helper->layout->setLayout("layout");
     $graphs = new Model_Graphs();
     $to_date = $this->_request->getPost('to_date');
     if (empty($to_date)) {
         $to_date = $this->_request->getParam('to_date', date("d/m/Y"));
     }
     $graphs->form_values['to_date'] = $to_date;
     $this->view->to_date = $to_date;
     $xmlstore1 = $graphs->coldChainCapacityProduct(1);
     $this->view->xmlstore1 = $xmlstore1;
     //$xmlstoresummary = $graphs->coldChainCapacityProductSummary(16);
     //$this->view->xmlstoresummary = $xmlstoresummary;
     $xmlstore2 = $graphs->coldChainCapacityProduct(3);
     $this->view->xmlstore2 = $xmlstore2;
     $this->view->warehousename = $this->_identity->getWarehouseName();
     $this->view->data = $graphs->coldChainCapacityProduct(2);
     $base_url = Zend_Registry::get("baseurl");
     $this->view->inlineScript()->appendFile($base_url . '/js/reports/dashlet/cold-chain-capacity.js');
 }
コード例 #2
0
 public function coldChainCapacityProductAction()
 {
     $this->_helper->layout->setLayout("layout");
     $graphs = new Model_Graphs();
     $to_date = $this->_request->getPost('to_date');
     if (empty($to_date)) {
         $to_date = $this->_request->getParam('to_date', date("d/m/Y"));
     }
     $graphs->form_values['to_date'] = $to_date;
     $this->view->to_date = $to_date;
     $xmlstore1 = $graphs->coldChainCapacityProduct(15);
     $this->view->xmlstore1 = $xmlstore1;
     //$xmlstoresummary = $graphs->coldChainCapacityProductSummary(16);
     //$this->view->xmlstoresummary = $xmlstoresummary;
     $xmlstore2 = $graphs->coldChainCapacityProduct(16);
     $this->view->xmlstore2 = $xmlstore2;
     $this->view->warehousename = $this->_identity->getWarehouseName();
     $this->view->data = $graphs->coldChainCapacityProduct(2);
     $auth = App_Auth::getInstance();
     $role_id = $auth->getRoleId();
     if ($role_id == 4 || $role_id == 5 || $role_id == 6 || $role_id == 7) {
         $stock_master = new Model_StockMaster();
         $this->view->pending_receive = $stock_master->getPendingReceive();
     }
     $this->view->user_role = $role_id;
     $this->view->warehousename = $this->_identity->getWarehouseName();
     $base_url = Zend_Registry::get("baseurl");
     $this->view->inlineScript()->appendFile($base_url . '/js/reports/dashlet/cold-chain-capacity.js');
 }