POST api/Subcontracts/{subcontractId}/Npa/Query
Obtiene un listado paginado de NPAs aplicando los filtros indicados en la petición. Gets a paged list of NPAs applying the filters provided in the request.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| subcontractId |
Identificador del subcontrato sobre el que se realiza la consulta. Identifier of the subcontract to query against. |
integer |
Required |
Body Parameters
Petición de consulta con filtros, ordenación y paginación. Si es nula, se inicializa una instancia por defecto. Query request with filters, sorting and paging. If null, a default instance is created.
GetNpaListQueryRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | string |
None. |
|
| CommodityCode | string |
None. |
|
| Description | string |
None. |
|
| Discipline | string |
None. |
|
| EstimatedQuantity | Collection of decimal number |
None. |
|
| ProposedPrice | Collection of decimal number |
None. |
|
| ProposedSupplyPrice | Collection of decimal number |
None. |
|
| ProposedErectionPrice | Collection of decimal number |
None. |
|
| ReferenceElementDescription | string |
None. |
|
| ReferenceElementTypeId | ReferenceElementTypeId |
None. |
|
| Remarks | string |
None. |
|
| TypeId | NpaTypeId |
None. |
|
| StatusId | NpaStatusId |
None. |
|
| Page | Page |
None. |
|
| Orders | Collection of Order |
None. |
Request Formats
application/json, text/json
{
"code": "sample string 3",
"commodityCode": "sample string 4",
"description": "sample string 5",
"discipline": "sample string 6",
"estimatedQuantity": [
1.0,
1.0
],
"proposedPrice": [
1.0,
1.0
],
"proposedSupplyPrice": [
1.0,
1.0
],
"proposedErectionPrice": [
1.0,
1.0
],
"referenceElementDescription": "sample string 7",
"referenceElementTypeId": 1,
"remarks": "sample string 8",
"typeId": 1,
"statusId": 0,
"page": {
"number": 1,
"size": 2,
"skip": 0
},
"orders": [
{
"name": "sample string 1",
"descending": true
},
{
"name": "sample string 1",
"descending": true
}
]
}
text/html
{"code":"sample string 3","commodityCode":"sample string 4","description":"sample string 5","discipline":"sample string 6","estimatedQuantity":[1.0,1.0],"proposedPrice":[1.0,1.0],"proposedSupplyPrice":[1.0,1.0],"proposedErectionPrice":[1.0,1.0],"referenceElementDescription":"sample string 7","referenceElementTypeId":1,"remarks":"sample string 8","typeId":1,"statusId":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
<GetNpaListQueryRequest 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>
<Code xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.NpaAgg">sample string 3</Code>
<CommodityCode xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.NpaAgg">sample string 4</CommodityCode>
<Description xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.NpaAgg">sample string 5</Description>
<Discipline xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.NpaAgg">sample string 6</Discipline>
<EstimatedQuantity 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>
</EstimatedQuantity>
<ProposedErectionPrice 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>
</ProposedErectionPrice>
<ProposedPrice 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>
</ProposedPrice>
<ProposedSupplyPrice 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>
</ProposedSupplyPrice>
<ReferenceElementDescription xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.NpaAgg">sample string 7</ReferenceElementDescription>
<ReferenceElementTypeId xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.NpaAgg">Drawing</ReferenceElementTypeId>
<Remarks xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.NpaAgg">sample string 8</Remarks>
<StatusId xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.NpaAgg">Default</StatusId>
<TypeId xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.NpaAgg">TM</TypeId>
</GetNpaListQueryRequest>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
Respuesta HTTP con el resultado paginado envuelto en un . HTTP response containing the paged result wrapped in an .
ApiDataResultOfIPagedListOfNpaListDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | IPagedListOfNpaListDto |
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 not available.