From f8e081d7d1e9ecb06c7f51152c078e2952597e72 Mon Sep 17 00:00:00 2001 From: Sabbir Ahmed Date: Mon, 13 Jul 2026 11:27:47 +0600 Subject: [PATCH] AI Integration successful --- .../hrmopen-aiteast.component.html | 29 ------------------- .../hrmopen-aiteast.component.ts | 14 ++++----- 2 files changed, 7 insertions(+), 36 deletions(-) diff --git a/HRM.UI/ClientApp/src/app/hrmopen-ai/hrmopen-ai-test/hrmopen-aiteast.component.html b/HRM.UI/ClientApp/src/app/hrmopen-ai/hrmopen-ai-test/hrmopen-aiteast.component.html index 000a4a9..d075b1c 100644 --- a/HRM.UI/ClientApp/src/app/hrmopen-ai/hrmopen-ai-test/hrmopen-aiteast.component.html +++ b/HRM.UI/ClientApp/src/app/hrmopen-ai/hrmopen-ai-test/hrmopen-aiteast.component.html @@ -17,32 +17,7 @@ 📊 -
- -
- -
-
-
diff --git a/HRM.UI/ClientApp/src/app/hrmopen-ai/hrmopen-ai-test/hrmopen-aiteast.component.ts b/HRM.UI/ClientApp/src/app/hrmopen-ai/hrmopen-ai-test/hrmopen-aiteast.component.ts index 58a031a..cf7c092 100644 --- a/HRM.UI/ClientApp/src/app/hrmopen-ai/hrmopen-ai-test/hrmopen-aiteast.component.ts +++ b/HRM.UI/ClientApp/src/app/hrmopen-ai/hrmopen-ai-test/hrmopen-aiteast.component.ts @@ -122,7 +122,7 @@ export class HRMOpenAITestComponent implements OnInit{ } LoadCurrentUserAllQueryLog(reportGroupType : EnumReportGroupType){ - this.loadingpanelService.ShowLoadingPanel = false; + this.loadingpanelService.ShowLoadingPanel = true; this.opeAiService.GetCurrentUserAllQueryLog(reportGroupType).subscribe( (resp: any) => { this.currentUserAllQueryLog = resp; @@ -220,7 +220,7 @@ export class HRMOpenAITestComponent implements OnInit{ return; } this.isUserPromptIsNotRelated = false; - this.loadingpanelService.ShowLoadingPanel = false; + this.loadingpanelService.ShowLoadingPanel = true; this.opeAiService.AskOpenAI(data).subscribe( (resp: any) => { this.OpenAIResponce = JSON.parse(resp); @@ -412,11 +412,11 @@ export class HRMOpenAITestComponent implements OnInit{ this.reportColumnDefinition = resp as any[]; }, (err: any) => { - this.loadingpanelService.ShowLoadingPanel = true; + this.loadingpanelService.ShowLoadingPanel = false; this.notificationService.showError(err.error, "Error"); }, () => { - this.loadingpanelService.ShowLoadingPanel = true; + this.loadingpanelService.ShowLoadingPanel = false; this.gridData = []; if (this.reportColumnDefinition && this.reportColumnDefinition.length > 0) { const excludedNormalizedCaptions = new Set(['employeeid']); @@ -481,12 +481,12 @@ export class HRMOpenAITestComponent implements OnInit{ }, (err: any) => { this.isShowCurrentUserAllQueryLog = false - this.loadingpanelService.ShowLoadingPanel = true; + this.loadingpanelService.ShowLoadingPanel = false; this.notificationService.showError(err.error, "Error"); }, () => { this.isShowCurrentUserAllQueryLog = false - this.loadingpanelService.ShowLoadingPanel = true; + this.loadingpanelService.ShowLoadingPanel = false; this.ProcessOpenAIData(); this.LoadCurrentUserAllQueryLog(this.selectedReportGroup); }); @@ -549,7 +549,7 @@ export class HRMOpenAITestComponent implements OnInit{ const data = { oQueryLog : this.currentChat } - this.loadingpanelService.ShowLoadingPanel = false; + this.loadingpanelService.ShowLoadingPanel = true; this.opeAiService.ChatShareWithOthers(data).subscribe( (resp: any) => { },