Use ‘GetJustStage’ for Stage & StageInfo gets of data.

Provide methods to use ‘GetJustStage’ from application
Use ‘GetJustFormat’ for format infos
This commit is contained in:
2015-02-17 17:30:47 +00:00
parent 9671a394be
commit 3053c892a1
10 changed files with 191 additions and 13 deletions

View File

@@ -163,7 +163,7 @@ namespace VEPROMS.CSLA.Library
get
{
CanReadProperty("MyStage", true);
if (_MyStage == null && _StageID != 0) _MyStage = Stage.Get(_StageID);
if (_MyStage == null && _StageID != 0) _MyStage = Stage.GetJustStage(_StageID);
return _MyStage;
}
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]

View File

@@ -140,7 +140,7 @@ namespace VEPROMS.CSLA.Library
get
{
CanReadProperty("MyStage", true);
if (_MyStage == null && _StageID != 0) _MyStage = StageInfo.Get(_StageID);
if (_MyStage == null && _StageID != 0) _MyStage = StageInfo.GetJustStage(_StageID);
return _MyStage;
}
}

View File

@@ -509,7 +509,7 @@ namespace VEPROMS.CSLA.Library
using (SqlCommand cm = cn.CreateCommand())
{
cm.CommandType = CommandType.StoredProcedure;
cm.CommandText = "getFormat";
cm.CommandText = "getJustFormat";
cm.Parameters.AddWithValue("@FormatID", criteria.FormatID);
cm.CommandTimeout = Database.DefaultTimeout;
using (SafeDataReader dr = new SafeDataReader(cm.ExecuteReader()))

View File

@@ -78,7 +78,7 @@ namespace VEPROMS.CSLA.Library
get
{
CanReadProperty("MyStage", true);
if (_MyStage == null && _StageID != 0) _MyStage = Stage.Get(_StageID);
if (_MyStage == null && _StageID != 0) _MyStage = Stage.GetJustStage(_StageID);
return _MyStage;
}
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]

View File

@@ -78,7 +78,7 @@ namespace VEPROMS.CSLA.Library
get
{
CanReadProperty("MyStage", true);
if (_MyStage == null && _StageID != 0) _MyStage = Stage.Get(_StageID);
if (_MyStage == null && _StageID != 0) _MyStage = Stage.GetJustStage(_StageID);
return _MyStage;
}
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]

View File

@@ -287,7 +287,7 @@ namespace VEPROMS.CSLA.Library
}
public virtual Stage Get()
{
return _Editable = Stage.Get(_StageID);
return _Editable = Stage.GetJustStage(_StageID);
}
public static void Refresh(Stage tmp)
{
@@ -400,6 +400,7 @@ namespace VEPROMS.CSLA.Library
return;
}
ReadData(dr);
}
}
// removing of item only needed for local data portal

View File

@@ -163,7 +163,7 @@ namespace VEPROMS.CSLA.Library
get
{
CanReadProperty("MyStage", true);
if (_MyStage == null && _StageID != 0) _MyStage = Stage.Get(_StageID);
if (_MyStage == null && _StageID != 0) _MyStage = Stage.GetJustStage(_StageID);
return _MyStage;
}
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]

View File

@@ -140,7 +140,7 @@ namespace VEPROMS.CSLA.Library
get
{
CanReadProperty("MyStage", true);
if (_MyStage == null && _StageID != 0) _MyStage = StageInfo.Get(_StageID);
if (_MyStage == null && _StageID != 0) _MyStage = StageInfo.GetJustStage(_StageID);
return _MyStage;
}
}