C#插件 调用存储过程(输出参数类型)
存储过程
CREATE PROCEDURE [dbo].[GetSum]
@num1 INT,
@num2 INT,
@result INT OUTPUT
AS
BEGIN
select @result= @num1+ @num2
END
C#代码
using Kingdee.BOS;
using Kingdee.BOS.App.Data;
using Kingdee.BOS.Core.Bill.PlugIn;
using Kingdee.BOS.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
namespace cux.button.test
{
[Description("测试调用存储过程")]
[HotUpdate]
public class CuxTestBosExecuteServicePlugIn : AbstractBillPlugIn
{
public override void BarItemClick(Kingdee.BOS.Core.DynamicForm.PlugIn.Args.BarItemClickEventArgs e)
{
base.BarItemClick(e);
if (e.BarItemKey.Equals("PBQO_tbButton
原文地址:https://blog.csdn.net/zhanzhib/article/details/140722267
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!