This commit is contained in:
@@ -35,7 +35,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
public string PluginVersion
|
public string PluginVersion
|
||||||
{
|
{
|
||||||
get { return "7.6.1-alpha.103"; }
|
get { return "7.6.1-alpha.118"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public string About
|
public string About
|
||||||
@@ -2247,11 +2247,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
progress.Op("Start Service workorders export");
|
progress.Op("Start Service workorders export");
|
||||||
progress.SubOp("");
|
progress.SubOp("");
|
||||||
var ObjectTypeName = "Workorder";
|
var ObjectTypeName = "Workorder";
|
||||||
var RavenRouteName = "workorders";
|
|
||||||
|
|
||||||
todo: signatures. Ideally export to svg images for display from path data if doable here otherwise let v8 handle it and just put the path in the sig text fields
|
|
||||||
|
|
||||||
//TODO: this in the workorder Items loop
|
|
||||||
//Step 1: export the CustomFields to FormCustom if applicable so that when doing individual items we can export their custom data too
|
//Step 1: export the CustomFields to FormCustom if applicable so that when doing individual items we can export their custom data too
|
||||||
var ocf = ObjectHasCustomFieldDataToExport("WorkorderItem");
|
var ocf = ObjectHasCustomFieldDataToExport("WorkorderItem");
|
||||||
bool ShouldExportCustom = ocf != null;
|
bool ShouldExportCustom = ocf != null;
|
||||||
@@ -2276,18 +2272,11 @@ namespace AyaNova.PlugIn.V8
|
|||||||
Workorder c = Workorder.GetItem(i.LT_O_Workorder.Value);
|
Workorder c = Workorder.GetItem(i.LT_O_Workorder.Value);
|
||||||
if (IsDuplicatev7v8IdMapItem(c.ID, c.WorkorderService.ServiceNumber.ToString(), progress)) continue;
|
if (IsDuplicatev7v8IdMapItem(c.ID, c.WorkorderService.ServiceNumber.ToString(), progress)) continue;
|
||||||
var ObjectTID = new TypeAndID(RootObjectTypes.WorkorderService, c.ID);
|
var ObjectTID = new TypeAndID(RootObjectTypes.WorkorderService, c.ID);
|
||||||
|
|
||||||
|
|
||||||
dynamic d = new JObject();
|
dynamic d = new JObject();
|
||||||
//d.concurrency = util.CTokenFromResponse(rMainObject);
|
|
||||||
progress.Op(ObjectTypeName + " " + c.WorkorderService.ServiceNumber);
|
progress.Op(ObjectTypeName + " " + c.WorkorderService.ServiceNumber);
|
||||||
d.active = true;//probably can remove this at server, just stubbed in for now
|
|
||||||
|
|
||||||
TagFromv7Guid(c.RegionID, tags);
|
TagFromv7Guid(c.RegionID, tags);
|
||||||
SetTags(d, tags);
|
SetTags(d, tags);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var rMainObject = await util.PostAsync("workorder", d.ToString());
|
var rMainObject = await util.PostAsync("workorder", d.ToString());
|
||||||
long RavenId = util.IdFromResponse(rMainObject);
|
long RavenId = util.IdFromResponse(rMainObject);
|
||||||
Addv7v8IdMap(c.ID, RavenId);
|
Addv7v8IdMap(c.ID, RavenId);
|
||||||
@@ -2335,8 +2324,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
// d.concurrency = util.CTokenFromResponse(rMainObject);
|
// d.concurrency = util.CTokenFromResponse(rMainObject);
|
||||||
progress.Op("WorkorderItem " + wi.ID.ToString());
|
progress.Op("WorkorderItem " + wi.ID.ToString());
|
||||||
dwi.active = true;//probably can remove this at server, just stubbed in for now
|
|
||||||
|
|
||||||
TagFromv7Guid(wi.TypeID, tags);
|
TagFromv7Guid(wi.TypeID, tags);
|
||||||
TagFromv7Guid(wi.WorkorderItemUnitServiceTypeID, tags);
|
TagFromv7Guid(wi.WorkorderItemUnitServiceTypeID, tags);
|
||||||
SetTags(dwi, tags);
|
SetTags(dwi, tags);
|
||||||
|
|||||||
Reference in New Issue
Block a user