Exemplo n.º 1
0
 public static bool Close(ISageAccess sageAccess)
 {
     try
     {
         if (sageAccess.GetSageDatabase.IsOpen)
         {
             sageAccess.GetSageDatabase.Close();
         }
         return(true);
     }catch (Exception e)
     {
         return(false);
     }
 }
Exemplo n.º 2
0
 public static bool Open(ISageAccess sageAccess)
 {
     try
     {
         sageAccess.GetSageDatabase.CompanyServer       = sageAccess.GetDatabaseInstance;
         sageAccess.GetSageDatabase.CompanyDatabaseName = sageAccess.GetDatabaseName;
         sageAccess.GetSageDatabase.Loggable.UserName   = sageAccess.GetUsername;
         sageAccess.GetSageDatabase.Loggable.UserPwd    = sageAccess.GetUserPwd;
         sageAccess.GetSageDatabase.Open();
         return(true);
     }
     catch (Exception e)
     {
         return(false);
     }
 }
Exemplo n.º 3
0
 public SageOrderRepository(ISageAccess sageAccess)
 {
     _sageAccess = sageAccess;
 }
Exemplo n.º 4
0
 public SageClientRepository(ISageAccess sageDataAccess)
 {
     _sageDataAccess = sageDataAccess;
 }