POST api/Subcontracts/{subcontractId}/Npa/Query/Export
Exporta el listado de NPAs resultante de aplicar filtros, ordenación y/o paginación (forzando la exportación sin paginación). Exports the NPA list resulting from applying filters, sorting and/or paging (forcing export without paging).
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| subcontractId |
Identificador del subcontrato sobre el que se realiza la exportación. Identifier of the subcontract to export from. |
integer |
Required |
Body Parameters
Petición de exportación con filtros; si es nula, se inicializa una instancia por defecto. Export request with filters; if null, a default instance is created.
GetNpaListQueryExportRequest| 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
<GetNpaListQueryExportRequest 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>
</GetNpaListQueryExportRequest>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
Resultado HTTP con el fichero exportado como contenido binario. HTTP result containing the exported file as binary content.
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |