|
|
@ -1235,12 +1235,12 @@ where a.DNType='1' and a.Status='2' and a.ASNCode is null AND ISNULL(a.EATTRIBUT |
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region 获取仓库权限信息
|
|
|
|
string workpoint=NFine.Code.OperatorProvider.Provider.GetCurrent().Location; |
|
|
|
string user=NFine.Code.OperatorProvider.Provider.GetCurrent().UserCode; |
|
|
|
string permission=HelperMethod.GetWarehousePermissions(user, workpoint); |
|
|
|
string workpoint = NFine.Code.OperatorProvider.Provider.GetCurrent().Location; |
|
|
|
string user = NFine.Code.OperatorProvider.Provider.GetCurrent().UserCode; |
|
|
|
string permission = HelperMethod.GetWarehousePermissions(user, workpoint); |
|
|
|
if (!string.IsNullOrWhiteSpace(permission)) |
|
|
|
{ |
|
|
|
sql += " and a.WHCode " + permission +" "; |
|
|
|
sql += " and a.WHCode " + permission + " "; |
|
|
|
} |
|
|
|
|
|
|
|
#endregion
|
|
|
@ -3866,8 +3866,8 @@ CAST( (a.Quantity-ISNULL(c.LOTQTY,0)) as DECIMAL(18,{0})) as thisCreateQty,isnu |
|
|
|
#endregion
|
|
|
|
if (!result.Contains("successo")) |
|
|
|
{ |
|
|
|
ICSHGResult hgresult = JsonConvert.DeserializeObject<ICSHGResult>(result.TrimStart('[').TrimEnd(']')); |
|
|
|
throw new Exception("货柜单据传输接口调用报错,主要报错信息:" + hgresult.PrimaryError + ",次要报错信息:" + hgresult.SecondaryError + ""); |
|
|
|
List<ICSHGResult> hgresult = JsonConvert.DeserializeObject<List<ICSHGResult>>(result); |
|
|
|
throw new Exception("货柜单据传输接口调用报错,主要报错信息:" + hgresult[0].PrimaryError + ",次要报错信息:" + hgresult[0].SecondaryError + ""); |
|
|
|
} |
|
|
|
string sb = stringBuilder.ToString().TrimEnd(','); |
|
|
|
string sqlString = string.Empty; |
|
|
|