POST api/Subcontracts/{subcontractId}/TMPriceList/SelectableNpaList
Get selectable NPA list for TMPriceList
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| subcontractId | integer |
Required |
Body Parameters
GetSelectableNpaListQueryRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| SectionId | integer |
None. |
|
| NpaCode | string |
None. |
|
| CommodityCode | string |
None. |
|
| CommodityDescription | string |
None. |
|
| MeasurementUnit | string |
None. |
|
| SupplyPrice | Collection of decimal number |
None. |
|
| ErectionPrice | Collection of decimal number |
None. |
|
| BothPrice | Collection of decimal number |
None. |
|
| Page | Page |
None. |
|
| Orders | Collection of Order |
None. |
Request Formats
application/json, text/json
Sample:
{
"sectionId": 1,
"npaCode": "sample string 2",
"commodityCode": "sample string 3",
"commodityDescription": "sample string 4",
"measurementUnit": "sample string 5",
"supplyPrice": [
1.0,
1.0
],
"erectionPrice": [
1.0,
1.0
],
"bothPrice": [
1.0,
1.0
],
"page": {
"number": 1,
"size": 2,
"skip": 0
},
"orders": [
{
"name": "sample string 1",
"descending": true
},
{
"name": "sample string 1",
"descending": true
}
]
}
text/html
Sample:
{"sectionId":1,"npaCode":"sample string 2","commodityCode":"sample string 3","commodityDescription":"sample string 4","measurementUnit":"sample string 5","supplyPrice":[1.0,1.0],"erectionPrice":[1.0,1.0],"bothPrice":[1.0,1.0],"page":{"number":1,"size":2,"skip":0},"orders":[{"name":"sample string 1","descending":true},{"name":"sample string 1","descending":true}]}
application/xml, text/xml
Sample:
<GetSelectableNpaListQueryRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.AppServices.NpaAgg.QueryRequest">
<Orders xmlns:d2p1="http://schemas.datacontract.org/2004/07/TR.eSAM.Application.Base.SortAndPage.Entities" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.Application.Base.Dtos">
<d2p1:Order>
<d2p1:Descending>true</d2p1:Descending>
<d2p1:Name>sample string 1</d2p1:Name>
</d2p1:Order>
<d2p1:Order>
<d2p1:Descending>true</d2p1:Descending>
<d2p1:Name>sample string 1</d2p1:Name>
</d2p1:Order>
</Orders>
<Page xmlns:d2p1="http://schemas.datacontract.org/2004/07/TR.eSAM.Application.Base.SortAndPage.Entities" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.Application.Base.Dtos">
<d2p1:Number>1</d2p1:Number>
<d2p1:Size>2</d2p1:Size>
</Page>
<BothPrice xmlns:d2p1="http://schemas.datacontract.org/2004/07/System" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.NpaAgg">
<d2p1:decimal>1</d2p1:decimal>
<d2p1:decimal>1</d2p1:decimal>
</BothPrice>
<CommodityCode xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.NpaAgg">sample string 3</CommodityCode>
<CommodityDescription xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.NpaAgg">sample string 4</CommodityDescription>
<ErectionPrice xmlns:d2p1="http://schemas.datacontract.org/2004/07/System" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.NpaAgg">
<d2p1:decimal>1</d2p1:decimal>
<d2p1:decimal>1</d2p1:decimal>
</ErectionPrice>
<MeasurementUnit xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.NpaAgg">sample string 5</MeasurementUnit>
<NpaCode xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.NpaAgg">sample string 2</NpaCode>
<SectionId xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.NpaAgg">1</SectionId>
<SupplyPrice xmlns:d2p1="http://schemas.datacontract.org/2004/07/System" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.NpaAgg">
<d2p1:decimal>1</d2p1:decimal>
<d2p1:decimal>1</d2p1:decimal>
</SupplyPrice>
</GetSelectableNpaListQueryRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiDataResultOfIPagedListOfSelectableNpaListDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | IPagedListOfSelectableNpaListDto |
None. |
|
| Success | boolean |
None. |
|
| Message | string |
None. |
|
| Errors | Collection of CustomError |
None. |
|
| Warnings | Collection of string |
None. |
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.