跳轉到

打卡記錄

取得單人出勤刷卡紀錄 GetUserPunch

金鑰權限需求: 打卡 > 打卡紀錄

命名空間: Ede.Uofx.OpenApi.Sdk.NetStd.Service

方法名稱: UofxService.EIP.Punch.GetUserPunch

var result = await UofxService.EIP.Punch.GetUserPunch(model);

輸入參數

  • UserPunchApiRequestModel
屬性 型別 必填 預設值 說明
User UserModel V 使用者資訊
DateRange SearchDateRange V 查詢日期區間
QueryPunchHistoryType int V 查詢類型 (0:全部, 1:出勤, 2:外出)
TimeZoneId string V 時區 Id (ex: "Taipei Standard Time")

回傳結果

  • UserPunchInfoModel
屬性 型別 說明
CorpCode string 公司代號
Account string 帳號
EmployeeNo string 員工編號
PunchDate DateTimeOffset 打卡時間
PunchType int 0:上班, 1:下班
Location string 打卡地點

取得部門出勤刷卡紀錄 GetDeptUserPunch

金鑰權限需求: 打卡 > 打卡紀錄

命名空間: Ede.Uofx.OpenApi.Sdk.NetStd.Service

方法名稱: UofxService.EIP.Punch.GetDeptUserPunch

var result = await UofxService.EIP.Punch.GetDeptUserPunch(model);

輸入參數

  • DeptUserPunchApiRequestModel
屬性 型別 必填 預設值 說明
DeptCode string V 部門代碼
IncludeSubDept bool V 是否包含子部門
DateRange SearchDateRange V 查詢日期區間
QueryPunchHistoryType int V 查詢類型 (0:全部, 1:出勤, 2:外出)
TimeZoneId string V 時區 Id (ex: "Taipei Standard Time")

回傳結果

  • UserPunchInfoModel
屬性 型別 說明
CorpCode string 公司代號
Account string 帳號
EmployeeNo string 員工編號
PunchDate DateTimeOffset 打卡時間
PunchType int 0:上班, 1:下班
Location string 打卡地點