EventCalendarGetAll
(Różnice między wersjami)
Linia 14: | Linia 14: | ||
<Offset>1</Offset> | <Offset>1</Offset> | ||
<CustomerID>4</CustomerID> <!-- opcjonalne --> | <CustomerID>4</CustomerID> <!-- opcjonalne --> | ||
− | < | + | <UserID>1</UserID> <!-- opcjonalne --> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
<Closed>false</Closed> <!-- opcjonalne --> | <Closed>false</Closed> <!-- opcjonalne --> | ||
− | |||
− | |||
− | |||
</EventCalendarGetAll> | </EventCalendarGetAll> | ||
</Request> | </Request> | ||
Linia 29: | Linia 22: | ||
</pre> | </pre> | ||
− | Odpowiedź: | + | Odpowiedź gdy Closed = true: |
<pre class="brush:xml"> | <pre class="brush:xml"> | ||
//BEGIN// | //BEGIN// | ||
Linia 39: | Linia 32: | ||
<Calendar> | <Calendar> | ||
<ID>4</ID> | <ID>4</ID> | ||
− | <CustomerID>8</CustomerID> | + | <CustomerID>8</CustomerID> |
− | + | ||
<ActionTypeID>1</ActionTypeID> <!-- EventCalendarActionTypeGetAll --> | <ActionTypeID>1</ActionTypeID> <!-- EventCalendarActionTypeGetAll --> | ||
<Priority>2</Priority> | <Priority>2</Priority> | ||
− | |||
<Private>false</Private> | <Private>false</Private> | ||
+ | <CreateDate>2012-05-02 16:42:00</CreateDate> | ||
+ | <ActionName>Demontaż</ActionName> | ||
+ | <Locked>false</Locked> | ||
+ | <CustomerName>Kowalski Jan</CustomerName> | ||
+ | <Miasto>Warszawa</Miasto> | ||
+ | <Ulica>Długa</Ulica> | ||
+ | <Numer>2</Numer> | ||
<CloseID>2</CloseID> <!-- id operatora ktory zamknal notke --> | <CloseID>2</CloseID> <!-- id operatora ktory zamknal notke --> | ||
− | |||
− | |||
<StartDate>2012-05-04 16:12:00</StartDate> | <StartDate>2012-05-04 16:12:00</StartDate> | ||
− | <StopDate>2012-05-04 16: | + | <StopDate>2012-05-04 16:12:00</StopDate> |
− | < | + | <Desc>opis</Desc> |
</Calendar> | </Calendar> | ||
<Calendar> | <Calendar> | ||
<ID>5</ID> | <ID>5</ID> | ||
<CustomerID>8</CustomerID> | <CustomerID>8</CustomerID> | ||
− | |||
<ActionTypeID>1</ActionTypeID> <!-- EventCalendarActionTypeGetAll --> | <ActionTypeID>1</ActionTypeID> <!-- EventCalendarActionTypeGetAll --> | ||
<Priority>2</Priority> | <Priority>2</Priority> | ||
− | |||
<Private>false</Private> | <Private>false</Private> | ||
+ | <CreateDate>2012-05-02 16:42:00</CreateDate> | ||
+ | <ActionName>Instalacja</ActionName> | ||
+ | <Locked>false</Locked> | ||
+ | <CustomerName>Kowalski Jan</CustomerName> | ||
+ | <Miasto>Warszawa</Miasto> | ||
+ | <Ulica>Długa</Ulica> | ||
+ | <Numer>2</Numer> | ||
<CloseID>2</CloseID> <!-- id operatora ktory zamknal notke --> | <CloseID>2</CloseID> <!-- id operatora ktory zamknal notke --> | ||
− | |||
− | |||
<StartDate>2012-05-04 16:12:00</StartDate> | <StartDate>2012-05-04 16:12:00</StartDate> | ||
− | <StopDate>2012-05-04 16: | + | <StopDate>2012-05-04 16:12:00</StopDate> |
− | < | + | <Desc>opis</Desc> |
</Calendar> | </Calendar> | ||
+ | </EventCalendarGetAll> | ||
+ | </Request> | ||
+ | </Net47> | ||
+ | //BEGINEND// | ||
+ | </pre> | ||
+ | |||
+ | Odpowiedź gdy Closed = false: | ||
+ | <pre class="brush:xml"> | ||
+ | //BEGIN// | ||
+ | <?xml version="1.0" encoding="UTF-8"?> | ||
+ | <Net47> | ||
+ | <Request> | ||
+ | <Type>EventCalendarGetAll</Type> | ||
+ | <EventCalendarGetAll> | ||
<Calendar> | <Calendar> | ||
− | <ID> | + | <ID>4</ID> |
− | <CustomerID>8</CustomerID> | + | <CustomerID>8</CustomerID> |
− | + | ||
<ActionTypeID>1</ActionTypeID> <!-- EventCalendarActionTypeGetAll --> | <ActionTypeID>1</ActionTypeID> <!-- EventCalendarActionTypeGetAll --> | ||
<Priority>2</Priority> | <Priority>2</Priority> | ||
− | |||
<Private>false</Private> | <Private>false</Private> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
<CreateDate>2012-05-02 16:42:00</CreateDate> | <CreateDate>2012-05-02 16:42:00</CreateDate> | ||
+ | <ActionName>Demontaż</ActionName> | ||
+ | <Locked>false</Locked> | ||
+ | <CustomerName>Kowalski Jan</CustomerName> | ||
+ | <Miasto>Warszawa</Miasto> | ||
+ | <Ulica>Długa</Ulica> | ||
+ | <Numer>2</Numer> | ||
+ | <HelpDeskID>6</HelpDeskID> | ||
+ | <Print>true</Print> | ||
+ | <StartDate>2012-05-04 16:12:00</StartDate> | ||
+ | <StopDate>2012-05-04 16:12:00</StopDate> | ||
+ | <Desc>opis</Desc> | ||
</Calendar> | </Calendar> | ||
+ | <Calendar> | ||
+ | <ID>5</ID> | ||
+ | <CustomerID>8</CustomerID> | ||
+ | <ActionTypeID>1</ActionTypeID> <!-- EventCalendarActionTypeGetAll --> | ||
+ | <Priority>2</Priority> | ||
+ | <Private>false</Private> | ||
+ | <CreateDate>2012-05-02 16:42:00</CreateDate> | ||
+ | <ActionName>Demontaż</ActionName> | ||
+ | <Locked>false</Locked> | ||
+ | <CustomerName>Kowalski Jan</CustomerName> | ||
+ | <Miasto>Warszawa</Miasto> | ||
+ | <Ulica>Długa</Ulica> | ||
+ | <Numer>2</Numer> | ||
+ | <HelpDeskID>6</HelpDeskID> | ||
+ | <Print>true</Print> | ||
+ | <StartDate>2012-05-04 16:12:00</StartDate> | ||
+ | <StopDate>2012-05-04 16:12:00</StopDate> | ||
+ | <Desc>opis</Desc> | ||
+ | </Calendar> | ||
</EventCalendarGetAll> | </EventCalendarGetAll> | ||
</Request> | </Request> | ||
Linia 87: | Linia 123: | ||
//BEGINEND// | //BEGINEND// | ||
</pre> | </pre> | ||
− | |||
Błędy: | Błędy: | ||
<pre class="brush:xml"> | <pre class="brush:xml"> |
Wersja z 13:57, 6 lut 2015
Zapytanie:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <SessionID>9859c16379c2f22e2db8dde9f41cc6a8</SessionID> <Priority>0</Priority> <Request> <Type>EventCalendarGetAll</Type> <EventCalendarGetAll> <SortName>id</SortName> <!-- id, customer_id, helpdesk, typz, priorytet, print, prywatna, closeid, fv, akcja, startdate, enddate, createdate --> <SortType>ASC</SortType> <Limit>10</Limit> <Offset>1</Offset> <CustomerID>4</CustomerID> <!-- opcjonalne --> <UserID>1</UserID> <!-- opcjonalne --> <Closed>false</Closed> <!-- opcjonalne --> </EventCalendarGetAll> </Request> </Net47> //BEGINEND//
Odpowiedź gdy Closed = true:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <Request> <Type>EventCalendarGetAll</Type> <EventCalendarGetAll> <Calendar> <ID>4</ID> <CustomerID>8</CustomerID> <ActionTypeID>1</ActionTypeID> <!-- EventCalendarActionTypeGetAll --> <Priority>2</Priority> <Private>false</Private> <CreateDate>2012-05-02 16:42:00</CreateDate> <ActionName>Demontaż</ActionName> <Locked>false</Locked> <CustomerName>Kowalski Jan</CustomerName> <Miasto>Warszawa</Miasto> <Ulica>Długa</Ulica> <Numer>2</Numer> <CloseID>2</CloseID> <!-- id operatora ktory zamknal notke --> <StartDate>2012-05-04 16:12:00</StartDate> <StopDate>2012-05-04 16:12:00</StopDate> <Desc>opis</Desc> </Calendar> <Calendar> <ID>5</ID> <CustomerID>8</CustomerID> <ActionTypeID>1</ActionTypeID> <!-- EventCalendarActionTypeGetAll --> <Priority>2</Priority> <Private>false</Private> <CreateDate>2012-05-02 16:42:00</CreateDate> <ActionName>Instalacja</ActionName> <Locked>false</Locked> <CustomerName>Kowalski Jan</CustomerName> <Miasto>Warszawa</Miasto> <Ulica>Długa</Ulica> <Numer>2</Numer> <CloseID>2</CloseID> <!-- id operatora ktory zamknal notke --> <StartDate>2012-05-04 16:12:00</StartDate> <StopDate>2012-05-04 16:12:00</StopDate> <Desc>opis</Desc> </Calendar> </EventCalendarGetAll> </Request> </Net47> //BEGINEND//
Odpowiedź gdy Closed = false:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <Request> <Type>EventCalendarGetAll</Type> <EventCalendarGetAll> <Calendar> <ID>4</ID> <CustomerID>8</CustomerID> <ActionTypeID>1</ActionTypeID> <!-- EventCalendarActionTypeGetAll --> <Priority>2</Priority> <Private>false</Private> <CreateDate>2012-05-02 16:42:00</CreateDate> <ActionName>Demontaż</ActionName> <Locked>false</Locked> <CustomerName>Kowalski Jan</CustomerName> <Miasto>Warszawa</Miasto> <Ulica>Długa</Ulica> <Numer>2</Numer> <HelpDeskID>6</HelpDeskID> <Print>true</Print> <StartDate>2012-05-04 16:12:00</StartDate> <StopDate>2012-05-04 16:12:00</StopDate> <Desc>opis</Desc> </Calendar> <Calendar> <ID>5</ID> <CustomerID>8</CustomerID> <ActionTypeID>1</ActionTypeID> <!-- EventCalendarActionTypeGetAll --> <Priority>2</Priority> <Private>false</Private> <CreateDate>2012-05-02 16:42:00</CreateDate> <ActionName>Demontaż</ActionName> <Locked>false</Locked> <CustomerName>Kowalski Jan</CustomerName> <Miasto>Warszawa</Miasto> <Ulica>Długa</Ulica> <Numer>2</Numer> <HelpDeskID>6</HelpDeskID> <Print>true</Print> <StartDate>2012-05-04 16:12:00</StartDate> <StopDate>2012-05-04 16:12:00</StopDate> <Desc>opis</Desc> </Calendar> </EventCalendarGetAll> </Request> </Net47> //BEGINEND//
Błędy:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <Request> <Type>Error</Type> <Error>Nieprawidłowe dane</Error> </Request> </Net47> //BEGINEND//