Insert an image in the Related information panels in ERP Primavera v9

4

There is some way to insert an image into the related information panels.

    
asked by anonymous 09.05.2018 / 11:48

2 answers

1

The control panel allows a user control to be embedded, where you can put whatever you want, in your case the image.

You can add "User Control" to an existing panel, or you can create a new panel in the desired form and later add user control.

For this you can use the following query:

INSERT INTO InformacaoRelacionada ([Id],[Categoria],[Config]) Values('Id','Categoria','Config')

- O ID é um guid que serve como chave estrangeira (IdCategoria) na tabela ContextosInformacaoRelacionada:
- O campo "Categoria" é a categoria de informação do formulário (*)
- O Campo "Config" é um campo em formato XML. Ex:

 <Config>
    <General>
        <TypeClassName>InfoRelacionada.CI_Prototipo</TypeClassName>
        <Name>Protótipo</Name>
        <Title>Protótipo do controlo de informação relacionada</Title>
        <Description>Descrição do controlo</Description>
       <ShowDescription>1</ShowDescription>
        <Height>0</Height>
   </General>
 </Config>
    
09.05.2018 / 18:05
0

Yes. the related information panels support any type of content, because they are based on "UserControls" and within this we can place any component. It can be webBroser or a simple PictureBox.

using System.Data;
using System.Text;
using System.Windows.Forms;
using Interop.StdPlatBE900;
using Interop.StdBE900;
using System.Data.SqlClient;
using Microsoft.VisualBasic;

namespace Primavera.InfoRelacionada
{
    public partial class Pendentes : UserControl,IStdBEInfRelacionada
    {
        private StdBECategoryInfo m_objBECategoryInfo;
        private dynamic m_objFormContexto;
        private dynamic m_objPlataforma;
        private dynamic m_objMotorAplicacao;

        public Pendentes()
        {
            InitializeComponent();
        }

        #region "Metodos Privados"

        void CarregaImagem()
        {

            CompanyLogo.Image ="c:\primavera.jpg"

        }

        #endregion

        #region _IStdBEInfRelacionada Members

            void _IStdBEInfRelacionada.AdicionaChave(string Nome, object Valor)
            {


            }

            void _IStdBEInfRelacionada.Atualiza()
            {
                CarregaImagem();
            }

            void _IStdBEInfRelacionada.Limpa()
            {
                CompanyLogo.Image ="";
            }

            void _IStdBEInfRelacionada.set_FormContexto(ref object value)
            {

            }

            void _IStdBEInfRelacionada.set_Plataforma(ref object value)
            {
                m_objPlataforma = value;
            }

            void _IStdBEInfRelacionada.set_MotorAplicacao(ref object value)
            {
                m_objMotorAplicacao = value ;
            }

            StdBECategoryInfo _IStdBEInfRelacionada.get_BECategoryInfo()
            {
                return m_objBECategoryInfo;
            }

            void _IStdBEInfRelacionada.set_BECategoryInfo(ref StdBECategoryInfo value)
            {
                m_objBECategoryInfo = value;
            }               
        #endregion
    }
}
    
09.05.2018 / 15:44