DocumentTemplateGetAll
Z Net47 2.0
(Różnice między wersjami)
(Nie pokazano 12 wersji utworzonych przez 2 użytkowników) | |||
Linia 10: | Linia 10: | ||
<Type>DocumentTemplateGetAll</Type> | <Type>DocumentTemplateGetAll</Type> | ||
<DocumentTemplateGetAll> | <DocumentTemplateGetAll> | ||
− | <TypeID>423</TypeID> <!-- wybierane z DocumentTypeGetAll --> <!-- | + | <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 --> | ||
+ | <Limit>10</Limit> <!-- opcjonalne --> <!-- wystepuje tylko i wylacznie w parze limit i offset --> | ||
+ | <Offset>1</Offset> <!-- opcjonalne --> | ||
+ | <SortName>id</SortName> <!-- id, nazwa, typid, snazwa, status, wew, opis, dzien --> | ||
+ | <SortType>ASC</SortType> | ||
</DocumentTemplateGetAll> | </DocumentTemplateGetAll> | ||
</Request> | </Request> | ||
Linia 35: | Linia 40: | ||
<Description>Aneks do umowy</Description> <!-- wybierane z DocumentTypeGetAll --> | <Description>Aneks do umowy</Description> <!-- wybierane z DocumentTypeGetAll --> | ||
<Date>2012-04-06 16:00:21</Date> <!-- data dodania --> | <Date>2012-04-06 16:00:21</Date> <!-- data dodania --> | ||
+ | <ToDisk>true</ToDisk><!-- czy dokumenty tego typu mają być zapisywane na dysku --> | ||
+ | <Visible>true</Visible><!-- określa czy szablon jest dostępny na listach wyboru, np. podczas ręcznego wystawiania faktur --> | ||
</DocumentTemplate> | </DocumentTemplate> | ||
</DocumentTemplateGetAll> | </DocumentTemplateGetAll> |
Aktualna wersja na dzień 15:23, 22 sty 2016
Zapytanie:
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 > < 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 > <!-- opcjonalne --> <!-- wystepuje tylko i wylacznie w parze limit i offset --> < Offset >1</ Offset > <!-- opcjonalne --> < SortName >id</ SortName > <!-- id, nazwa, typid, snazwa, status, wew, opis, dzien --> < SortType >ASC</ SortType > </ 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 21 22 | //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 --> < ToDisk >true</ ToDisk > <!-- czy dokumenty tego typu mają być zapisywane na dysku --> < Visible >true</ Visible > <!-- określa czy szablon jest dostępny na listach wyboru, np. podczas ręcznego wystawiania faktur --> </ 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// |