|
|
@ -146,7 +146,7 @@ namespace WeighBusiness.BL |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//现在逻辑
|
|
|
//现在逻辑
|
|
|
public static void UpdateButhcerDetailFinishNum(ButcherDetailData data,decimal? finishNum, decimal? detailID, long? goodsId, SqlHelperEx she2 = null) |
|
|
|
|
|
|
|
|
public static void UpdateButhcerDetailFinishNum(ButcherDetailData data,decimal? finishNum, long detailID, long? goodsId, SqlHelperEx she2 = null) |
|
|
{ |
|
|
{ |
|
|
string excuteSql = string.Empty; |
|
|
string excuteSql = string.Empty; |
|
|
var table = SqlHelperEx.DoQuery("select ID from {0} where DetailID = {1}".FormatWith(TableNames.生产计划分割明细完工数量, detailID)); |
|
|
var table = SqlHelperEx.DoQuery("select ID from {0} where DetailID = {1}".FormatWith(TableNames.生产计划分割明细完工数量, detailID)); |
|
|
@ -197,9 +197,9 @@ namespace WeighBusiness.BL |
|
|
data.DeliveryNumber = deliveryNum; |
|
|
data.DeliveryNumber = deliveryNum; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
catch |
|
|
|
|
|
|
|
|
catch(Exception e) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
//throw new Exception(e.ToString());
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -407,9 +407,10 @@ namespace WeighBusiness.BL |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
//获取全部的完工数量
|
|
|
//获取全部的完工数量
|
|
|
var details = list.Select(x => x.DetailID).Distinct().ToList(); |
|
|
|
|
|
|
|
|
var details = list.Select(x => x.DetailID).Distinct(); |
|
|
|
|
|
var detailStr = string.Join("|", details); |
|
|
var method = "/MainSystem/B3_HaoYue/Rpcs/DeliveryNumberInfoRpc/GetDeliveryNumberInfo"; |
|
|
var method = "/MainSystem/B3_HaoYue/Rpcs/DeliveryNumberInfoRpc/GetDeliveryNumberInfo"; |
|
|
var deliveryInfo = RpcFacade.Call<List<Tuple<long?, decimal?>>>(method, details.ToArray()); |
|
|
|
|
|
|
|
|
var deliveryInfo = RpcFacade.Call<List<Tuple<long?, decimal?>>>(method, detailStr); |
|
|
foreach(var tuple in deliveryInfo) |
|
|
foreach(var tuple in deliveryInfo) |
|
|
{ |
|
|
{ |
|
|
if (tuple.Item1 == null) |
|
|
if (tuple.Item1 == null) |
|
|
@ -420,9 +421,9 @@ namespace WeighBusiness.BL |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
catch |
|
|
|
|
|
|
|
|
catch(Exception e) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
//throw new Exception(e.ToString());
|
|
|
} |
|
|
} |
|
|
return list; |
|
|
return list; |
|
|
} |
|
|
} |
|
|
|