| | |
| | | lsmain = oListModels.getObjectByJson_Gy_Material(msg1); |
| | | |
| | | oBill.oModel = lsmain[0]; |
| | | LogService.Write("物料同步插件,保存方法执行完成异常:"+ msg1); |
| | | LogService.Write("物料:"+ msg1); |
| | | //保存 |
| | | bool bResult = oBill.AddNewApi(); |
| | | if (bResult) |
| | |
| | | } |
| | | else |
| | | { |
| | | tb2.Rows[i]["HWHID"] = ds.Tables[0].Rows[0]["HItemID"].ToString(); |
| | | tb2.Rows[i]["HWHID"] = ds.Tables[0].Rows[0]["HSPGroupID"].ToString(); |
| | | } |
| | | string HWHID = tb2.Rows[i]["HWHID"].ToString(); |
| | | //查询仓位 |
| | | ds = oCN.RunProcReturn("select * from Gy_StockPlace where HName='" + HSPName + "'and HSPGroupID=" + HWHID+ " and HUSEORGID=" + HORGid + "", "Gy_Warehouse"); |
| | | ds = oCN.RunProcReturn("select * from Gy_StockPlace where HName='" + HSPName + "'and HSPGroupID=" + HWHID+ " and HUSEORGID=" + HORGid + "", "Gy_StockPlace"); |
| | | |
| | | if (ds.Tables[0].Rows.Count == 0) |
| | | { |