diff --git a/ICSSoft.FromERP/ICSSoft.FromERP/ICSPO.cs b/ICSSoft.FromERP/ICSSoft.FromERP/ICSPO.cs index 01f8575..09fc603 100644 --- a/ICSSoft.FromERP/ICSSoft.FromERP/ICSPO.cs +++ b/ICSSoft.FromERP/ICSSoft.FromERP/ICSPO.cs @@ -68,6 +68,10 @@ namespace ICSSoft.FromERP s.field = "modifyTime"; s.op = "gt"; s.value1 = "2025-03-21"; + + s.field = "bustype_name"; + s.op = "eq"; + s.value1 = "普通采购(有到货)"; ls.Add(s); #endregion @@ -142,15 +146,15 @@ namespace ICSSoft.FromERP string creator = obj["data"]?["creator"] != null ? obj["data"]["creator"].ToString() : ""; string createTime = obj["data"]?["createTime"] != null ? obj["data"]["createTime"].ToString() : ""; string recieveDate = items["recieveDate"] != null ? items["recieveDate"].ToString() : ""; - string id = items["id"] != null ? items["id"].ToString() : ""; - string mainid = items["mainid"] != null ? items["mainid"].ToString() : ""; + string id = obj["data"]["id"] != null ? obj["data"]["id"].ToString() : ""; + string Zid = items["id"] != null ? items["id"].ToString() : ""; sqlGG = @" select '" + POCode + "' POCode,'" + lineNo + "' Sequence," + "'" + VneCode + "' VenCode, '" + venName + "' VenName, '' DepCode,'' PRID,'' PRDetailID, '" + modifier + "' PersonCode, '" + qty + "' Quantity,'" + subQty + "' Amount," + "'1' POType,'" + productCCode + "'InvCode, " + "'" + currencyName + "' Currency,'" + natUnitPrice + "' UnitPrice,'1' Status, '1' ReleaseState, " + "'" + creator + "' CreatePerson,'" + createTime + "' CreateDateTime,'" + recieveDate + "' PreArriveDate," + "'" + createTime + "' MTIME,'" + createTime + "' ReleaseDate," + - "'" + id + "' POID, '" + mainid + "' PODetailID," + + "'" + id + "' POID, '" + Zid + "' PODetailID," + "'' ProjectCode,'' cBatch,'' version ,'' brand,'' as cFree1,'' as cFree2,'' as cFree3,'' as cFree4,'' as cFree5,'' as cFree6,'' as cFree7," + "'' as cFree8,'' as cFree9,'' as cFree10,CAST('' AS NVARCHAR(500)) as Colspan,'' WHCode ,'"+ WorkPoint + "' WorkPoint ," + "'' EATTRIBUTE1 ,'' EATTRIBUTE2,'' EATTRIBUTE3 ,'' EATTRIBUTE4,'' EATTRIBUTE5 ,'' EATTRIBUTE6 ,'' EATTRIBUTE7 ,'' EATTRIBUTE8 ,'' EATTRIBUTE9 ,'' EATTRIBUTE10 " +