SVN-Revision: r822
This commit is contained in:
cyf
2025-07-01 09:36:35 +00:00
parent 6e3e683317
commit 6d619955c6
4 changed files with 28 additions and 39 deletions
+2
View File
@@ -424,6 +424,8 @@ namespace Lskj.Business.Impl
sumCond += ",a.PrivilegeView ";
if (HasExistsColumn("p_systembillDetail", "PrivilegeOper"))
sumCond += ",a.PrivilegeOper ";
if (HasExistsColumn("p_systembillDetail", "ProhibitPaste"))
sumCond += ",a.ProhibitPaste ";
string columsSql = string.Format(@"SELECT DISTINCT
isnull(CASE WHEN ISNULL(b.userList,'')='' AND ISNULL(a.PrivilegeView,'')<>'' OR isnull(isVisible,0)=1 THEN 0 ELSE width END,0) width,
+5 -2
View File
@@ -1173,12 +1173,15 @@ namespace Lskj.Business.Impl
public static bool CheckingMacAddress(string userId)
{
try
{
if (SystemInfo.Instance.MacMandatoryJudgment)
{
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) return false;
if (dataRow != null && !string.IsNullOrWhiteSpace(dataRow["MacAddress"] + ""))
{
List<string> MacAddress = ((dataRow["MacAddress"] + "").Split(
List<string> MacAddress = ((dataRow["MacAddress"] + "").Split(',')).ToList();
+3 -25
View File
@@ -163,7 +163,7 @@ namespace Lskj.Business.Impl
new SqlParameter("@srcRowKey",SqlDbType.VarChar,50),
new SqlParameter("@srcColKey",SqlDbType.VarChar,40),
new SqlParameter("@dstModId",SqlDbType.VarChar,50),
new SqlParameter("@dstRowKey",SqlDbType.VarChar,20),
new SqlParameter("@dstRowKey",SqlDbType.VarChar,100),
new SqlParameter("@dstColKey",SqlDbType.VarChar,500),
new SqlParameter("@operatorid",SqlDbType.Int),
new SqlParameter("@operatorname",SqlDbType.VarChar,50),
@@ -180,7 +180,7 @@ namespace Lskj.Business.Impl
new SqlParameter("@srcRowKey",SqlDbType.VarChar,50),
new SqlParameter("@srcColKey",SqlDbType.VarChar,40),
new SqlParameter("@dstModId",SqlDbType.VarChar,50),
new SqlParameter("@dstRowKey",SqlDbType.VarChar,20),
new SqlParameter("@dstRowKey",SqlDbType.VarChar,100),
new SqlParameter("@dstColKey",SqlDbType.VarChar,500),
new SqlParameter("@operatorid",SqlDbType.Int),
new SqlParameter("@operatorname",SqlDbType.VarChar,50),
@@ -243,26 +243,4 @@ namespace Lskj.Business.Impl
new SqlParameter("@modid",SqlDbType.Int),
new SqlParameter("@storehouseid",SqlDbType.Int),
new SqlParameter("@uniqueCode",SqlDbType.VarChar,40),
new SqlParameter("@mxid",SqlDbType.Int),
new SqlParameter("@billtype",SqlDbType.VarChar,20),
new SqlParameter("@productid",SqlDbType.VarChar,20),
new SqlParameter("@operatorid",SqlDbType.Int),
new SqlParameter("@operatorname",SqlDbType.VarChar,50),
msg,
returnValue
};
param[0].Value = primaryKey;
param[1].Value = modid;
param[2].Value = storehouseid;
param[3].Value = uniqueCode;
param[4].Value = mxid;
param[5].Value = billtype;
param[6].Value = productid;
param[7].Value = ERPInfo.Instance.UserId;
param[8].Value = ERPInfo.Instance.UserName;
SqlHelper.ExecuteDataSet(CommandType.StoredProcedure, "BillTM_ADDPR", "temp", param);
msgs = msg.Value + "";
return Convert.ToInt32(returnValue.Value);
}
}
}
+7 -1
View File
@@ -298,6 +298,7 @@ namespace Lskj.Business
Instance.AccountSwitchingRestrictions = item.Table.Columns.Contains("AccountSwitchingRestrictions") && !string.IsNullOrEmpty(item["AccountSwitchingRestrictions"] + "") ? Convert.ToInt32(item["AccountSwitchingRestrictions"] + "") : 0;
Instance.Bill_cg_showname = item.Table.Columns.Contains("bill_cg_showname") && !string.IsNullOrEmpty(item["bill_cg_showname"] + "") ? item["bill_cg_showname"] + "" : "";
if (!string.IsNullOrWhiteSpace(Instance.Bill_cg_showname)) ERPInfo.Instance.DraftReplacementValue = Instance.Bill_cg_showname;
Instance.HideFixedConditions = item.Table.Columns.Contains("HideFixedConditions") && !string.IsNullOrEmpty(item["HideFixedConditions"] + "") ? "1".Equals(item["HideFixedConditions"] + "") : false;
}
/// <summary>
/// 高拍仪AccessKey
@@ -966,4 +967,9 @@ namespace Lskj.Business
/// </summary>
public bool SplitOrderNewVer;
/// <summary>
/// 报错时不提示具体sql信息
/// </summary>
public bool HideErrorSQL;
/// <summary>
/// 表格快速导入
/