SVN-Revision: r284
This commit is contained in:
cyf
2025-02-25 01:55:52 +00:00
parent b43690ae29
commit fb88ade2f6
2 changed files with 3 additions and 30 deletions
+2 -29
View File
@@ -482,7 +482,7 @@ namespace Lskj.Business.Impl
//if (HasExistsColumn("P_EmployeeTab", "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);
}
@@ -1167,31 +1167,4 @@ namespace Lskj.Business.Impl
/// <para>版本:1.0</para>
/// </summary>
/// <returns>System.String.</returns>
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(',')).ToList();
return MacAddress.Contains(ERPInfo.Instance.MacAddress);
}
}
}
catch (Exception ex)
{
return false;
}
return true;
}
}
}
public static
+1 -1
View File
@@ -657,7 +657,7 @@ namespace Lskj.Business
/// </summary>
public bool isFlowLayout;
/// <summary>
/// 单据来源刷新点击模式,默认单击,1为双击
/// 单据来源刷新点击模式,默认单击,1为双击(已弃用。2025-02-18杨华提出改成每个来源去单独配置)
/// </summary>
public bool IsBillDoubleClick;
/// <summary>