Exemplo n.º 1
0
        public GenWebAccessAccess(GenevaConnection conn)
        {

            genevaUid = conn.UserName;
            genevaPassword = conn.Password;
            genevaPort = conn.Port;
            genevaUrl = conn.URL;
            genevaHostName = conn.HostName;



        }
Exemplo n.º 2
0
 public static GenWebAccess.loaderResultsStruct InsertDataInGeneva(GenevaConnection pConnection, string pLoaderFileName)
 {
     GenWebAccess.Service WService = new GenWebAccess.Service();
     GenWebAccess.loaderResultsStruct selectReturn;
     //string loaderSessionID = GetRunRepSessionID(pConnection, WService);
     XmlDocument loaderRecord = new XmlDocument();
     loaderRecord.Load(@pLoaderFileName);
     WService.Url = pConnection.URL;
     string loaderSessionID = WService.StartCallableLoader(pConnection.Port, pConnection.HostName, pConnection.UserName, pConnection.Password);
     selectReturn = WService.RunCallableLoader(loaderSessionID, loaderRecord.InnerXml, "-x -bvc -iu");
     return selectReturn;
 }
Exemplo n.º 3
0
 private static DataSet Execute(GenevaConnection pConnection, GenevaParams pParameters)
 {
    
    
     DataSet _getRSLData = new DataSet();
     GenWebAccessAccess queryMan = new GenWebAccessAccess(pConnection);
  
     if (pParameters.IsQuery)
     {
         _getRSLData = queryMan.runReportSelectLiteralDS( pParameters.RslQuery);
     }
     else
     {
         _getRSLData = queryMan.getReportResultsLiteralDS(pParameters.RslReportName, GetParameterString(pParameters));
     }
   
     return _getRSLData;
 }
Exemplo n.º 4
0
        private static string GetRunRepSessionID(GenevaConnection pConnection, GenWebAccess.Service WService)
        {

            WService.Url = pConnection.URL;
            return WService.StartCallableRunrep(pConnection.Port, pConnection.HostName, pConnection.UserName, pConnection.Password, "-f empty");

        }
Exemplo n.º 5
0
 public static DataSet ExecuteRSLReport(GenevaConnection pConnection, GenevaParams pParameters)
 {
     return Execute(pConnection, pParameters);
 }