コード例 #1
0
 public function ajaxGetPlacementLocationsAction()
 {
     $this->_helper->layout->disableLayout();
     $detail_id = $this->_request->id;
     $p = $this->_request->p;
     $stock_master = new Model_StockMaster();
     $stock_master->form_values['$detail_id'] = $detail_id;
     $result = $stock_master->getIssueDetail();
     $item_category_id = $result['item_category_id'];
     if ($item_category_id == 1) {
         $cold_chain_loc = new Model_ColdChain();
         $ccm_locations = $cold_chain_loc->getLocationsName();
         $this->view->locations = $ccm_locations;
     } else {
         $non_ccm_loc = new Model_NonCcmLocations();
         $non_ccm_locations = $non_ccm_loc->getLocationsName();
         $this->view->locations = $non_ccm_locations;
     }
     $this->view->item_cat_id = $item_category_id;
     $this->view->result = $result;
     $this->view->p = $p;
     $this->view->detail_id = $detail_id;
 }