This commit is contained in:
@@ -160,7 +160,8 @@ namespace AyaNova.PlugIn.V8
|
|||||||
Map.Clear();
|
Map.Clear();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
TODO:
|
TODO:
|
||||||
|
* custom fields processor for: User, Client, Contract, HeadOffice, LoanItem, part, project, purchaseorder, unit, unitmodel, vendor, workorderitem
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
@@ -369,19 +370,20 @@ namespace AyaNova.PlugIn.V8
|
|||||||
User c = User.GetItem(i.ID);
|
User c = User.GetItem(i.ID);
|
||||||
dynamic d = new JObject();
|
dynamic d = new JObject();
|
||||||
d.name = c.FirstName + " " + c.LastName;
|
d.name = c.FirstName + " " + c.LastName;
|
||||||
|
|
||||||
d.userType = (int)c.UserType;
|
d.userType = (int)c.UserType;
|
||||||
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.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.employeeNumber = c.EmployeeNumber;
|
d.employeeNumber = c.EmployeeNumber;
|
||||||
d.notes = c.Notes;
|
d.notes = c.Notes;
|
||||||
if (c.RegionID != Guid.Empty)
|
Tagit(c.RegionID,tags);
|
||||||
{
|
Tagit(c.DispatchZoneID, tags);
|
||||||
var t = TagMap[c.RegionID];
|
|
||||||
if (TagMap.ContainsKey() {
|
util.PostAsync("
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//JObject xtra = new JObject();
|
//JObject xtra = new JObject();
|
||||||
@@ -638,8 +640,9 @@ namespace AyaNova.PlugIn.V8
|
|||||||
#endregion dump
|
#endregion dump
|
||||||
|
|
||||||
#region Utility methods
|
#region Utility methods
|
||||||
private void AddTagIfExists(Guid g, List<string> tags)
|
private void Tagit(Guid g, List<string> tags)
|
||||||
{
|
{
|
||||||
|
if (g == Guid.Empty) return;
|
||||||
var t = TagMap[g];
|
var t = TagMap[g];
|
||||||
if (!string.IsNullOrWhiteSpace(t))
|
if (!string.IsNullOrWhiteSpace(t))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user