This commit is contained in:
@@ -446,23 +446,28 @@ namespace AyaNova.PlugIn.V8
|
|||||||
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");
|
||||||
//TODO: User type
|
//TODO: User type
|
||||||
//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
|
//todo: this needs to be adjusted later
|
||||||
//switch (c.UserType)
|
//in order to allow import set the client and ho and sub users to regular non sched and
|
||||||
//{
|
//they can be fixed up after their target objects are imported
|
||||||
// case UserTypes.Client:
|
switch (c.UserType)
|
||||||
// d.customerId = -1;
|
{
|
||||||
// break;
|
case UserTypes.Client:
|
||||||
// case UserTypes.HeadOffice:
|
// d.customerId = -1;
|
||||||
// d.headOfficeId = -1;
|
d.userType = (int)UserTypes.NonSchedulable;
|
||||||
// break;
|
break;
|
||||||
//}
|
case UserTypes.HeadOffice:
|
||||||
//if (c.VendorID != Guid.Empty)
|
d.userType = (int)UserTypes.NonSchedulable;
|
||||||
//{
|
// d.headOfficeId = -1;
|
||||||
// d.userType = 7;//7 is the RAVEN user type for subcontractor
|
break;
|
||||||
// d.subVendorId = -1;
|
}
|
||||||
//}
|
if (c.VendorID != Guid.Empty)
|
||||||
|
{
|
||||||
|
d.userType = (int)UserTypes.NonSchedulable;
|
||||||
|
// 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
|
||||||
|
|||||||
Reference in New Issue
Block a user