diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html index 63fa86d57..84726cfcf 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html @@ -177,6 +177,9 @@ + + + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts index 2fc1437ff..f69ffd8e8 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts @@ -95,6 +95,7 @@ export class AddPdComponent implements OnInit, OnDestroy { fk_city: [null], fk_state: [null],   pincode : [null],/** ,Validators.compose([Validators.minLength(6),Validators.maxLength(6)]) */ + other_pincode:[null], remarks:[null],   // allocation_type: [null],   // sub_allocation_type: [null], @@ -208,7 +209,8 @@ export class AddPdComponent implements OnInit, OnDestroy { data => { if (data.status == 200) { this.titleList=data.records.filter(val=>val.isactive==1); - + let index1 = this.titleList.map(data => data.name).indexOf("Master"); + this.titleList.splice(index1, 1); } }, error => this.errorMessage = error); @@ -418,19 +420,28 @@ export class AddPdComponent implements OnInit, OnDestroy { return; } else { - if((formValue.lender_contact_mobile == '') || (formValue.lender_stdcode == '' && formValue.lender_landline == '')){ + if((formValue.lender_contact_mobile == '' || formValue.lender_contact_mobile == null) && (formValue.lender_stdcode == '' || formValue.lender_stdcode == null && formValue.lender_landline == '' || formValue.lender_landline == null )){ this.notifier.notify('warning', 'Either Mobile or Landline Need.!'); return; } else{ this.disableAfterSubmit=true; + + let concat_landline + if(formValue.lender_stdcode != null || formValue.lender_landline != null){ + concat_landline = formValue.lender_stdcode +'-'+formValue.lender_landline; + } + else{ + concat_landline = null; + } + let pd_details:any={ "fk_lender_id":formValue.fk_lender_id, "lender_applicant_id":formValue.lender_applicant_id, "pd_branch_id":formValue.pd_branch_id, "pd_contact_person":formValue.lender_contact_person, "pd_contact_mobileno":formValue.lender_contact_mobile, - "pd_contact_landline":formValue.lender_stdcode +'-'+formValue.lender_landline, + "pd_contact_landline":concat_landline, "fk_product_id":formValue.fk_product_id, "fk_subproduct_id":formValue.fk_subproduct_id, "fk_pd_type":formValue.fk_pd_type, @@ -440,6 +451,7 @@ export class AddPdComponent implements OnInit, OnDestroy { "fk_city":formValue.fk_city, "fk_state":formValue.fk_state, "pincode":formValue.pincode , + "other_pincode":formValue.other_pincode , "remarks":formValue.remarks, "pd_status": status, "fk_createdby" : this._aws.getlocale(), diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.html index b7a2efc1a..ed256c201 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.html @@ -166,7 +166,7 @@
- +
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts index 6a378bc3b..f54d1c334 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts @@ -133,7 +133,7 @@ export class EditPdMasterComponent implements OnInit { } loadFormData() { - // console.log('this.data.record',this.data.records); + console.log('this.data.record',this.data.records); let stdcode; let landline; if(this.data.records.pd_contact_landline){ @@ -143,8 +143,8 @@ export class EditPdMasterComponent implements OnInit { landline = this.data.records.pd_contact_landline.substr(+stdcodesearch + 1,8); } else{ - stdcode = null; - landline = null; + stdcode = ''; + landline = ''; } } @@ -205,41 +205,43 @@ export class EditPdMasterComponent implements OnInit { this.submitPdDetails(formValue, status); } //trigger pd - triggerPD(formValue: any, status:string){ - this._EditPDtriggerForm.controls['fk_lender_id'].setValidators([Validators.required]); - this._EditPDtriggerForm.controls['fk_lender_id'].updateValueAndValidity(); + triggerPD(formValue: any, status:any){ - this._EditPDtriggerForm.controls['fk_product_id'].setValidators([Validators.required]); - this._EditPDtriggerForm.controls['fk_product_id'].updateValueAndValidity(); + // this._EditPDtriggerForm.controls['fk_lender_id'].setValidators([Validators.required]); + // this._EditPDtriggerForm.controls['fk_lender_id'].updateValueAndValidity(); - this._EditPDtriggerForm.controls['fk_subproduct_id'].setValidators([Validators.required]); - this._EditPDtriggerForm.controls['fk_subproduct_id'].updateValueAndValidity(); + // this._EditPDtriggerForm.controls['fk_product_id'].setValidators([Validators.required]); + // this._EditPDtriggerForm.controls['fk_product_id'].updateValueAndValidity(); - this._EditPDtriggerForm.controls['fk_pd_type'].setValidators([Validators.required]); - this._EditPDtriggerForm.controls['fk_pd_type'].updateValueAndValidity(); + // this._EditPDtriggerForm.controls['fk_subproduct_id'].setValidators([Validators.required]); + // this._EditPDtriggerForm.controls['fk_subproduct_id'].updateValueAndValidity(); + + // this._EditPDtriggerForm.controls['fk_pd_type'].setValidators([Validators.required]); + // this._EditPDtriggerForm.controls['fk_pd_type'].updateValueAndValidity(); - this._EditPDtriggerForm.controls['fk_customer_segment'].setValidators([Validators.required]); - this._EditPDtriggerForm.controls['fk_customer_segment'].updateValueAndValidity(); + // this._EditPDtriggerForm.controls['fk_customer_segment'].setValidators([Validators.required]); + // this._EditPDtriggerForm.controls['fk_customer_segment'].updateValueAndValidity(); - this._EditPDtriggerForm.controls['loan_amount'].setValidators([Validators.required]); - this._EditPDtriggerForm.controls['loan_amount'].updateValueAndValidity(); + // this._EditPDtriggerForm.controls['loan_amount'].setValidators([Validators.required]); + // this._EditPDtriggerForm.controls['loan_amount'].updateValueAndValidity(); - this._EditPDtriggerForm.controls['addressline1'].setValidators([Validators.required]); - this._EditPDtriggerForm.controls['addressline1'].updateValueAndValidity(); + // this._EditPDtriggerForm.controls['addressline1'].setValidators([Validators.required]); + // this._EditPDtriggerForm.controls['addressline1'].updateValueAndValidity(); - this._EditPDtriggerForm.controls['fk_city'].setValidators([Validators.required]); - this._EditPDtriggerForm.controls['fk_city'].updateValueAndValidity(); + // this._EditPDtriggerForm.controls['fk_city'].setValidators([Validators.required]); + // this._EditPDtriggerForm.controls['fk_city'].updateValueAndValidity(); - this._EditPDtriggerForm.controls['fk_state'].setValidators([Validators.required]); - this._EditPDtriggerForm.controls['fk_state'].updateValueAndValidity(); + // this._EditPDtriggerForm.controls['fk_state'].setValidators([Validators.required]); + // this._EditPDtriggerForm.controls['fk_state'].updateValueAndValidity(); - this._EditPDtriggerForm.controls['pincode'].setValidators([Validators.required]); - this._EditPDtriggerForm.controls['pincode'].updateValueAndValidity(); - if(this.applicantLength==0){ - this.notifier.notify('error', 'Please add applicants.!'); + // this._EditPDtriggerForm.controls['pincode'].setValidators([Validators.required]); + // this._EditPDtriggerForm.controls['pincode'].updateValueAndValidity(); + + // if(this.applicantLength==0){ + // this.notifier.notify('error', 'Please add applicants.!'); - } - this.submitPdDetails(formValue, status); + // } + this.submitPdDetails(formValue, 1); setTimeout(() => { this.clearCustomValidatorFields(); }, 10000); @@ -280,36 +282,40 @@ export class EditPdMasterComponent implements OnInit { this.validateAllFormFields(this._EditPDtriggerForm); } - submitPdDetails(formValue: any, status:string) { + submitPdDetails(formValue: any, status:any) { // let updateStatus = this.currentPDStatus == this.pdStatusCheck.DRAFT ? status : this.currentPDStatus == this.pdStatusCheck.TRIGGERED ? status : this.currentPDStatus; let updateStatus = this.currentPDStatus; - if(this._EditPDtriggerForm.invalid) { - this.validateAllFormFields(this._EditPDtriggerForm); - this.notifier.notify('warning', 'Please Fill All Mandatory Fields.!'); - return; - } - else{ + console.log(this._EditPDtriggerForm.value); + if(status != 1){ + if(this._EditPDtriggerForm.invalid) { + this.validateAllFormFields(this._EditPDtriggerForm); + this.notifier.notify('warning', 'Please Fill All Mandatory Fields.!'); + return; + } + } let my_array = this._EditPDtriggerForm.value; - if((my_array.pd_contact_mobileno == '') || (my_array.lender_stdcode == '' && my_array.lender_landline == '')){ + let concat_landline + if(my_array.lender_stdcode != null && my_array.lender_landline != null){ + if(my_array.lender_stdcode == '' && my_array.lender_landline == ''){ + concat_landline = null; + }else{ + let std = my_array.lender_stdcode == '' ? '' : my_array.lender_stdcode; + let landline = my_array.lender_landline == '' ? '' : my_array.lender_landline; + concat_landline = std+'-'+landline; + } + }else if(my_array.lender_stdcode == '' && my_array.lender_landerline == ''){ + concat_landline = null; + }else{ + concat_landline = null; + } + + if((my_array.pd_contact_mobileno == '' || my_array.pd_contact_mobileno == null) && (concat_landline == '' || concat_landline == null )){ this.notifier.notify('warning', 'Either Mobile or Landline Need.!'); return; } else{ - let concat_landline - if(my_array.lender_stdcode != null && my_array.lender_landline != null){ - if(my_array.lender_stdcode == '' && my_array.lender_landline == ''){ - concat_landline = null; - }else{ - let std = my_array.lender_stdcode == '' ? '' : my_array.lender_stdcode; - let landline = my_array.lender_landline == '' ? '' : my_array.lender_landline; - concat_landline = std+'-'+landline; - } - }else if(my_array.lender_stdcode == '' && my_array.lender_landerline == ''){ - concat_landline = null; - }else{ - concat_landline = null; - } - + + let lenderMasterArray = { "pd_id": my_array.pd_id, "fk_lender_id": my_array.fk_lender_id, @@ -343,7 +349,7 @@ export class EditPdMasterComponent implements OnInit { this.notifier.notify('warning', 'Something Wents Wrong Try Again.!'); });//error closed }//else closed - } + } /** To Reset Popup Data */ onReset() { diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.ts index a68e5175a..bc89f1d4c 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.ts @@ -779,7 +779,7 @@ export class AssetsInfoComponent implements OnInit { /** On Key Press Event For Number only Accepting */ keyPress(event: any) { - const pattern = /[0-9\-\.\ ]/; + const pattern = /[0-9]/; let inputChar = String.fromCharCode(event.charCode); if (event.keyCode != 8 && !pattern.test(inputChar)) { diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.ts index bf87eb34d..5b66497e0 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.ts @@ -659,7 +659,7 @@ export class BusinessAssetsInfoComponent implements OnInit { /** On Key Press Event For Number only Accepting */ keyPress(event: any) { - const pattern = /[0-9\-\.\ ]/; + const pattern = /[0-9]/; let inputChar = String.fromCharCode(event.charCode); if (event.keyCode != 8 && !pattern.test(inputChar)) { diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.html index 0579547bd..68b144034 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.html @@ -61,8 +61,8 @@
- - + + {{errorMessage[i]}} @@ -70,7 +70,6 @@ -
@@ -1212,11 +1211,11 @@ formControlName="employees_total" required> - - 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 0c4f75f72..775d8015c 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 @@ -65,6 +65,7 @@ export class BusinessInfoComponent implements OnInit { generalExistEntityType_other:string; generalExistBusinessYear:Number; generalExistBusinessMonth:Number; + errorMessage: any = []; constructor(notifier: NotifierService, private fb: FormBuilder, @@ -1453,10 +1454,16 @@ export class BusinessInfoComponent implements OnInit { // this.InvestedAmountInWords = this._pd.convertNumberToWords(e); // } - checkTotal(FormData){ - // console.log(FormData.value.employees_permanent); - // console.log(FormData.value.employees_temporary); - // console.log(FormData.value.employees_total); + checkTotalEmployee(FormData){ this.businessForm.controls['employees_total'].setValue((+FormData.value.employees_permanent ||0)+(+FormData.value.employees_temporary||0)); - } + } + checkWithExistBusinessYear(e,i){ + if(e > this.generalExistBusinessYear){ + this.errorMessage[i] = "Higher than Business Vintage"; + } + else{ + this.errorMessage[i] = ''; + } + } + } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.html index 4bcdc8fd2..70e5beb5b 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.html @@ -9,10 +9,13 @@
- + {{ pm.description }} + + + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.ts index 3fdbe4f16..6d22cd494 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.ts @@ -56,6 +56,7 @@ export class FinalRemarksComponent implements OnInit { pdid: [this.pdid], formid: ['20'], final_custormer_remark_type : [], + final_other_customer_behaviour:[], is_service_provided: ['', Validators.required], final_form_remarks: ['',Validators.required] }); @@ -86,6 +87,7 @@ export class FinalRemarksComponent implements OnInit { this.pdTrigerService.getPDFormDetailsWithID(this.pdid, '20').subscribe(data=>{ if(data.dataStatus){ this._finalRemarkForm.controls.final_custormer_remark_type.setValue(data.records.final_custormer_remark_type); + this._finalRemarkForm.controls.final_other_customer_behaviour.setValue(data.records.final_other_customer_behaviour); this._finalRemarkForm.controls.is_service_provided.setValue(data.records.is_service_provided); this._finalRemarkForm.controls.final_form_remarks.setValue(data.records.final_form_remarks); this.noRecordsFound = true; diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html index 847832004..0121cf50f 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html @@ -205,7 +205,8 @@ - {{"₹"}} {{AV_SalesInwords[i]}} Only + +
@@ -249,7 +250,8 @@ - {{"₹"}} {{AV_netProfitAmtInwords[i]}} Only ( {{details.get('estimate_net_profit_percent').value }} % ) + ( {{details.get('estimate_net_profit_percent').value }} % ) + @@ -265,7 +267,8 @@ - {{"₹"}} {{details.get('estimate_Loss_margin').value}} ( {{AV_marginLossAmtInwords[i]}} Only ) + {{"₹"}} {{details.get('estimate_Loss_margin').value}} +
@@ -277,7 +280,8 @@ - {{"₹"}} {{AV_netLossAmtInwords[i]}} Only ( {{details.get('estimate_net_loss_percent').value }} % ) + ( {{details.get('estimate_net_loss_percent').value }} % ) +
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.ts index a4a03cf83..8e83efa89 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.ts @@ -587,7 +587,9 @@ export class FinancialInfoComponent implements OnInit { // let annual_sale_variation = ((prev_annual_sale - salary)/salary ) * 100 ; if(detail.value.finanical_profit_or_loss == 1){ - + loss_margin = ''; + detail.controls.financial_margin_of_loss.setValue(''); + let profit = detail.value.financial_net_profit; if (salary != '' && profit != '') { @@ -602,7 +604,8 @@ export class FinancialInfoComponent implements OnInit { } } else if (detail.value.finanical_profit_or_loss == 2){ - + profit_margin = ''; + detail.controls.financial_margin_of_profit.setValue(''); let loss = detail.value.financial_net_loss; if (salary != '' && loss != '') { diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.html index 3aaff1eaa..44e08cbbf 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.html @@ -706,7 +706,7 @@ - +
Fill Business Form First! / No Company Found at this ID {{company_id}}! ....

{{master.pd_allocated_to | titlecase}} @@ -95,7 +95,7 @@
- +
{{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/' };