This commit is contained in:
@@ -349,8 +349,24 @@ 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
|
||||||
|
switch (c.UserType)
|
||||||
|
{
|
||||||
|
case UserTypes.Client:
|
||||||
|
d.customerId = -1;
|
||||||
|
break;
|
||||||
|
case UserTypes.HeadOffice:
|
||||||
|
d.headOfficeId = -1;
|
||||||
|
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.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?
|
||||||
|
|||||||
Reference in New Issue
Block a user