跳轉到

部門

部門 Department

建立部門 Create

金鑰權限需求: 組織 > 部門人員資料

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

方法名稱: UofxService.BASE.Department.Create

var result = await UofxService.BASE.Department.Create(model);

輸入參數

  • DepartmentCreateModel
屬性 型別 必填 預設值 說明
ParentCode string 父部門代碼
Code string V 部門代碼
DeptLevelCode string V 部門層級代碼
Name string V 部門名稱
Active bool false 是否啟用
Description string 部門描述

回傳結果

  • DepartmentViewModel
屬性 型別 說明
ParentCode string 父部門代碼
Code string 部門代碼
DeptLevelCode string 部門層級代碼
Name string 部門名稱
Description string 部門描述
Active bool 是否啟用
Seq int 順序

更新部門資訊 Update

金鑰權限需求: 組織 > 部門人員資料

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

方法名稱: UofxService.BASE.Department.Update

var result = await UofxService.BASE.Department.Update(model);

輸入參數

  • DepartmentUpdateModel
屬性 型別 必填 預設值 說明
OriginalCode string V 原始部門代碼
Code string V 現有部門代碼
Name string V 部門名稱
DeptLevelCode string V 部門層級代碼
Description string 部門描述

回傳結果

  • DepartmentViewModel
屬性 型別 說明
ParentCode string 父部門代碼
Code string 部門代碼
DeptLevelCode string 部門層級代碼
Name string 部門名稱
Description string 部門描述
Active bool 是否啟用
Seq int 順序

更新部門狀態 UpdateState

金鑰權限需求: 組織 > 部門人員資料

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

方法名稱: UofxService.BASE.Department.UpdateState

var result = await UofxService.BASE.Department.UpdateState(model);

輸入參數

  • DepartmentUpdateStatusModel
屬性 型別 必填 預設值 說明
Code string V 部門代碼
Active bool V 是否啟用

回傳結果

  • DepartmentViewModel
屬性 型別 說明
ParentCode string 父部門代碼
Code string 部門代碼
DeptLevelCode string 部門層級代碼
Name string 部門名稱
Description string 部門描述
Active bool 是否啟用
Seq int 順序

刪除部門 Remove

金鑰權限需求: 組織 > 部門人員資料

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

方法名稱: UofxService.BASE.Department.Remove

await UofxService.BASE.Department.Remove(model);

輸入參數

  • DepartmentRemoveModel
屬性 型別 必填 預設值 說明
Code string V 部門代碼

回傳結果

取得部門清單 Get

金鑰權限需求: 組織 > 部門人員資料

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

方法名稱: UofxService.BASE.Department.Get

var result = await UofxService.BASE.Department.Get(model);

輸入參數

  • DepartmentGetModel
屬性 型別 必填 預設值 說明
Code string 部門代碼
IncludeSubDept bool false 是否包含子部門

回傳結果

  • DepartmentViewModel
屬性 型別 說明
ParentCode string 父部門代碼
Code string 部門代碼
DeptLevelCode string 部門層級代碼
Name string 部門名稱
Description string 部門描述
Active bool 是否啟用
Seq int 順序

移動部門順序與階層 Move

金鑰權限需求: 組織 > 部門人員資料

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

方法名稱: UofxService.BASE.Department.Move

await UofxService.BASE.Department.Move(model);

輸入參數

  • DepartmentMoveModel
屬性 型別 必填 預設值 說明
Code string V 部門代碼
ParentCode string 移動到該部門之下
Seq int V 排序

回傳結果

取得部門成員 GetEmployee

金鑰權限需求: 組織 > 部門人員資料

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

方法名稱: UofxService.BASE.Department.GetEmployee

var result = await UofxService.BASE.Department.GetEmployee(model);

輸入參數

  • DepartmentGetEmployeeModel
屬性 型別 必填 預設值 說明
Code string 部門代碼
IncludeSubDept bool false 是否包含子部門

回傳結果

  • EmployeeInfoModel
屬性 型別 說明
Account string 帳號
Name string 中文名稱
EnglishName string 英文名稱
EmployeeNumber string 員工編號
BusinessCard string 名片職稱
Gender string 性別
BirthDate DateTime? 生日
IdCardNumber string 身分證字號
Enabled bool 啟用
Locked bool 鎖定
HireDate DateTime? 到職日
ResignationDate DateTime? 離職日
PhoneNumber string 行動電話
Email string 主要信箱
EmailEx string 次要信箱
DeptCode string 部門代碼

部門批次處理 Batch

移動部門順序與階層,並變更狀態 MoveAndState

金鑰權限需求: 組織 > 部門人員資料

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

方法名稱: UofxService.BASE.Department.Batch.MoveAndState

var result = await UofxService.BASE.Department.Batch.MoveAndState(model);

輸入參數

  • DepartmentBatchMoveRequestModel
屬性 型別 必填 預設值 說明
BatchMove IEnumerable<DeptBatchMoveModel> V 批次移動的部門清單
  • DeptBatchMoveModel
屬性 型別 必填 預設值 說明
ParentCode string 父部門代碼
Code string V 部門代碼
Active bool true 是否啟用
Seq int V 順序

回傳結果

  • DepartmentBatchMoveResultModel
屬性 型別 說明
EnableDept List<string> 被啟用的部門代碼清單
DisableDept List<string> 被停用的部門代碼清單
DisableEmplOfAccount List<string> 被停用的使用者帳號清單
DisableEmplOfEmployeeNumber List<string> 被停用的使用者員編清單
RemoveSubDeptEmpl List<RomoveSubDeptEmplModel> 被移除兼任部門的使用者清單
  • RomoveSubDeptEmplModel
屬性 型別 說明
Account string 使用者帳號
EmplNum string 使用者員編
DeptCode string 部門代碼

部門主管 Manager

取得部門主管 Get

金鑰權限需求: 組織 > 部門人員資料

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

方法名稱: UofxService.BASE.Department.Manager.Get

var result = await UofxService.BASE.Department.Manager.Get(model);

輸入參數

  • DeptManagerModel
屬性 型別 必填 預設值 說明
Code string V 部門代碼

回傳結果

  • EmployeeInfoModel
屬性 型別 說明
Account string 帳號
Name string 中文名稱
EnglishName string 英文名稱
EmployeeNumber string 員工編號
BusinessCard string 名片職稱
Gender string 性別
BirthDate DateTime? 生日
IdCardNumber string 身份證字號
Enabled bool 啟用
Locked bool 鎖定
HireDate DateTime? 到職日
ResignationDate DateTime? 離職日
PhoneNumber string 行動電話
Email string 主要信箱
EmailEx string 次要信箱
DeptCode string 部門代碼

設定部門主管 Set

金鑰權限需求: 組織 > 部門人員資料

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

方法名稱: UofxService.BASE.Department.Manager.Set

await UofxService.BASE.Department.Manager.Set(model);

輸入參數

  • DeptSetManagerModel
屬性 型別 必填 預設值 說明
Code string V 部門代碼
Manager UserModel V 主管資訊

回傳結果

移除部門主管 Remove

金鑰權限需求: 組織 > 部門人員資料

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

方法名稱: UofxService.BASE.Department.Manager.Remove

await UofxService.BASE.Department.Manager.Remove(model);

輸入參數

  • DeptRemoveManagerModel
屬性 型別 必填 預設值 說明
Code string V 部門代碼

回傳結果