Upload SMC credit PD : ps
This commit is contained in:
parent
0cb653dd13
commit
2869068dd6
@ -190,6 +190,10 @@
|
||||
matTooltip="View" matTooltipPosition="above">
|
||||
<mat-icon>visibility</mat-icon>
|
||||
</button>
|
||||
<div fxFlex.xs="20" fxFlex.sm="20" fxFlex.md="20.66" fxFlex.lg="20.66" fxFlex.xl="20.66" class="cell center">
|
||||
<button [disabled]="details.status !== 'COMPLETED'" mat-button mat-icon-button class=" hover-icon" type="button" color="primary" (click)="uploadDatatoCET(details.pd_id)"
|
||||
matTooltip="Upload Data To CET" matTooltipPosition="above" ><mat-icon>file_upload</mat-icon></button>
|
||||
</div>
|
||||
</div>
|
||||
<!--End Web View Code-->
|
||||
<mat-divider></mat-divider>
|
||||
|
||||
@ -392,5 +392,16 @@ console.log(this.displayedColumns)
|
||||
this.dataSourceTab1.paginator = this.paginator;
|
||||
this.dataSourceTab1.sort = this.sort;
|
||||
}
|
||||
|
||||
uploadDatatoCET(salespdid) {
|
||||
this._pd.uploadCreditDatatoCET(salespdid).subscribe(res=>{
|
||||
if(res['dataStatus']){
|
||||
alert(res['msg']);
|
||||
}else{ alert(res['msg']); }
|
||||
},error => {
|
||||
this.errorMessage.push(error);
|
||||
alert(error.html_format);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -176,6 +176,10 @@
|
||||
matTooltip="View" matTooltipPosition="above">
|
||||
<mat-icon>visibility</mat-icon>
|
||||
</button>
|
||||
<div fxFlex.xs="20" fxFlex.sm="20" fxFlex.md="20.66" fxFlex.lg="20.66" fxFlex.xl="20.66" class="cell center">
|
||||
<button mat-button mat-icon-button class=" hover-icon" type="button" color="primary" (click)="uploadDatatoCET(details.pd_id)"
|
||||
matTooltip="Upload Data To CET" matTooltipPosition="above" ><mat-icon>file_upload</mat-icon></button>
|
||||
</div>
|
||||
</div>
|
||||
<mat-divider></mat-divider>
|
||||
</div>
|
||||
|
||||
@ -361,6 +361,18 @@ public LenderRoleID : any = localStorage.getItem('LenderRoleID');
|
||||
// console.log(this.completedPdListData,this.pagedList,text)
|
||||
|
||||
}
|
||||
uploadDatatoCET(salespdid) {
|
||||
this._pd.uploadCreditDatatoCET(salespdid).subscribe(res=>{
|
||||
if(res['dataStatus']){
|
||||
alert(res['msg']);
|
||||
}else{ alert(res['msg']); }
|
||||
},error => {
|
||||
this.errorMessage.push(error);
|
||||
alert(error.html_format);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
onReset(){
|
||||
this.searchForm.reset();
|
||||
this.searchForm.controls['date_type'].setValue('1');
|
||||
|
||||
@ -1060,7 +1060,19 @@ loadTemplate(form_id) {
|
||||
return this._http.get(this.apiUrl+'downloadSMCExcelFile/'+pdid);
|
||||
}
|
||||
|
||||
|
||||
uploadCreditDatatoCET(id): Observable<any> {
|
||||
// let users:any=localStorage.getItem('user_details');
|
||||
// console.log(users);
|
||||
// users=JSON.parse(users);
|
||||
// let apiName;
|
||||
// if(users.user_role != '19'){
|
||||
// apiName = 'uploadCreditPDDataToCETApp';
|
||||
// }
|
||||
// return this._http.get<any[]>(api_url +"uploadCreditPDDataToCETApp/"+id);
|
||||
let apiName = "http://localhost/AWSEC2/sparqapi/api/uploadCreditPDDataToCETApp";
|
||||
return this._http.get<any[]>(apiName+"/"+id);
|
||||
}
|
||||
|
||||
|
||||
videodelete(id) {
|
||||
return this._http.get<any[]>(this.apiUrl+'deleteVideo?id='+id)
|
||||
|
||||
@ -73,6 +73,10 @@
|
||||
<mat-cell class="cell" *matCellDef="let details;" style="justify-content: flex-end;padding: 0 !important" fxFlex.xs="10" fxFlex.sm="15" fxFlex.md="15" fxFlex.lg="18">
|
||||
<button style="float: right" mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="PDF Download" [disabled]="details.status != 'COMPLETED'"
|
||||
matTooltipPosition="above" color="primary" (click)="salesPDpdf(details.sales_pd_id)"><mat-icon>file_download</mat-icon></button>
|
||||
<div fxFlex.xs="20" fxFlex.sm="20" fxFlex.md="20.66" fxFlex.lg="20.66" fxFlex.xl="20.66" class="cell center">
|
||||
<button [disabled]="details.status !== 'COMPLETED'" mat-button mat-icon-button class=" hover-icon" type="button" color="primary" (click)="uploadDatatoCET(details.sales_pd_id)"
|
||||
matTooltip="Upload Data To CET" matTooltipPosition="above" ><mat-icon>file_upload</mat-icon></button>
|
||||
</div>
|
||||
<!--<button mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" color="primary" (click)="editForm(details)"
|
||||
matTooltip="View" matTooltipPosition="above">
|
||||
<mat-icon>visibility</mat-icon>
|
||||
|
||||
@ -210,6 +210,17 @@ export class SalesPdComponent implements OnInit {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
uploadDatatoCET(salespdid) {
|
||||
this.salesPDService.uploadSalesDatatoCET(salespdid).subscribe(res=>{
|
||||
if(res['dataStatus']){
|
||||
alert(res['msg']);
|
||||
}else{ alert(res['msg']); }
|
||||
},error => {
|
||||
this.errorMessage.push(error);
|
||||
alert(error.html_format);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -72,4 +72,18 @@ export class SalesPdService {
|
||||
return of(result as T);
|
||||
};
|
||||
}
|
||||
|
||||
uploadSalesDatatoCET(id): Observable<any> {
|
||||
|
||||
let users:any=localStorage.getItem('user_details');
|
||||
console.log(users);
|
||||
|
||||
users=JSON.parse(users);
|
||||
|
||||
// return this._http.get<any[]>("http://localhost/AWSEC2/sparqapi/api/uploadSalesPDDataToCETApp/590");
|
||||
|
||||
return this._http.get<any[]>(api_url +"uploadSalesPDDataToCETApp/"+id);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user