站内搜索

返回   安讯中国 > 安讯产品 > 百灵报表(BIRT)
注册
忘记密码?
论坛帮助 日历事件 搜索 今日新帖 标记版面已读

回复
 
LinkBack 主题工具 搜索本主题 显示模式
  #1 (permalink)  
旧 2008-8-28, 11:10 AM
Member
 
注册日期: 2008-8-1
帖子: 46
存款: 466
默认 jiont data set 问题

我有两个数据集:一个是:inventory 两一个是:stadium
我将它们通过 joint data set 进行连接用得是full outre join 这种联合数据集。
inventory中的
open():
var inDepotList=inven.getIODepotCount(inventoryId,startDate,finishDate,depotId);
iterator=inDepotList.iterator();

fetch()方法:
if(!iterator.hasNext()){
return false;
}
else{
var list =iterator.next();
row["date"]=list[0].getInputDate();
row["vouchType"]=list[0].getVouchType().getName();
row["ioDepotId"]=list[0].getIoDepotId();
if(list[0].getVouchType().getType()==0){
row["InDepot"]=list[1].getQuantity();
}else{
row["OutDepot"]=list[1].getQuantity();
}
row["remain"]=stadium+row["InDepot"]-row["OutDepot"];
stadium=row["remain"];
return true;
}
两一个数据集stadium中:
open():
var InvenDepotList=inven.getInventoryDepot(inventoryId,depotId);
iterator1=InvenDepotList.iterator();
currentCount=inven.getStadium(inventoryId,startDate,depotId);

fetch()方法:
if(!iterator1.hasNext()){
return false;
}
else{

var list =iterator1.next();
row["autoId"]=inventoryId;
row["depotName"]=list[0].getDepot().getName();
row["period"]=startDate+"至"+finishDate;
row["inventoryName"]=list[1].getInventory().getStandardName();
row["stadium"]=currentCount;
return true;
}
当运行报表的时候inventory中实际上只有七条数据,可在运行的时候每条记录都会遍历很多行。如果将数据集stadium中的方法注释掉,运行报表的结果就是正确的只显示七条数据。
请问这种问题如何解决啊?这两个数据集中的close方法,我也写了啊.可就是不正确,请指点一下!!!谢谢了。

此帖于 2008-9-1 09:19 AM 被 hanzhongcheng 编辑.
回复时引用此帖
回复


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

论坛启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码
Trackbacks are 启用
Pingbacks are 启用
Refbacks are 启用


服务条款 | 隐私政策
安讯中国 上海浦东新区浦东南路1271号华融大厦21层2101室
电话:(+86)21-58826388   发送邮件联系我们  沪ICP备06010344号
Actuate Corporation © 2008
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

Content Relevant URLs by vBSEO 3.1.0