This commit is contained in:
2020-04-28 20:51:27 +00:00
parent 03bae831c1
commit cbecd46038
2 changed files with 10 additions and 3 deletions

View File

@@ -395,6 +395,8 @@ namespace AyaNova.PlugIn.V8
//Because this is the User's we need to do the event log *after* they have all been posted as event log requires all user's id
foreach (UserPickList.UserPickListInfo i in pl)
{
User c = User.GetItem(i.ID);
await util.EventLog(3, Map[c.ID], Map[c.Creator], Map[c.Modifier], c.Created, c.Modified);
}
//todo fixup post import
progress.Append("TODO: User, fixup translationID, headofficeid, clientid vendorid, phone1, phone2, pagermaxtext");

View File

@@ -196,15 +196,20 @@ namespace AyaNova.PlugIn.V8
//make an event log entry to preserve the original v7 history such as it is
public async static Task EventLog(int RavenType, long RavenId, long RavenCreatorId, long RavenModifierId, DateTime Created, DateTime Modified)
public async static Task EventLog(int RavenType, long RavenId, long RavenCreatorId, long RavenModifierId, string sCreated, string sModified)
{
DateTime Created = DateTime.Parse(sCreated).ToUniversalTime();
DateTime Modified = DateTime.Parse(sModified).ToUniversalTime();
dynamic d = new JObject();
d.ayType = RavenType;
d.ayId = RavenId;
d.creator = RavenCreatorId;
d.modifier = RavenModifierId;
d.created = Created.ToUniversalTime();
d.modified = Modified.ToUniversalTime();
d.created = Created;
d.modified = Modified;
await PostAsync("EventLog/v7", d.ToString());
}