From 010f3a6dc3b1dc3f79bcba20e2fc4d7cc67f3b77 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 20 Jan 2024 17:07:45 -0500 Subject: [PATCH] History page --- src/app/pages/history/history.page.html | 32 +++++++++++++++++++ src/app/pages/history/history.page.ts | 20 +++++++++--- src/app/pages/profile/profile.page.html | 6 ++-- src/app/pages/profile/profile.page.ts | 4 +++ .../store/session-data-provider.service.ts | 2 ++ 5 files changed, 57 insertions(+), 7 deletions(-) diff --git a/src/app/pages/history/history.page.html b/src/app/pages/history/history.page.html index 85fe59f..742a545 100644 --- a/src/app/pages/history/history.page.html +++ b/src/app/pages/history/history.page.html @@ -10,5 +10,37 @@ +
+ + + + Select Report + + + + + + + {{item.ty}} + + + + + Refresh + + + + +
+ + + + +
diff --git a/src/app/pages/history/history.page.ts b/src/app/pages/history/history.page.ts index 0940ba8..302356b 100644 --- a/src/app/pages/history/history.page.ts +++ b/src/app/pages/history/history.page.ts @@ -1,5 +1,7 @@ -import { Component, OnInit } from '@angular/core'; -import {NavController} from "@ionic/angular"; +import {Component, OnInit, ViewChild} from '@angular/core'; +import {LoadingController, NavController} from "@ionic/angular"; +import {SessionDataProviderService} from "../../store/session-data-provider.service"; +import {WrenchService} from "../../services/wrench.service"; @Component({ selector: 'app-history', @@ -7,11 +9,21 @@ import {NavController} from "@ionic/angular"; styleUrls: ['./history.page.scss'], }) export class HistoryPage implements OnInit { + @ViewChild('slected_report_type') slected_report_type; +historyTypes:any=[]; constructor( - private navctr: NavController - ) { } + private navctr: NavController, + public sessionDataProviderService:SessionDataProviderService, + private loadingCtrl: LoadingController, + private wrenchService: WrenchService, + ) { + this.historyTypes= this.sessionDataProviderService.history_types; + } + refreshReport(){ + + } ngOnInit() { } diff --git a/src/app/pages/profile/profile.page.html b/src/app/pages/profile/profile.page.html index 119ec49..8e6d670 100644 --- a/src/app/pages/profile/profile.page.html +++ b/src/app/pages/profile/profile.page.html @@ -145,11 +145,11 @@ - +