case 3823

This commit is contained in:
2020-10-15 20:36:08 +00:00
parent 6ce273b16b
commit fb9066d5d1
6 changed files with 29 additions and 11 deletions

View File

@@ -6,6 +6,10 @@
////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////
//DONE STUFF //DONE STUFF
Biz 7.6.8
3822 - by design 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. 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. 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 -

View File

@@ -62,4 +62,4 @@ using System.Runtime.InteropServices;
[assembly: log4net.Config.XmlConfigurator(ConfigFile="Log4Net.config",Watch=true)] [assembly: log4net.Config.XmlConfigurator(ConfigFile="Log4Net.config",Watch=true)]
//[assembly: log4net.Config.XmlConfigurator(Watch=true)] //[assembly: log4net.Config.XmlConfigurator(Watch=true)]
[assembly: ComVisibleAttribute(false)] [assembly: ComVisibleAttribute(false)]
[assembly: AssemblyFileVersionAttribute("7.6.4.0")] [assembly: AssemblyFileVersionAttribute("7.6.5.0")]

View File

@@ -1330,6 +1330,13 @@ namespace AyaNova
Application.Idle+= new EventHandler(Application_Idle); Application.Idle+= new EventHandler(Application_Idle);
this.Visible=true; 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 #region Business object editing / adding / deletion related code
//case 3823 //case 3823
private TypeAndID mClientNoteToDisplay; private Guid mClientNoteIdToDisplay = Guid.Empty;
public TypeAndID ClientNoteToDisplay { get { return mClientNoteToDisplay; } set { mClientNoteToDisplay = value; } } public Guid ClientNoteToDisplay { get { return mClientNoteIdToDisplay; } set { mClientNoteIdToDisplay = value; } }
private Client mClient; private Client mClient;

View File

@@ -265,7 +265,10 @@ namespace AyaNova
this.Text = Util.LocaleText.GetLocalizedText("ClientNote.Label.List") + " - " + AyaBizUtils.GetBizObjectName("Client", mClientID); 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 #endregion
#region properties #region properties
//case 3823
private Guid mClientNoteIdToDisplay = Guid.Empty;
public Guid ClientNoteToDisplay { get { return mClientNoteIdToDisplay; } set { mClientNoteIdToDisplay = value; } }
private Guid mClientID=Guid.Empty; private Guid mClientID=Guid.Empty;

View File

@@ -1848,7 +1848,7 @@ namespace AyaNova
object oId = e.Cell.Row.Cells["RootObjectID"].Value; object oId = e.Cell.Row.Cells["RootObjectID"].Value;
if (oId != null && oId is Guid) 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 else
{ {

View File

@@ -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) static public bool EditRecord(RootObjectTypes ObjectType, Guid ID)
{ {
//call version with optional id as optional id empty //call version with optional id as optional id empty
return EditRecord(ObjectType, ID, Guid.Empty); return EditRecord(ObjectType, ID);
} }
//case 227 //case 227
@@ -3376,7 +3376,7 @@ At first I was happy to find your code that solved my problem, but I did not lik
/// <returns></returns> /// <returns></returns>
static public bool EditRecord(TypeAndID TID) static public bool EditRecord(TypeAndID TID)
{ {
return EditRecord(TID.RootObjectType, TID.ID, Guid.Empty); return EditRecord(TID.RootObjectType, TID.ID);
} }
/// <summary> /// <summary>
/// Same as edit record but with optional id parameter /// Same as edit record but with optional id parameter
@@ -3384,10 +3384,9 @@ At first I was happy to find your code that solved my problem, but I did not lik
/// </summary> /// </summary>
/// <param name="ObjectType"></param> /// <param name="ObjectType"></param>
/// <param name="ID"></param> /// <param name="ID"></param>
/// <param name="OptionalIDForCreate"></param>
/// <param name="subTypeIdToOpen"></param> /// <param name="subTypeIdToOpen"></param>
/// <returns></returns> /// <returns></returns>
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 //if(log.IsDebugEnabled)
//case 1039 //log.Debug("EditRecord(" + ObjectType.ToString()+", " + ID.ToString()); //case 1039 //log.Debug("EditRecord(" + ObjectType.ToString()+", " + ID.ToString());