From 49f28cf7773497c86b5c3a7a5aea787301e0482e Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 8 Feb 2024 07:24:25 -0500 Subject: [PATCH] add kids page --- .../pages/addfamilykid/addfamilykid.page.html | 237 +++++++++--------- .../pages/addfamilykid/addfamilykid.page.scss | 6 + src/app/store/tasks-data.service.ts | 15 +- 3 files changed, 139 insertions(+), 119 deletions(-) diff --git a/src/app/pages/addfamilykid/addfamilykid.page.html b/src/app/pages/addfamilykid/addfamilykid.page.html index cfc2a89..4b164ca 100644 --- a/src/app/pages/addfamilykid/addfamilykid.page.html +++ b/src/app/pages/addfamilykid/addfamilykid.page.html @@ -5,140 +5,151 @@ - Add Kid + Add kid -
-
+ + + + + +
- - - - - - - - - - Birthday(Year/Month) - - - - - - -
-
Year
- -
- + Firstname + + + + Lastname + + + + + + + + Birthday(Year/Month) + + + + +
+
Year
+ +
+ - {{item1}} - -
-
-
-
+ > + {{item1}} +
+
+
+
+
- - -
-
Month
+ + +
+
Month
-
- + + {{item[1]}} + +
+
+
+
+ + + + + + + + + + + + + + + +
+ {{addFamilyResult}} + Add - {{item[1]}} -
-
-
-
-
-
- - - - - - - - - - - - - -
- {{addFamilyResult}} - Add -
-
-
-
-
+ + + +
+ +
+ + + + +
diff --git a/src/app/pages/addfamilykid/addfamilykid.page.scss b/src/app/pages/addfamilykid/addfamilykid.page.scss index e69de29..eb82c1a 100644 --- a/src/app/pages/addfamilykid/addfamilykid.page.scss +++ b/src/app/pages/addfamilykid/addfamilykid.page.scss @@ -0,0 +1,6 @@ +.lb-line{ + font-weight: bolder; + font-size: 16px; + color: #8b198e; + margin-top: 10px; +} \ No newline at end of file diff --git a/src/app/store/tasks-data.service.ts b/src/app/store/tasks-data.service.ts index df750dc..d109f52 100644 --- a/src/app/store/tasks-data.service.ts +++ b/src/app/store/tasks-data.service.ts @@ -66,12 +66,15 @@ export class TasksDataService { this.session_image_server = this.jobsTotalData.session_image_server; let AllResult = this.jobsTotalData.result_list; - this.jobsData = AllResult.filter((item) => item.status_description == 'ACTIVE') - this.jobsPastDueData =AllResult.filter((item) => item.status_description == 'PASTDUE') - this.jobsInReviewData =AllResult.filter((item) => item.status_description == 'REVIEW') - this.active_job_count = this.jobsData?.length; - this.review_job_count = this.jobsInReviewData?.length; - this.pastdue_job_count = this.jobsPastDueData?.length; + if ( AllResult != null ){ + this.jobsData = AllResult.filter((item) => item.status_description == 'ACTIVE') + this.jobsPastDueData =AllResult.filter((item) => item.status_description == 'PASTDUE') + this.jobsInReviewData =AllResult.filter((item) => item.status_description == 'REVIEW') + this.active_job_count = this.jobsData?.length; + this.review_job_count = this.jobsInReviewData?.length; + this.pastdue_job_count = this.jobsPastDueData?.length; + } + // debugger; } );