|
@ -164,28 +164,28 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
var wquery = from itm in AMap |
|
|
var wquery = from itm in AMap |
|
|
join itm1 in invs on itm.InvbillNum equals itm1.InvbillNum |
|
|
join itm1 in invs on itm.InvbillNum equals itm1.InvbillNum |
|
|
join itm2 in materialList on itm.LU equals itm2.SettleMaterialCode into temp |
|
|
join itm2 in materialList on itm.LU equals itm2.SettleMaterialCode into temp |
|
|
select from tm in temp.DefaultIfEmpty() |
|
|
from tm in temp.DefaultIfEmpty() |
|
|
select |
|
|
select |
|
|
new INVOICE_WAIT_DETAIL_BBAC_DTO() |
|
|
new INVOICE_WAIT_DETAIL_BBAC_DTO() |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
PartDesc=tm==null?string.Empty:itm.PartDesc, |
|
|
PartDesc = tm == null ? string.Empty : itm.PartDesc, |
|
|
InvDate = itm1.CreationTime, |
|
|
InvDate = itm1.CreationTime, |
|
|
RealInvbillNum = string.IsNullOrEmpty(itm1.RealnvBillNum) ? string.Empty : itm1.RealnvBillNum, |
|
|
RealInvbillNum = string.IsNullOrEmpty(itm1.RealnvBillNum) ? string.Empty : itm1.RealnvBillNum, |
|
|
Version = itm.Version, |
|
|
Version = itm.Version, |
|
|
InvbillNum = itm.InvbillNum, |
|
|
InvbillNum = itm.InvbillNum, |
|
|
InvGroupNum = itm.InvGroupNum, |
|
|
InvGroupNum = itm.InvGroupNum, |
|
|
LU = itm.LU, |
|
|
LU = itm.LU, |
|
|
PartCode = itm.PartCode, |
|
|
PartCode = itm.PartCode, |
|
|
PRICE = itm.PRICE, |
|
|
PRICE = itm.PRICE, |
|
|
Qty = itm.Qty, |
|
|
Qty = itm.Qty, |
|
|
Amt = itm.Amt, |
|
|
Amt = itm.Amt, |
|
|
BussiessType = itm.BussiessType, |
|
|
BussiessType = itm.BussiessType, |
|
|
Extend1 = itm.Extend1, |
|
|
Extend1 = itm.Extend1, |
|
|
BeginDate = itm.BeginDate, |
|
|
BeginDate = itm.BeginDate, |
|
|
EndDate = itm.EndDate, |
|
|
EndDate = itm.EndDate, |
|
|
}; |
|
|
}; |
|
|
entity.INVOICE_WAIT_DETAIL_BBAC = AMap; |
|
|
entity.INVOICE_WAIT_DETAIL_BBAC = wquery.ToList(); |
|
|
} |
|
|
} |
|
|
else if (invs.FirstOrDefault().BusinessType == EnumBusinessType.BeiJian) |
|
|
else if (invs.FirstOrDefault().BusinessType == EnumBusinessType.BeiJian) |
|
|
{ |
|
|
{ |
|
@ -195,7 +195,7 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
var wquery = from itm in BMap |
|
|
var wquery = from itm in BMap |
|
|
join itm1 in invs on itm.InvbillNum equals itm1.InvbillNum |
|
|
join itm1 in invs on itm.InvbillNum equals itm1.InvbillNum |
|
|
join itm2 in materialList on itm.LU equals itm2.SettleMaterialCode into temp |
|
|
join itm2 in materialList on itm.LU equals itm2.SettleMaterialCode into temp |
|
|
select from tm in temp.DefaultIfEmpty() |
|
|
from tm in temp.DefaultIfEmpty() |
|
|
select |
|
|
select |
|
|
new INVOICE_WAIT_DETAIL_BJ_DTO() |
|
|
new INVOICE_WAIT_DETAIL_BJ_DTO() |
|
|
{ |
|
|
{ |
|
@ -215,7 +215,7 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
BeginDate = itm.BeginDate, |
|
|
BeginDate = itm.BeginDate, |
|
|
EndDate = itm.EndDate, |
|
|
EndDate = itm.EndDate, |
|
|
}; |
|
|
}; |
|
|
entity.INVOICE_WAIT_DETAIL_BJ = BMap; |
|
|
entity.INVOICE_WAIT_DETAIL_BJ = wquery.ToList(); |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
@ -224,7 +224,7 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
var wquery = from itm in wdtos |
|
|
var wquery = from itm in wdtos |
|
|
join itm1 in invs on itm.InvbillNum equals itm1.InvbillNum |
|
|
join itm1 in invs on itm.InvbillNum equals itm1.InvbillNum |
|
|
join itm2 in materialList on itm.LU equals itm2.SettleMaterialCode into temp |
|
|
join itm2 in materialList on itm.LU equals itm2.SettleMaterialCode into temp |
|
|
select from tm in temp.DefaultIfEmpty() |
|
|
from tm in temp.DefaultIfEmpty() |
|
|
select |
|
|
select |
|
|
new INVOICE_WAIT_DETAIL_DTO() |
|
|
new INVOICE_WAIT_DETAIL_DTO() |
|
|
{ |
|
|
{ |
|
@ -550,7 +550,7 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
var inner = from d in dto1s |
|
|
var inner = from d in dto1s |
|
|
join p in p_pricelist on d.LU equals p.LU |
|
|
join p in p_pricelist on d.LU equals p.LU |
|
|
where |
|
|
where |
|
|
d.SettleDate >= p.BeginTime && d.SettleDate <= p.EndTime |
|
|
d.SettleDate >= p.BeginTime && d.SettleDate <= p.EndTime && d.Site==p.ClientCode && p.IsCancel==false |
|
|
select d; |
|
|
select d; |
|
|
var left = from d in dto1s |
|
|
var left = from d in dto1s |
|
|
join p in inner on new { d.LU, d.PN } equals new { p.LU, p.PN } |
|
|
join p in inner on new { d.LU, d.PN } equals new { p.LU, p.PN } |
|
|