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
FeeMaterialApplyDtoName | 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": "2d5f9d7e-1f4a-4f27-b96d-40acb916b431", "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": "6e909210-7dd0-4f81-bba8-fa93438c4f94", "ObjectID": "6c5ae611-e456-4db3-883c-a0961faf9a78", "ObjectType": "sample string 6" }, { "MaterialApplyID": "2d5f9d7e-1f4a-4f27-b96d-40acb916b431", "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": "6e909210-7dd0-4f81-bba8-fa93438c4f94", "ObjectID": "6c5ae611-e456-4db3-883c-a0961faf9a78", "ObjectType": "sample string 6" } ], "TID": "aea497fb-1691-4991-a65e-b5abefee1592", "activityID": "e4bdb7ac-7f7c-4223-a1d3-c7696e2d7af3", "ActivityType": "ad5a78bf-7913-49b1-841e-483adfb71e45", "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>ad5a78bf-7913-49b1-841e-483adfb71e45</ActivityType> <TID>aea497fb-1691-4991-a65e-b5abefee1592</TID> <TotalCount>1</TotalCount> <TotalPrice>2</TotalPrice> <activityID>e4bdb7ac-7f7c-4223-a1d3-c7696e2d7af3</activityID> <detail> <FeeMaterialApplyDtoItem> <ActivityObjectID>6e909210-7dd0-4f81-bba8-fa93438c4f94</ActivityObjectID> <ActivityObjectType>sample string 5</ActivityObjectType> <Amount>1</Amount> <Count>1</Count> <MaterialApplyID>2d5f9d7e-1f4a-4f27-b96d-40acb916b431</MaterialApplyID> <ObjectID>6c5ae611-e456-4db3-883c-a0961faf9a78</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>6e909210-7dd0-4f81-bba8-fa93438c4f94</ActivityObjectID> <ActivityObjectType>sample string 5</ActivityObjectType> <Amount>1</Amount> <Count>1</Count> <MaterialApplyID>2d5f9d7e-1f4a-4f27-b96d-40acb916b431</MaterialApplyID> <ObjectID>6c5ae611-e456-4db3-883c-a0961faf9a78</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
ResultModelOfBooleanName | 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>