POST Api/Orders/ExportToPdf

Eksportuje wyniki wyszukiwania do pliku PDF (pomija stronicowanie)

Request Information

URI Parameters

None.

Body Parameters

ustawienia filtrowania i sortowania wyników

OrderFilter
NameDescriptionTypeAdditional information
TextFilter

Filtrowanie w zależności od tekstu. Jeśli null to brak filtrowania.

string

None.

SortOrder

Określa sposób sortowania wyników

OrderSortEnum

Required

OrganizationalUnitId

Filtruje listę wyników według identyfikatora obiektu OrganizationalUnit. Jeśli null to filtr jest pomijany.

integer

None.

CountryId

Filtruje listę wyników według identyfikatora obiektu Country. Jeśli null to filtr jest pomijany.

integer

None.

ScoffReasonId

Filtruje listę wyników według identyfikatora obiektu ScoffReason. Jeśli null to filtr jest pomijany.

integer

None.

StartDate

date

None.

EndDate

date

None.

ShiftStates

Collection of integer

None.

WorkPositions

Collection of integer

None.

Services

Collection of integer

None.

ShowPlanned

boolean

None.

ShowScoffs

boolean

None.

ShowTrainings

boolean

None.

HideCanceled

boolean

None.

HideEnded

boolean

None.

HideCompleted

boolean

None.

ItemsPerPage

Ilość obiektów na stronę

integer

None.

CurrentPage

Obecna strona

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "textFilter": "sample string 1",
  "sortOrder": 0,
  "organizationalUnitId": 1,
  "countryId": 1,
  "scoffReasonId": 1,
  "startDate": "2024-05-18T07:25:17.1288059+00:00",
  "endDate": "2024-05-18T07:25:17.1288059+00:00",
  "shiftStates": [
    1,
    2
  ],
  "workPositions": [
    1,
    2
  ],
  "services": [
    1,
    2
  ],
  "showPlanned": true,
  "showScoffs": true,
  "showTrainings": true,
  "hideCanceled": true,
  "hideEnded": true,
  "hideCompleted": true,
  "itemsPerPage": 2,
  "currentPage": 3
}

multipart/form-data

Sample:
{"textFilter":"sample string 1","sortOrder":0,"organizationalUnitId":1,"countryId":1,"scoffReasonId":1,"startDate":"2024-05-18T07:25:17.1288059+00:00","endDate":"2024-05-18T07:25:17.1288059+00:00","shiftStates":[1,2],"workPositions":[1,2],"services":[1,2],"showPlanned":true,"showScoffs":true,"showTrainings":true,"hideCanceled":true,"hideEnded":true,"hideCompleted":true,"itemsPerPage":2,"currentPage":3}

application/xml, text/xml

Sample:
<OrderFilter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ItemsPerPage>2</ItemsPerPage>
  <CurrentPage>3</CurrentPage>
  <TextFilter>sample string 1</TextFilter>
  <SortOrder>OrderIdAsc</SortOrder>
  <OrganizationalUnitId>1</OrganizationalUnitId>
  <CountryId>1</CountryId>
  <ScoffReasonId>1</ScoffReasonId>
  <StartDate />
  <EndDate />
  <ShiftStates>
    <int>1</int>
    <int>2</int>
  </ShiftStates>
  <WorkPositions>
    <int>1</int>
    <int>2</int>
  </WorkPositions>
  <Services>
    <int>1</int>
    <int>2</int>
  </Services>
  <ShowPlanned>true</ShowPlanned>
  <ShowScoffs>true</ShowScoffs>
  <ShowTrainings>true</ShowTrainings>
  <HideCanceled>true</HideCanceled>
  <HideEnded>true</HideEnded>
  <HideCompleted>true</HideCompleted>
</OrderFilter>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

wygenerowany plik PDF z danymi

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.