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": "910d428c-62e9-4815-85f9-d60dce07f458", "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": "57593f2e-64b9-4873-9ae6-f990fae6f062", "ObjectID": "ab917802-f2e6-465c-bcce-6403baa9bf81", "ObjectType": "sample string 6" }, { "MaterialApplyID": "910d428c-62e9-4815-85f9-d60dce07f458", "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": "57593f2e-64b9-4873-9ae6-f990fae6f062", "ObjectID": "ab917802-f2e6-465c-bcce-6403baa9bf81", "ObjectType": "sample string 6" } ], "TID": "38b7b0e3-42b6-4a97-a71b-54f2d960e5f2", "activityID": "bd22d1bf-1d17-4159-ae1d-c1976fffb30e", "ActivityType": "13318651-294e-45f9-afb1-178bda67fea0", "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>13318651-294e-45f9-afb1-178bda67fea0</ActivityType> <TID>38b7b0e3-42b6-4a97-a71b-54f2d960e5f2</TID> <TotalCount>1</TotalCount> <TotalPrice>2</TotalPrice> <activityID>bd22d1bf-1d17-4159-ae1d-c1976fffb30e</activityID> <detail> <FeeMaterialApplyDtoItem> <ActivityObjectID>57593f2e-64b9-4873-9ae6-f990fae6f062</ActivityObjectID> <ActivityObjectType>sample string 5</ActivityObjectType> <Amount>1</Amount> <Count>1</Count> <MaterialApplyID>910d428c-62e9-4815-85f9-d60dce07f458</MaterialApplyID> <ObjectID>ab917802-f2e6-465c-bcce-6403baa9bf81</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>57593f2e-64b9-4873-9ae6-f990fae6f062</ActivityObjectID> <ActivityObjectType>sample string 5</ActivityObjectType> <Amount>1</Amount> <Count>1</Count> <MaterialApplyID>910d428c-62e9-4815-85f9-d60dce07f458</MaterialApplyID> <ObjectID>ab917802-f2e6-465c-bcce-6403baa9bf81</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>