This commit is contained in:
@@ -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
|
//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)
|
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
|
//todo fixup post import
|
||||||
progress.Append("TODO: User, fixup translationID, headofficeid, clientid vendorid, phone1, phone2, pagermaxtext");
|
progress.Append("TODO: User, fixup translationID, headofficeid, clientid vendorid, phone1, phone2, pagermaxtext");
|
||||||
|
|||||||
@@ -196,15 +196,20 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
|
|
||||||
//make an event log entry to preserve the original v7 history such as it is
|
//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();
|
dynamic d = new JObject();
|
||||||
d.ayType = RavenType;
|
d.ayType = RavenType;
|
||||||
d.ayId = RavenId;
|
d.ayId = RavenId;
|
||||||
d.creator = RavenCreatorId;
|
d.creator = RavenCreatorId;
|
||||||
d.modifier = RavenModifierId;
|
d.modifier = RavenModifierId;
|
||||||
d.created = Created.ToUniversalTime();
|
d.created = Created;
|
||||||
d.modified = Modified.ToUniversalTime();
|
d.modified = Modified;
|
||||||
|
|
||||||
|
await PostAsync("EventLog/v7", d.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user