public function ajaxGetConsumptionAction()
 {
     $wh_data = new Model_WarehousesData();
     $params["date"] = $this->_request->getParam("date");
     $params["item"] = $this->_request->getParam("item");
     $level = $this->_request->getParam("level");
     $province = $this->_request->getParam("province");
     $district = $this->_request->getParam("district");
     $tehsil = $this->_request->getParam("teh_id");
     $params["teh_id"] = $tehsil;
     $wh_data->form_values = $params;
     switch ($level) {
         case 1:
             $xmlstore = $wh_data->getConsumption();
             $this->view->xmltype = "Column2D.swf";
             break;
         case 2:
             $xmlstore = $wh_data->getConsumptionByDistricts($province);
             $this->view->xmltype = "MSCombi2D.swf";
             break;
         case 6:
             $xmlstore = $wh_data->getConsumptionByUc($district);
             $this->view->xmltype = "MSCombi2D.swf";
             break;
     }
     $this->view->xmlstore = $xmlstore;
 }