This commit is contained in:
@@ -169,10 +169,8 @@ namespace AyaNova.PlugIn.V8
|
||||
|
||||
/*
|
||||
TODO:
|
||||
* EMPTY DB ROUTE
|
||||
* custom fields processor for: User, Client, Contract, HeadOffice, LoanItem, part, project, purchaseorder, unit, unitmodel, vendor, workorderitem
|
||||
|
||||
|
||||
* Userskill, user cert as tags?
|
||||
* custom fields processor for: User, Client, Contract, HeadOffice, LoanItem, part, project, purchaseorder, unit, unitmodel, vendor, workorderitem
|
||||
*/
|
||||
|
||||
|
||||
@@ -332,8 +330,6 @@ namespace AyaNova.PlugIn.V8
|
||||
#region users
|
||||
private async System.Threading.Tasks.Task ExportUsers(ProgressForm progress)
|
||||
{
|
||||
|
||||
|
||||
UserPickList pl = UserPickList.GetList(false);
|
||||
progress.Append("Dumping " + pl.Count.ToString() + " Users");
|
||||
foreach (UserPickList.UserPickListInfo i in pl)
|
||||
@@ -367,7 +363,6 @@ namespace AyaNova.PlugIn.V8
|
||||
}
|
||||
|
||||
|
||||
|
||||
d.active = false;//all imported users are inactive to start
|
||||
d.roles = 0;//todo: try to determine role from v7 member of group? or is that even possible?
|
||||
d.login = util.RandomString();
|
||||
@@ -379,15 +374,28 @@ namespace AyaNova.PlugIn.V8
|
||||
Tagit(c.DispatchZoneID, tags);
|
||||
SetTags(d, tags);
|
||||
|
||||
await util.PostAsync("User", d.ToString());
|
||||
var a=await util.PostAsync("User", d.ToString());
|
||||
long RavenId = util.IdFromResponse(a);
|
||||
Map.Add(c.ID, RavenId);
|
||||
|
||||
//USER OPTIONS
|
||||
a=await util.GetAsync("UserOptions/"+RavenId.ToString());
|
||||
d=a.ObjectResponse["data"];
|
||||
d.uiColor = System.Drawing.ColorTranslator.ToHtml(System.Drawing.Color.FromArgb(c.ScheduleBackColor));
|
||||
d.emailAddress = c.EmailAddress;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//JObject xtra = new JObject();
|
||||
//xtra.Add("hexaScheduleBackColor", System.Drawing.ColorTranslator.ToHtml(System.Drawing.Color.FromArgb(c.ScheduleBackColor)));
|
||||
//xtra.Add("hexaScheduleBackColor", );
|
||||
|
||||
//DumpObjectToFolder(tempArchiveFolder, c, "user." + c.ID.ToString(), objectExcludeProperties, new TypeAndID(RootObjectTypes.User, c.ID), null, xtra);
|
||||
|
||||
}
|
||||
//todo fixup post import
|
||||
progress.Append("TODO: User, fixup translationID, headofficeid, clientid vendorid");
|
||||
}
|
||||
#endregion clients
|
||||
|
||||
|
||||
Reference in New Issue
Block a user