Posts

Showing posts from June, 2025

on mouse hover show icons

Image
on mouse hover show icons     < ng-container matColumnDef = "AFINumber" >                 < th mat-header-cell *matHeaderCellDef mat-sort-header >                   AFI Number                 </ th >                 < td mat-cell *matCellDef = "let element" class = "afi-number-cell d-flex align-items-center" >                   < div class = "d-flex align-items-center" >                     < span                       class = "afi-number-hover-group"                       style = " display: inline-flex; align-items: center;"             ...

BEST UI designs

 good UI design https://dribbble.com/shots/26102794-Grabby-Food-Delivery-App https://dribbble.com/shots/20783239-Car-pooling-app

log errors to the error table

 using Harsco.AFIWeb.API.Helpers; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.AspNetCore.Mvc.ModelBinding; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Harsco.EmailService; using Microsoft.Extensions.Configuration; namespace Harsco.AFIWeb.API.Filters  {     public class ApiExceptionFilter : IExceptionFilter     {         private readonly IHostingEnvironment _hostingEnvironment;         private readonly IModelMetadataProvider _modelMetadataProvider;         private readonly ILogger<ApiExceptionFilter> _logger;         private readonly EmailConfiguration _emailConfig;         private readonly EmailConfigService _emailConfigService;         private...

global error handle loggs to Email

 using Harsco.AFIWeb.API.Helpers; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.AspNetCore.Mvc.ModelBinding; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Harsco.EmailService; namespace Harsco.AFIWeb.API.Filters  {     public class ApiExceptionFilter : IExceptionFilter     {         private readonly IHostingEnvironment _hostingEnvironment;         private readonly IModelMetadataProvider _modelMetadataProvider;         private readonly ILogger<ApiExceptionFilter> _logger;         private readonly EmailConfiguration _emailConfig;         private readonly EmailConfigService _emailConfigService;         public ApiExceptionFilter(IHostingEnvironment hos...

Ui design on mouse over

Image
 

on mousehover show icons

Image
 

bestui

Image
 

best UI

 https://topmate.io/

when route component and popup component same then getting error

 getting error matdialogdata then given optional. @Optional() @Inject(MAT_DIALOG_DATA) public data: any,  @Optional() public dialogRef?: MatDialogRef<AddWorkFlowsComponent>

dialog ref issues

give ? for datatable.   <a *ngIf="dsApproveAFI?.data?.length && dsApproveAFI.data[0]?.WorkFlow_ID"     (click)="openWorkflowDialog(dsApproveAFI.data[0].WorkFlow_ID.toString())"     style="cursor: pointer; text-decoration: underline; color: #006ab4;">     {{ dsApproveAFI.data[0].WorkFlow_ID }}  </a>

Used to update the filenames missing extentions

   ;WITH TopFiles AS (         SELECT  *         FROM tbl_attachments         WHERE File_Type = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'           AND RIGHT(File_Name, 5) != '.xlsx'           AND RIGHT(File_Name, 4) != '.xls'     )     UPDATE TopFiles     SET File_Name = File_Name + '.xlsx';

not able to save EMployee locations.

Image
  1. i have checked employee master nothing related  after loading employee data we are filtering the sites based on country and divisions. here the division ESOL not exist so not able to access the location data.   getSitesByCountrId () { debugger     this . lstBindSites = this . lstSites . filter (( x : any ) => x . CountryCode == this . employeeDetails . CountryCode )     this . lstBindSites = this . lstBindSites . filter (( x : any ) => x . DivisionCode == this . employeeDetails . DivisionCode )   }