SVN r295
SVN-Revision: r295
This commit is contained in:
@@ -1167,4 +1167,15 @@ namespace Lskj.Business.Impl
|
|||||||
/// <para>版本:1.0</para>
|
/// <para>版本:1.0</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>System.String.</returns>
|
/// <returns>System.String.</returns>
|
||||||
public static
|
public static bool CheckingMacAddress(string userId)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (HasExistsTable("P_MacAddressTable"))
|
||||||
|
{
|
||||||
|
DataTable table = SqlHelper.ExecuteDataTable(string.Format("select MacAddress from P_MacAddressTable where userid='{0}'", userId));
|
||||||
|
DataRow dataRow = table != null && table.Rows.Count > 0 ? table.Rows[0] : null;
|
||||||
|
if(SystemInfo.Instance.MacMandatoryJudgment&& dataRow==null) return false;
|
||||||
|
if (dataRow != null&&!string.IsNullOrWhiteSpace(dataRow["MacAddress"] + ""))
|
||||||
|
{
|
||||||
|
List<string> MacAddress = ((dataRow["MacAddress"] + "").Split(
|
||||||
Reference in New Issue
Block a user