找回密码
 注册账号

QQ登录

只需一步,快速开始

手机号码,快捷登录

手机号码,快捷登录

初学者课程:T3自学|T6自学|U8自学软件下载课件下载工具下载资料:通资料|U8资料|NC|培训|年结积分规则 | 使用常见问题Q&A
知识库:U8 | | NC | U9 | OA | 政务U8|U9|NCC|NC65|NC65客开|NCC客开新手必读 | 任务 | 快速增金币用友QQ群[微信群]
查看: 7966|回复: 4

[求助] 工艺路线SQL

[复制链接]
发表于 2018-7-24 14:01:54 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册账号

×
sfc_prouting
sfc_proutingdetail
sfc_resource


求助,想把工艺路线拉出来,但无法关联到具体的存货编码。。。

发表于 2018-8-2 10:57:49 | 显示全部楼层
--- 工艺路线一览表 ---
SELECT a.cinvcode as 物料编码,g.cInvName AS 物料名称,g.cInvStd AS 规格型号,'被公用'=case when SharingPartId='0' then '否' else '是' end,
  c.OpSeq as 工序行号,c.Description as 工序说明,e.Description as 工作中心,'类型'=case when b.RountingType='1' then '主' else '替代' end,
  b.Version as 版本号,b.IdentDesc as 替代说明,f.cPersonName as 建档人,b.Createdate as 建档日期,Person1.cPersonName as 修改人,
  b.ModifyDate as 修改日期,Person2.cPersonName as 审核人,b.relsDate as 审核日期,b.VersionDesc as 版本说明,b.IdentCode as 替代标识
FROM v_sfc_proutingpart_rpt a
  LEFT JOIN v_sfc_prouting_rpt b ON a.PRoutingId = b.PRoutingId
  LEFT JOIN v_sfc_proutingdetail_rpt c ON b.PRoutingId=c.PRoutingId
  left join v_sfc_operation_rpt d on c.OperationId = d.OperationId
  LEFT JOIN sfc_workcenter e ON c.WcId = e.WcId
  LEFT JOIN Person f ON b.CreateUser = f.cPersonCode
  LEFT JOIN Person Person1 ON b.ModifyUser = Person1.cPersonCode
  LEFT JOIN Person Person2 ON b.relsUser = Person2.cPersonCode
  LEFT JOIN Inventory g ON a.cinvcode = g.cinvcode
order by a.cinvcode

点评

感谢支持  详情 回复 发表于 2021-11-5 17:16
太感谢了!!!  详情 回复 发表于 2018-8-2 11:26

评分

参与人数 1金币 +5 收起 理由
思无邪 + 5 很给力!

查看全部评分

回复 点赞 拍砖

使用道具 举报

 楼主| 发表于 2018-8-2 11:26:54 | 显示全部楼层
yuangang 发表于 2018-8-2 10:57
--- 工艺路线一览表 ---
SELECT a.cinvcode as 物料编码,g.cInvName AS 物料名称,g.cInvStd AS 规格型号,' ...

太感谢了!!!
回复 点赞 拍砖

使用道具 举报

发表于 2021-11-5 17:16:38 | 显示全部楼层
yuangang 发表于 2018-8-2 10:57
--- 工艺路线一览表 ---
SELECT a.cinvcode as 物料编码,g.cInvName AS 物料名称,g.cInvStd AS 规格型号,' ...

感谢支持
回复 点赞 拍砖

使用道具 举报

发表于 2022-6-20 13:17:20 | 显示全部楼层
学习了。
回复 点赞 拍砖

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号

本版积分规则

QQ|站长微信|Archiver|手机版|小黑屋|用友之家 ( 蜀ICP备07505338号|51072502110008 )

GMT+8, 2024-5-14 05:23 , Processed in 0.021531 second(s), 11 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表