fix
This commit is contained in:
@@ -11,16 +11,21 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Item Dividers in a List -->
|
|
||||||
<ion-list>
|
<ion-list-header>
|
||||||
|
Recent Payment(s)
|
||||||
|
</ion-list-header>
|
||||||
|
|
||||||
<ion-item><ion-label>Search patient </ion-label></ion-item>
|
<ion-item *ngFor="let type of paymentData" >
|
||||||
<ion-item><ion-label>Edit Profile</ion-label></ion-item>
|
<ion-avatar slot="start">
|
||||||
<ion-item><ion-label>A4</ion-label></ion-item>
|
<img src="./../../assets/imgs/avatar.svg">
|
||||||
<ion-item><ion-label>Practice Time</ion-label></ion-item>
|
</ion-avatar>
|
||||||
|
<ion-label>
|
||||||
|
<h2>{{type.firstname}} {{type.lastname}}</h2>
|
||||||
</ion-list>
|
<h3>{{type.reason}}</h3>
|
||||||
|
<p>{{type.appt}} {{type.gender}} , {{type.age}} yrs</p>
|
||||||
|
</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { Router, NavigationExtras } from '@angular/router'
|
import { Router, NavigationExtras } from '@angular/router'
|
||||||
|
import { MermsServiceProviderService } from './../providers/merms-service-provider.service';
|
||||||
|
import { MermsSessionService } from './../merms-session.service';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
NavController,
|
NavController,
|
||||||
AlertController,
|
AlertController,
|
||||||
@@ -14,7 +17,55 @@ import {
|
|||||||
})
|
})
|
||||||
export class MermsWalletPage implements OnInit {
|
export class MermsWalletPage implements OnInit {
|
||||||
|
|
||||||
constructor(public navCtrl: NavController,private router: Router) { }
|
|
||||||
|
|
||||||
|
constructor(public navCtrl: NavController, private router: Router,
|
||||||
|
private mermsServiceProviderService: MermsServiceProviderService,
|
||||||
|
private mermsSessionService: MermsSessionService
|
||||||
|
) {
|
||||||
|
this.getPaymentData();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
paymentData: any;
|
||||||
|
|
||||||
|
|
||||||
|
currentProviderData: {
|
||||||
|
sessionid: string,
|
||||||
|
member_id: number,
|
||||||
|
card_count: number
|
||||||
|
card_type: number
|
||||||
|
};
|
||||||
|
|
||||||
|
getPaymentData() {
|
||||||
|
console.log('MermsServiceProviderService::getDashData() ######## @@@@ ########');
|
||||||
|
this.currentProviderData = {
|
||||||
|
sessionid: this.mermsSessionService.session,
|
||||||
|
member_id: this.mermsSessionService.member_id,
|
||||||
|
card_count: 100,
|
||||||
|
card_type: 22000
|
||||||
|
};
|
||||||
|
|
||||||
|
try {
|
||||||
|
this.mermsServiceProviderService.genericGetService('provider/recentencounter', this.currentProviderData).subscribe(paymentData => {
|
||||||
|
console.log("card data result 22k: ", paymentData[0]['payload']);
|
||||||
|
this.paymentData = paymentData[0]['payload'];
|
||||||
|
if (paymentData.hasOwnProperty('payload') && Array.isArray(paymentData['payload'])) {
|
||||||
|
this.paymentData = paymentData['payload'];
|
||||||
|
console.log("card data result 22k: ", this.paymentData);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user