country dropdown : ps

This commit is contained in:
venbatechnologies@gmail.com 2019-01-06 22:06:11 +05:30
parent 88d6675c60
commit 7447c9eb4c

View File

@ -41,66 +41,7 @@ export class BusinessInfoComponent implements OnInit {
//industryData: any = [];
activityData: any = [];
stateList: 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"}
];
countryDataList : any = [];
relativeNames: any;
applicants: any;
@ -158,7 +99,7 @@ export class BusinessInfoComponent implements OnInit {
//this.getIndustry();
this.getActivity();
this.getStateCityList();
//this.getCountryDataList();
this.getCountryDataList();
this.initBusinessForm();
this.getCompanyRelation();
this.getCompanyListForBusiness();
@ -1169,16 +1110,16 @@ export class BusinessInfoComponent implements OnInit {
});
}
// getCountryDataList(){
// let master_name = 'STATE';
// this._pd.getAllMasterDatas(master_name).subscribe(data => {
// data.records.forEach(val => {
// if (val.isactive == 1) {
// this.countryDataList.push(val);
// }
// })
// });
// }
getCountryDataList(){
let master_name = 'COUNTRY';
this._pd.getAllMasterDatas(master_name).subscribe(data => {
data.records.forEach(val => {
if (val.isactive == 1) {
this.countryDataList.push(val);
}
})
});
}
// add and create person with relationship details
createPersonRelationhip(details: any):FormGroup {
@ -1472,7 +1413,7 @@ export class BusinessInfoComponent implements OnInit {
// let setStateFilter2: any=[];
// setStateFilter2 = getFilteredCityValues.map(x => {
// let findIndex = setCityFilter.indexOf(x);
// return datasource[findIndex];
// return datasource[findIndex].cities;
// });
// console.log(setStateFilter2);
// let setCityFilter2 = getFilteredCityValues.filter(