This commit is contained in:
2021-08-31 17:05:31 +00:00
parent 710868a25c
commit bc3f16e1db
2 changed files with 26 additions and 13 deletions

View File

@@ -377,7 +377,7 @@ namespace AyaNova.PlugIn.V8
private bool V7UseInventory = false;
private List<long> Allv8WarehouseIds = new List<long>();
private const long AYANOVA_SERVER_MAX_ATTACH_SIZE_LIMIT=10737418241;
private const long AYANOVA_SERVER_MAX_ATTACH_SIZE_LIMIT = 10737418241;
private long SmallestFileUploadRejectedAsTooBig = AYANOVA_SERVER_MAX_ATTACH_SIZE_LIMIT;
private string MaxFileSizeInfo(long lSize)
@@ -553,7 +553,7 @@ namespace AyaNova.PlugIn.V8
progress.Append(progress.LastOp + ", " + progress.LastSubOp);
progress.Append("Export failed with error:");
progress.Append(ExceptionDuringMigrate.Message);
progress.Append("StackTrace:" );
progress.Append("StackTrace:");
progress.Append(ExceptionDuringMigrate.StackTrace);
if (ExceptionDuringMigrate.InnerException != null)
{
@@ -3110,6 +3110,17 @@ namespace AyaNova.PlugIn.V8
dynamic d = new JObject();
progress.Op(ObjectTypeName + " " + c.WorkorderService.ServiceNumber);
if (c.FromPMID != Guid.Empty)
{
d.fromPMId = await Getv7v8IdMapNullOk(c.FromPMID, RootObjectTypes.WorkorderPreventiveMaintenance, false, true);
}
if (c.FromQuoteID != Guid.Empty)
{
d.fromQuoteId = await Getv7v8IdMapNullOk(c.FromQuoteID, RootObjectTypes.WorkorderPreventiveMaintenance, false, true);
}
d.serial = c.WorkorderService.ServiceNumber;
if (c.WorkorderService.ServiceNumber > _highestWorkOrderNumberExported)
_highestWorkOrderNumberExported = c.WorkorderService.ServiceNumber;
@@ -3717,6 +3728,7 @@ namespace AyaNova.PlugIn.V8
var rMainObject = await util.PostAsync("quote", d);
long RavenId = util.IdFromResponse(rMainObject);
Addv7v8IdMap(c.ID, RavenId);
Addv7v8IdMap(c.WorkorderQuote.ID, RavenId);//some things need this id to link to
d = rMainObject.ObjectResponse["data"];
@@ -4085,6 +4097,7 @@ namespace AyaNova.PlugIn.V8
long RavenId = util.IdFromResponse(rMainObject);
Addv7v8IdMap(c.ID, RavenId);
Addv7v8IdMap(c.WorkorderPreventiveMaintenance.ID, RavenId);//some things need this id to link to
d = rMainObject.ObjectResponse["data"];
@@ -5599,7 +5612,7 @@ namespace AyaNova.PlugIn.V8
try
{
a=await util.PostFormDataAsync("attachment", formDataContent);
a = await util.PostFormDataAsync("attachment", formDataContent);
}
catch (Exception ex)
{

View File

@@ -1,19 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<!-- Development test MSSQL DB -->
<!-- Development test MSSQL DB
<ConnectionType>DataBase</ConnectionType>
<DataBaseType>MSSQL</DataBaseType>
<DataBaseConnectionString>Server=DEV-V7-LAPTOP\SQLEXPRESS;initial catalog=AyaNova;User Id=sa; Password = abraxis;</DataBaseConnectionString>
-->
<!-- DEVELOPMENT embedded Firebird database
<!-- DEVELOPMENT embedded Firebird database -->
<ConnectionType>DataBase</ConnectionType>
<DataBaseType>FireBird</DataBaseType>
<DataBaseConnectionString>ServerType=1;DataBase=C:\data\AyaNova\database\AYANOVA.fdb;Dialect=3;</DataBaseConnectionString>
-->
<!-- DataPortal