From fb9066d5d1318c2651718c39d9ca6c20f0ad0a2e Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 15 Oct 2020 20:36:08 +0000 Subject: [PATCH] case 3823 --- TODO.txt | 4 ++++ source/WinFormApp/AssemblyInfo.cs | 2 +- source/WinFormApp/ClientInfoForm.cs | 13 ++++++++++--- source/WinFormApp/ClientNotesForm.cs | 10 +++++++++- source/WinFormApp/MainGrid.cs | 2 +- source/WinFormApp/Util.cs | 9 ++++----- 6 files changed, 29 insertions(+), 11 deletions(-) diff --git a/TODO.txt b/TODO.txt index c873660..e3a455b 100644 --- a/TODO.txt +++ b/TODO.txt @@ -6,6 +6,10 @@ ////////////////////////////////////////////////////////// //DONE STUFF +Biz 7.6.8 3822 - by design 3827 - Issue: Stale Client notifications could build up in database. Fix: Client notifications automatically removed if their deliver after date is older than 7 days. 3826 - Issue: System warning memos to Administrator automatically by internal Utility account (generator) un-readable due to being sent from a Utility type User account with no name. Fixes: New memo warnings will be automatically changed from Utility user to Administrator account. Old memos: will substitute the "-" empty record symbol instead of trying to fetch the name to display for the Utility account making it possible to open old Memo system warnings. + +Winform 7.6.5 +3823 - \ No newline at end of file diff --git a/source/WinFormApp/AssemblyInfo.cs b/source/WinFormApp/AssemblyInfo.cs index ef502bb..9570d0c 100644 --- a/source/WinFormApp/AssemblyInfo.cs +++ b/source/WinFormApp/AssemblyInfo.cs @@ -62,4 +62,4 @@ using System.Runtime.InteropServices; [assembly: log4net.Config.XmlConfigurator(ConfigFile="Log4Net.config",Watch=true)] //[assembly: log4net.Config.XmlConfigurator(Watch=true)] [assembly: ComVisibleAttribute(false)] -[assembly: AssemblyFileVersionAttribute("7.6.4.0")] +[assembly: AssemblyFileVersionAttribute("7.6.5.0")] diff --git a/source/WinFormApp/ClientInfoForm.cs b/source/WinFormApp/ClientInfoForm.cs index 943ea30..13d8218 100644 --- a/source/WinFormApp/ClientInfoForm.cs +++ b/source/WinFormApp/ClientInfoForm.cs @@ -1330,6 +1330,13 @@ namespace AyaNova Application.Idle+= new EventHandler(Application_Idle); this.Visible=true; + //case 3823 + if (mClientNoteIdToDisplay != Guid.Empty) + { + ClientNotesForm CN = new ClientNotesForm(); + CN.ClientID = mClient.ID; + CN.ShowDialog(); + } } @@ -2087,9 +2094,9 @@ namespace AyaNova #region Business object editing / adding / deletion related code - //case 3823 - private TypeAndID mClientNoteToDisplay; - public TypeAndID ClientNoteToDisplay { get { return mClientNoteToDisplay; } set { mClientNoteToDisplay = value; } } + //case 3823 + private Guid mClientNoteIdToDisplay = Guid.Empty; + public Guid ClientNoteToDisplay { get { return mClientNoteIdToDisplay; } set { mClientNoteIdToDisplay = value; } } private Client mClient; diff --git a/source/WinFormApp/ClientNotesForm.cs b/source/WinFormApp/ClientNotesForm.cs index aec46fc..a916aa0 100644 --- a/source/WinFormApp/ClientNotesForm.cs +++ b/source/WinFormApp/ClientNotesForm.cs @@ -265,7 +265,10 @@ namespace AyaNova this.Text = Util.LocaleText.GetLocalizedText("ClientNote.Label.List") + " - " + AyaBizUtils.GetBizObjectName("Client", mClientID); - + if (mClientNoteIdToDisplay != Guid.Empty) + { + MessageBox.Show("STUB: scroll into view id " + mClientNoteIdToDisplay.ToString()); + } } @@ -457,6 +460,11 @@ namespace AyaNova #endregion #region properties + //case 3823 + private Guid mClientNoteIdToDisplay = Guid.Empty; + public Guid ClientNoteToDisplay { get { return mClientNoteIdToDisplay; } set { mClientNoteIdToDisplay = value; } } + + private Guid mClientID=Guid.Empty; diff --git a/source/WinFormApp/MainGrid.cs b/source/WinFormApp/MainGrid.cs index f306c94..3920e2b 100644 --- a/source/WinFormApp/MainGrid.cs +++ b/source/WinFormApp/MainGrid.cs @@ -1848,7 +1848,7 @@ namespace AyaNova object oId = e.Cell.Row.Cells["RootObjectID"].Value; if (oId != null && oId is Guid) { - bRefreshGrid = Util.EditRecord(RootObjectTypes.ClientNote, (Guid)oId); + bRefreshGrid = Util.EditRecord(i.RootObjectType, i.Value, new TypeAndID(RootObjectTypes.ClientNote, (Guid)oId)); } else { diff --git a/source/WinFormApp/Util.cs b/source/WinFormApp/Util.cs index 037ea49..1110e47 100644 --- a/source/WinFormApp/Util.cs +++ b/source/WinFormApp/Util.cs @@ -3353,7 +3353,7 @@ At first I was happy to find your code that solved my problem, but I did not lik static public bool EditRecord(RootObjectTypes ObjectType, Guid ID) { //call version with optional id as optional id empty - return EditRecord(ObjectType, ID, Guid.Empty); + return EditRecord(ObjectType, ID); } //case 227 @@ -3376,18 +3376,17 @@ At first I was happy to find your code that solved my problem, but I did not lik /// static public bool EditRecord(TypeAndID TID) { - return EditRecord(TID.RootObjectType, TID.ID, Guid.Empty); + return EditRecord(TID.RootObjectType, TID.ID); } /// /// Same as edit record but with optional id parameter /// to be used when creating a work order or other object that requires the optional id value /// /// - /// - /// + /// /// /// - static public bool EditRecord(RootObjectTypes ObjectType, Guid ID, Guid OptionalIDForCreate, TypeAndID subTypeIdToOpen=null) + static public bool EditRecord(RootObjectTypes ObjectType, Guid ID, TypeAndID subTypeIdToOpen=null) { //case 1039 //if(log.IsDebugEnabled) //case 1039 //log.Debug("EditRecord(" + ObjectType.ToString()+", " + ID.ToString());