AI_Integration_In_EchoTex_Payroll_dev_sabbir #58

Merged
shamim merged 3 commits from dev_sabbir into devqc 2026-07-13 16:38:04 +06:00
2 changed files with 7 additions and 36 deletions
Showing only changes of commit f8e081d7d1 - Show all commits

View File

@ -17,32 +17,7 @@
<span *ngIf="item.isChart" class="chart-icon">📊</span>
</li>
</ul>
<!--<div class="flex justify-content-between align-items-center">
<div class="flex p-gap-2 align-items-center">
<kendo-dropdownlist
[data]="reportGroups"
[defaultItem]="{ description: 'Select AI Purpose....', value: null }"
[textField]="'description'"
[valueField]="'value'"
[valuePrimitive]="true"
[(ngModel)]="selectedReportGroup"
(valueChange)="onReportGroupChange($event)"
class="w-14rem">
</kendo-dropdownlist>
<button (click)="openAvailableInfoDialog()" [disabled]="selectedReportGroup === null || selectedReportGroup === undefined" kendoButton themeColor="secondary">Field Column</button>
</div>
<div class="flex p-gap-2 align-items-center">
<button [disabled]="selectedReportGroup === null || selectedReportGroup === undefined"
kendoButton themeColor="primary"
(click)="ShowAllQueryLog()">Chat History</button>
<button kendoButton themeColor="primary"
(click)="onCallOpenAI_One()"
(keydown.enter)="handleEnterKey($event)">Execute</button>
</div>
</div>-->
<div class="toolbar-container">
<!-- Left Side -->
<div class="toolbar-left">
<kendo-dropdownlist [data]="reportGroups"
[defaultItem]="{ description: 'Select AI Purpose....', value: null }"
@ -57,20 +32,16 @@
Field Column
</button>
</div>
<!-- Right Side -->
<div class="toolbar-right">
<button [disabled]="selectedReportGroup === null || selectedReportGroup === undefined"
kendoButton themeColor="primary" (click)="ShowAllQueryLog()">
Chat History
</button>
<button kendoButton themeColor="primary" (click)="onCallOpenAI_One()"
(keydown.enter)="handleEnterKey($event)">
Execute
</button>
</div>
</div>
</div>

View File

@ -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) => {
},