POST
http://appapi.sunhouse.com.vn/api/KPI/CreateTaskAssignment?loginUser={loginUser}
Tạo công việc
Yêu cầu
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
loginUser |
người tạo |
string |
Required |
Body Parameters
công việc
TaskAssignment_ViewModelName | Description | Type | Additional information |
---|---|---|---|
SHTaskAssignDocuments | Collection of SHTaskAssignDocument_ViewModel |
None. |
|
SHTaskDeadlines | Collection of SHTaskDeadline_ViewModel |
None. |
|
SHProcessTaskLink | SHProcessTaskLink_ViewModel |
None. |
|
Id | string |
None. |
|
frkParentId | string |
None. |
|
IsAccepted | boolean |
None. |
|
ManagerUser | string |
None. |
|
ManagerFullName | string |
None. |
|
ManagerUserClone | string |
None. |
|
PerformUser | string |
None. |
|
PerformFullName | string |
None. |
|
FollowUser | string |
None. |
|
StartDate | date |
None. |
|
TaskGroup | string |
None. |
|
strStartDate | string |
None. |
|
TaskName | string |
None. |
|
TaskRequirement | string |
None. |
|
TaskPercentIndex | decimal number |
None. |
|
TaskStatus | string |
None. |
|
strTaskStatus | string |
None. |
|
IsCompleted | boolean |
None. |
|
IsFailed | boolean |
None. |
|
CompletedDate | date |
None. |
|
ViewType | string |
None. |
|
IsActive | boolean |
None. |
|
FunctionId | string |
None. |
|
ExamId | string |
None. |
|
ResponseNote | string |
None. |
|
allDay | boolean |
None. |
|
editable | boolean |
None. |
|
TaskType | string |
None. |
|
strTaskType | string |
None. |
|
EndDate | date |
None. |
|
CreateDate | date |
None. |
|
strCreateDate | string |
None. |
|
strEndDate | string |
None. |
|
StrPopEndDate | string |
None. |
|
TotalDays | decimal number |
None. |
|
LeftDays | decimal number |
None. |
|
disStartDate | string |
None. |
|
disCreateDate | string |
None. |
|
disEndDate | string |
None. |
|
CreateBy | string |
None. |
|
TaskRate | decimal number |
None. |
|
TaskRateNote | string |
None. |
|
RejectNote | string |
None. |
|
Priority | integer |
None. |
|
PriorityName | string |
None. |
|
IsDelay | boolean |
None. |
|
HasDelay | boolean |
None. |
|
IsWarningHasKPI | boolean |
None. |
|
IsRepeat | boolean |
None. |
|
RepeatType | string |
None. |
|
RepeatTo | date |
None. |
|
Approval | boolean |
None. |
|
AllowDelete | boolean |
None. |
|
AllowSuccess | boolean |
None. |
|
AllowUpdate | boolean |
None. |
|
RefId | string |
None. |
|
TaskTypeName | string |
None. |
|
IsWarning | boolean |
None. |
|
NeedConfirmDeadLine | boolean |
None. |
|
IsParent | boolean |
None. |
|
ProfilePicture | string |
None. |
|
Avatar | string |
None. |
|
AutoId | integer |
None. |
|
fullManagerUser | string |
None. |
|
fullPerformUser | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "fullManagerUser": "sample string 1", "fullPerformUser": "sample string 2", "SHTaskAssignDocuments": [ { "Id": "sample string 1", "TaskAssignmentId": "sample string 2", "DocumentPath": "sample string 3", "DocumentName": "sample string 4", "TypeDocument": "sample string 5", "CreateBy": "sample string 6", "CreateDate": "2024-10-30T19:11:11.4859682+07:00" }, { "Id": "sample string 1", "TaskAssignmentId": "sample string 2", "DocumentPath": "sample string 3", "DocumentName": "sample string 4", "TypeDocument": "sample string 5", "CreateBy": "sample string 6", "CreateDate": "2024-10-30T19:11:11.4859682+07:00" } ], "SHTaskDeadlines": [ { "Id": "sample string 1", "TaskAssignmentId": "sample string 2", "ToDate": "2024-10-30T19:11:11.4859682+07:00", "strToDate": "2024-10-30", "disToDate": "30/10/2024", "Reason": "sample string 4", "IsAuthorized": true, "CreateBy": "sample string 5", "CreateDate": "2024-10-30T19:11:11.4859682+07:00", "strCreateDate": "2024-10-30", "disCreateDate": "30/10/2024" }, { "Id": "sample string 1", "TaskAssignmentId": "sample string 2", "ToDate": "2024-10-30T19:11:11.4859682+07:00", "strToDate": "2024-10-30", "disToDate": "30/10/2024", "Reason": "sample string 4", "IsAuthorized": true, "CreateBy": "sample string 5", "CreateDate": "2024-10-30T19:11:11.4859682+07:00", "strCreateDate": "2024-10-30", "disCreateDate": "30/10/2024" } ], "SHProcessTaskLink": { "Id": "sample string 1", "ProcessTableName": "sample string 2", "ProcessId": "sample string 3", "TaskId": "sample string 4", "CreateDate": "2024-10-30T19:11:11.4859682+07:00", "CreateBy": "sample string 6" }, "Id": "sample string 1", "frkParentId": "sample string 2", "IsAccepted": true, "ManagerUser": "sample string 4", "ManagerFullName": "sample string 5", "ManagerUserClone": "sample string 6", "PerformUser": "sample string 7", "PerformFullName": "sample string 8", "FollowUser": "sample string 9", "StartDate": "2024-10-30T19:11:11.4859682+07:00", "TaskGroup": "sample string 11", "strStartDate": "2024-10-30", "TaskName": "sample string 12", "TaskRequirement": "sample string 13", "TaskPercentIndex": 14.1, "TaskStatus": "sample string 15", "strTaskStatus": "sample string 15", "IsCompleted": true, "IsFailed": true, "CompletedDate": "2024-10-30T19:11:11.501594+07:00", "ViewType": "sample string 18", "IsActive": true, "FunctionId": "sample string 20", "ExamId": "sample string 21", "ResponseNote": "sample string 22", "allDay": false, "editable": false, "TaskType": "sample string 24", "strTaskType": "Công việc", "EndDate": "2024-10-30T19:11:11.501594+07:00", "CreateDate": "2024-10-30T19:11:11.501594+07:00", "strCreateDate": "2024-10-30", "strEndDate": "2024-10-30", "StrPopEndDate": "30/10", "TotalDays": 0.0, "LeftDays": 1.0, "disStartDate": "30/10/2024", "disCreateDate": "30/10/24 19:11", "disEndDate": "30/10/2024", "CreateBy": "sample string 27", "TaskRate": 28.1, "TaskRateNote": "sample string 29", "RejectNote": "sample string 30", "Priority": 31, "PriorityName": "31", "IsDelay": false, "HasDelay": false, "IsWarningHasKPI": false, "IsRepeat": true, "RepeatType": "sample string 33", "RepeatTo": "2024-10-30T19:11:11.501594+07:00", "Approval": true, "AllowDelete": true, "AllowSuccess": true, "AllowUpdate": true, "RefId": "sample string 38", "TaskTypeName": "sample string 24", "IsWarning": false, "NeedConfirmDeadLine": true, "IsParent": true, "ProfilePicture": "sample string 41", "Avatar": "sample string 42", "AutoId": 43 }
application/xml, text/xml
Sample:
<TaskAssignment_ViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SH.KPI.Model"> <AllowDelete>true</AllowDelete> <AllowSuccess>true</AllowSuccess> <AllowUpdate>true</AllowUpdate> <Approval>true</Approval> <AutoId>43</AutoId> <Avatar>sample string 42</Avatar> <CompletedDate>2024-10-30T19:11:11.501594+07:00</CompletedDate> <CreateBy>sample string 27</CreateBy> <CreateDate>2024-10-30T19:11:11.501594+07:00</CreateDate> <EndDate>2024-10-30T19:11:11.501594+07:00</EndDate> <ExamId>sample string 21</ExamId> <FollowUser>sample string 9</FollowUser> <FunctionId>sample string 20</FunctionId> <Id>sample string 1</Id> <IsAccepted>true</IsAccepted> <IsActive>true</IsActive> <IsCompleted>true</IsCompleted> <IsFailed>true</IsFailed> <IsParent>true</IsParent> <IsRepeat>true</IsRepeat> <ManagerFullName>sample string 5</ManagerFullName> <ManagerUser>sample string 4</ManagerUser> <ManagerUserClone>sample string 6</ManagerUserClone> <NeedConfirmDeadLine>true</NeedConfirmDeadLine> <PerformFullName>sample string 8</PerformFullName> <PerformUser>sample string 7</PerformUser> <Priority>31</Priority> <ProfilePicture>sample string 41</ProfilePicture> <RefId>sample string 38</RefId> <RejectNote>sample string 30</RejectNote> <RepeatTo>2024-10-30T19:11:11.501594+07:00</RepeatTo> <RepeatType>sample string 33</RepeatType> <ResponseNote>sample string 22</ResponseNote> <StartDate>2024-10-30T19:11:11.4859682+07:00</StartDate> <TaskGroup>sample string 11</TaskGroup> <TaskName>sample string 12</TaskName> <TaskPercentIndex>14.1</TaskPercentIndex> <TaskRate>28.1</TaskRate> <TaskRateNote>sample string 29</TaskRateNote> <TaskRequirement>sample string 13</TaskRequirement> <TaskStatus>sample string 15</TaskStatus> <TaskType>sample string 24</TaskType> <ViewType>sample string 18</ViewType> <allDay>false</allDay> <frkParentId>sample string 2</frkParentId> <fullManagerUser>sample string 1</fullManagerUser> <fullPerformUser>sample string 2</fullPerformUser> <SHProcessTaskLink> <CreateBy>sample string 6</CreateBy> <CreateDate>2024-10-30T19:11:11.4859682+07:00</CreateDate> <Id>sample string 1</Id> <ProcessId>sample string 3</ProcessId> <ProcessTableName>sample string 2</ProcessTableName> <TaskId>sample string 4</TaskId> </SHProcessTaskLink> <SHTaskAssignDocuments> <SHTaskAssignDocument_ViewModel> <CreateBy>sample string 6</CreateBy> <CreateDate>2024-10-30T19:11:11.4859682+07:00</CreateDate> <DocumentName>sample string 4</DocumentName> <DocumentPath>sample string 3</DocumentPath> <Id>sample string 1</Id> <TaskAssignmentId>sample string 2</TaskAssignmentId> <TypeDocument>sample string 5</TypeDocument> </SHTaskAssignDocument_ViewModel> <SHTaskAssignDocument_ViewModel> <CreateBy>sample string 6</CreateBy> <CreateDate>2024-10-30T19:11:11.4859682+07:00</CreateDate> <DocumentName>sample string 4</DocumentName> <DocumentPath>sample string 3</DocumentPath> <Id>sample string 1</Id> <TaskAssignmentId>sample string 2</TaskAssignmentId> <TypeDocument>sample string 5</TypeDocument> </SHTaskAssignDocument_ViewModel> </SHTaskAssignDocuments> <SHTaskDeadlines> <SHTaskDeadline_ViewModel> <CreateBy>sample string 5</CreateBy> <CreateDate>2024-10-30T19:11:11.4859682+07:00</CreateDate> <Id>sample string 1</Id> <IsAuthorized>true</IsAuthorized> <Reason>sample string 4</Reason> <TaskAssignmentId>sample string 2</TaskAssignmentId> <ToDate>2024-10-30T19:11:11.4859682+07:00</ToDate> </SHTaskDeadline_ViewModel> <SHTaskDeadline_ViewModel> <CreateBy>sample string 5</CreateBy> <CreateDate>2024-10-30T19:11:11.4859682+07:00</CreateDate> <Id>sample string 1</Id> <IsAuthorized>true</IsAuthorized> <Reason>sample string 4</Reason> <TaskAssignmentId>sample string 2</TaskAssignmentId> <ToDate>2024-10-30T19:11:11.4859682+07:00</ToDate> </SHTaskDeadline_ViewModel> </SHTaskDeadlines> </TaskAssignment_ViewModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |