case 3717
This commit is contained in:
@@ -1552,6 +1552,7 @@ namespace AyaNova.PlugIn.QBI
|
||||
|
||||
}
|
||||
|
||||
|
||||
CopyableMessageBox cb=new CopyableMessageBox(sb.ToString());
|
||||
cb.ShowDialog();
|
||||
|
||||
@@ -1561,8 +1562,9 @@ namespace AyaNova.PlugIn.QBI
|
||||
catch(Exception ex)
|
||||
{
|
||||
w.Visible=false;
|
||||
CopyableMessageBox cb=new CopyableMessageBox("ImportToAyaNova error: " + ex.Message);
|
||||
cb.ShowDialog();
|
||||
Util.CrackDisplayAndIntegrationLogException(ex, "QBI:Map:ImportToAyaNova");//case 3717
|
||||
//CopyableMessageBox cb = new CopyableMessageBox("ImportToAyaNova error: \r\n" + Util.CrackException(ex));
|
||||
//cb.ShowDialog();
|
||||
|
||||
}
|
||||
finally
|
||||
@@ -1667,9 +1669,10 @@ namespace AyaNova.PlugIn.QBI
|
||||
catch(Exception ex)
|
||||
{
|
||||
|
||||
CopyableMessageBox cb=new CopyableMessageBox("ImportToQuickBooks error: " + ex.Message);
|
||||
cb.ShowDialog();
|
||||
cb.Dispose();
|
||||
//CopyableMessageBox cb=new CopyableMessageBox("ImportToQuickBooks error: " + ex.Message);
|
||||
//cb.ShowDialog();
|
||||
//cb.Dispose();
|
||||
Util.CrackDisplayAndIntegrationLogException(ex, "QBI:Map:ImportToQuickBooks");//case 3717
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -1868,8 +1871,12 @@ namespace AyaNova.PlugIn.QBI
|
||||
catch(Exception ex)
|
||||
{
|
||||
w.Visible=false;
|
||||
CopyableMessageBox cb=new CopyableMessageBox("ImportToAyaNova error: " + ex.Message);
|
||||
cb.ShowDialog();
|
||||
|
||||
//CopyableMessageBox cb=new CopyableMessageBox("AutoLink error: \r\n" + Util.CrackException(ex));
|
||||
//cb.ShowDialog();
|
||||
Util.CrackDisplayAndIntegrationLogException(ex, "QBI:Map:AutoLink");//case 3717
|
||||
|
||||
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -1947,8 +1954,9 @@ namespace AyaNova.PlugIn.QBI
|
||||
catch (Exception ex)
|
||||
{
|
||||
w.Visible = false;
|
||||
CopyableMessageBox cb = new CopyableMessageBox("UpdateAyaNovaPartPrices error: " + ex.Message);
|
||||
cb.ShowDialog();
|
||||
//CopyableMessageBox cb = new CopyableMessageBox("UpdateAyaNovaPartPrices error: " + ex.Message);
|
||||
//cb.ShowDialog();
|
||||
Util.CrackDisplayAndIntegrationLogException(ex, "QBI:Map:UpdateAyaNovaPartPrices");//case 3717
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
@@ -33,4 +33,4 @@ using System.Runtime.InteropServices;
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("7.6.0.0")]
|
||||
[assembly: AssemblyFileVersion("7.6.0.0")]
|
||||
[assembly: AssemblyFileVersion("7.6.1.0")]
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace AyaNova.PlugIn.QBI
|
||||
|
||||
public string PluginVersion
|
||||
{
|
||||
get { return "7.6"; }//if patch then 7.3 (patch 1) etc
|
||||
get { return "7.6 (patch 1)"; }//if patch then 7.3 (patch 1) etc
|
||||
}
|
||||
|
||||
public string About
|
||||
|
||||
@@ -6015,6 +6015,17 @@ namespace AyaNova.PlugIn.QBI
|
||||
}
|
||||
|
||||
|
||||
//case 3717
|
||||
public static void CrackDisplayAndIntegrationLogException(Exception ex, string methodText="n/a", string extraText="n/a" ) {
|
||||
|
||||
string message="Exception error\r\nMethod: " + methodText + "\r\nExtra: " + extraText + "\r\n Error:" + CrackException(ex);
|
||||
//Log it so we have it forever in the log
|
||||
IntegrationLog.Log(QBID, message);
|
||||
//display it to the user
|
||||
CopyableMessageBox cb = new CopyableMessageBox(message);
|
||||
cb.ShowDialog();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Case 262 addition
|
||||
|
||||
Reference in New Issue
Block a user