Attn process #55
|
|
@ -49,6 +49,8 @@ namespace HRM.BO
|
||||||
|
|
||||||
public string EmployeeName { get; set; }
|
public string EmployeeName { get; set; }
|
||||||
public bool IsMobileOfflineData { get; set; }
|
public bool IsMobileOfflineData { get; set; }
|
||||||
|
public bool isManualEntry { get; set; }
|
||||||
|
|
||||||
#region AccessCard : AccessCard
|
#region AccessCard : AccessCard
|
||||||
|
|
||||||
private AccessCard _accessCard;
|
private AccessCard _accessCard;
|
||||||
|
|
|
||||||
|
|
@ -402,6 +402,8 @@ namespace HRM.DA
|
||||||
_dtRawData.Columns.Add("EntryMode", typeof(int));
|
_dtRawData.Columns.Add("EntryMode", typeof(int));
|
||||||
_dtRawData.Columns.Add("DeviceIPAddress", typeof(string));
|
_dtRawData.Columns.Add("DeviceIPAddress", typeof(string));
|
||||||
_dtRawData.Columns.Add("DeviceNo", typeof(string));
|
_dtRawData.Columns.Add("DeviceNo", typeof(string));
|
||||||
|
_dtRawData.Columns.Add("isManualEntry", typeof(bool));
|
||||||
|
|
||||||
//_dtRawData.Columns.Add("PUNCHDATE", typeof(DateTime));
|
//_dtRawData.Columns.Add("PUNCHDATE", typeof(DateTime));
|
||||||
|
|
||||||
foreach (AttnRawData item in attnRawDatas)
|
foreach (AttnRawData item in attnRawDatas)
|
||||||
|
|
@ -422,7 +424,8 @@ namespace HRM.DA
|
||||||
item.PunchTime,
|
item.PunchTime,
|
||||||
(int)item.EntryMode,
|
(int)item.EntryMode,
|
||||||
item.DeviceIPAddress,
|
item.DeviceIPAddress,
|
||||||
item.DeviceNo
|
item.DeviceNo,
|
||||||
|
item.isManualEntry
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -440,7 +443,8 @@ namespace HRM.DA
|
||||||
bulkCopy.ColumnMappings.Add("EntryMode", "EntryMode");
|
bulkCopy.ColumnMappings.Add("EntryMode", "EntryMode");
|
||||||
bulkCopy.ColumnMappings.Add("DeviceIPAddress", "DeviceIPAddress");
|
bulkCopy.ColumnMappings.Add("DeviceIPAddress", "DeviceIPAddress");
|
||||||
bulkCopy.ColumnMappings.Add("DeviceNo", "DeviceNo");
|
bulkCopy.ColumnMappings.Add("DeviceNo", "DeviceNo");
|
||||||
// bulkCopy.ColumnMappings.Add("PUNCHDATE", "PUNCHDATE");
|
bulkCopy.ColumnMappings.Add("isManualEntry", "isManualEntry");
|
||||||
|
// bulkCopy.ColumnMappings.Add("PUNCHDATE", "PUNCHDATE");
|
||||||
|
|
||||||
bulkCopy.DestinationTableName = "AttnRawData";
|
bulkCopy.DestinationTableName = "AttnRawData";
|
||||||
bulkCopy.WriteToServer(_dtRawData);
|
bulkCopy.WriteToServer(_dtRawData);
|
||||||
|
|
|
||||||
|
|
@ -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"}
|
||||||
|
|
@ -15,6 +15,7 @@ export class AttnRawData
|
||||||
deviceIPAddress: string;
|
deviceIPAddress: string;
|
||||||
deviceNo: string;
|
deviceNo: string;
|
||||||
employeeName: string;
|
employeeName: string;
|
||||||
|
isManualEntry: boolean;
|
||||||
// accessCard: AccessCard[] = [];
|
// accessCard: AccessCard[] = [];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ export class ApiService {
|
||||||
public isSSO = false;
|
public isSSO = false;
|
||||||
public versionDeployement = false;
|
public versionDeployement = false;
|
||||||
// public versionNumber = `V-${GlobalfunctionExtension.generateVersionNumber(new Date(2025, 1, 25))}-`+"01";
|
// 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 static BASE_URL = '';
|
||||||
public base_url = '';
|
public base_url = '';
|
||||||
// public currentLink = '';
|
// public currentLink = '';
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,20 @@ export class ReadAttendanceRawdataComponent {
|
||||||
) {
|
) {
|
||||||
debugger;
|
debugger;
|
||||||
this._apiService.selectedMenuName = "Read Raw Data";
|
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.loadingService.ShowLoadingPanel = true;
|
||||||
this._empService.getAllEmployees().subscribe(
|
this._empService.getAllEmployees().subscribe(
|
||||||
(resp: any) => {
|
(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({
|
//this.cardFoundForm = new FormGroup({
|
||||||
// card: new FormControl(),
|
// card: new FormControl(),
|
||||||
// FoundDate: 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.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.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.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);
|
this.attnRawDatas.push(item);
|
||||||
});
|
});
|
||||||
//console.log(this.attnRawDatas);
|
//console.log(this.attnRawDatas);
|
||||||
|
|
|
||||||
|
|
@ -378,6 +378,7 @@ var DynamicPicker = /** @class */ (function () {
|
||||||
this.selectedIDs = [];
|
this.selectedIDs = [];
|
||||||
this.selecteditemText = '';
|
this.selecteditemText = '';
|
||||||
this.multiSelect = Multiselect;
|
this.multiSelect = Multiselect;
|
||||||
|
this.checkChildren = this.multiSelect ? true : false;
|
||||||
this.pickerType = PickerType;
|
this.pickerType = PickerType;
|
||||||
this.payrollTypeID = undefined;
|
this.payrollTypeID = undefined;
|
||||||
new DynamicPickerTypeDefination(PickerType, this, Multiselect);
|
new DynamicPickerTypeDefination(PickerType, this, Multiselect);
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -230,7 +230,6 @@ export class EmployeePickerComponent implements OnInit {
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.checkLive = true;
|
this.checkLive = true;
|
||||||
this.loadingService.ShowLoadingPanel = false;
|
|
||||||
this.setSelectableSettings();
|
this.setSelectableSettings();
|
||||||
this.valueChangedSubscription == this.pickerService.dataChanged.subscribe(
|
this.valueChangedSubscription == this.pickerService.dataChanged.subscribe(
|
||||||
x => {
|
x => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user