public function ajaxWorkingStatusByRefrigeratorsModelAction()
 {
     $this->_helper->layout->disableLayout();
     $ccm_models = new Model_CcmModels();
     $form_values['facility_type'] = $this->_request->getParam('facility_type', '');
     $form_values['office'] = $this->_request->getParam('office', '');
     $form_values['combo1'] = $this->_request->getParam('combo1', '');
     $form_values['combo2'] = $this->_request->getParam('combo2', '');
     $ccm_models->form_values = $form_values;
     $data_arr = $ccm_models->refrigeratorModelsByWorkingStatusGraph();
     $search_form = new Form_ReportsSearch();
     $main_heading = "Working status by refrigerators/freezers model";
     $str_sub_heading = "";
     $number_prefix = "";
     $number_suffix = "%";
     $s_number_prefix = "";
     $xmlstore = "<?xml version=\"1.0\"?>";
     $xmlstore .= '<chart caption="' . $main_heading . '" numberprefix="' . $number_prefix . '" showvalues="0" showborder="0" exportEnabled="1" rotateValues="1" theme="fint">';
     $categories = '<categories>';
     $dataset_1 = '<dataset seriesname="Working Well" >';
     $dataset_2 = '<dataset seriesname="Working Needs Service" >';
     $dataset_3 = '<dataset seriesname="Not Working" >';
     foreach ($data_arr as $sub_arr) {
         $categories .= '<category label="' . $sub_arr['Model'] . '" />';
         $dataset_1 .= '<set value="' . $sub_arr['Working'] . '" />';
         $dataset_2 .= '<set value="' . $sub_arr['NeedsService'] . '" />';
         $dataset_3 .= '<set value="' . $sub_arr['NotWorking'] . '" />';
     }
     $categories .= '</categories>';
     $dataset_1 .= '</dataset>';
     $dataset_2 .= '</dataset>';
     $dataset_3 .= '</dataset>';
     $xmlstore .= $categories;
     $xmlstore .= $dataset_1;
     $xmlstore .= $dataset_2;
     $xmlstore .= $dataset_3;
     $xmlstore .= "</chart>";
     $this->view->xmlstore = $xmlstore;
     $this->view->main_heading = $main_heading;
     $this->view->str_sub_heading = $str_sub_heading;
     $this->view->chart_type = "StackedBar2D";
     $this->view->width = '80%';
     $this->view->height = '400';
     $this->view->search_form = $search_form;
     $this->view->inlineScript()->appendFile(Zend_Registry::get('baseurl') . '/js/all_level_area_combo.js');
 }