DocumentTemplateGetAll

(Różnice między wersjami)
Skocz do: nawigacji, wyszukiwania
Linia 10: Linia 10:
 
<Type>DocumentTemplateGetAll</Type>
 
<Type>DocumentTemplateGetAll</Type>
 
<DocumentTemplateGetAll>
 
<DocumentTemplateGetAll>
<TypeID>423</TypeID> <!-- wybierane z DocumentTypeGetAll --> <!-- 0 = wyswietli wszystkie -->
+
<TypeID>423</TypeID> <!-- wybierane z DocumentTypeGetAll --> <!-- -1 = wyswietli wszystkie -->
 
<Active>1</Active> <!-- 0 = wybieramy archiwalne, 1 = aktywne, -1 = wszystkie -->
 
<Active>1</Active> <!-- 0 = wybieramy archiwalne, 1 = aktywne, -1 = wszystkie -->
 
<Inner>1</Inner> <!-- 1 = dokumenty wewnetrzne, 0 = dokumenty zewnetrzne, -1 = wszystkie -->
 
<Inner>1</Inner> <!-- 1 = dokumenty wewnetrzne, 0 = dokumenty zewnetrzne, -1 = wszystkie -->

Wersja z 13:00, 28 sie 2012

Zapytanie:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//BEGIN//
<?xml version="1.0" encoding="UTF-8"?>
<Net47>
    <SessionID>9859c16379c2f22e2db8dde9f41cc6a8</SessionID>
    <Priority>0</Priority>
    <Term>Short</Term>
    <Request>
        <Type>DocumentTemplateGetAll</Type>
        <DocumentTemplateGetAll>
            <TypeID>423</TypeID> <!-- wybierane z DocumentTypeGetAll --> <!-- -1 = wyswietli wszystkie -->
            <Active>1</Active> <!-- 0 = wybieramy archiwalne, 1 = aktywne, -1 = wszystkie -->
            <Inner>1</Inner> <!-- 1 = dokumenty wewnetrzne, 0 = dokumenty zewnetrzne, -1 = wszystkie -->
            <Limit>10</Limit>
            <Offset>1</Offset>
        </DocumentTemplateGetAll>
    </Request>
</Net47>
//BEGINEND//

Odpowiedź:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//BEGIN//
<?xml version="1.0" encoding="UTF-8"?>
<Net47>
    <Request>
        <Type>DocumentTemplateGetAll</Type>
        <DocumentTemplateGetAll>
            <DocumentTemplate>
                <ID>42</ID>
                <Name>Umowa 2012 zima promocja</Name>
                <TypeID>2</TypeID> <!-- wybierane z DocumentTypeGetAll -->
                <TypeName>Umowa</TypeName> <!-- wybierane z DocumentTypeGetAll -->
                <Active>true</Active> <!-- false = archiwalne, true = aktywne -->
                <DocumentType>true</DocumentType> <!-- Definiuje czy dokument funkcjonuje w obiegu wewnętrznym firmy lub czy jest to np umowa do klienta, przyklad: umowa = false, rozchód wewnętrzny = true -->
                <Description>Aneks do umowy</Description> <!-- wybierane z DocumentTypeGetAll -->
                <Date>2012-04-06 16:00:21</Date> <!-- data dodania -->
            </DocumentTemplate>
        </DocumentTemplateGetAll>
    </Request>
</Net47>
//BEGINEND//

Błędy:

1
2
3
4
5
6
7
8
9
//BEGIN//
<?xml version="1.0" encoding="UTF-8"?>
<Net47>
    <Request>
        <Type>Error</Type>
        <Error>Nie ma takiego typu dokumentu</Error>
    </Request>
</Net47>
//BEGINEND//
Osobiste
Przestrzenie nazw
Warianty
Działania
Nawigacja
Konfiguracja Systemu