How to drilldown to the customer data sheet and to the Article sheet (V10)?

Asked

Viewed 178 times

-2

I am trying to do the drilldown for a maintenance in the spring, for example the customer’s file or article but I do not understand how to do.

In version 9 I believe that the method will be something like: Motor.Comercial.Artigos.DrillDownArtigo...

However in V10 I could not find this function. I’ve searched the following: Motor.Base.Artigo and Motor.Inventário

What will be the new method for drilldown for the Article Sheet and also for the Customer Sheet?

I have this code that works to drilldown for Sale and Purchase Documents.

StdBESqlCampoDrillDown stdBESqlCampoDrillDown = new StdBESqlCampoDrillDown();
stdBESqlCampoDrillDown.ModuloNotificado = "GCP";
stdBESqlCampoDrillDown.Tipo = StdBESqlTipos.EnumTipoDrillDownListas.tddlEventoAplicacao;
stdBESqlCampoDrillDown.Evento = "GCP_EditarDocumento";

StdBEValoresStr stdBEValoresStr = new StdBEValoresStr();
stdBEValoresStr.InsereNovo("Modulo", modulo);
stdBEValoresStr.InsereNovo("Filial", codigoCliente);
stdBEValoresStr.InsereNovo("Tipodoc", tipodoc);
stdBEValoresStr.InsereNovo("Serie", serie);
stdBEValoresStr.InsereNovo("NumDocInt", numdoc);

PSO.DrillDownLista(stdBESqlCampoDrillDown, stdBEValoresStr);

It will now be related to the Customer and Article Sheets?

Thank you.

  • Hello, in this project you have several examples of how this can be done: Spring

1 answer

1


Hello Daniel Vieira is right, no Github PRIMAVERABSS you have several examples on this subject, however here is the tip for the entities.

  internal static void drillDownEntidade(StdBSInterfPub PSO, string categoria, string entidade)
    {
        StdBESqlCampoDrillDown campoDrillDown = new StdBESqlCampoDrillDown();
        StdBEValoresStr param = new StdBEValoresStr();

        campoDrillDown.ModuloNotificado = "GCP";
        campoDrillDown.Tipo = StdBESqlTipos.EnumTipoDrillDownListas.tddlEventoAplicacao;
        campoDrillDown.Evento = "GCP_MOSTRAMANUTENCAO";

        param.InsereNovo("Manutencao", categoria);
        param.InsereNovo("Chave", entidade);

        PSO.DrillDownLista(campoDrillDown, param);
    }
}

Browser other questions tagged

You are not signed in. Login or sign up in order to post.