Esempio n. 1
0
    public void TriggerSAPSyncToDownloadToSQL()
    {
        IntegrationLibrary.library.DataIntegration di = new IntegrationLibrary.library.DataIntegration();
        di.EI_CONN_STRING = ConfigurationManager.AppSettings["IntegrationConnStr"].ToString();
        di.jobs_id        = "1";
        di.variables      = new string[0];
        di.execute();

        di = new DataIntegration();
        di.EI_CONN_STRING = ConfigurationManager.AppSettings["IntegrationConnStr"].ToString();
        di.jobs_id        = "2";
        di.variables      = new string[0];
        di.execute();
    }
Esempio n. 2
0
    public void TriggerSAPSync()
    {
        IntegrationLibrary.library.DataIntegration di = new IntegrationLibrary.library.DataIntegration();
        di.EI_CONN_STRING = ConfigurationManager.AppSettings["IntegrationConnStr"].ToString();

        using (OpNotificationManager CurManager = new OpNotificationManager(tmp_config))
        {
            OpNotificationCollection ResultCollection = CurManager.GetOpNotificationsReadyForSAP();

            if (ResultCollection != null)
            {
                foreach (OpNotificationObj CurObj in ResultCollection)
                {
                    di.jobs_id      = "3";
                    di.variables    = new string[2];
                    di.variables[0] = CurObj.NotificationNo;
                    di.variables[1] = CurObj.Status.InternalID;
                    di.execute();
                }
            }
        }
    }