PD Notification Master : ps

This commit is contained in:
venbatechnologies@gmail.com 2018-11-20 22:21:17 +05:30
parent 23eb0edc57
commit 98590c363f
3 changed files with 15 additions and 23 deletions

View File

@ -1,14 +1,4 @@
<mat-card-content>
<!-- <div style="text-align: right;">
<button mat-raised-button color="primary" (click)="addPDAllocationType()" > + Add PDAllocationType</button> -->
<!-- displayedColumns = ['','fk_pd_status_id',
'sms_lender','sms_pdofficer','sms_pdincharge',
'mail_lender', 'mail_pdincharge','mail_pdofficer'];
</div>
<br> -->
<!-- <div *ngIf="loader">
<mat-progress-bar mode="indeterminate" color="accent" class="mb-1"></mat-progress-bar>
</div> <br> -->
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
<!-- <div class="filter-header">
<mat-form-field>
@ -37,7 +27,7 @@
<ng-container matColumnDef="pd_status_name">
<mat-header-cell *matHeaderCellDef mat-sort-header>Status </mat-header-cell>
<mat-cell *matCellDef="let row"> {{row.pd_status_name}} </mat-cell>
<mat-cell *matCellDef="let row"> {{row.pd_status}} </mat-cell>
<!-- <mat-checkbox [checked]="row.isPublish"></mat-checkbox> -->
</ng-container>

View File

@ -79,7 +79,8 @@ export class PdNotificationListComponent implements OnInit {
//To get data for listing
getPdNotification() {
this._MastersService.getAllPDNotification().subscribe(
//this._MastersService.getAllPDNotification().subscribe(
this._MastersService.getAllMasterData('PDNOTIFICATION').subscribe(
data => {
// console.log(data);
// console.log(data.status);

View File

@ -29,6 +29,7 @@ export class MastersService {
// private apiUrl = "http://ssa.sineedge.com/sparqapi/api/";
private apiUrll = 'http://localhost/sparqapi/api/';
private apiUrl = environment.apiEndpoint;
@ -260,18 +261,18 @@ editPDAllocationType(Records: any,MasterName:string): Observable<any> {
}
getAllPDNotification(): Observable<any> {
// getAllPDNotification(): Observable<any> {
return this._http.get(this.apiUrl+'getPDNotificationsList')
.pipe(
catchError(this.handleError('role', []))
)
// return this._http.get(this.apiUrl+'getListOfCompany')
// .pipe(
// catchError(this.handleError('role', []))
// )
// return this._http.get(this.apiUrl+'getPDNotificationsList')
// .pipe(
// catchError(this.handleError('role', []))
// )
// // return this._http.get(this.apiUrl+'getListOfCompany')
// // .pipe(
// // catchError(this.handleError('role', []))
// // )
}
// }
/**
@ -302,7 +303,7 @@ editPDAllocationType(Records: any,MasterName:string): Observable<any> {
item.fk_updatedby = this._aws.getlocale();//to get user id for who is update the record
item.updatedon = currentdate;//to get Current date and Time for when the Record is updated
delete item.pd_status_name; // to delete the pd_status_name
//delete item.pd_status_name; // to delete the pd_status_name
delete item.serialno;
});