master issues fixes : ps

This commit is contained in:
venbatechnologies@gmail.com 2018-10-05 23:00:43 +05:30
parent 1ded485ee0
commit 178d39a925
2 changed files with 14 additions and 11 deletions

View File

@ -155,9 +155,10 @@ removevalue(i:number) {
doSomething(){
var check = 0 ;
if((this._pdTeamForm.controls['fk_city_id'].value.city_id != null)
&&(this._pdTeamForm.controls['fk_lender_id'].value.entity_id) != null)
// console.log(this._pdTeamForm.controls['fk_city_id'].value.city_id);
// console.log(this._pdTeamForm.controls['fk_lender_id'].value.entity_id);
if((this._pdTeamForm.controls['fk_city_id'].value.city_id != '')
&&(this._pdTeamForm.controls['fk_lender_id'].value.entity_id != ''))
{
this.tempArray.forEach(item => {
@ -170,13 +171,16 @@ if((this._pdTeamForm.controls['fk_city_id'].value.city_id != null)
});
if(this.AllPDTeamMapData !== undefined){
this.AllPDTeamMapData.forEach(item => {
if(item.fk_team_id != this._pdTeamForm.controls['pdteam_id'].value){
if((item.fk_city_id == this._pdTeamForm.controls['fk_city_id'].value.city_id) &&
(item.fk_lender_id == this._pdTeamForm.controls['fk_lender_id'].value.entity_id))
{
check++;
alert('Already Exists on Other Team "'+item.team_name+'"');
}
}
});
}

View File

@ -143,30 +143,29 @@ return this._http.post<any>(this.apiUrl+"savePDTeam", ArrayData)
}
/** Get All PD Team Child Data using API call With master Keyword */
/** Get All PD Team Child Data using API call Based on Primary Key */
getAllPdTeamMapListWithPK(Primarykey): Observable<any> {
var pk = { "primary_key":Primarykey }
//var Primar = Primarykey
//console.log('FromServiceArrayData',ArrayData);
//console.log('FromServiceArrayData',ArrayData);
return this._http.post<any>('http://localhost/sparqapi/api/getListOfPDTeamMap',pk)
return this._http.post<any>(this.apiUrl+'getListOfPDTeamMap',pk)
.pipe(
catchError(this.handleError('role', []))
)
}
/** Get All PD Team Child Data using API call With master Keyword */
/** Get All PD Team Child Data using API call */
getAllPdTeamMapList(): Observable<any> {
return this._http.post<any>('http://localhost/sparqapi/api/getListOfPDTeamMap','')
return this._http.post<any>(this.apiUrl+'getListOfPDTeamMap','')
.pipe(
catchError(this.handleError('role', []))
)
}
/**
* TO get City Data For Listing Screen
*/