From 5ddfcfcfc819cdd35a42b7824df014fc0d1c6351 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 8 Oct 2019 18:14:43 +0000 Subject: [PATCH] --- source/MBI/MBI.csproj | 9 ++++----- source/bizobjects/AyaLib/GZTW.AyaNova.BLL/Client.cs | 12 ++++++++++++ .../WorkorderPreventiveMaintenance.cs | 7 +++++++ 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/source/MBI/MBI.csproj b/source/MBI/MBI.csproj index f23d392..a7ad6ed 100644 --- a/source/MBI/MBI.csproj +++ b/source/MBI/MBI.csproj @@ -51,11 +51,6 @@ False ..\..\3rdprtylibs\chilkat\64bit\ChilkatDotNet4.dll - - False - ..\..\release\CSLA.Server.DataPortal.dll - True - ..\..\packages\Newtonsoft.Json.9.0.1\lib\net40\Newtonsoft.Json.dll True @@ -198,6 +193,10 @@ {C2392355-12A9-4197-A1D3-603C390B1E62} CSLA.Core.Bindablebase + + {80828e2c-e9fb-4e73-a27c-7f9cdb96fcde} + CSLA.Server.DataPortal + {1B9A38BB-461A-47A4-AD72-099C694138A0} CSLA diff --git a/source/bizobjects/AyaLib/GZTW.AyaNova.BLL/Client.cs b/source/bizobjects/AyaLib/GZTW.AyaNova.BLL/Client.cs index d480d89..bfdff19 100644 --- a/source/bizobjects/AyaLib/GZTW.AyaNova.BLL/Client.cs +++ b/source/bizobjects/AyaLib/GZTW.AyaNova.BLL/Client.cs @@ -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 { diff --git a/source/bizobjects/AyaLib/GZTW.AyaNova.BLL/WorkorderPreventiveMaintenance.cs b/source/bizobjects/AyaLib/GZTW.AyaNova.BLL/WorkorderPreventiveMaintenance.cs index 393ac3a..0a6ff3e 100644 --- a/source/bizobjects/AyaLib/GZTW.AyaNova.BLL/WorkorderPreventiveMaintenance.cs +++ b/source/bizobjects/AyaLib/GZTW.AyaNova.BLL/WorkorderPreventiveMaintenance.cs @@ -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