Browse Source

供应商及物料id使用德易仕接口返回的long类型id

master
Jjie 4 weeks ago
parent
commit
9a0a23ad1b
  1. 4
      ICSSoft.FromERP/ICSSoft.FromERP/ICSInventory.cs
  2. 4
      ICSSoft.FromERP/ICSSoft.FromERP/ICSVendor.cs
  3. 4
      ICSSoft.FromERP/ICSSoft.Test/Program.cs

4
ICSSoft.FromERP/ICSSoft.FromERP/ICSInventory.cs

@ -137,7 +137,7 @@ namespace ICSSoft.FromERP
if (obj["code"].ToString() == "200")
{
#region 处理数据
string id = obj["data"]?[0]?["id"]?.ToString();
string code = obj["data"]?[0]?["code"]?.ToString();
string name_simplifiedName = obj["data"]?[0]?["name"]?["simplifiedName"]?.ToString();
string model1 = obj["data"]?[0]?["model1"]?.ToString();
@ -162,7 +162,7 @@ namespace ICSSoft.FromERP
string batchManage = obj["data"]?[0]?["detail"]?["batchManage"]?.ToString();
string modifyTime = obj["data"]?[0]?["modifyTime"]?.ToString();
#endregion
sqlGG = @" select NEWID() AS ID,
sqlGG = @" select '"+ id + @"' AS ID,
'" + code + @"' AS INVCODE,
'"+name_simplifiedName+@"' AS INVNAME,

4
ICSSoft.FromERP/ICSSoft.FromERP/ICSVendor.cs

@ -132,6 +132,8 @@ namespace ICSSoft.FromERP
//string vendorcontactss_contactmobile = obj["data"] != null ? (obj["data"]["vendorcontactss"] != null ? (obj["data"]["vendorcontactss"]["contactmobile"] != null ? obj["data"]["vendorcontactss"]["contactmobile"].ToString() : "") : "") : "";
//string registerCurrency_name = obj["data"] != null ? (obj["data"]["registerCurrency_name"] != null ? obj["data"]["registerCurrency_name"].ToString() : "") : "";
//string createTime = obj["data"] != null ? (obj["data"]["createTime"] != null ? obj["data"]["createTime"].ToString() : "") : "";
string id = obj["data"]["id"]?.ToString();
string Zcode = obj["data"]["code"]?.ToString();
string namezh_CN = obj["data"]["name"]["zh_CN"].ToString();
string vendorclass_code = obj["data"]["vendorclass_code"].ToString();
@ -163,7 +165,7 @@ namespace ICSSoft.FromERP
#endregion
sqlGG = @" select
'" + Zcode + @"' AS cVenCode ,
NEWID() AS ID,
'"+ id + @"' AS ID,
'" + namezh_CN + @"' AS cVenName,
'" + namezh_CN + @"' AS cVenAbbName,
'" + vendorclass_code + @"' AS cVCCode,

4
ICSSoft.FromERP/ICSSoft.Test/Program.cs

@ -11,8 +11,8 @@ namespace ICSSoft.Test
static void Main(string[] args)
{
// DYSDelive a = new DYSDelive();
ICSInventory a = new ICSInventory();
// DYSDelive a = new DYSDelive();
ICSVendor a = new ICSVendor();
a.Execute();

Loading…
Cancel
Save