【问题标题】:How do I create a BaaN interface in C#?如何在 C# 中创建 BaaN 接口?
【发布时间】:2011-02-11 15:49:08
【问题描述】:

创建 BaaN MRP 系统接口的最佳方法是什么?

我正在寻找一种使用 C# 创建接口来更新 ERP 库存的方法。

【问题讨论】:

  • 联系供应商以获得支持。
  • 看起来 BaaN 不再受到官方支持。该系统现在归另一家公司所有,现在已经死了。
  • 这绝对不是真的,产品没有死。 Baan 公司已(通过英维思)并入 SSA Global 和Infor。 BaaN 产品已更名为Infor ERP LN。 Infor ERP LN 是 Infor 的主要产品线,目前仍在销售、支持和增强。

标签: c# interface erp


【解决方案1】:

您需要添加对 /baan/bin/bw.tlb 的 com 引用
(Ole Automation Baan 类型库)

【讨论】:

    【解决方案2】:
    object Baan = null ;
    Type t;
    t = Type.GetTypeFromProgID("Baan4.Application.someuser");
    Baan = Activator.CreateInstance(t);
    object[] Parameters = new Object[1];
    Parameters[0] = 3600;
    
    //Baan.Timeout = 3600;
    Baan.GetType().InvokeMember("Timeout", 
                                BindingFlags.SetProperty, 
                                null, 
                                Baan, 
                                Parameters
    );
    
    Parameters = new Object[2];
    Parameters[0] = "otccomdll...";
    Parameters[1] = "function.name...";
    Baan.GetType().InvokeMember("ParseExecFunction", 
                                 BindingFlags.InvokeMethod, 
                                 null, 
                                 Baan, 
                                 Parameters
    );
    //your code here    
    //Baan.Quit();
    Baan.GetType().InvokeMember("Quit", BindingFlags.InvokeMethod, null, Baan, null);
    

    【讨论】:

    • 我是否需要 Baan 库或其他引用才能在 C# 中使用 Baan 对象?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-01-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多