Saxonite v1.1.3
This commit is contained in:
+5
-5
@@ -20,7 +20,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution files", "Solution
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SacsStandardAccounts", "SacsStandardAccounts\SacsStandardAccounts.csproj", "{C62999E2-1947-4EB7-82D2-A0EDB67D2F10}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SacsStandardData", "SacsStandardData\SacsStandardData.csproj", "{1EF60484-61DB-4BDC-8BF2-394C663B6031}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SaBusMgrCoreProcs", "..\..\BusinessMgr\Workspace\SaBusMgrCoreProcs\SaBusMgrCoreProcs.csproj", "{452FC874-81D6-4858-A6F4-0337AA656D23}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
@@ -52,10 +52,10 @@ Global
|
||||
{C62999E2-1947-4EB7-82D2-A0EDB67D2F10}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{C62999E2-1947-4EB7-82D2-A0EDB67D2F10}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{C62999E2-1947-4EB7-82D2-A0EDB67D2F10}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{1EF60484-61DB-4BDC-8BF2-394C663B6031}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{1EF60484-61DB-4BDC-8BF2-394C663B6031}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{1EF60484-61DB-4BDC-8BF2-394C663B6031}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{1EF60484-61DB-4BDC-8BF2-394C663B6031}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{452FC874-81D6-4858-A6F4-0337AA656D23}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{452FC874-81D6-4858-A6F4-0337AA656D23}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{452FC874-81D6-4858-A6F4-0337AA656D23}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{452FC874-81D6-4858-A6F4-0337AA656D23}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using Sarand.Net.Standard.Base.App;
|
||||
using Sarand.Net.Standard.Base.Core;
|
||||
@@ -109,6 +110,7 @@ namespace Sarand.Net.Standard.Base.Bus
|
||||
{
|
||||
get { return SacsSystem.GetStatusDesc(Status); }
|
||||
}
|
||||
public bool IsStatusAwaiting { get { return Status == SaStatus.Awaiting; } }
|
||||
public bool IsStatusCurrent { get { return Status == SaStatus.Current; } }
|
||||
public bool IsStatusActive { get { return Status == SaStatus.Active; } }
|
||||
public bool IsStatusEnabled { get { return Status == SaStatus.Enabled; } }
|
||||
@@ -326,6 +328,7 @@ namespace Sarand.Net.Standard.Base.Bus
|
||||
{
|
||||
get { return data.StatusDesc; }
|
||||
}
|
||||
public bool IsStatusAwaiting { get { return data.IsStatusAwaiting; } }
|
||||
public bool IsStatusCurrent { get { return data.IsStatusCurrent; } }
|
||||
public bool IsStatusActive { get { return data.IsStatusActive; } }
|
||||
public bool IsStatusEnabled { get { return data.IsStatusEnabled; } }
|
||||
|
||||
@@ -123,8 +123,9 @@ namespace Sarand.Net.Standard.Base.Bus
|
||||
try
|
||||
{
|
||||
// Convert the integer value to a SysId.
|
||||
if (reader.Value == null) return new SysId();
|
||||
JValue jValue = new JValue(reader.Value);
|
||||
return new SysId() { Id = (long)jValue };
|
||||
return new SysId((long)jValue);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
using Sarand.Net.Standard.Base.App;
|
||||
using Sarand.Net.Standard.Base.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Diagnostics;
|
||||
using System.Text;
|
||||
|
||||
namespace Sarand.Net.Standard.Base.Core
|
||||
{
|
||||
//=======================================================================
|
||||
public sealed class DisposableCollection<T> : Collection<T>, IDisposable
|
||||
where T : IDisposable
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public DisposableCollection() : base() { }
|
||||
public DisposableCollection(IList<T> items) : base(items) { }
|
||||
public void Dispose()
|
||||
{
|
||||
while (this.Count > 0)
|
||||
{
|
||||
// Extract the first item from the list.
|
||||
T item = this[0];
|
||||
RemoveAt(0);
|
||||
try
|
||||
{
|
||||
if (item != null)
|
||||
item.Dispose();
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
// Ignore exception.
|
||||
if (SacsSystem.DebugMode)
|
||||
{
|
||||
SaLogger.Debug(GetType().Name + ".Dispose " + ExceptionUtil.GetErrorStateMessage(exc));
|
||||
Debugger.Break();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
/// <summary>
|
||||
/// Add item to the list.
|
||||
/// <para>Null items are ignored.</para>
|
||||
/// </summary>
|
||||
public new void Add (T item)
|
||||
{
|
||||
if (item != null)
|
||||
base.Add(item);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
Reference in New Issue
Block a user