POST api/FeeMaterial/CreateFeeMaterial?DomainId={DomainId}&AccountId={AccountId}&PersonId={PersonId}
创建/修改物料申领
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| DomainId |
域Id |
globally unique identifier |
None. |
| AccountId |
账户Id |
globally unique identifier |
None. |
| PersonId |
人员Id |
globally unique identifier |
None. |
Body Parameters
FeeMaterialApplyDto| Name | Description | Type | Additional information |
|---|---|---|---|
| TID | globally unique identifier |
None. |
|
| activityID | globally unique identifier |
None. |
|
| ActivityType | globally unique identifier |
None. |
|
| TotalCount | decimal number |
None. |
|
| TotalPrice | decimal number |
None. |
|
| detail | Collection of FeeMaterialApplyDtoItem |
None. |
Request Formats
application/json, text/json
Sample:
{
"detail": [
{
"MaterialApplyID": "328bbc1c-122a-4b80-a5e4-ffa8cad35796",
"Count": 1.0,
"Price": 1.0,
"Amount": 1.0,
"Sequence": 1,
"StandardPrice": 1.0,
"ProductName": "sample string 2",
"ProductNumber": "sample string 3",
"ProductUnit": "sample string 4",
"ActivityObjectType": "sample string 5",
"ActivityObjectID": "c2cbcf98-89d6-48e0-8dd0-8f0d2120b665",
"ObjectID": "3b2e1bb8-eec1-4b4d-99e7-939624ee5007",
"ObjectType": "sample string 6"
},
{
"MaterialApplyID": "328bbc1c-122a-4b80-a5e4-ffa8cad35796",
"Count": 1.0,
"Price": 1.0,
"Amount": 1.0,
"Sequence": 1,
"StandardPrice": 1.0,
"ProductName": "sample string 2",
"ProductNumber": "sample string 3",
"ProductUnit": "sample string 4",
"ActivityObjectType": "sample string 5",
"ActivityObjectID": "c2cbcf98-89d6-48e0-8dd0-8f0d2120b665",
"ObjectID": "3b2e1bb8-eec1-4b4d-99e7-939624ee5007",
"ObjectType": "sample string 6"
}
],
"TID": "37001c1e-47ac-47c1-a2b9-0f656ee15d56",
"activityID": "ff214180-bfb3-40f4-b1c9-e5a4a1912023",
"ActivityType": "bc9caa36-4928-4195-ba80-544de7702ba6",
"TotalCount": 1.0,
"TotalPrice": 2.0
}
application/xml, text/xml
Sample:
<FeeMaterialApplyDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.Entity.DTO.ApiDTO">
<ActivityType>bc9caa36-4928-4195-ba80-544de7702ba6</ActivityType>
<TID>37001c1e-47ac-47c1-a2b9-0f656ee15d56</TID>
<TotalCount>1</TotalCount>
<TotalPrice>2</TotalPrice>
<activityID>ff214180-bfb3-40f4-b1c9-e5a4a1912023</activityID>
<detail>
<FeeMaterialApplyDtoItem>
<ActivityObjectID>c2cbcf98-89d6-48e0-8dd0-8f0d2120b665</ActivityObjectID>
<ActivityObjectType>sample string 5</ActivityObjectType>
<Amount>1</Amount>
<Count>1</Count>
<MaterialApplyID>328bbc1c-122a-4b80-a5e4-ffa8cad35796</MaterialApplyID>
<ObjectID>3b2e1bb8-eec1-4b4d-99e7-939624ee5007</ObjectID>
<ObjectType>sample string 6</ObjectType>
<Price>1</Price>
<ProductName>sample string 2</ProductName>
<ProductNumber>sample string 3</ProductNumber>
<ProductUnit>sample string 4</ProductUnit>
<Sequence>1</Sequence>
<StandardPrice>1</StandardPrice>
</FeeMaterialApplyDtoItem>
<FeeMaterialApplyDtoItem>
<ActivityObjectID>c2cbcf98-89d6-48e0-8dd0-8f0d2120b665</ActivityObjectID>
<ActivityObjectType>sample string 5</ActivityObjectType>
<Amount>1</Amount>
<Count>1</Count>
<MaterialApplyID>328bbc1c-122a-4b80-a5e4-ffa8cad35796</MaterialApplyID>
<ObjectID>3b2e1bb8-eec1-4b4d-99e7-939624ee5007</ObjectID>
<ObjectType>sample string 6</ObjectType>
<Price>1</Price>
<ProductName>sample string 2</ProductName>
<ProductNumber>sample string 3</ProductNumber>
<ProductUnit>sample string 4</ProductUnit>
<Sequence>1</Sequence>
<StandardPrice>1</StandardPrice>
</FeeMaterialApplyDtoItem>
</detail>
</FeeMaterialApplyDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultModelOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | ReturnCode |
None. |
|
| Message | string |
None. |
|
| Data | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Code": 200,
"Message": "sample string 1",
"Data": true
}
application/xml, text/xml
Sample:
<ResultModelOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.Utility"> <Code>Success</Code> <Data>true</Data> <Message>sample string 1</Message> </ResultModelOfboolean>