This commit is contained in:
@@ -161,6 +161,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
TODO:
|
TODO:
|
||||||
|
* EMPTY DB ROUTE
|
||||||
* custom fields processor for: User, Client, Contract, HeadOffice, LoanItem, part, project, purchaseorder, unit, unitmodel, vendor, workorderitem
|
* custom fields processor for: User, Client, Contract, HeadOffice, LoanItem, part, project, purchaseorder, unit, unitmodel, vendor, workorderitem
|
||||||
|
|
||||||
|
|
||||||
@@ -176,6 +177,9 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
//Export in correct order:
|
//Export in correct order:
|
||||||
|
|
||||||
|
//ERASE DB
|
||||||
|
util.EraseDB();
|
||||||
|
|
||||||
//TAGS
|
//TAGS
|
||||||
ExportUnitModelCategories(progress);
|
ExportUnitModelCategories(progress);
|
||||||
ExportUnitServiceTypes(progress);
|
ExportUnitServiceTypes(progress);
|
||||||
@@ -382,6 +386,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
d.notes = c.Notes;
|
d.notes = c.Notes;
|
||||||
Tagit(c.RegionID,tags);
|
Tagit(c.RegionID,tags);
|
||||||
Tagit(c.DispatchZoneID, tags);
|
Tagit(c.DispatchZoneID, tags);
|
||||||
|
SetTags(d, tags);
|
||||||
|
|
||||||
util.PostAsync("
|
util.PostAsync("
|
||||||
|
|
||||||
@@ -651,6 +656,18 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void SetTags(dynamic d, List<string> tags)
|
||||||
|
{
|
||||||
|
dynamic dtags= new JArray();
|
||||||
|
foreach(string s in tags)
|
||||||
|
dtags.Add(s);
|
||||||
|
d.tags=dtags;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//private static string EnsureValidFileName(string fileName)
|
//private static string EnsureValidFileName(string fileName)
|
||||||
//{
|
//{
|
||||||
// //make lower and replace spaces with dashes
|
// //make lower and replace spaces with dashes
|
||||||
|
|||||||
Reference in New Issue
Block a user