This commit is contained in:
@@ -121,6 +121,12 @@ namespace AyaNova.PlugIn.QBOI
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (AyaNovaVersion.Minor < 6)
|
||||||
|
{
|
||||||
|
MessageBox.Show("This AyaNovaQBOI plugin requires AyaNova version 7.6 or higher");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
Util.GlobalSettings = AyaBizUtils.GlobalSettings;
|
Util.GlobalSettings = AyaBizUtils.GlobalSettings;
|
||||||
|
|
||||||
ObjectsWeCanDealWith = new List<RootObjectTypes>();
|
ObjectsWeCanDealWith = new List<RootObjectTypes>();
|
||||||
|
|||||||
@@ -414,10 +414,10 @@ namespace AyaNova.PlugIn.QBOI
|
|||||||
{
|
{
|
||||||
//used to tie this session to the auth key on our server for fetching later
|
//used to tie this session to the auth key on our server for fetching later
|
||||||
QBOI2_SESSION_TOKEN = RandomInt64().ToString();
|
QBOI2_SESSION_TOKEN = RandomInt64().ToString();
|
||||||
string LicenseId = GlobalEx.GetItem().DigestValue;
|
|
||||||
|
|
||||||
//shell out to browser for user to login to QB
|
//shell out to browser for user to login to QB
|
||||||
System.Diagnostics.Process.Start("https://qboauth.ayanova.com/start/" + QBOI2_SESSION_TOKEN + "/"+ LicenseId);
|
System.Diagnostics.Process.Start("https://qboauth.ayanova.com/start/" + QBOI2_SESSION_TOKEN + "/"+ AyaBizUtils.LicId);
|
||||||
|
|
||||||
|
|
||||||
//Open dialog that polls for token repeatedly, there is a delay built into the server
|
//Open dialog that polls for token repeatedly, there is a delay built into the server
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Revision and Build Numbers
|
// You can specify all the values or you can default the Revision and Build Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
|
|
||||||
[assembly: AssemblyVersion("7.5.0.0")]
|
[assembly: AssemblyVersion("7.6.0.0")]
|
||||||
|
|
||||||
//
|
//
|
||||||
// In order to sign your assembly you must specify a key to use. Refer to the
|
// In order to sign your assembly you must specify a key to use. Refer to the
|
||||||
@@ -62,4 +62,4 @@ using System.Runtime.InteropServices;
|
|||||||
[assembly: log4net.Config.XmlConfigurator(ConfigFile="Log4Net.config",Watch=true)]
|
[assembly: log4net.Config.XmlConfigurator(ConfigFile="Log4Net.config",Watch=true)]
|
||||||
//[assembly: log4net.Config.XmlConfigurator(Watch=true)]
|
//[assembly: log4net.Config.XmlConfigurator(Watch=true)]
|
||||||
[assembly: ComVisibleAttribute(false)]
|
[assembly: ComVisibleAttribute(false)]
|
||||||
[assembly: AssemblyFileVersionAttribute("7.5.9.0")]
|
[assembly: AssemblyFileVersionAttribute("7.6.0.0")]
|
||||||
|
|||||||
@@ -64,4 +64,4 @@ using System.Security.Permissions;
|
|||||||
// Configure log4net using the .config file
|
// Configure log4net using the .config file
|
||||||
//[assembly: log4net.Config.XmlConfigurator(ConfigFile="Log4Net.config",Watch=true)]
|
//[assembly: log4net.Config.XmlConfigurator(ConfigFile="Log4Net.config",Watch=true)]
|
||||||
//[assembly: log4net.Config.XmlConfigurator( ConfigFile="Log4Net.config",Watch=true )]
|
//[assembly: log4net.Config.XmlConfigurator( ConfigFile="Log4Net.config",Watch=true )]
|
||||||
[assembly: AssemblyFileVersionAttribute("7.5.9.0")]
|
[assembly: AssemblyFileVersionAttribute("7.5.10.0")]
|
||||||
|
|||||||
@@ -1718,6 +1718,19 @@ namespace GZTW.AyaNova.BLL
|
|||||||
return GlobalX.Lite;
|
return GlobalX.Lite;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// AyaNova license id
|
||||||
|
/// </summary>
|
||||||
|
public static string LicId
|
||||||
|
{
|
||||||
|
//case 3712 - added for QBOI with oAuth2 usage
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return GlobalX.DigestValue;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user