Checking in latest SDALEO changes optimizing Advantage really only.

This commit is contained in:
2016-07-25 14:48:03 -04:00
parent 122796eaa3
commit 4a683f3443
114 changed files with 1173 additions and 372 deletions

View File

@@ -42,6 +42,8 @@ namespace Sdaleo
}
private Mode _Mode = Mode.MODE_INIT;
#region Construction
/// <summary>
/// Initialize DBRetVal
/// </summary>
@@ -68,7 +70,22 @@ namespace Sdaleo
RetVal_int = Int32.MinValue;
}
#region Validator
/// <summary>
/// Initialize DBRetVal with SDaleo Default Error Info
/// </summary>
public DBRetVal(string ErrorMsg)
: base(ErrorMsg)
{
_Mode = Mode.MODE_INIT;
Result = DBRetValEnum.FAILED;
RetVal_datatable = null;
RetVal_string = String.Empty;
RetVal_int = Int32.MinValue;
}
#endregion
#region Validator
/// <summary>
/// Returns True if the Return value of this object is valid
@@ -128,6 +145,22 @@ namespace Sdaleo
}
}
/// <summary>
/// Get the First Row of the DataTable Return Value
/// </summary>
/// <returns>valid datatable or throws Exception, if in invalid state</returns>
public DataRow GetDataTableFirstRow()
{
if (_Mode == Mode.MODE_VALUE_DT)
{
return RetVal_datatable.Rows[0];
}
else
{
throw new Exception(String.Format("Invalid State {0}. Can not call GetRetVal() for DataTable right now", _Mode.ToString()));
}
}
/// <summary>
/// Get the Scalar/String Return Value
/// </summary>