Add PRIContext on the map Crystal

3

I made a root map and would like to display the company name in the header.

Can you help me solve this challenge sff?

Thank you

    
asked by anonymous 31.07.2018 / 08:40

1 answer

3

To know the context of the company simply add this formula to your map.

pso.Mapas.Inicializar("GCP");

var strFormula = new StringBuilder();
strFormula.Append($"StringVar Nome:='{bso.Contexto.IDNome}';");
strFormula.Append($"StringVar Morada:='{bso.Contexto.IDMorada}';");
strFormula.Append($"StringVar Localidade:='{bso.Contexto.IDLocalidade}';");
strFormula.Append($"StringVar CodPostal:='{bso.Contexto.IDCodPostal} {bso.Contexto.IDCodPostalLocal}';");
strFormula.Append($"StringVar Telefone:='{bso.Contexto.IDTelefone}';");
strFormula.Append($"StringVar Fax:='{bso.Contexto.IDFax}';");
strFormula.Append($"StringVar Contribuinte:='{bso.Contexto.IFNIF}';");
strFormula.Append($"StringVar CapitalSocial:='{bso.Contexto.ICCapitalSocial}';");
strFormula.Append($"StringVar Conservatoria:='{bso.Contexto.ICConservatoria}';");
strFormula.Append($"StringVar Matricula:='{bso.Contexto.ICMatricula}';");
strFormula.Append($"StringVar MoedaCapitalSocial:='{bso.Contexto.ICMoedaCapSocial}';");

pso.Mapas.SetFormula("DadosEmpresa", strFormula.ToString());
    
31.07.2018 / 10:45