This commit is contained in:
@@ -444,24 +444,25 @@ namespace AyaNova.PlugIn.V8
|
|||||||
d.name = GetUniqueName(c.FirstName + " " + c.LastName);
|
d.name = GetUniqueName(c.FirstName + " " + c.LastName);
|
||||||
if (IsDuplicateMapItem(c.ID, c.FirstName + " " + c.LastName, progress)) continue;
|
if (IsDuplicateMapItem(c.ID, c.FirstName + " " + c.LastName, progress)) continue;
|
||||||
progress.Op("User " + d.name);
|
progress.Op("User " + d.name);
|
||||||
throw new System.Exception("TODO: UserTypes sb done differently now to align");
|
//throw new System.Exception("TODO: UserTypes sb done differently now to align");
|
||||||
d.userType = (int)c.UserType;
|
//TODO: User type
|
||||||
|
//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)
|
||||||
{
|
//{
|
||||||
case UserTypes.Client:
|
// case UserTypes.Client:
|
||||||
d.customerId = -1;
|
// d.customerId = -1;
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user