添加EAI 端口配置

This commit is contained in:
admin
2021-01-23 11:00:17 +08:00
parent 9356313ea6
commit cd2f83adb9
6 changed files with 13 additions and 8 deletions

View File

@@ -81,6 +81,7 @@
<HintPath>E:\U8SOFT\Interop\Interop.U8Login.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.configuration" />
<Reference Include="System.Data" />
<Reference Include="UFIDA.U8.MomServiceCommon, Version=1.0.0.0, Culture=neutral, PublicKeyToken=79a4e7ad54eeabca, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>

View File

@@ -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