下面是3个表,从我所用的数据如何实现期望的输出
QuotationMaster
QuoteID QuoteNo CustomerName TotalSellQty
------------------------------------------
1 Q1 Name1 60
2 Q2 Name2 30
3 Q3 Name3 10
4 Q4 Name4 50
5 Q5 Name5 40
QuoteItemDetails:一个报价可以有很多项目
QuoteItemID QuoteID ItemDescription ItemID
-----------------------------------------------
1 1 AAA 1
1 1 BBB 2
2 2 BBB 2
QuoteBatchDetails : one QuoteItem can have many batches of QuoteID and ItemID are the common columns. BatchNo is varchar
QuotebatchID QuoteID BatchNo ItemID BatchQty Date
--------------------------------------------------------
1 1 A 1 20 1/2/2013
2 1 B 1 30 2/2/2013
3 1 C 1 10 3/3/2013
4 2 E 2 10 4/3/2013
5 2 F 2 20 5/3/2013
我想根据QuoteID作为参数在CRYSTAL REPORT中显示以下结果。对于每个显示的项目,我们还将显示批次编号,日期和BatchQty其中Sum(BatchQty)是TotalQty。
***但在前端我不会显示BatchNo日期和BatcchQty(只有值)。
QuoteItemID QuoteID ItemDescription TotalQty
--------------------------------------------------
First Row 1 1 AAA 60
BatchNo Date BatchQty
A 1/2/2013 20
B 2/2/2013 30
C 3/3/2013 10
Second Row 2 2 BBB 30
BatchNo Date BatchQty
E 4/3/2013 10
F 5/3/2013 20
我该如何达到上述结果。
你可以让我知道如何将参数传递给子报表 – Prathap 2013-02-22 19:02:10