組織查詢
組織查詢¶
- 組織查詢的功能,能幫助您取得基本的人員清單與部門清單,協助清查即時的人員狀態,對於 HR 與其他主管部門有很大的幫助,因為也提供日期條件的檢索,所以理論上也能知道某一段時期的人員狀態。
輸入欄位說明¶
- ModuleCode :
- 請輸入
org
- 請輸入
- FeatureType :
- 查詢部門資料,請輸入
department - 查詢人員資料,請輸入
employee - 查詢部門與人員資料全部資料,無須輸入值
- 查詢部門資料,請輸入
- DataKey :
- 若FeatureType 沒有輸入值,即表示查詢部門與人員資料,無須輸入值
- 若FeatureType =
department,請輸入你所要取得部門的 [部門代號] - 若FeatureType =
employee,請輸入你所要取得人員的 [帳號]
- DataKey2 :
- 未使用,無須輸入值
- Status : 帳號狀態
- 若FeatureType 沒有輸入值,即表示查詢所有人員資料,無須輸入值
- 若FeatureType =
department,查詢 啟用 部門,請輸入1;查詢 停用 部門請輸入0 - 若FeatureType =
employee,查詢 啟用 帳號,請輸入1;查詢 停用 帳號請輸入0
- StartTime : 建檔日期
- 不過濾建檔日期,無須輸入值
- 取得申請時間在 [StartTime] 之後(含)的表單資料,請輸入[StartTime]
- EndTime :
- 不過濾申請時間,無須輸入值
- 取得申請時間在 [EndTime] 之前(含)的表單資料,請輸入[EndTime]
| 查詢功能 | ModuleCode | FeatureType | DataKey | DataKey2 | Status | StartTime | EndTime | 查詢結果 |
|---|---|---|---|---|---|---|---|---|
| 查詢所有部門與員工資訊 | org | [EMPTY] | [EMPTY] | [EMPTY] | [EMPTY] | [EMPTY] | [EMPTY] | department,employee |
| 查詢部門資訊 | org | [EMPTY] department |
[EMPTY] [departmentCode] |
[EMPTY] | [EMPTY] 0 => Disabled 1 => Enabled |
[EMPTY] [StartTime] |
[EMPTY] [EndTime] |
department |
| 查詢員工資訊 | org | [EMPTY] employee |
[EMPTY] [employeeCode] |
[EMPTY] | [EMPTY] 0 => Disabled 1 => Enabled |
[EMPTY] [StartTime] |
[EMPTY] [EndTime] |
employee |
Note
上述資料,標示為 [EMPTY] 代表為空字串,意義為不過濾欄位內容的意思Note
[StartTime] 與 [EndTime] 為 DateTime 的形式,其格式為yyyy/MM/dd HH:mm:ss(Ex: 2024/10/15 15:30:52)
Department Table Schema¶
- ParentCode (String)
上層部門代碼 - DepartmentCode (String)
部門代號,此欄位為單一分公司內的唯一值 - DepartmentName (String)
部門名稱 - DepartmentStatus (String)
部門的啟用狀態,1 代表啟用,0 代表已停用 - Remark (String)
備註
【 Department Table Example 】
| Paren Code | DepartmentCode | DepartmentName | DepartmentStatus | Remark |
|---|---|---|---|---|
| PRES | President | 1 | 總經理室 | |
| PRES | ADMIN | Administration | 1 | 行政部 |
| PRES | SECPOOL | Secretarial Pool | 1 | 秘書室 |
| PRES | HR | HR Department | 1 | 人力資源部 |
【 Structure diagram 】
Employee Table Schema¶
- Account (String)
帳號 - Name (String)
員工名稱 - DepartmentCode (String)
所隸屬的部門代碼 - Status (String)
員工資料的啟用狀態,1 代表啟用,0 代表停用
【 Employee Table Example 】
| Account | Name | DepartmentCode | Status |
|---|---|---|---|
| Johnny | Johnny | HR | 1 |
| Amy | Amy | HR | 1 |
| Kevin | Kevin | ADMIN | 1 |
| Sophia | Sophia | ADMIN | 1 |
| Candy | Candy | SECPOOL | 1 |
| Robert | Robert | PRES | 1 |
【 Structure diagram 】