修正名称的错误
This commit is contained in:
@@ -10,6 +10,7 @@ namespace NX.ERP.U8
|
||||
{
|
||||
public class U8LoginContext : IDisposable
|
||||
{
|
||||
private static readonly object locker = new object();
|
||||
private static U8LoginContext _u8LoginContext;
|
||||
private string EaiPort = System.Configuration.ConfigurationManager.AppSettings["EaiPort"];
|
||||
private string EaiPath = System.Configuration.ConfigurationManager.AppSettings["EaiPath"];
|
||||
@@ -19,7 +20,14 @@ namespace NX.ERP.U8
|
||||
{
|
||||
if (_u8LoginContext == null)
|
||||
{
|
||||
_u8LoginContext = new U8LoginContext();
|
||||
lock (locker)
|
||||
{
|
||||
if (_u8LoginContext == null)
|
||||
{
|
||||
_u8LoginContext = new U8LoginContext();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return _u8LoginContext;
|
||||
}
|
||||
@@ -39,15 +47,26 @@ namespace NX.ERP.U8
|
||||
public U8LoginContext()
|
||||
{
|
||||
}
|
||||
private static readonly object locker1 = new object();
|
||||
|
||||
public clsLogin ClsLogin
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
|
||||
if (this._clslogin == null)
|
||||
{
|
||||
this.Login();
|
||||
lock (locker1)
|
||||
{
|
||||
if (this._clslogin == null)
|
||||
{
|
||||
this.Login();
|
||||
}
|
||||
}
|
||||
}
|
||||
return this._clslogin;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +78,7 @@ namespace NX.ERP.U8
|
||||
return new System.Data.SqlClient.SqlConnection(this.Constr4Net);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -160,7 +179,7 @@ namespace NX.ERP.U8
|
||||
get
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
return $"http://{this.ClsLogin.cServer}:{EaiPort}/{EaiPath}";
|
||||
|
||||
@@ -218,6 +237,7 @@ namespace NX.ERP.U8
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
if (uiLogin == null)
|
||||
{
|
||||
uiLogin = new UFSoft.U8.Framework.Login.UI.clsLogin();
|
||||
@@ -246,6 +266,10 @@ namespace NX.ERP.U8
|
||||
|
||||
public void Login()
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
if (NeedUiLogin)
|
||||
{
|
||||
if (!UiLogin.login("DP"))
|
||||
@@ -275,7 +299,6 @@ namespace NX.ERP.U8
|
||||
}
|
||||
_clslogin.set_TaskId(UiLogin.GetTaskID("ST"));
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user