diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.ts index 706e33840..86cf842cf 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.ts @@ -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 { @@ -1452,7 +1393,7 @@ export class BusinessInfoComponent implements OnInit { } filterMaxSaleCities(datasource: any,filterValues:any) { - // console.log(datasource); + // console.log(datasource); if(filterValues){ let getOriginalStateList = datasource.map(dval => dval.state_id);//only stateid have this let setCityFilter = filterValues.map(x => { @@ -1472,9 +1413,9 @@ 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); + // console.log(setStateFilter2); // let setCityFilter2 = getFilteredCityValues.filter( // d => d == setCityFilter.city_id); // console.log(setCityFilter2);