• OAF 供应商门户添加功能标签后获取当前供应商VendorId的方法


    一种是参考管理页面

    /oracle/apps/pos/supplier/webui/SuppDtPG

    在目标页面的AM中添加VO实例,oracle.apps.pos.supplier.server.SuppDtVO

    参考SuppAM中的实现方法,实现以下方法

        String str1 = Integer.toString(paramOAPageContext.getUserId());
        Serializable[] arrayOfSerializable1 = { str1 };
        String str2 = (String)localOAApplicationModule.invokeMethod("getPartyIdStr", arrayOfSerializable1);
        String str3 = (String)localOAApplicationModule.invokeMethod("getVendorIdStr", arrayOfSerializable1);
        String str4 = (String)localOAApplicationModule.invokeMethod("getMappingIdStr", arrayOfSerializable1);
        String str5 = (String)localOAApplicationModule.invokeMethod("getSupplierName", arrayOfSerializable1);
        String str6 = (String)localOAApplicationModule.invokeMethod("getSupplierNumber", arrayOfSerializable1);
        SupplierUtil.setSupplierUser(paramOAPageContext, true);
        
        if (str2 != null)
        {
          paramOAPageContext.putSessionValue("PosSuppPartyId", str2);
        }
        
        if (str3 != null)
        {
          paramOAPageContext.putSessionValue("PosSuppVendorId", str3);
        }
        
        if (str4 != null)
        {
          paramOAPageContext.putSessionValue("PosSuppMappingId", str4);
        }
        
        if (str5 != null) paramOAPageContext.putSessionValue("PosSupplierName", str5);
        if (str6 != null) { paramOAPageContext.putSessionValue("PosSupplierNumber", str6);
        }

    另一种方便的方式是在目标页面的AM中添加oracle.apps.pon.util.server.UserInfoVO并命名为UserInfoVO。

    然后在CO里面即可直接调用

    import oracle.apps.pon.util.webui.SourcingUtil;
    int VendorId = SourcingUtil.getVendorId(pageContext, webBean);

    还可以获取供应商的其他参数,具体请查看

    oracle.apps.pon.util.webui.SourcingUtil方法。
  • 相关阅读:
    简易httpserver 和客户端调用
    exe打包简易教程
    图像二值化和显示3D 的算法实现
    gitlab 生成标签
    Nginx 使用小结
    FFMPEG 切片过于占用cpu的问题
    神奇 linux 命令行 窗体穿越
    使用 SSH 在 Linux 上远程调试 .NET Core 实例 演示
    CentOS 7 yum 安装 Nginx 以及 TCP流转发
    Centos7 自动挂载分区硬盘 u盘的操作
  • 原文地址:https://www.cnblogs.com/huanghongbo/p/6878904.html
Copyright © 2020-2023  润新知