|
|
@ -142,15 +142,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 firstSourceId = items["firstsourceid"] != null ? items["firstsourceid"].ToString() : ""; |
|
|
|
string firstSourceAutoId = items["firstsourceautoid"] != null ? items["firstsourceautoid"].ToString() : ""; |
|
|
|
string id = items["id"] != null ? items["id"].ToString() : ""; |
|
|
|
string mainid = items["mainid"] != null ? items["mainid"].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," + |
|
|
|
"'" + firstSourceId + "' POID, '" + firstSourceAutoId + "' PODetailID," + |
|
|
|
"'" + id + "' POID, '" + mainid + "' 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 " + |
|
|
|