起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1345|回复: 6

[结贴] excel导出报错,提示:行状态不允许为空

[复制链接]

30

主题

60

帖子

271

积分

中级会员

Rank: 3Rank: 3

积分
271
QQ
发表于 2015-5-11 11:40:04 | 显示全部楼层 |阅读模式
版本: BeX5V3.1 小版本号:
数据库: MS SQLServer 服务器操作系统: Windows 应用服务器: Tomcat
客户端操作系统: Windows 7 浏览器: Chrome
QQ截图20150511113653.png QQ截图20150511113727.png 求指教,根据http://bbs.wex5.com/forum.php?mo ... id=65567&page=1,的处理办法不能解决。

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36171
发表于 2015-5-11 14:03:35 | 显示全部楼层
把报错的这条数据删了看看

数据是怎么添加的?
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

30

主题

60

帖子

271

积分

中级会员

Rank: 3Rank: 3

积分
271
QQ
 楼主| 发表于 2015-5-11 14:08:08 | 显示全部楼层
jishuang 发表于 2015-5-11 14:03
把报错的这条数据删了看看

数据是怎么添加的?

数据不是添加的,是自己写的SQL语句:
public static Table PCostRepPro(String filter){
                String where = "";
                if (filter != null) {
                        System.out.println("filter"+filter);
                        where = " and " + filter;
                }
                String perid = ContextHelper.getOperator().getID();
                String sql = "select x.fID,x.PFidPC,x.PCodePC,x.PNamePC,x.aMon,x.bMon,x.cMon,(x.bMon+x.cMon) dMon,x.eaMon,x.ebMon,x.ecMon,x.edMon,x.eeMon,x.eMon,(x.bMon+x.cMon-x.eMon) fMon " +
                "from (" +
                        "select p.fID,p.PFidPC,p.PCodePC,p.PNamePC," +
                        "(select (case when SUM(a.aMonCI) IS null then 0.00 else SUM(a.aMonCI) end) from PConInfor a where a.zMark='RECCON' and a.zAudit='已审核' and a.pFidCI= p.PFidPC) aMon," +
                        "(select (case when SUM(b.aMonRI) IS null then 0.00 else SUM(b.aMonRI) end) from PRecInfor b where b.zMark='RECVAL' and b.zAudit='已审核' and b.pFidRI= p.PFidPC) bMon," +
                        "(select (case when SUM(c.aMonRI) IS null then 0.00 else SUM(c.aMonRI) end) from PRecInfor c where c.zMark='RECVIS' and c.zAudit='已审核' and c.pFidRI= p.PFidPC) cMon," +
                        "(select (case when SUM(e.aMonCW) IS null then 0.00 else SUM(e.aMonCW) end) from PCostWar e  where e.pFidCW=p.PFidPC and e.TypeCW = '材料') eaMon," +
                        "(select (case when SUM(e.aMonCW) IS null then 0.00 else SUM(e.aMonCW) end) from PCostWar e  where e.pFidCW=p.PFidPC and e.TypeCW = '设备') ebMon," +
                        "(select (case when SUM(e.aMonCW) IS null then 0.00 else SUM(e.aMonCW) end) from PCostWar e  where e.pFidCW=p.PFidPC and e.TypeCW = '分包') ecMon," +
                        "(select (case when SUM(e.aMonCW) IS null then 0.00 else SUM(e.aMonCW) end) from PCostWar e  where e.pFidCW=p.PFidPC and e.TypeCW = '人工') edMon," +
                        "(select (case when SUM(e.aMonCW) IS null then 0.00 else SUM(e.aMonCW) end) from PCostWar e  where e.pFidCW=p.PFidPC and e.TypeCW = '费用') eeMon," +
                        "(select (case when SUM(e.aMonCW) IS null then 0.00 else SUM(e.aMonCW) end) from PCostWar e  where e.pFidCW=p.PFidPC) eMon " +
                        "from PProCom p where p.CFidPC = '" + perid + "' " + where + " " +
                ") x order by x.PCodePC desc " ;
                System.out.println("sql:"+sql);
                return Common.queryTable(Common.brp_model, sql);
        }
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36171
发表于 2015-5-11 15:23:50 | 显示全部楼层
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

30

主题

60

帖子

271

积分

中级会员

Rank: 3Rank: 3

积分
271
QQ
 楼主| 发表于 2015-5-11 15:48:42 | 显示全部楼层
jishuang 发表于 2015-5-11 15:23
参考http://bbs.wex5.com/forum.php?mod=viewthread&tid=38364设置一下rowid看看

参考以上文档设置table.getProperties().put(Table.PROP_NAME_ROWID, "x");同样报错。
回复 支持 反对

使用道具 举报

30

主题

60

帖子

271

积分

中级会员

Rank: 3Rank: 3

积分
271
QQ
 楼主| 发表于 2015-5-11 16:18:53 | 显示全部楼层
jishuang 发表于 2015-5-11 15:23
参考http://bbs.wex5.com/forum.php?mod=viewthread&tid=38364设置一下rowid看看

space-column很重要吗?  我的没个数据它都为空,就是因为这个才报错的,请问怎么处理?
回复 支持 反对

使用道具 举报

30

主题

60

帖子

271

积分

中级会员

Rank: 3Rank: 3

积分
271
QQ
 楼主| 发表于 2015-5-11 16:55:07 | 显示全部楼层
jishuang 发表于 2015-5-11 15:23
参考http://bbs.wex5.com/forum.php?mod=viewthread&tid=38364设置一下rowid看看

谢了,搞了一天总算搞定了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2025-6-3 03:10 , Processed in 0.075348 second(s), 28 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表