diff --git a/NX.ERP.U8.App/App.config b/NX.ERP.U8.App/App.config
index b4276b0..46a7f2b 100644
--- a/NX.ERP.U8.App/App.config
+++ b/NX.ERP.U8.App/App.config
@@ -5,7 +5,8 @@
-
+
+
diff --git a/NX.ERP.U8.App/Bom/ufinterface.cs b/NX.ERP.U8.App/Bom/ufinterface.cs
index ff56344..241c839 100644
--- a/NX.ERP.U8.App/Bom/ufinterface.cs
+++ b/NX.ERP.U8.App/Bom/ufinterface.cs
@@ -11,7 +11,7 @@ namespace U8AppMain.Bom
//sender="003" receiver="u8" roottag="Bom" docid="971742630" proc="add" codeexchanged="N" exportneedexch="N" paginate="0" display="物料清单" family="生产制造" timestamp="0x000000000027B6E6"
[System.Xml.Serialization.XmlAttribute]
- public string sender { get; set; } = System.Configuration.ConfigurationManager.AppSettings["eai_sender"];
+ public string sender { get; set; } = System.Configuration.ConfigurationManager.AppSettings["EaiSender"];
[System.Xml.Serialization.XmlAttribute]
public string receiver { get; set; } = "u8";
[System.Xml.Serialization.XmlAttribute]
diff --git a/NX.ERP.U8.App/Purchase/ufinterface.cs b/NX.ERP.U8.App/Purchase/ufinterface.cs
index 55ad81a..3e3eb91 100644
--- a/NX.ERP.U8.App/Purchase/ufinterface.cs
+++ b/NX.ERP.U8.App/Purchase/ufinterface.cs
@@ -21,7 +21,7 @@ namespace U8AppMain.Purchase
[System.Xml.Serialization.XmlAttribute]
public string receiver { get; set; } = "u8";
[System.Xml.Serialization.XmlAttribute]
- public string sender { get; set; } = System.Configuration.ConfigurationManager.AppSettings["eai_sender"];
+ public string sender { get; set; } = System.Configuration.ConfigurationManager.AppSettings["EaiSender"];
[System.Xml.Serialization.XmlAttribute]
public string proc { get; set; } = "add";
diff --git a/NX.ERP.U8/NX.ERP.U8.csproj b/NX.ERP.U8/NX.ERP.U8.csproj
index 3033798..2c4ada7 100644
--- a/NX.ERP.U8/NX.ERP.U8.csproj
+++ b/NX.ERP.U8/NX.ERP.U8.csproj
@@ -81,6 +81,7 @@
E:\U8SOFT\Interop\Interop.U8Login.dll
+
False
diff --git a/NX.ERP.U8/U8LoginContext.cs b/NX.ERP.U8/U8LoginContext.cs
index 597ffd1..cc97efa 100644
--- a/NX.ERP.U8/U8LoginContext.cs
+++ b/NX.ERP.U8/U8LoginContext.cs
@@ -11,6 +11,7 @@ namespace NX.ERP.U8
public class U8LoginContext : IDisposable
{
private static U8LoginContext _u8LoginContext;
+ private string EaiPort = System.Configuration.ConfigurationManager.AppSettings["EaiPort"];
public static U8LoginContext Instance
{
get
@@ -123,7 +124,8 @@ namespace NX.ERP.U8
{
this._accid = value;
}
- get {
+ get
+ {
return this.ClsLogin.get_cAcc_Id();
}
@@ -136,7 +138,7 @@ namespace NX.ERP.U8
return this.ClsLogin.cAccName;
}
}
-
+
@@ -146,7 +148,7 @@ namespace NX.ERP.U8
{
get
{
- return $"http://{this.ClsLogin.cServer}/U8EAI/import.asp";
+ return $"http://{this.ClsLogin.cServer}:{EaiPort}/U8EAI/import.asp";
}
@@ -222,9 +224,9 @@ namespace NX.ERP.U8
{
if (!UiLogin.login("DP"))
{
-
+
throw new Exception(UiLogin.ErrDescript);
-
+
}
}
else
diff --git a/NX.ERP.WebAPi/Web.config b/NX.ERP.WebAPi/Web.config
index 18d3041..a60b447 100644
--- a/NX.ERP.WebAPi/Web.config
+++ b/NX.ERP.WebAPi/Web.config
@@ -9,6 +9,7 @@
+