Attn process

This commit is contained in:
chapal 2026-05-18 10:25:23 +06:00
parent 90e3dbc838
commit bcc851aea4
9 changed files with 30 additions and 20 deletions

View File

@ -49,6 +49,8 @@ namespace HRM.BO
public string EmployeeName { get; set; }
public bool IsMobileOfflineData { get; set; }
public bool isManualEntry { get; set; }
#region AccessCard : AccessCard
private AccessCard _accessCard;

View File

@ -402,6 +402,8 @@ namespace HRM.DA
_dtRawData.Columns.Add("EntryMode", typeof(int));
_dtRawData.Columns.Add("DeviceIPAddress", typeof(string));
_dtRawData.Columns.Add("DeviceNo", typeof(string));
_dtRawData.Columns.Add("isManualEntry", typeof(bool));
//_dtRawData.Columns.Add("PUNCHDATE", typeof(DateTime));
foreach (AttnRawData item in attnRawDatas)
@ -422,7 +424,8 @@ namespace HRM.DA
item.PunchTime,
(int)item.EntryMode,
item.DeviceIPAddress,
item.DeviceNo
item.DeviceNo,
item.isManualEntry
);
}
@ -440,7 +443,8 @@ namespace HRM.DA
bulkCopy.ColumnMappings.Add("EntryMode", "EntryMode");
bulkCopy.ColumnMappings.Add("DeviceIPAddress", "DeviceIPAddress");
bulkCopy.ColumnMappings.Add("DeviceNo", "DeviceNo");
// bulkCopy.ColumnMappings.Add("PUNCHDATE", "PUNCHDATE");
bulkCopy.ColumnMappings.Add("isManualEntry", "isManualEntry");
// bulkCopy.ColumnMappings.Add("PUNCHDATE", "PUNCHDATE");
bulkCopy.DestinationTableName = "AttnRawData";
bulkCopy.WriteToServer(_dtRawData);

View File

@ -1 +1 @@
{"version":3,"file":"attnRawData.js","sourceRoot":"","sources":["attnRawData.ts"],"names":[],"mappings":";;;AAIA;IAAA;IAeA,CAAC;IAAD,kBAAC;AAAD,CAAC,AAfD,IAeC;AAfY,kCAAW"}
{"version":3,"file":"attnRawData.js","sourceRoot":"","sources":["attnRawData.ts"],"names":[],"mappings":";;;AAIA;IAAA;IAgBA,CAAC;IAAD,kBAAC;AAAD,CAAC,AAhBD,IAgBC;AAhBY,kCAAW"}

View File

@ -15,6 +15,7 @@ export class AttnRawData
deviceIPAddress: string;
deviceNo: string;
employeeName: string;
isManualEntry: boolean;
// accessCard: AccessCard[] = [];
}

View File

@ -14,7 +14,7 @@ export class ApiService {
public isSSO = false;
public versionDeployement = false;
// public versionNumber = `V-${GlobalfunctionExtension.generateVersionNumber(new Date(2025, 1, 25))}-`+"01";
public versionNumber = `V-20251008-`+"01";
public versionNumber = `V-20260514-`+"01";
public static BASE_URL = '';
public base_url = '';
// public currentLink = '';

View File

@ -61,7 +61,7 @@ export class ReadAttendanceRawdataComponent {
//constructor(@Inject(ReadAttendanceRawdataService) readAttendanceRawdataServiceFactory: any) {
// this.readAttendanceRawdataService = readAttendanceRawdataServiceFactory();
//}
constructor(public _apiService: ApiService,
constructor(public _apiService: ApiService,
public _notificationService: HRMNotificationService,
public _empService: EmployeeServices,
public _attendanceServices: AttendanceServices,
@ -69,6 +69,20 @@ export class ReadAttendanceRawdataComponent {
) {
debugger;
this._apiService.selectedMenuName = "Read Raw Data";
//this.readAttendanceRawdataService = readAttendanceRawdataServiceFactory();
}
public ngOnInit(): void {
this.rawDataForm = new FormGroup({
type: new FormControl(),
attachment: new FormControl(),
fromDate: new FormControl(),
toDate: new FormControl()
});
this.loadingService.ShowLoadingPanel = true;
this._empService.getAllEmployees().subscribe(
(resp: any) => {
@ -83,18 +97,6 @@ export class ReadAttendanceRawdataComponent {
}
);
//this.readAttendanceRawdataService = readAttendanceRawdataServiceFactory();
}
public ngOnInit(): void {
this.rawDataForm = new FormGroup({
type: new FormControl(),
attachment: new FormControl(),
fromDate: new FormControl(),
toDate: new FormControl()
});
//this.cardFoundForm = new FormGroup({
// card: new FormControl(),
// FoundDate: new FormControl(),
@ -249,7 +251,8 @@ export class ReadAttendanceRawdataComponent {
item.entryMode = (x.entryMode == undefined || x.entryMode.length <= 0) ? 0 : this.entryModes.find(e => e.name.trim().toLowerCase() == x.entryMode.trim().toLowerCase()).value,
item.cardNo = (x.cardNo !== undefined || x.cardNo !== "" || x.cardNo !== null) ? item.employeeNo : item.cardNo,
item.deviceNo = (x.deviceNo !== undefined || x.deviceNo !== "" || x.deviceNo !== null) ? "" : item.deviceNo,
item.deviceIPAddress = (x.deviceIPAddress !== undefined || x.deviceIPAddress !== "" || x.deviceIPAddress !== null) ? "" : item.deviceIPAddress
item.deviceIPAddress = (x.deviceIPAddress !== undefined || x.deviceIPAddress !== "" || x.deviceIPAddress !== null) ? "" : item.deviceIPAddress
item.isManualEntry = true;
this.attnRawDatas.push(item);
});
//console.log(this.attnRawDatas);

View File

@ -378,6 +378,7 @@ var DynamicPicker = /** @class */ (function () {
this.selectedIDs = [];
this.selecteditemText = '';
this.multiSelect = Multiselect;
this.checkChildren = this.multiSelect ? true : false;
this.pickerType = PickerType;
this.payrollTypeID = undefined;
new DynamicPickerTypeDefination(PickerType, this, Multiselect);

File diff suppressed because one or more lines are too long

View File

@ -230,7 +230,6 @@ export class EmployeePickerComponent implements OnInit {
ngOnInit() {
this.checkLive = true;
this.loadingService.ShowLoadingPanel = false;
this.setSelectableSettings();
this.valueChangedSubscription == this.pickerService.dataChanged.subscribe(
x => {