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:
@@ -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)]
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
@@ -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()))
|
||||
|
@@ -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)]
|
||||
|
@@ -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)]
|
||||
|
@@ -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
|
||||
|
@@ -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)]
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user