This commit is contained in:
@@ -345,7 +345,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
d.name = c.FirstName + " " + c.LastName;
|
d.name = c.FirstName + " " + c.LastName;
|
||||||
|
|
||||||
d.userType = (int)c.UserType;
|
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
|
//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)
|
switch (c.UserType)
|
||||||
{
|
{
|
||||||
@@ -354,15 +354,15 @@ namespace AyaNova.PlugIn.V8
|
|||||||
break;
|
break;
|
||||||
case UserTypes.HeadOffice:
|
case UserTypes.HeadOffice:
|
||||||
d.headOfficeId = -1;
|
d.headOfficeId = -1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (c.VendorID != Guid.Empty)
|
if (c.VendorID != Guid.Empty)
|
||||||
{
|
{
|
||||||
d.userType = 7;//7 is the RAVEN user type for subcontractor
|
d.userType = 7;//7 is the RAVEN user type for subcontractor
|
||||||
d.subVendorId = -1;
|
d.subVendorId = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
d.active = false;//all imported users are inactive to start
|
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.roles = 0;//todo: try to determine role from v7 member of group? or is that even possible?
|
||||||
d.login = util.RandomString();
|
d.login = util.RandomString();
|
||||||
@@ -374,7 +374,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
Tagit(c.DispatchZoneID, tags);
|
Tagit(c.DispatchZoneID, tags);
|
||||||
SetTags(d, 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);
|
long RavenId = util.IdFromResponse(a);
|
||||||
Map.Add(c.ID, RavenId);
|
Map.Add(c.ID, RavenId);
|
||||||
|
|
||||||
@@ -388,11 +388,13 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
util.PutAsync("UserOptions/" + RavenId.ToString(), d.ToString());
|
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
|
//todo fixup post import
|
||||||
progress.Append("TODO: User, fixup translationID, headofficeid, clientid vendorid, phone1, phone2, pagermaxtext");
|
progress.Append("TODO: User, fixup translationID, headofficeid, clientid vendorid, phone1, phone2, pagermaxtext");
|
||||||
|
|||||||
Reference in New Issue
Block a user