起步软件技术论坛-X3

 找回密码
 立即注册
搜索
查看: 308|回复: 10

【搞定】数据集提交报Record Change by Another User......**

[复制链接]
发表于 2007-3-23 11:42:18 | 显示全部楼层 |阅读模式
数据集提交报Record Change by Another User......

超过一条明细报错

附件是信息层文件

bak.rar

52.82 KB, 下载次数: 31

回复

使用道具 举报

 楼主| 发表于 2007-3-23 12:52:38 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2007-3-23 13:37:26 | 显示全部楼层
哪个数据集提交提示这个错误?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-23 13:58:32 | 显示全部楼层
出库单从表
回复 支持 反对

使用道具 举报

发表于 2007-3-23 14:08:44 | 显示全部楼层
inherited DataSetsdsInOutItems: TSQLDataSet
??
回复 支持 反对

使用道具 举报

发表于 2007-3-23 15:40:50 | 显示全部楼层
是这个数据集吗?
回复 支持 反对

使用道具 举报

发表于 2007-3-23 16:09:01 | 显示全部楼层
是这个数据集
回复 支持 反对

使用道具 举报

发表于 2007-3-23 16:34:13 | 显示全部楼层
这是更新选项中的SQL语句
DELETE FROM MM_INOUTITEMS
WHERE (( PKID = :OLD__PKID ) or ((PKID is null) and (:OLD__PKID is null)))
AND  (( BillID = :OLD__BillID )  or ((BillID is null) and (:OLD__BillID is null)))
AND  (( InnerID = :OLD__InnerID )  or ((InnerID is null) and (:OLD__InnerID is null)))
AND  (( MaterialID = :OLD__MaterialID )  or ((MaterialID is null) and (:OLD__MaterialID is null)))
AND  (( Memo = :OLD__Memo )  or ((Memo is null) and (:OLD__Memo is null)))
AND  (( SourceID = :OLD__SourceID )  or ((SourceID is null) and (:OLD__SourceID is null)))
AND  (( WarehouseID = :OLD__WarehouseID )  or ((WarehouseID is null) and (:OLD__WarehouseID is null)))
AND  (( Flag = :OLD__Flag )  or ((Flag is null) and (:OLD__Flag is null)))
AND  (( BillType = :OLD__BillType )  or ((BillType is null) and (:OLD__BillType is null)))
AND  (( InOrOut = :OLD__InOrOut )  or ((InOrOut is null) and (:OLD__InOrOut is null)))
AND  (( SourcePK = :OLD__SourcePK )  or ((SourcePK is null) and (:OLD__SourcePK is null)))
AND  (( Status = :OLD__Status )  or ((Status is null) and (:OLD__Status is null)))


UPDATE MM_INOUTITEMS
SET  PKID = KID  ,
BillID = :BillID  ,
InnerID = :InnerID  ,
MaterialID = :MaterialID  ,
StandardPrice = :StandardPrice  ,
ActualPrice = :ActualPrice  ,
InCounts = :InCounts  ,
StandardInMoney = :StandardInMoney  ,
ActualInMoney = :ActualInMoney  ,
OutCounts = :OutCounts  ,
StandardOutMoney = :StandardOutMoney  ,
ActualOutMoney = :ActualOutMoney  ,
Memo = :Memo  ,
SourceID = :SourceID  ,
WarehouseID = :WarehouseID  ,
Flag = :Flag  ,
BillType = :BillType  ,
InOrOut = :InOrOut  ,
TaxRate = :TaxRate  ,
TaxMoney = :TaxMoney  ,
TotalMoney = :TotalMoney  ,
SourcePK = :SourcePK  ,
Status = :Status  
WHERE (( PKID = :OLD__PKID ) or ((PKID is null) and (:OLD__PKID is null)))
AND  (( BillID = :OLD__BillID )  or ((BillID is null) and (:OLD__BillID is null)))
AND  (( InnerID = :OLD__InnerID )  or ((InnerID is null) and (:OLD__InnerID is null)))
AND  (( MaterialID = :OLD__MaterialID )  or ((MaterialID is null) and (:OLD__MaterialID is null)))
AND  (( Memo = :OLD__Memo )  or ((Memo is null) and (:OLD__Memo is null)))
AND  (( SourceID = :OLD__SourceID )  or ((SourceID is null) and (:OLD__SourceID is null)))
AND  (( WarehouseID = :OLD__WarehouseID )  or ((WarehouseID is null) and
(:OLD__WarehouseID is null)))
AND  (( Flag = :OLD__Flag )  or ((Flag is null) and (:OLD__Flag is null)))
AND  (( BillType = :OLD__BillType )  or ((BillType is null) and (:OLD__BillType is null)))
AND  (( InOrOut = :OLD__InOrOut )  or ((InOrOut is null) and (:OLD__InOrOut is null)))
AND  (( SourcePK = :OLD__SourcePK )  or ((SourcePK is null) and (:OLD__SourcePK is null)))
AND  (( Status = :OLD__Status )  or ((Status is null) and (:OLD__Status is null)))
回复 支持 反对

使用道具 举报

发表于 2007-3-23 16:35:33 | 显示全部楼层
Memo字段是文本类型吗?
你把where中去掉Memo类型试试呢

如果还是不行,请提供where中出现字段的字段类型
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-23 18:24:50 | 显示全部楼层
不是你说的问题,但是问题已经解决.谢谢
回复 支持 反对

使用道具 举报

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

本版积分规则

小黑屋|手机版|Justep Inc.

GMT+8, 2024-12-28 02:52 , Processed in 0.048782 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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