This commit is contained in:
@@ -444,24 +444,25 @@ namespace AyaNova.PlugIn.V8
|
||||
d.name = GetUniqueName(c.FirstName + " " + c.LastName);
|
||||
if (IsDuplicateMapItem(c.ID, c.FirstName + " " + c.LastName, progress)) continue;
|
||||
progress.Op("User " + d.name);
|
||||
throw new System.Exception("TODO: UserTypes sb done differently now to align");
|
||||
d.userType = (int)c.UserType;
|
||||
//throw new System.Exception("TODO: UserTypes sb done differently now to align");
|
||||
//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
|
||||
switch (c.UserType)
|
||||
{
|
||||
case UserTypes.Client:
|
||||
d.customerId = -1;
|
||||
break;
|
||||
case UserTypes.HeadOffice:
|
||||
d.headOfficeId = -1;
|
||||
break;
|
||||
}
|
||||
if (c.VendorID != Guid.Empty)
|
||||
{
|
||||
d.userType = 7;//7 is the RAVEN user type for subcontractor
|
||||
d.subVendorId = -1;
|
||||
}
|
||||
////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)
|
||||
//{
|
||||
// d.userType = 7;//7 is the RAVEN user type for subcontractor
|
||||
// d.subVendorId = -1;
|
||||
//}
|
||||
|
||||
|
||||
d.active = false;//all imported users are inactive to start
|
||||
|
||||
Reference in New Issue
Block a user