POST api/WorkTaskTemporary/{WorkTaskID}/CPRItemBelong?DomainId={DomainId}&AccountId={AccountId}&PersonId={PersonId}

规则设置 新增

Request Information

URI Parameters

NameDescriptionTypeAdditional information
DomainId

域Id

globally unique identifier

None.

AccountId

账户Id

globally unique identifier

None.

PersonId

人员Id

globally unique identifier

None.

WorkTaskID

globally unique identifier

Required

Body Parameters

CPRItemBelongDTO
NameDescriptionTypeAdditional information
TID

globally unique identifier

None.

ItemBelongName

string

None.

IsCombo

boolean

None.

WorkTaskID

globally unique identifier

None.

Sequence

integer

None.

FormulaMode

string

None.

CPRItemID

globally unique identifier

None.

ItemValue

string

None.

CPRItemName

string

None.

CPRItemBelongIDs

Collection of globally unique identifier

None.

CPRItemBelong_CPRItemTID

globally unique identifier

None.

GroupName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "TID": "c347691c-1dc0-4c20-816b-39abf8835da7",
  "ItemBelongName": "sample string 1",
  "IsCombo": true,
  "WorkTaskID": "262f1518-f306-419c-94ab-12bdda523cfa",
  "Sequence": 1,
  "FormulaMode": "sample string 2",
  "CPRItemID": "6a6c5771-1346-4d9f-97b7-965c27ed9f41",
  "ItemValue": "sample string 3",
  "CPRItemName": "sample string 4",
  "CPRItemBelongIDs": [
    "79214d0f-3ce9-4ab2-a0f9-5d3bf16f9cfa",
    "6653e200-9257-4f71-be24-5408a0f2c3a6"
  ],
  "CPRItemBelong_CPRItemTID": "1d10a6c0-b5c4-4580-b7be-e188c108d35b",
  "GroupName": "sample string 5"
}

application/xml, text/xml

Sample:
<CPRItemBelongDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.Entity.DTO.WorkTaskTemporary">
  <CPRItemBelongIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>79214d0f-3ce9-4ab2-a0f9-5d3bf16f9cfa</d2p1:guid>
    <d2p1:guid>6653e200-9257-4f71-be24-5408a0f2c3a6</d2p1:guid>
  </CPRItemBelongIDs>
  <CPRItemBelong_CPRItemTID>1d10a6c0-b5c4-4580-b7be-e188c108d35b</CPRItemBelong_CPRItemTID>
  <CPRItemID>6a6c5771-1346-4d9f-97b7-965c27ed9f41</CPRItemID>
  <CPRItemName>sample string 4</CPRItemName>
  <FormulaMode>sample string 2</FormulaMode>
  <GroupName>sample string 5</GroupName>
  <IsCombo>true</IsCombo>
  <ItemBelongName>sample string 1</ItemBelongName>
  <ItemValue>sample string 3</ItemValue>
  <Sequence>1</Sequence>
  <TID>c347691c-1dc0-4c20-816b-39abf8835da7</TID>
  <WorkTaskID>262f1518-f306-419c-94ab-12bdda523cfa</WorkTaskID>
</CPRItemBelongDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResultModelOfListOfCPRItemBelongDTO
NameDescriptionTypeAdditional information
Code

ReturnCode

None.

Message

string

None.

Data

Collection of CPRItemBelongDTO

None.

Response Formats

application/json, text/json

