From a24209c8d995cb6bf1f1f6604c23efff6ee087ac Mon Sep 17 00:00:00 2001 From: venbainfotech Date: Wed, 18 May 2022 18:54:20 +0530 Subject: [PATCH] face bg issue and enitity field added --- .../facial-recognition-modal.component.ts | 13 ++-- .../entity-add/entity.add.component.html | 74 ++++++++++++------- .../entity/entity-add/entity.add.component.ts | 4 +- .../entity-edit/entity.edit.component.html | 16 +++- .../entity-edit/entity.edit.component.ts | 5 +- .../entity-list/entity.list.component.ts | 5 +- 6 files changed, 80 insertions(+), 37 deletions(-) diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/facial-recognition/facial-recognition-modal/facial-recognition-modal.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/facial-recognition/facial-recognition-modal/facial-recognition-modal.component.ts index 2e05448f8..87f08c8b6 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/facial-recognition/facial-recognition-modal/facial-recognition-modal.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/facial-recognition/facial-recognition-modal/facial-recognition-modal.component.ts @@ -317,7 +317,7 @@ drawRectangle(file) for(let k=0;kclose -
- - - {{ enti.name }} - - Entity Type Required. - -
-
+
+
+ + + {{ enti.name }} + + Entity Type Required. + +
- +
+ You must Include Full Name. - + +
- +
+ You must Include Short Name. - + +
-
- +
+
+ {{ opt.score_option_name }} Field Required. - + +
- +
+ {{ opt.score_option_name }} Field Required. - + +
- +
+ {{ opt.score_option_name }} Field Required. - - - + +
+
+
+
+ {{ opt.score_option_name }} Field Required. - + +
- +
+ {{ opt.score_option_name }} Field Required. - - + +
+
+ + + {{face.face_name}} + + Field Required. + +
diff --git a/ng6-seed/src/app/settings/entity/entity-add/entity.add.component.ts b/ng6-seed/src/app/settings/entity/entity-add/entity.add.component.ts index a6dafb15e..e031e4d3c 100755 --- a/ng6-seed/src/app/settings/entity/entity-add/entity.add.component.ts +++ b/ng6-seed/src/app/settings/entity/entity-add/entity.add.component.ts @@ -43,6 +43,7 @@ export class EntityAddComponent implements OnInit { public _addQuesFrom: FormGroup; public submitted = false; public entityOptions: any = []; + public faceOption: any = [{'face_name':'Yes','face_option_value':'1'},{'face_name':'No','face_option_value':'0'}]; public scoreCardOptions: any = [{'score_option_name':'Yes','score_option_value':'1'},{'score_option_name':'No','score_option_value':'0'}]; errorMessage: string; @@ -71,6 +72,7 @@ export class EntityAddComponent implements OnInit { fk_entity_type_id: [null, Validators.compose([Validators.required])], full_name: [null, Validators.compose([Validators.required])], short_name: [null, Validators.compose([Validators.required])], + is_face_api_enabled: [null, Validators.compose([Validators.required])], is_score_card_enabled: [null, Validators.compose([Validators.required])], is_otp_enabled: [null, Validators.compose([Validators.required])], is_sms_enabled: [null, Validators.compose([Validators.required])], @@ -120,7 +122,7 @@ export class EntityAddComponent implements OnInit { //To Remove The "Null" With Key also Object.keys(entityFormValues).forEach((key) => (entityFormValues[key] == null) && delete entityFormValues[key]); - + console.log(entityFormValues) //Add BRANCH data with help Service File this.entityService.addEntityMasterDetails(entityFormValues).subscribe( dataresult => { diff --git a/ng6-seed/src/app/settings/entity/entity-edit/entity.edit.component.html b/ng6-seed/src/app/settings/entity/entity-edit/entity.edit.component.html index 053fa6ae3..1ef369087 100755 --- a/ng6-seed/src/app/settings/entity/entity-edit/entity.edit.component.html +++ b/ng6-seed/src/app/settings/entity/entity-edit/entity.edit.component.html @@ -238,15 +238,25 @@ Field Required. -
-
+
+
+
+
{{ opt.score_option_name }} Field Required. -
+
+
+ + + {{face.face_name}} + + Field Required. + +
diff --git a/ng6-seed/src/app/settings/entity/entity-edit/entity.edit.component.ts b/ng6-seed/src/app/settings/entity/entity-edit/entity.edit.component.ts index bb01a5692..7ff60faae 100755 --- a/ng6-seed/src/app/settings/entity/entity-edit/entity.edit.component.ts +++ b/ng6-seed/src/app/settings/entity/entity-edit/entity.edit.component.ts @@ -35,6 +35,8 @@ import { EntityListComponent } from './../entity-list/entity.list.component'; export class EntityEditComponent implements OnInit, OnDestroy { @Input() public childMessage: any; + public faceOption: any = [{'face_name':'Yes','face_option_value':'1'},{'face_name':'No','face_option_value':'0'}]; + public scoreCardOptions: any = [{'score_option_name':'Yes','score_option_value':'1'},{'score_option_name':'No','score_option_value':'0'}]; public entity_id: number; @@ -98,6 +100,7 @@ export class EntityEditComponent implements OnInit, OnDestroy { entity_id: [this.entityNameRecord.entity_id], full_name: [this.entityNameRecord.full_name, Validators.compose([Validators.required]) ], short_name: [this.entityNameRecord.short_name, Validators.compose([Validators.required]) ], + is_face_api_enabled: [this.entityNameRecord.is_face_api_enabled, Validators.compose([Validators.required])], is_score_card_enabled:[this.entityNameRecord.is_score_card_enabled || '',Validators.compose([Validators.required])], is_otp_enabled:[this.entityNameRecord.is_otp_enabled || '',Validators.compose([Validators.required])], is_sms_enabled:[this.entityNameRecord.is_sms_enabled || '',Validators.compose([Validators.required])], @@ -130,7 +133,7 @@ export class EntityEditComponent implements OnInit, OnDestroy { var entityFormValues = this._editEntityNameFrom.value; Object.keys(entityFormValues).forEach((key) => (entityFormValues[key] == null) && delete entityFormValues[key]); - + console.log(entityFormValues) this.entityService.updateEntityMasterDetails(entityFormValues).subscribe( dataresult => { if (dataresult.status == 200) { diff --git a/ng6-seed/src/app/settings/entity/entity-list/entity.list.component.ts b/ng6-seed/src/app/settings/entity/entity-list/entity.list.component.ts index 3ac843ab5..4b4cd6b8f 100755 --- a/ng6-seed/src/app/settings/entity/entity-list/entity.list.component.ts +++ b/ng6-seed/src/app/settings/entity/entity-list/entity.list.component.ts @@ -180,7 +180,10 @@ export class EntityListComponent implements OnInit { addNewEntity(): void { const dialogRef = this.dialog.open(EntityAddComponent, { disableClose: true, - data: { } + data: { }, + minWidth: '70%', + maxWidth: '70%', + height: '80%', }); dialogRef.afterClosed().subscribe(result => {