Class UofxService.BASE.JobTitle
職稱
Inheritance
System.Object
UofxService.BASE.JobTitle
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Ede.Uofx.PubApi.Sdk.NetStd.Service
Assembly: Ede.Uofx.PubApi.Sdk.NetStd.dll
Syntax
public static class JobTitle
Methods
View SourceCreate(JobTitleViewModel)
建立工作職稱。
Declaration
public static async Task<bool> Create(JobTitleViewModel model)
Parameters
Type | Name | Description |
---|---|---|
JobTitleViewModel | model | 工作職稱的檢視模型。 |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> | 表示建立是否成功的布林值。 |
Delete(JobTitleDeleteModel)
刪除工作職稱。
Declaration
public static async Task<bool> Delete(JobTitleDeleteModel model)
Parameters
Type | Name | Description |
---|---|---|
JobTitleDeleteModel | model | 要刪除的工作職稱模型。 |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> | 表示是否成功刪除的布林值。 |
Get()
取得職稱
Declaration
public static async Task<IEnumerable<JobTitleViewModel>> Get()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<JobTitleViewModel>> | 取得所有職稱的資料:公司代號、層級、代碼、職稱、狀態 |
Get(String)
取得職稱
Declaration
[Obsolete("企業代碼不須給值,請改用 Get()")]
public static async Task<IEnumerable<JobTitleViewModel>> Get(string corpCode)
Parameters
Type | Name | Description |
---|---|---|
System.String | corpCode | 公司代號 |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<JobTitleViewModel>> | 取得所有職稱的資料:公司代號、層級、代碼、職稱、狀態 |
Update(JobTitleUpdateModel)
更新職稱。
Declaration
public static async Task<bool> Update(JobTitleUpdateModel model)
Parameters
Type | Name | Description |
---|---|---|
JobTitleUpdateModel | model | 職稱更新模型。 |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> | 表示非同步操作的任務。任務結果包含一個布林值,指示更新是否成功。 |
UpdateSeq(JobTitleUpdateSeqModel)
更新工作職稱的順序。
Declaration
public static async Task<bool> UpdateSeq(JobTitleUpdateSeqModel model)
Parameters
Type | Name | Description |
---|---|---|
JobTitleUpdateSeqModel | model | 要更新的工作職稱順序模型。 |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> | 表示是否成功更新工作職稱順序的布林值。 |
UpdateStatus(JobTitleUpdateStatusModel)
更新職稱狀態。
Declaration
public static async Task<bool> UpdateStatus(JobTitleUpdateStatusModel model)
Parameters
Type | Name | Description |
---|---|---|
JobTitleUpdateStatusModel | model | 職稱更新狀態模型。 |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> | 表示是否成功更新職稱狀態的布林值。 |