public IEnumerable GetDataForInvoicePDF(String _ProjectNumber, String _InvoiceNumber)
{
var result0 = (from blah in blah blah);
var result1 =(from blah in blah blah);
var resultx = (
from res0 in result0
join res1 in result1
on res0.EWONo equals res1.ItNo
into temp
from res1 in temp.DefaultIfEmpty()
select new
{
EWONo = res0.EWONo ,
Stat = res0.Stat,
EWOVal = res0.Cost,
PctComp = (res0.TInv/ res0.Cost) * 100,
PBill =
String.IsNullOrEmpty(res1.ItmInvAmnt.ToString()) ? res0.TInv : (res0.TInv - res1.ItmInvAmnt),
NewCharges =
String.IsNullOrEmpty(res1.ItmInvAmnt.ToString()) ? 0 : res1.ItmInvAmnt,
AmntRem = res0.Cost - res0.TInv
}
);
return resultx;
}
我想将上述函数的返回数据用作 RDLC报告中 TABLE 的数据源。我已经为rdlc报告的实体框架数据源和使用Linq的数据集做了很多例子,但我很困惑,这些解决方案都没有对我有用。
任何提示将不胜感激,提前致谢!