金蝶 EAS BOS 查找实体、表、UI方法

1. 通过客户端主菜单进项定位

SELECT * FROM T_PM_MainMenuItem
where FNAME_l2 = '后台事务监控' --这里写上菜单的名称
--然后找到相应的**UI包地址**

2. 更新数据记录

UPDATE T_CAS_RECEIVINGBILL SET FLASTUPDATETIME = to_date('2006-11-29','yyyy-MM-dd')
WHERE  fid = 'LZVUnwEPEADgC2tofwAAAfpE/Vs=' //过滤条件

3. SQL 示例

/*dialect*/
select *
from (
    select 
            rec1.billType,
            rec1.days,
            rec1.FSOURCEFUNCTION,
            rec1.fcompanyid,
            rec1.businessDate,
            rec1.recedatetime,
            rec1.codecreatime,
            rec1.billcreatetime,
            rec1.billbarcode            
    from (
        select 
            rec.billType,
            (case when (recedatetime <= codecreatime) then    
            (to_date(to_char(codecreatime, 'yyyy-mm-dd'), 'yyyy-mm-dd') -                           
            to_date(to_char(billcreatetime, 'yyyy-mm-dd'), 'yyyy-mm-dd') + 1)
            when  (recedatetime > codecreatime)  then     
            (to_date(to_char(recedatetime, 'yyyy-mm-dd'), 'yyyy-mm-dd') -                           
             to_date(to_char(billcreatetime, 'yyyy-mm-dd'), 'yyyy-mm-dd') + 1)
              else 0 end ) days,
            rec.FSOURCEFUNCTION,
            rec.fcompanyid,
            rec.businessDate,
            rec.recedatetime,
            rec.billcreatetime,
            reccode.codecreatime,
            rec.billbarcode
        from 
        (select  '收款单'  billType, 
                case FSOURCEFUNCTION 
                when N'ST_EAS' then N'世通' 
                when N'JR_EAS' then N'极致' 
                when N'营销' then N'天诺' 
                else N'其他' end FSOURCEFUNCTION,
                FCreatetime billcreatetime,
                FBizDate businessDate,
                cfbarcode billbarcode,
                fcompanyid,
                flastupdatetime recedatetime  
        from T_CAS_RECEIVINGBILL rec 
        where cfbarcode is not null  and FBillStatus= 14 and CFMediastauts = 1 
        ) rec
        left join (
            select endtime codecreatime,barcode,token tablename
            from  hscz.v_barcode_status@HSYX_DB  
            where ismatch = 1
        ) reccode on rec.billbarcode = reccode.barcode 
    ) rec1
) a
where a.fcompanyid = 'Jv+zhQEOEADgAAMZCgEDBMznrtQ=' 
and to_char(a.businessDate, 'yyyy-MM-dd')>='2016-12-01'
and to_char(a.businessDate, 'yyyy-MM-dd')<='2016-12-31'

4. DBLink 连接外部数据库

select createtime codecreatime,barcode
from  hscz.v_barcode_status@HSYX_DB  //*HSYX_DB 为数据库连接名*
where ismatch = 1 
and token in ('T_CAS_PAYMENTBILL','T_BC_BizAccountBill' )
and to_char(createtime, 'yyyy-MM-dd')>='2016-11-01'
and to_char(createtime, 'yyyy-MM-dd')<='2016-12-22'

金蝶 EAS BOS 查找实体、表、UI方法_第1张图片

你可能感兴趣的:(金蝶 EAS BOS 查找实体、表、UI方法)