This commit is contained in:
Andy Howard
2024-11-19 09:47:00 +00:00
parent c5ee285e27
commit 8b872cc8f3
214 changed files with 7924 additions and 5519 deletions
@@ -28,7 +28,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.Mgr
ClearErrorState();
if (!SysId.IsValid(id)) return false;
SbmVehicle.Params prm = new SbmVehicle.Params();
prm.IncludedIds.Add(id);
prm.IdsIncluded.Add(id);
prm.StatusCat = SbmVehicle.StatusCat.Any;
return GetVehicleCount(prm) == 1;
}
@@ -53,7 +53,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.Mgr
ClearErrorState();
if (!SysId.IsValid(id)) return null;
SbmVehicle.Params prm = new SbmVehicle.Params();
prm.IncludedIds.Add(id);
prm.IdsIncluded.Add(id);
prm.StatusCat = SbmVehicle.StatusCat.Any;
return GetVehicle(prm);
}
@@ -173,6 +173,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.Mgr
DataValue value = new DataValue();
switch ((SbmVehicle.Column)column.Id)
{
//-----------------------------------------------------------
// Notes.
case SbmVehicle.Column.Notes:
value = new DataValue(SacsHierarchyItem.FormatForDisplay(values.GetValue(column.DataName).ToString(), 200));
@@ -191,7 +192,11 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.Mgr
}
break;
//-----------------------------------------------------------
//-----------------------------------------------------------
default:
value = values.GetValue(column.DataName);
break;
}
return value;
}