添加EAI 端口配置
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
|
||||
</startup>
|
||||
<appSettings>
|
||||
<add key="eai_sender" value="003"/>
|
||||
<add key="EaiSender" value="003"/>
|
||||
<add key="EaiPort" value="80"/>
|
||||
<!--修改账套请修改这里的配置-->
|
||||
<!--<add key="url" value="http://192.168.0.242/U8EAI/import.asp"/>-->
|
||||
<!--<add key="connStr" value="Server=192.168.0.242 ;DataBase=UFDATA_003_2019;Uid=sa;Pwd=!@#qwe123;"/>-->
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
<add key="AccId" value="(default)@001"/>
|
||||
<add key="UserId" value="wx998"/>
|
||||
<add key="Password" value="nx123456"/>
|
||||
<add key="EaiPort" value="80"/>
|
||||
<add key="webpages:Version" value="3.0.0.0" />
|
||||
<add key="webpages:Enabled" value="false" />
|
||||
<add key="ClientValidationEnabled" value="true" />
|
||||
|
||||
Reference in New Issue
Block a user