v1.2.10.3 interim-1

This commit is contained in:
2023-01-18 10:47:27 +00:00
parent e64205a6df
commit c5f8b43087
63 changed files with 1975 additions and 116 deletions
@@ -13,6 +13,7 @@ using Saxonite.Net.Standard.Base.App;
using Saxonite.Net.Standard.Base.Bus;
using Saxonite.Net.Standard.Base.Consoles;
using Saxonite.Net.Standard.Base.Mgr;
using Saxonite.Net.Standard.Base.Mgr.Support;
using System;
using System.Collections.Generic;
using System.Globalization;
@@ -87,6 +88,7 @@ namespace Saxonite.Net.Core.Web.Base.Models
public SaxAccountMgr AccountMgr { get { return Internals.AccountMgr; } }
public SaxActivityMgr ActivityMgr { get { return Internals.ActivityMgr; } }
public SaxItemDataMgr ItemDataMgr { get { return Internals.ItemDataMgr; } }
public SaxSupportMgr SupportMgr { get { return Internals.SupportMgr; } }
// System codes.
public List<TypeCodeDesc> DataItemTypeCodes { get { return Internals.DataItemTypeCodes; } }
public List<TypeCodeDesc> YesNoCodes { get { return Internals.YesNoCodes; } }
@@ -107,6 +109,8 @@ namespace Saxonite.Net.Core.Web.Base.Models
public List<TypeCodeDesc> EventTypeCodes { get { return Internals.EventTypeCodes; } }
public List<TypeCodeDesc> OpportunityTypeCodes { get { return Internals.OpportunityTypeCodes; } }
public List<TypeCodeDesc> ActivityReactionCodes { get { return Internals.ActivityReactionCodes; } }
// Support.
public List<TypeCodeDesc> UserReportTypeCodes { get { return Internals.UserReportTypeCodes; } }
//-------------------------------------------------------------------
// Common data components.
@@ -274,6 +278,22 @@ namespace Saxonite.Net.Core.Web.Base.Models
return maxLength;
}
/// <summary>
/// Form control value max length - support database.
/// <para>In many cases the database columns allow plenty of extra space for the value, in case they need to be encrypted.</para>
/// <para>Hence, several cases where the value entered in the control isn't allowed the full database length.</para>
/// </summary>
public int GetControlMaxLength(SaxDbDfn_Support.ColumnIdx column)
{
int maxLength = (int)SaxDbDfn_Support.GetColTextLen(column);
switch (column)
{
case SaxDbDfn_Support.ColumnIdx.UserReport_Title:
break;
}
return maxLength;
}
//-------------------------------------------------------------------
// Display data - Dates.
public String FormatDateForDisplay(DateTime value)