This commit is contained in:
2019-10-08 18:14:43 +00:00
parent 6fdf39ab8a
commit 5ddfcfcfc8
3 changed files with 23 additions and 5 deletions

View File

@@ -75,6 +75,8 @@ namespace GZTW.AyaNova.BLL
//Notification internal stuff
private bool mContractExpiryChanged=false;
//case 3701
private bool mActiveChanged = false;
private string mContactNotes = "";
@@ -416,6 +418,8 @@ namespace GZTW.AyaNova.BLL
if(mActive!=value)
{
mActive = value;
//case 3701
mActiveChanged = true;
MarkDirty();
}
@@ -2394,6 +2398,14 @@ namespace GZTW.AyaNova.BLL
//in use AyaBizUtils.MRU.Save();
}
//case 3701 set pm's inactive if client is now inactive
if (this.mActiveChanged && this.mActive == false)
{
//here set all pm's for this client to inactive
}
//Process events as necessary
if (AyaBizUtils.GlobalSettings.UseNotification)//Case 510
{

View File

@@ -704,6 +704,13 @@ namespace GZTW.AyaNova.BLL
// LocalizedTextTable.GetLocalizedTextDirect("Error.Security.NotAuthorizedToRetrieve"),
// LocalizedTextTable.GetLocalizedTextDirect("O.WorkorderPreventiveMaintenance")));
}
update AWORKORDERPREVENTIVEMAINTENANCE set aactive = 1 from AWORKORDERPREVENTIVEMAINTENANCE
LEFT OUTER JOIN AWORKORDER ON (AWORKORDERPREVENTIVEMAINTENANCE.AWORKORDERID=AWORKORDER.AID)
WHERE AWORKORDER.AWORKORDERTYPE='2' and
aworkorder.ACLIENTID='9038112D-D650-4C7F-B90C-5459F8706263'
#endregion
#region DAL DATA ACCESS