|
|
@ -185,35 +185,28 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts |
|
|
|
var _list = _excelHelper.ExcelToList<WmsSharePartOutPutDetial>(); |
|
|
|
if (_list.Count() > 0) |
|
|
|
{ |
|
|
|
|
|
|
|
//var _lsAry = _list.GroupBy(p => new
|
|
|
|
//{
|
|
|
|
// p.MaterialCode,
|
|
|
|
// p.MaterialGroup,
|
|
|
|
// p.OrderBillNum,
|
|
|
|
// p.MaterialDesc,
|
|
|
|
// p.Version,
|
|
|
|
// p.WmsBillNum,
|
|
|
|
//}).Select(p => new
|
|
|
|
//WmsSharePartOutPutDetial(
|
|
|
|
// GuidGenerator.Create(),
|
|
|
|
// p.Key.WmsBillNum,
|
|
|
|
// p.Key.OrderBillNum,
|
|
|
|
// p.Key.MaterialCode,
|
|
|
|
// p.Key.MaterialDesc,
|
|
|
|
// p.Key.MaterialGroup,
|
|
|
|
// string.Empty,
|
|
|
|
// string.Empty,
|
|
|
|
// 0,
|
|
|
|
// string.Empty,
|
|
|
|
// string.Empty,
|
|
|
|
// string.Empty,
|
|
|
|
// p.Key.MaterialCode,
|
|
|
|
// _billNum,
|
|
|
|
// GuidGenerator.Create(),
|
|
|
|
// string.Empty,
|
|
|
|
// p.Sum(itm => itm.Qty)
|
|
|
|
//));
|
|
|
|
|
|
|
|
|
|
|
|
var _lsAry = _list.Select(p => new |
|
|
|
WmsSharePartOutPutDetial( |
|
|
|
GuidGenerator.Create(), |
|
|
|
p.WmsBillNum, |
|
|
|
p.OrderBillNum, |
|
|
|
p.MaterialCode, |
|
|
|
p.MaterialDesc, |
|
|
|
p.MaterialGroup, |
|
|
|
string.Empty, |
|
|
|
string.Empty, |
|
|
|
0, |
|
|
|
string.Empty, |
|
|
|
string.Empty, |
|
|
|
string.Empty, |
|
|
|
p.MaterialCode, |
|
|
|
_billNum, |
|
|
|
GuidGenerator.Create(), |
|
|
|
string.Empty, |
|
|
|
p.Qty |
|
|
|
)); |
|
|
|
_lst.AddRange(_list.ToArray()); |
|
|
|
} |
|
|
|
} |
|
|
|