BusinessMgr 3.0.0.7

This commit is contained in:
Andy Howard
2025-02-17 17:44:55 +00:00
parent 6d1818c340
commit 77a2964ab5
3 changed files with 24 additions and 11 deletions
+21 -9
View File
@@ -1,9 +1,12 @@
using Sarand.Net.Standard.Base.App;
using Microsoft.AspNetCore.Mvc.Rendering;
using Sarand.Net.Standard.Base.App;
using Sarand.Net.Standard.Base.CodeTypes;
using Sarand.Net.Standard.Base.Core;
using Sarand.Net.Standard.Base.Dbas;
using Sarand.Net.Standard.Base.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Sacs.Web.Components
{
@@ -24,16 +27,16 @@ namespace Sacs.Web.Components
{
}
protected override void Dispose(bool disposing)
{
protected override void Dispose(bool disposing)
{
if (disposing)
{
}
}
}
//---------------------------------------------------------------
// Properties.
public bool DebugMode { get; } = SacsSystem.DebugMode;
//---------------------------------------------------------------
// Properties.
public bool DebugMode { get; } = SacsSystem.DebugMode;
public bool OK { get { return !HasMessages(); } }
public virtual bool ProhibitCache { get; set; } = true;
public String PageCaption { get; set; }
@@ -119,6 +122,15 @@ namespace Sacs.Web.Components
Paging.PopulatePagingTo(resultsPaging);
}
//-------------------------------------------------------------------
// View data.
/// <summary>Empty list of values for dropdown.</summary>
public IEnumerable<SelectListItem> GetEmptyListForSelect()
{
return new SelectList(Enumerable.Empty<SelectListItem>());
}
//-------------------------------------------------------------------
// Messages.
//-------------------------------------------------------------------
@@ -148,7 +160,7 @@ namespace Sacs.Web.Components
errorMessages.Add(message);
}
//---------------------------------------------------------------
}
//---------------------------------------------------------------
}
//=======================================================================
}