This commit is contained in:
@@ -2392,6 +2392,35 @@ namespace GZTW.AyaNova.BLL
|
||||
this.mModified.Date=dtModified;
|
||||
|
||||
|
||||
|
||||
|
||||
if (AyaBizUtils.AllowAutomaticMRUOnUpdate)
|
||||
{
|
||||
AyaBizUtils.MRU.Add(RootObjectTypes.Client, mID);
|
||||
//Test with DP:
|
||||
//calling save here *does* save it for a dp connection
|
||||
//so need to call save inside dp if using dp every transaction
|
||||
// And AyaNova needs to use fresh MRU every time so
|
||||
//Ayabizutils should always provide fresh no caching if it's a dp
|
||||
//in use AyaBizUtils.MRU.Save();
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Process events as necessary
|
||||
if (AyaBizUtils.GlobalSettings.UseNotification)//Case 510
|
||||
{
|
||||
//Contract expires event changed?
|
||||
if(this.mContractExpiryChanged)
|
||||
{
|
||||
if(this.mContractExpires.IsEmpty)
|
||||
NotifyEvent.RemoveSpecificEventForObject(this.mID,(int)ClientEvent.ContractExpire);
|
||||
else
|
||||
NotifyEvent.AddOrUpdateEvent(RootObjectTypes.Client,this.mID,(int)ClientEvent.ContractExpire,Guid.Empty,this.mContractExpires,Guid.Empty);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//case 3701 set pm's inactive if client is now inactive
|
||||
if (this.mActiveChanged && this.mActive == false)
|
||||
{
|
||||
@@ -2428,32 +2457,7 @@ namespace GZTW.AyaNova.BLL
|
||||
}
|
||||
|
||||
|
||||
if (AyaBizUtils.AllowAutomaticMRUOnUpdate)
|
||||
{
|
||||
AyaBizUtils.MRU.Add(RootObjectTypes.Client, mID);
|
||||
//Test with DP:
|
||||
//calling save here *does* save it for a dp connection
|
||||
//so need to call save inside dp if using dp every transaction
|
||||
// And AyaNova needs to use fresh MRU every time so
|
||||
//Ayabizutils should always provide fresh no caching if it's a dp
|
||||
//in use AyaBizUtils.MRU.Save();
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Process events as necessary
|
||||
if (AyaBizUtils.GlobalSettings.UseNotification)//Case 510
|
||||
{
|
||||
//Contract expires event changed?
|
||||
if(this.mContractExpiryChanged)
|
||||
{
|
||||
if(this.mContractExpires.IsEmpty)
|
||||
NotifyEvent.RemoveSpecificEventForObject(this.mID,(int)ClientEvent.ContractExpire);
|
||||
else
|
||||
NotifyEvent.AddOrUpdateEvent(RootObjectTypes.Client,this.mID,(int)ClientEvent.ContractExpire,Guid.Empty,this.mContractExpires,Guid.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user