public function ajaxGetMosAction() { $wh_data = new Model_WarehousesData(); $params["date"] = $this->_request->getParam("date"); $params["item"] = $this->_request->getParam("item"); $params["province"] = $this->_request->getParam("province"); $level = $this->_request->getParam("level"); $province = $this->_request->getParam("province"); $district = $this->_request->getParam("district"); $limit = $this->_request->getParam("limit"); list($start, $end) = explode("-", $limit); $params["start"] = $start; $params["end"] = $end; $wh_data->form_values = $params; switch ($level) { case 1: $xmlstore = $wh_data->getMOS(); break; case 2: $xmlstore = $wh_data->getMOSByDistricts($province); break; case 6: $xmlstore = $wh_data->getMOSByUc($district); break; } $this->view->xmlstore = $xmlstore; }