Sample:
{
  "Code": 200,
  "Message": "sample string 1",
  "Data": [
    {
      "TID": "16c76da6-df72-48b7-815b-d1ed84897468",
      "ItemBelongName": "sample string 1",
      "IsCombo": true,
      "WorkTaskID": "96fe3ce6-144b-41ba-a01d-f7708e7ed54e",
      "Sequence": 1,
      "FormulaMode": "sample string 2",
      "CPRItemID": "b5f78948-e355-4123-a355-8b600cb1ab91",
      "ItemValue": "sample string 3",
      "CPRItemName": "sample string 4",
      "CPRItemBelongIDs": [
        "3ee5d727-4701-4e21-9a48-88beaaf9b39c",
        "1c95ed5a-0a5d-4a7c-bb67-2f534894d228"
      ],
      "CPRItemBelong_CPRItemTID": "1263e763-6cf2-4608-8389-2b102c2524ab",
      "GroupName": "sample string 5"
    },
    {
      "TID": "16c76da6-df72-48b7-815b-d1ed84897468",
      "ItemBelongName": "sample string 1",
      "IsCombo": true,
      "WorkTaskID": "96fe3ce6-144b-41ba-a01d-f7708e7ed54e",
      "Sequence": 1,
      "FormulaMode": "sample string 2",
      "CPRItemID": "b5f78948-e355-4123-a355-8b600cb1ab91",
      "ItemValue": "sample string 3",
      "CPRItemName": "sample string 4",
      "CPRItemBelongIDs": [
        "3ee5d727-4701-4e21-9a48-88beaaf9b39c",
        "1c95ed5a-0a5d-4a7c-bb67-2f534894d228"
      ],
      "CPRItemBelong_CPRItemTID": "1263e763-6cf2-4608-8389-2b102c2524ab",
      "GroupName": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<ResultModelOfArrayOfCPRItemBelongDTOYWEC5V_S_S xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.Utility">
  <Code>Success</Code>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/JT.VSFA.Entity.DTO.WorkTaskTemporary">
    <d2p1:CPRItemBelongDTO>
      <d2p1:CPRItemBelongIDs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:guid>3ee5d727-4701-4e21-9a48-88beaaf9b39c</d4p1:guid>
        <d4p1:guid>1c95ed5a-0a5d-4a7c-bb67-2f534894d228</d4p1:guid>
      </d2p1:CPRItemBelongIDs>
      <d2p1:CPRItemBelong_CPRItemTID>1263e763-6cf2-4608-8389-2b102c2524ab</d2p1:CPRItemBelong_CPRItemTID>
      <d2p1:CPRItemID>b5f78948-e355-4123-a355-8b600cb1ab91</d2p1:CPRItemID>
      <d2p1:CPRItemName>sample string 4</d2p1:CPRItemName>
      <d2p1:FormulaMode>sample string 2</d2p1:FormulaMode>
      <d2p1:GroupName>sample string 5</d2p1:GroupName>
      <d2p1:IsCombo>true</d2p1:IsCombo>
      <d2p1:ItemBelongName>sample string 1</d2p1:ItemBelongName>
      <d2p1:ItemValue>sample string 3</d2p1:ItemValue>
      <d2p1:Sequence>1</d2p1:Sequence>
      <d2p1:TID>16c76da6-df72-48b7-815b-d1ed84897468</d2p1:TID>
      <d2p1:WorkTaskID>96fe3ce6-144b-41ba-a01d-f7708e7ed54e</d2p1:WorkTaskID>
    </d2p1:CPRItemBelongDTO>
    <d2p1:CPRItemBelongDTO>
      <d2p1:CPRItemBelongIDs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:guid>3ee5d727-4701-4e21-9a48-88beaaf9b39c</d4p1:guid>
        <d4p1:guid>1c95ed5a-0a5d-4a7c-bb67-2f534894d228</d4p1:guid>
      </d2p1:CPRItemBelongIDs>
      <d2p1:CPRItemBelong_CPRItemTID>1263e763-6cf2-4608-8389-2b102c2524ab</d2p1:CPRItemBelong_CPRItemTID>
      <d2p1:CPRItemID>b5f78948-e355-4123-a355-8b600cb1ab91</d2p1:CPRItemID>
      <d2p1:CPRItemName>sample string 4</d2p1:CPRItemName>
      <d2p1:FormulaMode>sample string 2</d2p1:FormulaMode>
      <d2p1:GroupName>sample string 5</d2p1:GroupName>
      <d2p1:IsCombo>true</d2p1:IsCombo>
      <d2p1:ItemBelongName>sample string 1</d2p1:ItemBelongName>
      <d2p1:ItemValue>sample string 3</d2p1:ItemValue>
      <d2p1:Sequence>1</d2p1:Sequence>
      <d2p1:TID>16c76da6-df72-48b7-815b-d1ed84897468</d2p1:TID>
      <d2p1:WorkTaskID>96fe3ce6-144b-41ba-a01d-f7708e7ed54e</d2p1:WorkTaskID>
    </d2p1:CPRItemBelongDTO>
  </Data>
  <Message>sample string 1</Message>
</ResultModelOfArrayOfCPRItemBelongDTOYWEC5V_S_S>