Index: AX/Uitgaand/EC/Data/impl/DocumentOphalen.cls.xml =================================================================== diff -u -r58238 -r58276 --- AX/Uitgaand/EC/Data/impl/DocumentOphalen.cls.xml (.../DocumentOphalen.cls.xml) (revision 58238) +++ AX/Uitgaand/EC/Data/impl/DocumentOphalen.cls.xml (.../DocumentOphalen.cls.xml) (revision 58276) @@ -18,13 +18,20 @@ BL.EC.pxDocLink + +AXimpl.Dynamics.DocumentLocationOut.DocumentLocationService +1 + + DocType : Factuur, Levering, Order, Offerte, PrijsLijst, Rappel GenerateType : PDF, XML Request:WS.Vhisie4.KlantDocument.GeefDocumentRequest %Status + - Set DocumentLocationService = ##class(AXimpl.Dynamics.DocumentLocationOut.DocumentLocationService).%New() - #dim DocUrl As %String = DocumentLocationService.GeefBestandslocatie(..Request.DocumentId, DocumentType ) + +1 +%String + + - If DocUrl="" { - Set ..DocURL = ##class(BL.EC.pxDocLink).Create("","","https://www.vanhoecke.be/sites/default/files/uploads/DocNotAvailable" _ $Select(..Request.Header.Taal="F":"FR",1:"")_".pdf") - } else { - Set ..DocURL = ##class(BL.EC.Data).%New().GetDocumentURLDirect(..Request.Header.SessieId,DocUrl) - } - } Else { - Set ..DocURL = ##class(BL.EC.Data).%New().GetDocumentURL(..Request.Header.SessieId,..GeefDocumentType(),..GeefResultaatType(),..Request.DocumentId,..Request.Header.KlantId) + +1 +%String + + + + +DocUrl:%String +1 + + +1 +%Boolean + + + + +1 +%Boolean + + + %String - + %String