public function dataEntryStatusAction()
 {
     $this->view->report_id = 'DataEntryStatus';
     $this->view->parameters = 'TS01I';
     $data_arr = array();
     $search_form = new Form_ReportsSearch();
     $stock_master = new Model_StockMaster();
     $role_id = $this->_identity->getRoleId();
     if ($this->_request->wh_type) {
         $stock_master->form_values['wh_type'] = $this->_request->wh_type;
     } else {
         $stock_master->form_values['role_id'] = $role_id;
     }
     if (isset($this->_request->province) && !empty($this->_request->province)) {
         $this->view->province = $this->_request->province;
         $stock_master->form_values['province'] = $this->_request->province;
     } else {
         $this->view->province = $this->_identity->getProvinceId();
         $stock_master->form_values['province'] = $this->_identity->getProvinceId();
     }
     if (isset($this->_request->district) && !empty($this->_request->district)) {
         $this->view->district = $this->_request->district;
         $stock_master->form_values['district'] = $this->_request->district;
     } else {
         $district_id = $this->_identity->getDistrictId($this->_identity->getIdentity());
         $this->view->district = $district_id;
         $stock_master->form_values['district'] = $district_id;
     }
     if (isset($this->_request->tehsil) && !empty($this->_request->tehsil)) {
         $this->view->tehsil = $this->_request->tehsil;
         $stock_master->form_values['tehsil'] = $this->_request->tehsil;
     } else {
         $tehsil_id = $this->_identity->getTehsilId($this->_userid);
         if (empty($tehsil_id)) {
             $tehsil_id = '1';
         }
         $this->view->tehsil = $tehsil_id;
         $stock_master->form_values['tehsil'] = $tehsil_id;
     }
     //        $data_arr = $stock_master->getDataEntryStatusFederal();
     //        $data_arr1 = $stock_master->getDataEntryStatusProvincial();
     //        $data_arr2 = $stock_master->getDataEntryStatusDistrict();
     //        $data_arr3 = $stock_master->getDataEntryStatusTehsil();
     //        $this->view->data = $data_arr;
     //        $this->view->data1 = $data_arr1;
     //        $this->view->data2 = $data_arr2;
     //        $this->view->data3 = $data_arr3;
     $this->view->data = $stock_master->getFederalWarehouses();
     $this->view->data1 = $stock_master->getProvincialWarehouses();
     $this->view->data2 = $stock_master->getDistrictWarehouses();
     $this->view->data3 = $stock_master->getTehsilWarehouses();
     $this->view->role_id = $this->_identity->getRoleId();
     $this->view->main_heading = "Data Entry Status";
     $this->view->report_title = "Data Entry Status";
     $this->view->search_form = $search_form;
     $this->view->form_values = $form_values;
     if (isset($this->_request->wh_type) && !empty($this->_request->wh_type)) {
         $this->view->wh_type = $wh_type = $this->_request->wh_type;
     } else {
         if ($role_id == 3) {
             $wh_type_role = 1;
         } else {
             if ($role_id == 4) {
                 $wh_type_role = 2;
             } else {
                 if ($role_id == 6) {
                     $wh_type_role = 4;
                 } else {
                     if ($role_id == 7) {
                         $wh_type_role = 5;
                     } else {
                         if ($role_id == 17) {
                             $wh_type_role = 1;
                         }
                     }
                 }
             }
         }
         $this->view->wh_type = $wh_type = $wh_type_role;
     }
     $this->view->actionpage = 'data-entry-status';
 }