Session Console and Internals.

This commit is contained in:
Andy Howard
2025-01-16 13:19:58 +00:00
parent ee988b1f76
commit 61ecd59794
187 changed files with 4681 additions and 3647 deletions
@@ -215,7 +215,7 @@ namespace Sarand.BusinessMgr.Web.Control.Controllers.Param
ColumnDfn colContext = ControlItemMgr.GetItemParamColumnDfn(SbmcItemParam.Column.Context);
ColumnDfn colName = ControlItemMgr.GetItemParamColumnDfn(SbmcItemParam.Column.Name);
ColumnDfn colValue = ControlItemMgr.GetItemParamColumnDfn(SbmcItemParam.Column.Value);
ColumnDfn colFlags = ControlItemMgr.GetItemParamColumnDfn(SbmcItemParam.Column.Status);
ColumnDfn colFlags = ControlItemMgr.GetItemParamColumnDfn(SbmcItemParam.Column.Flags);
ColumnDfn colStatus = ControlItemMgr.GetItemParamColumnDfn(SbmcItemParam.Column.Status);
List<ColumnDfn> columns = new List<ColumnDfn>()
{
@@ -360,6 +360,20 @@ namespace Sarand.BusinessMgr.Web.Control.Controllers.Param
return Json(responseData.SetMessage(messageTitle, Localiser["msg.error.system"]));
}
// Ensure combination of item, name and context not duplicate.
if (model.Param.Context != null && model.Param.Name != null)
{
string controlName = "ParamName";
SbmcItemParam.Params prmParam = new SbmcItemParam.Params();
if (itemParam != null)
prmParam.IdsExcluded.Add(itemParam.Id);
prmParam.ItemIdsIncluded.Add(itemId);
prmParam.Context = model.Param.Context;
prmParam.Name = model.Param.Name;
if (ControlItemMgr.GetItemParamCount(prmParam) > 0)
return Json(responseData.SetControlError(controlName, Localiser["msg.validation.duplicate.value"]));
}
// Create new item if required.
if (itemParam == null)
{