|
|
@ -2743,6 +2743,8 @@ namespace CK.SCP.Controller |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
List<string> PartList = _lst.Select(q => q.零件编码.Trim()).ToList(); |
|
|
|
List<TA_PART> _partList = db.TA_PART.Where(q => PartList.Contains(q.PartCode)).ToList(); |
|
|
|
_lst.ForEach(p => |
|
|
|
{ |
|
|
|
var _price = new TB_PRICE(); |
|
|
@ -2775,7 +2777,7 @@ namespace CK.SCP.Controller |
|
|
|
_price.StartTime = DateTime.Parse(starttime); |
|
|
|
_price.EndTime = DateTime.Parse(endtime); |
|
|
|
_price.Curr = p.币种; |
|
|
|
_price.Unit = p.单位; |
|
|
|
_price.Unit = _partList.Where(q=>q.PartCode == p.零件编码.Trim()) != null? _partList.First(q => q.PartCode == p.零件编码.Trim()).Unit : p.单位; |
|
|
|
_price.Amt = decimal.Parse(p.零件基础价格); |
|
|
|
_price.Site = p.域.Trim(); |
|
|
|
_price.SubSite = p.地点.Trim(); |
|
|
@ -3067,7 +3069,8 @@ namespace CK.SCP.Controller |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
|
|
|
|
List<string> PartList = _lst.Select(q => q.零件编码.Trim()).ToList(); |
|
|
|
List<TA_PART> _partList = db.TA_PART.Where(q => PartList.Contains(q.PartCode)).ToList(); |
|
|
|
_lst.ForEach(p => |
|
|
|
{ |
|
|
|
string starttime = Convert.ToDateTime(p.最新开始时间).ToShortDateString(); |
|
|
@ -3130,7 +3133,7 @@ namespace CK.SCP.Controller |
|
|
|
tb.VendId = p.供应商编号; |
|
|
|
tb.PartCode = p.零件编码.Trim(); |
|
|
|
tb.Curr = p.币种; |
|
|
|
tb.Unit = p.单位; |
|
|
|
tb.Unit = _partList.Where(q => q.PartCode == p.零件编码.Trim()) != null ? _partList.First(q => q.PartCode == p.零件编码.Trim()).Unit : p.单位; |
|
|
|
tb.Remarks = p.备注; |
|
|
|
tb.Amt = Convert.ToDecimal(p.零件最新价格); |
|
|
|
tb.Site = p.域; |
|
|
|