| | |
| | | PrintIds += "'" + idsArray[i] + "',"; |
| | | } |
| | | PrintIds = PrintIds.Substring(0, PrintIds.Length - 1); |
| | | string sql = string.Format(@"select b.HInterID,b.HEntryID,a.HDate as æ¥æ,m.HNumber as ç©æä»£ç ,m.HName as ç©æåç§°,m.HModel as è§æ ¼åå·, |
| | | b.HPieceQty as ä»¶æ°,b.HQty as æ°é,a.HBillNo as 颿åå·,p.HBillNo as æºååå·,b.HMaker å¶å人,u.HName 计éåä½ |
| | | string sql = string.Format(@"select b.HInterID,b.HEntryID,b.HBarCode as æ¡å½¢ç ,a.HDate as æ¥æ,m.HNumber as ç©æä»£ç ,m.HName as ç©æåç§°,m.HModel as è§æ ¼åå·, |
| | | b.HPieceQty as ä»¶æ°,b.HQty as æ°é,a.HBillNo as 颿åå·,pm.HBillNo as æºååå·,b.HMaker å¶å人,u.HName 计éåä½ |
| | | from Kf_ICStockBillMain a |
| | | left join KF_ICSTOCKBILLSUB_WMS b on b.HInterID=a.HInterID |
| | | left join Gy_Material m on b.HMaterID=m.HItemID |
| | | left join gy_unit u on m.HUnitID=u.HItemID |
| | | JOIN Sc_PPBomBillMain p ON b.HSourceEntryID = p.HICMOEntryID |
| | | left JOIN Sc_PPBomBillSub p ON b.HSourceEntryID = p.HInterID |
| | | left JOIN Sc_PPBomBillMain pm ON p.HInterID=pm.HInterID |
| | | where convert(varchar(50),b.HInterID)+'-'+convert(varchar(50),b.HEntryID) in ("+ PrintIds+")"); |
| | | LogService.Write(sql); |
| | | SqlXMLReportData.GenOneRecordset(this, sql); |