SVN r284
SVN-Revision: r284
This commit is contained in:
@@ -482,7 +482,7 @@ namespace Lskj.Business.Impl
|
|||||||
//if (HasExistsColumn("P_EmployeeTab", "DefaultLedger"))
|
//if (HasExistsColumn("P_EmployeeTab", "DefaultLedger"))
|
||||||
// fields += ",DefaultLedger";
|
// fields += ",DefaultLedger";
|
||||||
|
|
||||||
string sqlValue = string.Format("select EmployeeId UserId,LoginAccount UserCode,EmployeeName UserName,LoginAccount remark {1} from P_EmployeeTab WHERE sign=0 and UseFlag=1 {0} order by loginaccount", sqlWhere, fields);
|
string sqlValue = string.Format("select EmployeeId UserId,LoginAccount UserCode,EmployeeName UserName,LoginAccount 工号 {1} from P_EmployeeTab WHERE sign=0 and UseFlag=1 {0} order by loginaccount", sqlWhere, fields);
|
||||||
return SqlHelper.ExecuteDataTable(sqlValue);
|
return SqlHelper.ExecuteDataTable(sqlValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1167,31 +1167,4 @@ namespace Lskj.Business.Impl
|
|||||||
/// <para>版本:1.0</para>
|
/// <para>版本:1.0</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>System.String.</returns>
|
/// <returns>System.String.</returns>
|
||||||
public static bool CheckingMacAddress(string userId)
|
public static
|
||||||
{
|
|
||||||
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(',')).ToList();
|
|
||||||
return MacAddress.Contains(ERPInfo.Instance.MacAddress);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -657,7 +657,7 @@ namespace Lskj.Business
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public bool isFlowLayout;
|
public bool isFlowLayout;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 单据来源刷新点击模式,默认单击,1为双击
|
/// 单据来源刷新点击模式,默认单击,1为双击(已弃用。2025-02-18杨华提出改成每个来源去单独配置)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsBillDoubleClick;
|
public bool IsBillDoubleClick;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user