country dropdown : ps
This commit is contained in:
parent
88d6675c60
commit
7447c9eb4c
@ -41,66 +41,7 @@ export class BusinessInfoComponent implements OnInit {
|
|||||||
//industryData: any = [];
|
//industryData: any = [];
|
||||||
activityData: any = [];
|
activityData: any = [];
|
||||||
stateList: any = [];
|
stateList: any = [];
|
||||||
// countryDataList : any = [];
|
countryDataList : any = [];
|
||||||
|
|
||||||
// let datas = {
|
|
||||||
|
|
||||||
countryDataList : any = [
|
|
||||||
{
|
|
||||||
"country_id": 1,
|
|
||||||
"country_name": "India"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"country_id": 2,
|
|
||||||
"country_name": "China"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"country_id": 3,
|
|
||||||
"country_name": "U.S.A"
|
|
||||||
},{
|
|
||||||
"country_id": 5,
|
|
||||||
"country_name": "Afghanistan"
|
|
||||||
},{
|
|
||||||
"country_id": 6,
|
|
||||||
"country_name": "Albania "
|
|
||||||
},{
|
|
||||||
"country_id": 7,
|
|
||||||
"country_name": "Algeria "
|
|
||||||
},{
|
|
||||||
"country_id": 8,
|
|
||||||
"country_name": "Andorra "
|
|
||||||
},{
|
|
||||||
"country_id": 8,
|
|
||||||
"country_name": "Angola "
|
|
||||||
},{
|
|
||||||
"country_id": 9,
|
|
||||||
"country_name": "Antigua "
|
|
||||||
},{
|
|
||||||
"country_id": 10,
|
|
||||||
"country_name": "Argentina"
|
|
||||||
},{
|
|
||||||
"country_id": 11,
|
|
||||||
"country_name": "Armenia "
|
|
||||||
},{
|
|
||||||
"country_id": 12,
|
|
||||||
"country_name": "Australia "
|
|
||||||
},{
|
|
||||||
"country_id": 13,
|
|
||||||
"country_name": "Austria "
|
|
||||||
},{
|
|
||||||
"country_id": 14,
|
|
||||||
"country_name": "Azerbaijan"
|
|
||||||
},{
|
|
||||||
"country_id": 15,
|
|
||||||
"country_name": "Bahamas "
|
|
||||||
},{
|
|
||||||
"country_id": 16,
|
|
||||||
"country_name": "Bahrain "
|
|
||||||
},{
|
|
||||||
"country_id": 4,
|
|
||||||
"country_name":"Bangladesh"}
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
relativeNames: any;
|
relativeNames: any;
|
||||||
applicants: any;
|
applicants: any;
|
||||||
@ -158,7 +99,7 @@ export class BusinessInfoComponent implements OnInit {
|
|||||||
//this.getIndustry();
|
//this.getIndustry();
|
||||||
this.getActivity();
|
this.getActivity();
|
||||||
this.getStateCityList();
|
this.getStateCityList();
|
||||||
//this.getCountryDataList();
|
this.getCountryDataList();
|
||||||
this.initBusinessForm();
|
this.initBusinessForm();
|
||||||
this.getCompanyRelation();
|
this.getCompanyRelation();
|
||||||
this.getCompanyListForBusiness();
|
this.getCompanyListForBusiness();
|
||||||
@ -1169,16 +1110,16 @@ export class BusinessInfoComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// getCountryDataList(){
|
getCountryDataList(){
|
||||||
// let master_name = 'STATE';
|
let master_name = 'COUNTRY';
|
||||||
// this._pd.getAllMasterDatas(master_name).subscribe(data => {
|
this._pd.getAllMasterDatas(master_name).subscribe(data => {
|
||||||
// data.records.forEach(val => {
|
data.records.forEach(val => {
|
||||||
// if (val.isactive == 1) {
|
if (val.isactive == 1) {
|
||||||
// this.countryDataList.push(val);
|
this.countryDataList.push(val);
|
||||||
// }
|
}
|
||||||
// })
|
})
|
||||||
// });
|
});
|
||||||
// }
|
}
|
||||||
|
|
||||||
// add and create person with relationship details
|
// add and create person with relationship details
|
||||||
createPersonRelationhip(details: any):FormGroup {
|
createPersonRelationhip(details: any):FormGroup {
|
||||||
@ -1472,9 +1413,9 @@ export class BusinessInfoComponent implements OnInit {
|
|||||||
// let setStateFilter2: any=[];
|
// let setStateFilter2: any=[];
|
||||||
// setStateFilter2 = getFilteredCityValues.map(x => {
|
// setStateFilter2 = getFilteredCityValues.map(x => {
|
||||||
// let findIndex = setCityFilter.indexOf(x);
|
// let findIndex = setCityFilter.indexOf(x);
|
||||||
// return datasource[findIndex];
|
// return datasource[findIndex].cities;
|
||||||
// });
|
// });
|
||||||
// console.log(setStateFilter2);
|
// console.log(setStateFilter2);
|
||||||
// let setCityFilter2 = getFilteredCityValues.filter(
|
// let setCityFilter2 = getFilteredCityValues.filter(
|
||||||
// d => d == setCityFilter.city_id);
|
// d => d == setCityFilter.city_id);
|
||||||
// console.log(setCityFilter2);
|
// console.log(setCityFilter2);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user