This commit is contained in:
@@ -517,15 +517,15 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
d.employeeNumber = c.EmployeeNumber;
|
d.employeeNumber = c.EmployeeNumber;
|
||||||
d.notes = c.Notes;
|
d.notes = c.Notes;
|
||||||
Tagit(c.RegionID, tags);
|
TagFromv7Guid(c.RegionID, tags);
|
||||||
Tagit(c.DispatchZoneID, tags);
|
TagFromv7Guid(c.DispatchZoneID, tags);
|
||||||
foreach (UserSkillAssigned skill in c.UserSkills)
|
foreach (UserSkillAssigned skill in c.UserSkills)
|
||||||
{
|
{
|
||||||
Tagit(skill.UserSkillID, tags);
|
TagFromv7Guid(skill.UserSkillID, tags);
|
||||||
}
|
}
|
||||||
foreach (UserCertificationAssigned cert in c.UserCertifications)
|
foreach (UserCertificationAssigned cert in c.UserCertifications)
|
||||||
{
|
{
|
||||||
Tagit(cert.UserCertificationID, tags);
|
TagFromv7Guid(cert.UserCertificationID, tags);
|
||||||
}
|
}
|
||||||
SetTags(d, tags);
|
SetTags(d, tags);
|
||||||
|
|
||||||
@@ -696,15 +696,15 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
d.employeeNumber = c.EmployeeNumber;
|
d.employeeNumber = c.EmployeeNumber;
|
||||||
d.notes = c.Notes;
|
d.notes = c.Notes;
|
||||||
Tagit(c.RegionID, tags);
|
TagFromv7Guid(c.RegionID, tags);
|
||||||
Tagit(c.DispatchZoneID, tags);
|
TagFromv7Guid(c.DispatchZoneID, tags);
|
||||||
foreach (UserSkillAssigned skill in c.UserSkills)
|
foreach (UserSkillAssigned skill in c.UserSkills)
|
||||||
{
|
{
|
||||||
Tagit(skill.UserSkillID, tags);
|
TagFromv7Guid(skill.UserSkillID, tags);
|
||||||
}
|
}
|
||||||
foreach (UserCertificationAssigned cert in c.UserCertifications)
|
foreach (UserCertificationAssigned cert in c.UserCertifications)
|
||||||
{
|
{
|
||||||
Tagit(cert.UserCertificationID, tags);
|
TagFromv7Guid(cert.UserCertificationID, tags);
|
||||||
}
|
}
|
||||||
SetTags(d, tags);
|
SetTags(d, tags);
|
||||||
|
|
||||||
@@ -902,9 +902,9 @@ namespace AyaNova.PlugIn.V8
|
|||||||
d.longitude = c.GoToAddress.Longitude;
|
d.longitude = c.GoToAddress.Longitude;
|
||||||
|
|
||||||
|
|
||||||
Tagit(c.RegionID, tags);
|
TagFromv7Guid(c.RegionID, tags);
|
||||||
Tagit(c.DispatchZoneID, tags);
|
TagFromv7Guid(c.DispatchZoneID, tags);
|
||||||
Tagit(c.ClientGroupID, tags);
|
TagFromv7Guid(c.ClientGroupID, tags);
|
||||||
SetTags(d, tags);
|
SetTags(d, tags);
|
||||||
|
|
||||||
|
|
||||||
@@ -1016,7 +1016,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
d.userId = SafeGetUserMap(cn.Creator);
|
d.userId = SafeGetUserMap(cn.Creator);
|
||||||
d.noteDate = util.DateToV8(cn.Created, true);
|
d.noteDate = util.DateToV8(cn.Created, true);
|
||||||
d.notes = cn.Notes;
|
d.notes = cn.Notes;
|
||||||
Tagit(cn.ClientNoteTypeID, tags);
|
TagFromv7Guid(cn.ClientNoteTypeID, tags);
|
||||||
SetTags(d, tags);
|
SetTags(d, tags);
|
||||||
await util.PostAsync("customer-note", d.ToString());
|
await util.PostAsync("customer-note", d.ToString());
|
||||||
|
|
||||||
@@ -1104,8 +1104,8 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Tagit(c.RegionID, tags);
|
TagFromv7Guid(c.RegionID, tags);
|
||||||
Tagit(c.ClientGroupID, tags);
|
TagFromv7Guid(c.ClientGroupID, tags);
|
||||||
SetTags(d, tags);
|
SetTags(d, tags);
|
||||||
|
|
||||||
|
|
||||||
@@ -1223,7 +1223,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
progress.Op(ObjectTypeName + " " + d.name);
|
progress.Op(ObjectTypeName + " " + d.name);
|
||||||
d.active = c.Active;
|
d.active = c.Active;
|
||||||
d.notes = c.Notes;
|
d.notes = c.Notes;
|
||||||
Tagit(c.RegionID, tags);
|
TagFromv7Guid(c.RegionID, tags);
|
||||||
SetTags(d, tags);
|
SetTags(d, tags);
|
||||||
|
|
||||||
|
|
||||||
@@ -1300,7 +1300,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
progress.Op(ObjectTypeName + " " + d.name);
|
progress.Op(ObjectTypeName + " " + d.name);
|
||||||
d.active = c.Active;
|
d.active = c.Active;
|
||||||
d.notes = c.Notes;
|
d.notes = c.Notes;
|
||||||
Tagit(c.RegionID, tags);
|
TagFromv7Guid(c.RegionID, tags);
|
||||||
SetTags(d, tags);
|
SetTags(d, tags);
|
||||||
|
|
||||||
//Custom fields?
|
//Custom fields?
|
||||||
@@ -1458,7 +1458,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
d.accountNumber = c.AccountNumber;
|
d.accountNumber = c.AccountNumber;
|
||||||
d.projectOverseerId = SafeGetUserMap(c.ProjectOverseerID);
|
d.projectOverseerId = SafeGetUserMap(c.ProjectOverseerID);
|
||||||
|
|
||||||
Tagit(c.RegionID, tags);
|
TagFromv7Guid(c.RegionID, tags);
|
||||||
SetTags(d, tags);
|
SetTags(d, tags);
|
||||||
|
|
||||||
|
|
||||||
@@ -1683,7 +1683,10 @@ namespace AyaNova.PlugIn.V8
|
|||||||
progress.Op(ObjectTypeName + " " + d.name);
|
progress.Op(ObjectTypeName + " " + d.name);
|
||||||
d.active = c.Active;
|
d.active = c.Active;
|
||||||
d.notes = c.Notes;
|
d.notes = c.Notes;
|
||||||
Tagit(c.UnitModelCategoryID, tags);
|
|
||||||
|
|
||||||
|
|
||||||
|
TagFromv7Guid(c.UnitModelCategoryID, tags);
|
||||||
SetTags(d, tags);
|
SetTags(d, tags);
|
||||||
|
|
||||||
|
|
||||||
@@ -1881,8 +1884,8 @@ namespace AyaNova.PlugIn.V8
|
|||||||
if (i.ContractRate)
|
if (i.ContractRate)
|
||||||
tags.Add("contract.rate");
|
tags.Add("contract.rate");
|
||||||
|
|
||||||
Tagit(i.RegionID, tags);
|
TagFromv7Guid(i.RegionID, tags);
|
||||||
Tagit(i.ClientGroupID, tags);
|
TagFromv7Guid(i.ClientGroupID, tags);
|
||||||
SetTags(d, tags);
|
SetTags(d, tags);
|
||||||
|
|
||||||
|
|
||||||
@@ -2052,7 +2055,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
progress.Op(ObjectTypeName + " " + c.WorkorderService.ServiceNumber);
|
progress.Op(ObjectTypeName + " " + c.WorkorderService.ServiceNumber);
|
||||||
d.active = true;//probably can remove this at server, just stubbed in for now
|
d.active = true;//probably can remove this at server, just stubbed in for now
|
||||||
|
|
||||||
Tagit(c.RegionID, tags);
|
TagFromv7Guid(c.RegionID, tags);
|
||||||
SetTags(d, tags);
|
SetTags(d, tags);
|
||||||
|
|
||||||
|
|
||||||
@@ -2106,8 +2109,8 @@ namespace AyaNova.PlugIn.V8
|
|||||||
progress.Op("WorkorderItem " + wi.ID.ToString());
|
progress.Op("WorkorderItem " + wi.ID.ToString());
|
||||||
dwi.active = true;//probably can remove this at server, just stubbed in for now
|
dwi.active = true;//probably can remove this at server, just stubbed in for now
|
||||||
|
|
||||||
Tagit(wi.TypeID, tags);
|
TagFromv7Guid(wi.TypeID, tags);
|
||||||
Tagit(wi.WorkorderItemUnitServiceTypeID, tags);
|
TagFromv7Guid(wi.WorkorderItemUnitServiceTypeID, tags);
|
||||||
SetTags(dwi, tags);
|
SetTags(dwi, tags);
|
||||||
|
|
||||||
////Custom fields?
|
////Custom fields?
|
||||||
@@ -2163,7 +2166,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
progress.Op(ObjectTypeName + " " + c.WorkorderQuote.QuoteNumber);
|
progress.Op(ObjectTypeName + " " + c.WorkorderQuote.QuoteNumber);
|
||||||
d.active = true;//probably can remove this at server, just stubbed in for now
|
d.active = true;//probably can remove this at server, just stubbed in for now
|
||||||
|
|
||||||
Tagit(c.RegionID, tags);
|
TagFromv7Guid(c.RegionID, tags);
|
||||||
SetTags(d, tags);
|
SetTags(d, tags);
|
||||||
|
|
||||||
////Custom fields?
|
////Custom fields?
|
||||||
@@ -2243,7 +2246,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
progress.Op(ObjectTypeName + " " + c.WorkorderPreventiveMaintenance.PreventiveMaintenanceNumber);
|
progress.Op(ObjectTypeName + " " + c.WorkorderPreventiveMaintenance.PreventiveMaintenanceNumber);
|
||||||
d.active = true;//probably can remove this at server, just stubbed in for now
|
d.active = true;//probably can remove this at server, just stubbed in for now
|
||||||
|
|
||||||
Tagit(c.RegionID, tags);
|
TagFromv7Guid(c.RegionID, tags);
|
||||||
SetTags(d, tags);
|
SetTags(d, tags);
|
||||||
|
|
||||||
////Custom fields?
|
////Custom fields?
|
||||||
@@ -2487,7 +2490,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
d.lastHoursBalance = iLast.LT_ServiceBank_Label_HoursBalance;
|
d.lastHoursBalance = iLast.LT_ServiceBank_Label_HoursBalance;
|
||||||
}
|
}
|
||||||
|
|
||||||
var rMainObject = await util.PostAsync("service-bank", d.ToString());
|
var rMainObject = await util.PostAsync("service-bank/migrate", d.ToString());
|
||||||
long RavenId = util.IdFromResponse(rMainObject);
|
long RavenId = util.IdFromResponse(rMainObject);
|
||||||
// Addv7v8IdMap(i.ID, RavenId);
|
// Addv7v8IdMap(i.ID, RavenId);
|
||||||
|
|
||||||
@@ -3798,7 +3801,7 @@ and this one
|
|||||||
#endregion wiki
|
#endregion wiki
|
||||||
|
|
||||||
#region TAGS
|
#region TAGS
|
||||||
private void Tagit(Guid g, List<string> tags)
|
private void TagFromv7Guid(Guid g, List<string> tags)
|
||||||
{
|
{
|
||||||
if (g == Guid.Empty) return;
|
if (g == Guid.Empty) return;
|
||||||
if (!TagMap.ContainsKey(g)) return;
|
if (!TagMap.ContainsKey(g)) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user