{{master.addressline1}},
{{master.city_name}},
{{master.state_name}}-{{master.pincode}}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts
index f7e33801d..29f23fbed 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts
@@ -14,6 +14,10 @@ import { EditPdMasterComponent } from '../edit-pd-master/edit-pd-master.componen
import { PdRequirementComponent } from '../pd-requirement/pd-requirement.component';
import {DatePipe } from '@angular/common';
+
+/**sweet alert */
+import Swal from 'sweetalert2';
+
@Component({
selector: 'app-view-pd',
templateUrl: './view-pd.component.html',
@@ -23,6 +27,7 @@ import {DatePipe } from '@angular/common';
export class ViewPdComponent implements OnInit, OnDestroy {
pipe = new DatePipe('en-US');
private notifier:NotifierService;
+
errorMessage: any;
pdMasterData: any=[];
pdApplicantData: any=[];
@@ -164,13 +169,55 @@ export class ViewPdComponent implements OnInit, OnDestroy {
this.ListPdComponent.pdListLoad(true);
}
+ // isactiveBranch(id: number,isactive : number){
+
+ // let ActiveDatas = isactive == 0
+ // ? { 'branch_id':id,'isactive': '1'}
+ // : { 'branch_id':id,'isactive': '0'}
+
+ // //if is active '1' have TO deactive So deactive messages
+ // if(isactive == 1){
+ // this.SwalButtonText = 'Yes, deactivate it!';
+ // this.SwalMessage = 'Deactivated!';
+ // }
+ // else{
+ // this.SwalButtonText = 'Yes, activate it!';
+ // this.SwalMessage = 'Activated!';
+ // }
+
+ // Swal({
+ // title: 'Are you sure?',
+ // type: 'warning',
+ // showCancelButton: true,
+ // confirmButtonColor: '#3085d6',
+ // cancelButtonColor: '#d33',
+ // confirmButtonText: this.SwalButtonText
+ // }).then((result) => {
+ // if (result.value) {
+ // this._mastersService.editMasterDetails(ActiveDatas,'BRANCH')
+ // .subscribe(dataresult=>{
+ // if (dataresult.dataStatus == true){
+ // Swal(this.SwalMessage,'success');
+ // this.getBranch();
+ // }
+ // else{
+ // Swal("Sorry Try Again !");
+ // }
+ // });
+ // }
+ // else{
+ // this.getBranch();
+ // }
+ // })
+ // }
+
Maponclick(master : any){
let url = "https://www.google.com/maps/place/"
let concat_url = url+master.addressline1+'/'+master.city_name+','+master.pincode+','+master.state_name;
window.open(concat_url,'_blank');
}
- editPdMaster(masterData:any){
+ editPdMaster(masterData:any,flag){
let record = {
"records":masterData,
"applicantLength": this.pdApplicantData.length
@@ -183,13 +230,25 @@ export class ViewPdComponent implements OnInit, OnDestroy {
});
dialogPDMaster.afterOpen()
.subscribe(dataresult => {
- if(this.localcount == 1){
+ if(flag == 1){
let ffd : any = [];
this.FilteredFieldNames.forEach(field => {
ffd.push(field.frontEnd_FieldName);
});
- // this.notifier.notify('info', 'Please Fill ' + ffd.join(',') + ' are Fields.!');
- this.notifier.notify('warn', 'Please Fill ' + ffd.join(' , ') + ' Fields.!');
+
+ // this.notifier.notify('info', 'Please Fill ' + ffd.join(' , ') + ' Fields.!');
+ Swal({
+ title:'Please complete the below details',
+ confirmButtonColor: "red",
+ // html:true,
+ //text:'Please Fill' + ffd.forEach(data=>{ data }) + ' ! ',
+ text:ffd.join(' , ')
+ });
+ // Swal({
+ // title: "HTML
Title!",
+ // text: "...
" + flag + "
...",
+
+ // }) ;
}
});
dialogPDMaster.afterClosed().subscribe(dataresult => {
@@ -350,7 +409,7 @@ export class ViewPdComponent implements OnInit, OnDestroy {
if(data.length>0){
this.localcount = 1;
- this.editPdMaster(masterdetail);
+ this.editPdMaster(masterdetail,this.localcount);
}
else {
let lenderMasterArray = {"pd_id": pdid}
diff --git a/ng6-seed/src/environments/environment.ts b/ng6-seed/src/environments/environment.ts
index adb47058a..af7a9fb85 100755
--- a/ng6-seed/src/environments/environment.ts
+++ b/ng6-seed/src/environments/environment.ts
@@ -25,5 +25,5 @@ export const environment = {
s3_endpoint: '',
accessToken:'',
//apiUrl:'http://localhost/sparqapi/api/'
- apiEndpoint: 'http://ssa.sineedge.com/sparqapi/api/'
+ apiEndpoint: 'https://ssa.sineedge.com/sparqtest/api/'
};