This commit is contained in:
2020-04-28 20:43:02 +00:00
parent eef5befc30
commit 03bae831c1

View File

@@ -345,7 +345,7 @@ namespace AyaNova.PlugIn.V8
d.name = c.FirstName + " " + c.LastName;
d.userType = (int)c.UserType;
//if special 3rd party user type then set their parent object id to -1 to signify will fill in later and satisfy biz rules at server
switch (c.UserType)
{
@@ -354,15 +354,15 @@ namespace AyaNova.PlugIn.V8
break;
case UserTypes.HeadOffice:
d.headOfficeId = -1;
break;
break;
}
if (c.VendorID != Guid.Empty)
{
{
d.userType = 7;//7 is the RAVEN user type for subcontractor
d.subVendorId = -1;
}
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();
@@ -374,7 +374,7 @@ namespace AyaNova.PlugIn.V8
Tagit(c.DispatchZoneID, tags);
SetTags(d, tags);
var a=await util.PostAsync("User", d.ToString());
var a = await util.PostAsync("User", d.ToString());
long RavenId = util.IdFromResponse(a);
Map.Add(c.ID, RavenId);
@@ -388,11 +388,13 @@ namespace AyaNova.PlugIn.V8
util.PutAsync("UserOptions/" + RavenId.ToString(), d.ToString());
}
//EVENT LOG
}
//EVENT LOG
//Because this is the User's we need to do the event log *after* they have all been posted as event log requires all user's id
foreach (UserPickList.UserPickListInfo i in pl)
{
}
//todo fixup post import
progress.Append("TODO: User, fixup translationID, headofficeid, clientid vendorid, phone1, phone2, pagermaxtext");