金蝶K3 WISE BOM多级展开_物料齐套表
/* ***** Object: StoredProcedure [dbo].[pro_bobang_ICItemQiTao] Script Date: 07/29/2015 16:12:10 ***** */ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO alter PROC [ dbo ] . [ pro_bobang_ICItemQiTao ] @FBomNumber1 varchar ( 50 ), -- bom单号 @FBomNumber2 varchar ( 50 ) -- bom单号 as begin set nocount on -- 1.--业务员查找某个BOM单,包含所有BOM(已使用,未使用,已审核,未审核) with cte as ( select convert ( varchar ( 100 ), '' ) as cen,Finterid, convert ( varchar ( 50 ), '' ) as fpbomnumber,Fbomnumber AS FCbomnumber,fitemid,fitemid as fpitemid, 0 as fpinterid, convert ( decimal ( 18 , 4 ), 1 ) as FBomQty, convert ( varchar (