This commit is contained in:
@@ -377,7 +377,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
private bool V7UseInventory = false;
|
private bool V7UseInventory = false;
|
||||||
private List<long> Allv8WarehouseIds = new List<long>();
|
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 long SmallestFileUploadRejectedAsTooBig = AYANOVA_SERVER_MAX_ATTACH_SIZE_LIMIT;
|
||||||
|
|
||||||
private string MaxFileSizeInfo(long lSize)
|
private string MaxFileSizeInfo(long lSize)
|
||||||
@@ -553,7 +553,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
progress.Append(progress.LastOp + ", " + progress.LastSubOp);
|
progress.Append(progress.LastOp + ", " + progress.LastSubOp);
|
||||||
progress.Append("Export failed with error:");
|
progress.Append("Export failed with error:");
|
||||||
progress.Append(ExceptionDuringMigrate.Message);
|
progress.Append(ExceptionDuringMigrate.Message);
|
||||||
progress.Append("StackTrace:" );
|
progress.Append("StackTrace:");
|
||||||
progress.Append(ExceptionDuringMigrate.StackTrace);
|
progress.Append(ExceptionDuringMigrate.StackTrace);
|
||||||
if (ExceptionDuringMigrate.InnerException != null)
|
if (ExceptionDuringMigrate.InnerException != null)
|
||||||
{
|
{
|
||||||
@@ -3110,6 +3110,17 @@ namespace AyaNova.PlugIn.V8
|
|||||||
dynamic d = new JObject();
|
dynamic d = new JObject();
|
||||||
progress.Op(ObjectTypeName + " " + c.WorkorderService.ServiceNumber);
|
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;
|
d.serial = c.WorkorderService.ServiceNumber;
|
||||||
if (c.WorkorderService.ServiceNumber > _highestWorkOrderNumberExported)
|
if (c.WorkorderService.ServiceNumber > _highestWorkOrderNumberExported)
|
||||||
_highestWorkOrderNumberExported = c.WorkorderService.ServiceNumber;
|
_highestWorkOrderNumberExported = c.WorkorderService.ServiceNumber;
|
||||||
@@ -3717,6 +3728,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
var rMainObject = await util.PostAsync("quote", d);
|
var rMainObject = await util.PostAsync("quote", d);
|
||||||
long RavenId = util.IdFromResponse(rMainObject);
|
long RavenId = util.IdFromResponse(rMainObject);
|
||||||
Addv7v8IdMap(c.ID, RavenId);
|
Addv7v8IdMap(c.ID, RavenId);
|
||||||
|
Addv7v8IdMap(c.WorkorderQuote.ID, RavenId);//some things need this id to link to
|
||||||
d = rMainObject.ObjectResponse["data"];
|
d = rMainObject.ObjectResponse["data"];
|
||||||
|
|
||||||
|
|
||||||
@@ -4085,6 +4097,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
long RavenId = util.IdFromResponse(rMainObject);
|
long RavenId = util.IdFromResponse(rMainObject);
|
||||||
Addv7v8IdMap(c.ID, RavenId);
|
Addv7v8IdMap(c.ID, RavenId);
|
||||||
|
Addv7v8IdMap(c.WorkorderPreventiveMaintenance.ID, RavenId);//some things need this id to link to
|
||||||
d = rMainObject.ObjectResponse["data"];
|
d = rMainObject.ObjectResponse["data"];
|
||||||
|
|
||||||
|
|
||||||
@@ -5599,7 +5612,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
a=await util.PostFormDataAsync("attachment", formDataContent);
|
a = await util.PostFormDataAsync("attachment", formDataContent);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
|
||||||
<!-- Development test MSSQL DB -->
|
<!-- Development test MSSQL DB
|
||||||
<ConnectionType>DataBase</ConnectionType>
|
<ConnectionType>DataBase</ConnectionType>
|
||||||
<DataBaseType>MSSQL</DataBaseType>
|
<DataBaseType>MSSQL</DataBaseType>
|
||||||
<DataBaseConnectionString>Server=DEV-V7-LAPTOP\SQLEXPRESS;initial catalog=AyaNova;User Id=sa; Password = abraxis;</DataBaseConnectionString>
|
<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>
|
<ConnectionType>DataBase</ConnectionType>
|
||||||
<DataBaseType>FireBird</DataBaseType>
|
<DataBaseType>FireBird</DataBaseType>
|
||||||
<DataBaseConnectionString>ServerType=1;DataBase=C:\data\AyaNova\database\AYANOVA.fdb;Dialect=3;</DataBaseConnectionString>
|
<DataBaseConnectionString>ServerType=1;DataBase=C:\data\AyaNova\database\AYANOVA.fdb;Dialect=3;</DataBaseConnectionString>
|
||||||
-->
|
|
||||||
|
|
||||||
|
|
||||||
<!-- DataPortal
|
<!-- DataPortal
|
||||||
|
|||||||
Reference in New Issue
Block a user