public function ajaxExpiryScheduleAction()
 {
     $data_arr = explode('|', $this->_request->getParam('param'));
     $location = $data_arr[0];
     $item = $data_arr[1];
     $level = $data_arr[2];
     $type = $data_arr[3];
     if ($type == 1) {
         $title = "Stock Expiring in <= 6 Months";
     } else {
         if ($type == 2) {
             $title = "Stock Expiring in <= 12 Months";
         } else {
             if ($type == 3) {
                 $title = "Stock Expiring in <= 18 Months";
             } else {
                 if ($type == 4) {
                     $title = "Stock Expiring in > 18 Months";
                 }
             }
         }
     }
     $wh_data = new Model_WarehousesData();
     $params["level"] = $level;
     $params["item_id"] = $item;
     $params["loc_id"] = $location;
     $params["type"] = $type;
     $wh_data->form_values = $params;
     $data = $wh_data->getExpiryScheduleByType();
     $this->view->data = $data;
     $this->view->type = $type;
     $this->view->title = $title;
 }