|
|
@ -25,8 +25,7 @@ namespace NFine.Application.WMS |
|
|
|
|
|
|
|
#region [SQL]
|
|
|
|
string sql = @"SELECT ID, CheckCode, SelectLevel, Status, Quantity, Amount, MUSER, MUSERName, MTIME, WorkPoint
|
|
|
|
FROM |
|
|
|
dbo.ICSCheck";
|
|
|
|
FROM dbo.ICSCheck";
|
|
|
|
sql += " WHERE 1=1"; |
|
|
|
sql = string.Format(sql, DbHelper.GetErpIp(), DbHelper.GetErpName()); |
|
|
|
#endregion
|
|
|
@ -35,16 +34,16 @@ FROM |
|
|
|
{ |
|
|
|
if (!string.IsNullOrWhiteSpace(queryParam["POCode"].ToString())) |
|
|
|
{ |
|
|
|
sql += " and a.CheckCode like '%" + queryParam["POCode"].ToString() + "%' "; |
|
|
|
sql += " and CheckCode like '%" + queryParam["POCode"].ToString() + "%' "; |
|
|
|
} |
|
|
|
} |
|
|
|
if (NFine.Code.OperatorProvider.Provider.GetCurrent().RoleEnCode != "admin") |
|
|
|
{ |
|
|
|
sql += " and a.WorkPoint='" + NFine.Code.OperatorProvider.Provider.GetCurrent().Location + "'"; |
|
|
|
sql += " and WorkPoint='" + NFine.Code.OperatorProvider.Provider.GetCurrent().Location + "'"; |
|
|
|
} |
|
|
|
if (NFine.Code.OperatorProvider.Provider.GetCurrent().RoleEnCode == "Vendor") |
|
|
|
{ |
|
|
|
sql += " and a.VenCode='" + NFine.Code.OperatorProvider.Provider.GetCurrent().UserCode + "'"; |
|
|
|
sql += " and VenCode='" + NFine.Code.OperatorProvider.Provider.GetCurrent().UserCode + "'"; |
|
|
|
} |
|
|
|
return Repository().FindTablePageBySql(sql.ToString(), parameter.ToArray(), ref jqgridparam); |
|
|
|
} |
|
|
|