Páginas filhas
  • Desenvolvimento de Pacote EAI 2 - Plataforma RM

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Bloco de código
languagec#
themeRDark
titleExemplo
collapsetrue
$/RM/Atual/Release/Prj-Projetos/RM.Prj.TotvsMessage.Configurator.Server


  [ConfiguratorPacoteAttribute(typeof(Properties.Resources),    "d3593c4e-1a4c-58fb-b9c8-feaf13c2fa8b", nameof(Properties.Resources.sPrjCaptionPacoteEAI2sPrjCaptionPacoteMntEAI2))]
  public class PrjPacoteConfiguratorEai : EaiPacoteConfiguratorBasePrjTopMntProtheusPacoteConfiguratorEai : EaiPacoteConfiguratorBase
  {
    /// <summary>
    /// Configurador de Integrações EAI.
    /// </summary>
    public PrjTopMntProtheusPacoteConfiguratorEai(){}

    /// <summary>
    /// Retorna lista de configurador do EAI 2.0 utilizados pelo pacote.
    /// </summary>
    /// <returns></returns>
    public override EAIConfigurationProductResult ConfigurationsProduct()
    {
      return new EAIConfigurationProductResult();
    }

    /// <summary>
    /// 
    /// </summary>
    /// <returns></returns>
    public override EAIPackage GetEAIPackage()
    {
      return new EAIPackage()
      {
        integrationId = "1129d688-d724-5afb-9f55-c9f8ce498d57", 
        name = Properties.Resources.sPrjCaptionPacoteMntEAI2,
        description = Properties.Resources.sPrjTitleConfigEAI2MNT,
        documentationUrl = "https://tdn.totvs.com/x/AYMOFQ",
        Adapters = getTransactions()
      };
    }

    /// <summary>
    /// 
    /// </summary>
    /// <returns></returns>
    private List<EAIPackageAdapter> getTransactions()
    {
      List<EAIPackageAdapter> result = new List<EAIPackageAdapter>()
          { new EAIPackageAdapter() { AdapterId=EaiAdapterTypeEnum.Equipment,
                          Version = "1.002", Mode = EnabledModeEnum.emReceive },
            new EAIPackageAdapter() { AdapterId=EaiAdapterTypeEnum.Activity,
                          Version = "1.000", Mode = EnabledModeEnum.emReceive },
            new EAIPackageAdapter() { AdapterId=EaiAdapterTypeEnum.Appointment,
                          Version = "1.000", Mode = EnabledModeEnum.emSend },
            new EAIPackageAdapter() { AdapterId=EaiAdapterTypeEnum.AssetMonthlyDirectCosts,
                          Version = "1.000", Mode = EnabledModeEnum.emReceive },
            new EAIPackageAdapter() { AdapterId=EaiAdapterTypeEnum.AssetMonthlyUnDirectCosts,
                          Version = "1.000", Mode = EnabledModeEnum.emReceive }
          };

      return result;
    }


    /// <summary>
    /// Defiição de parâmetros de pacote.
    /// </summary>
    /// <returns></returns>
    public override EAIPacoteApiParamsResult GetParamsPacote()
    {
      EAIPacoteApiParamsResult result = new EAIPacoteApiParamsResult();
      List<EAIConfigSchemaEntity> configSchema = new List<EAIConfigSchemaEntity>();
      result.paramsList = configSchema;

      return result;
    }

    /// <summary>
    /// Serviços necessários para integração Siga MNT
    /// </summary>
    /// <returns></returns>
    public override EAIPacoteApiServicesRequiredResult GetApiServicesRequired()
    {
      return new EAIPacoteApiServicesRequiredResult()
      {
        Services = new List<EAIPacoteApiServiceRequired>()
            { new EAIPacoteApiServiceRequired() { Name = "WSINTRMMNT.apw?WSDL", Type = CanalComunicacaoEnum.teSOAP  } }
      };
    }
  }


2) Diagnostico de Conexão

...