diff --git a/NX.ERP.U8/Pmc/PurchaseQuery.cs b/NX.ERP.U8/Pmc/PurchaseQuery.cs index 8f11832..9305fc8 100644 --- a/NX.ERP.U8/Pmc/PurchaseQuery.cs +++ b/NX.ERP.U8/Pmc/PurchaseQuery.cs @@ -571,19 +571,19 @@ CREATE INDEX IX_test ON tempdb..tablepuapp20210625 (cinvcode) ,[CenterName] ,[WorkCode] ,[WorkName], - [code] - , b.cInvName [Name] - ,b.cInvStd [Standard] + MaterialCode [code] + , MaterialName [Name] + ,MaterialStandard [Standard] ,[SrcBlockCode] ,[SrcBlockName] ,[DstBlockCode] ,[DstBlockName] - ,convert( decimal(20,2),RecQua) as [RecQua] + ,convert( decimal(20,2),qua) as [RecQua] ,[SupplierName] ,[Price] ,[RecTime] - FROM [10.0.0.230].[wxnx2021].[dbo].[WX_WWsend] a - left join Inventory b WITH (NOLOCK) on isnull(a.code,'')=isnull(b.cInvCode ,'') + FROM [10.0.0.230].[wxnx2021].[dbo].[WX_WWsend] + "; PmcWwInvlRes.wfdetails=conn.Query< NX.ERP.Model.wfdetail> (sql,"" );