NC 前段进行数据查询之HYPubBO_Client

IUAPQueryBS 针对VO的数据操作 可执行VO 加入查询条件

感觉与IVOPersistence 差不多 IVOPersistence 多了一个 可以对自己新建的javabean的操作
IVOPersistence(javabean,映射文件)

//发货单  根据表头PK 查询表头VO
        @SuppressWarnings("restriction")
        public static DeliveryHVO GetHvoByPk(String pk_value){
            DeliveryHVO HVO =null;
                try {
                    HVO= (DeliveryHVO)HYPubBO_Client.queryByPrimaryKey(DeliveryHVO.class,pk_value);
                } catch (UifException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }
                return HVO;
        }

    //发货单  根据表头PK 查询表体VO
    @SuppressWarnings("restriction")
    public static DeliveryBVO[] GetBvoByPk(String pk_value){
            DeliveryBVO[] BVOs =null;
            try {
                BVOs= (DeliveryBVO[])HYPubBO_Client.queryByCondition(DeliveryBVO.class,"cdeliveryid='"+pk_value+"' and dr=0");
            } catch (UifException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            return BVOs;
    }

    //根据物料ID查询 物料信息
    public static MaterialVO GetmaterByPK(String pk_material){
        MaterialVO materialVO=null;
        try {
            materialVO=(MaterialVO)HYPubBO_Client.queryByPrimaryKey(MaterialVO.class,pk_material);
        } catch (UifException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return materialVO;
    }

你可能感兴趣的:(NC 前段进行数据查询之HYPubBO_Client)