| | |
| | | try |
| | | { |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | if (sID==null||sID=="") |
| | | if (sID == null || sID == "") |
| | | { |
| | | sql = string.Format(@"select k.HBarCode æ¡ç ,m.HBillNo å¨å
·ç¼å·,s.HName çç¹æ¹æ¡, |
| | | case when k.HCorrespondentTypeID=1 then 'ä¾åºå' when k.HCorrespondentTypeID=2 then '客æ·' when k.HCorrespondentTypeID=4 then 'ä»åº' end å®é
ä½ç½®ç±»å, |
| | |
| | | left join Gy_Customer c1 on m.HNowSupID=c1.HItemID |
| | | left join Gy_Warehouse w on k.HCorrespondentID=w.HItemID |
| | | left join Gy_Warehouse w1 on m.HNowSupID=w1.HItemID |
| | | where " + sWhere+ " and k.HSourceInterID=(select HItemID from Gy_StockCheckItem where HItemID="+sID+") and k.HMakeDate<=(select HEndDate from Gy_StockCheckItem where HItemID="+sID+")"); |
| | | where " + sWhere + " and k.HSourceInterID=(select HItemID from Gy_StockCheckItem where HItemID=" + sID + ") and k.HMakeDate<=(select HEndDate from Gy_StockCheckItem where HItemID=" + sID + ")"); |
| | | } |
| | | |
| | | ds = oCN.RunProcReturn(sql, "Sc_MouldStockBillMain_Temp"); |
| | | list.Add(ds.Tables[0]); |
| | | objJsonResult.code = "0"; |