找回密码
 注册账号

QQ登录

只需一步,快速开始

手机号码,快捷登录

手机号码,快捷登录

初学者课程:T3自学|T6自学|U8自学软件下载课件下载工具下载资料:通资料|U8资料|NC|培训|年结积分规则 | 使用常见问题Q&A
知识库:U8 | | NC | U9 | OA | 政务U8|U9|NCC|NC65|NC65客开|NCC客开新手必读 | 任务 | 快速增金币用友QQ群[微信群]
查看: 4152|回复: 4

[求助] U9V2.1 调用BP oChannel为空(null)请教一下

[复制链接]
发表于 2011-8-23 11:23:12 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册账号

×
oChannel.jpg

在这里为null 直接被return了

 楼主| 发表于 2011-8-24 08:53:43 | 显示全部楼层
顶顶:'(
发表于 5 天前 | 显示全部楼层
出现了同样的问题,之前不知道怎么的就好了,现在又出现了
回复 点赞 拍砖

使用道具 举报

发表于 5 天前 | 显示全部楼层
BP调用时,如果BPAgetn的返回的oChannel为空时

复制代码
        protected override object InvokeImplement<T>(T oChannel)
        {
            IContext context = ContextManager.Context;            

            IGetBillSrcBusinessType channel = oChannel as IGetBillSrcBusinessType;
            if (channel != null)
            {
                return channel.Do(context, out returnMsgs, docNo, aPOrAR);
            }
            return  null;
        }
复制代码
先确定BP脚本已经执行,如果还是为null,那就是BP没有通过组装工具发布造成的。

也可以用以下脚本把BP发布到数据库



复制代码
declare @Component nvarchar(50)
--设置组件名称
set @Component='xxx.dll'

declare @Application int
--设置组件所在模块
set @Application=3001

DELETE FROM UBF_Assemble_AppComponents WHERE Component = @Component;
declare    @SNIndex bigint
if object_id('InnerAllocSerials') is null
    exec    [dbo].[AllocSerials]
            @AllocCount = 1,
            @StartSN = @SNIndex output

else
    exec    [dbo].[InnerAllocSerials]
            @AllocCount = 1,
            @StartSN = @SNIndex output

INSERT INTO  UBF_Assemble_AppComponents (ID,CreatedOn,CreatedBy,ModifiedOn,ModifiedBy,SysVersion,Component,ComponentID,ComponentType,Application)
values(@SNIndex,GETDATE(),'ufsoft',GETDATE(),'ufsoft',0,@Component, 'a91a413b-e43a-432d-84b2-c601af8d1c89','BP',@Application)
回复 点赞 拍砖

使用道具 举报

发表于 10 小时前 | 显示全部楼层
金币金币金币金币金币金币金币金币金币金币金币金币金币金币金币金币金币金币金币金币金币金币金币金币金币金币金币金币金币金币金币金币
回复 点赞 拍砖

使用道具 举报

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

本版积分规则

QQ|站长微信|Archiver|手机版|小黑屋|用友之家 ( 蜀ICP备07505338号|51072502110008 )

GMT+8, 2024-5-18 23:49 , Processed in 0.030136 second(s), 10 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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