STATE CITY FOR BUSINESS
This commit is contained in:
parent
563cd71823
commit
10f2b8b835
@ -473,6 +473,9 @@ defined('PDOFFICERCURRENTLOCATIONID') OR define('PDOFFICERCURRENTLOCATIONID','pd
|
|||||||
defined('PINCODE') OR define('PINCODE','m_pincode');
|
defined('PINCODE') OR define('PINCODE','m_pincode');
|
||||||
defined('PINCODEID') OR define('PINCODEID','pincode_id');
|
defined('PINCODEID') OR define('PINCODEID','pincode_id');
|
||||||
|
|
||||||
|
defined('PDNOTIFICATIONMSG') OR define('PDNOTIFICATIONMSG','m_pdnotification_msg');
|
||||||
|
defined('PDNOTIFICATIONMSGID') OR define('PDNOTIFICATIONMSGID','msg_id');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -151,6 +151,7 @@ $route['getListOfLenders'] = 'PD_Controller/getListOfLenders';
|
|||||||
$route['getListOfCustomerSegments'] = 'PD_Controller/getListOfCustomerSegments';
|
$route['getListOfCustomerSegments'] = 'PD_Controller/getListOfCustomerSegments';
|
||||||
$route['getListOfPDAllocationTypes'] = 'PD_Controller/getListOfPDAllocationTypes';
|
$route['getListOfPDAllocationTypes'] = 'PD_Controller/getListOfPDAllocationTypes';
|
||||||
$route['getListOfStatesAndCities'] = 'PD_Controller/getListOfStatesAndCities';
|
$route['getListOfStatesAndCities'] = 'PD_Controller/getListOfStatesAndCities';
|
||||||
|
$route['getListOfStatesCities'] = 'PD_Controller/getListOfStatesCities';
|
||||||
$route['getFullPDDetails'] = 'PD_Controller/getFullPDDetails';
|
$route['getFullPDDetails'] = 'PD_Controller/getFullPDDetails';
|
||||||
$route['updatePDDocs'] = 'PD_Controller/updatePDDocs';
|
$route['updatePDDocs'] = 'PD_Controller/updatePDDocs';
|
||||||
$route['updatePDApplicants'] = 'PD_Controller/updatePDApplicants';
|
$route['updatePDApplicants'] = 'PD_Controller/updatePDApplicants';
|
||||||
|
|||||||
@ -200,7 +200,7 @@ class PD_Controller extends REST_Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/********************Get get List Of States and Cities Name Details for PD Trigger Page*********/
|
/********************Get get List Of States and Cities Name and Pincodes Details for PD Trigger Page*********/
|
||||||
|
|
||||||
public function getListOfStatesAndCities_post()
|
public function getListOfStatesAndCities_post()
|
||||||
{
|
{
|
||||||
@ -234,6 +234,48 @@ class PD_Controller extends REST_Controller {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/********************Get get List Of States and Cities Name only for Business form *********/
|
||||||
|
|
||||||
|
public function getListOfStatesCities_post()
|
||||||
|
{
|
||||||
|
$records = $this->post('records');
|
||||||
|
$stateid = $records['state_id'];
|
||||||
|
$fields = array('state_id','name as state_name','code');
|
||||||
|
$where_condition_array = array('isactive' => 1);
|
||||||
|
$result_data = $this->PD_Model->selectCustomRecords($fields,$where_condition_array,STATE);
|
||||||
|
|
||||||
|
if(count($result_data))
|
||||||
|
{
|
||||||
|
foreach($result_data as $key => $res)
|
||||||
|
{
|
||||||
|
$fields = array('city_id','name as city_name');
|
||||||
|
$where_condition_array = array('isactive' => 1,'fk_state_id' => $res['state_id']);
|
||||||
|
$cities = $this->PD_Model->selectCustomRecords($fields,$where_condition_array,CITY);
|
||||||
|
//array_push($result_data[$key],$cities);
|
||||||
|
$result_data[$key]['cities'] = $cities;
|
||||||
|
|
||||||
|
// $fields = array('pincode_id','pincode');
|
||||||
|
// $where_condition_array = array('isactive' => 1,'fk_state_id' => $stateid);
|
||||||
|
// $pincode = $this->PD_Model->selectCustomRecords($fields,$where_condition_array,PINCODE);
|
||||||
|
// //array_push($result_data[$key],$cities);
|
||||||
|
// $result_data['pincode'] = $pincode;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
$data['dataStatus'] = true;
|
||||||
|
$data['status'] = REST_Controller::HTTP_OK;
|
||||||
|
$data['records'] = $result_data;
|
||||||
|
$this->response($data,REST_Controller::HTTP_OK);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user