Complete loading address from engines (V9)

Posted on

Question :

Using Spring v9.15 engines with C #, when creating both sales and purchase documents, you can easily fill in the download address properties:

Interop.GcpBE900.GcpBEDocumentoVenda doc = new Interop.GcpBE900.GcpBEDocumentoVenda();

//preencher informação do cabeçalho, etc...
//preencher dados relacionados...

doc.set_MoradaEntrega("Exemplo Morada");
doc.set_Morada2Entrega("Exemplo Morada2");
//restantes propriedades

But for the address of load I can not find the respective properties. Is there any way to fill in the document when creating a document?


Answer :

The Load / Unload properties are found in a specific object, within GcpBEDocumentoVenda , of type GcpBECargaDescarga .

To change the Load properties (or even the Download itself) you can use the following code:

GcpBECargaDescarga objCargaDescarga = doc.get_CargaDescarga();

objCargaDescarga.Morada2Carga = "Morada Carga";
objCargaDescarga.CodPostalCarga = "CodPostal Carga";
objCargaDescarga.DistritoCarga = "Distrito Carga";
objCargaDescarga.LocalCarga = "Local Carga";


Leave a Reply

Your email address will not be published. Required fields are marked *