首页 > 代码库 > CAR系统记录

CAR系统记录

--CAR 数据导出  提取字段

select distinct RKEY,异常严重程序, 报告者,签收者,临时矫正主管,临时矫正下对策者,
长期矫正主管,长期矫正下对策者,异常问题描述,原因分析,临时矫正解决对策,
长期矫正改善对策,开单知会名单,回复知会名单
FROM T_JZ ORDER BY RKEY
--F5 CAR 系统视图

--CREATE/ALTER VIEW VM_F5CAR_ROUT AS
select  top 100 percent d497.RKEY,d497.APPROVAL_ROUTE_CODE 审批名称,d497.APPROVAL_ROUTE_DESC 审批描述,d497.ABBR_NAME 审批简介, 
d498.APPROVAL_STEP_NO 审批小步,d498.APPROVAL_STEP_DESC 小步骤描述,
t_User.username 审批人
        from dbo.DATA0498 d498 
    left join DATA0499 d499        
        on d498.RKEY=d499.APPROVAL_ROUTE_STEP_PTR
    left join t_User 
        on d499.USER_PTR=t_User.rkey
        --具体流程
    left join DATA0497 d497
        on d497.RKEY=d498.APPROVAL_ROUTE_PTR    
    --where d497.APPROVAL_ROUTE_DESC like %表面%    
    order  by APPROVAL_ROUTE_PTR,APPROVAL_STEP_NO
    
/*
select * from VM_F5CAR_ROUT
SELECT * FROM VM_F5CAR_JZINFO
*/
--F5 CAR 视图

SELECT * from VM_F5CAR_ROUT
SELECT * FROM VM_F5CAR_JZINFO
select * from sysobjects where xtype=U
select * FROM T_JZ order by 发出日期
SELECT distinct 签收者 FROM T_JZ
/*
    CAR数据库 记录  2016年12月22日17:11:02
    连接数据库
    服务器名称:pcberprs
    数据库:f5_car
*/
select * from dbo.t_WorkingProcedure --工序
select * from dbo.t_User   --用户
select * from dbo.DATA0011 --用户备注
select * from dbo.t_JZ         --JZ  
/*
delete from t_JZ WHERE RKEY=80
select * from t_JZ where RKEY in (57,58,59,60,61,63,68)
--delete  from t_JZ where RKEY in (57,58,59,60,61,63,68)
--删除指定开立JZ单据
*/
select * from dbo.t_HSF       --HSF
select * from dbo.t_8D       --8D
select * from dbo.DATA0497 --3种流程设置

select * from dbo.t_LinkPath --连接
select * from dbo.t_BillType --类型
select * from dbo.T_APPENDAPPROVAL_TYPE  --未体现用处,无数据
            
select * from dbo.DATA0549  --权限设置
select * from dbo.DATA0548
select * from dbo.DATA0547
select * from dbo.DATA0546
select * from dbo.DATA0499
select * from dbo.DATA0498_EXTENT
select * from dbo.DATA0498

--单据类型
select * from dbo.t_BillType
--工序设置
select * from dbo.t_WorkingProcedure
--审批步骤设置
select * from dbo.DATA0497
--用户
select * from dbo.t_User
--用户备注
select * from dbo.DATA0011
--JZ单
select * from dbo.t_JZ
select * from dbo.t_8D
select * from dbo.t_HSF
--上传路径
select * from dbo.t_LinkPath
--http://oa.founderpcb.com:8010/kb/CAR/UpFiles/JZ_20161018_025290.xls
--权限设置  感兴趣
select * from dbo.DATA0549
select * from dbo.DATA0548
select * from dbo.DATA0547
select * from dbo.DATA0546
select * from dbo.DATA0499
select * from dbo.DATA0498_EXTENT
select * from dbo.DATA0498

 

CAR系统记录