添加导出到货单接口
This commit is contained in:
@@ -8,15 +8,11 @@ namespace NX.ERP.U8
|
||||
{
|
||||
public class U8LoginContext : IDisposable
|
||||
{
|
||||
|
||||
|
||||
private static U8LoginContext _u8LoginContext;
|
||||
|
||||
public static U8LoginContext Instance
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
if (_u8LoginContext == null)
|
||||
{
|
||||
_u8LoginContext = new U8LoginContext();
|
||||
@@ -24,17 +20,21 @@ namespace NX.ERP.U8
|
||||
return _u8LoginContext;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private UFSoft.U8.Framework.Login.UI.clsLogin uiLogin;
|
||||
|
||||
private clsLogin _clslogin;
|
||||
|
||||
|
||||
public string cAcc_id
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._clslogin.get_cAcc_Id();
|
||||
}
|
||||
}
|
||||
|
||||
public U8LoginContext()
|
||||
{
|
||||
//uiLogin = new UFSoft.U8.Framework.Login.UI.clsLogin();
|
||||
}
|
||||
|
||||
public clsLogin ClsLogin
|
||||
{
|
||||
get
|
||||
@@ -55,7 +55,6 @@ namespace NX.ERP.U8
|
||||
uiLogin.ShutDown();
|
||||
uiLogin = null;
|
||||
}
|
||||
|
||||
}
|
||||
public string UserId { get; set; } = "003";
|
||||
|
||||
@@ -63,14 +62,12 @@ namespace NX.ERP.U8
|
||||
|
||||
public string Server { get; set; } = "192.168.0.250";
|
||||
|
||||
public string AccID { get; set; } = "u8@889";
|
||||
public string AccID { get; set; } = "(default)@001";
|
||||
|
||||
public string Serial { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ADO.NET 链接字符串
|
||||
/// </summary>
|
||||
public string Constr4Net
|
||||
{
|
||||
get
|
||||
@@ -78,10 +75,10 @@ namespace NX.ERP.U8
|
||||
return this.ClsLogin.UFDataConnstringForNet;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ADO的链接字符串
|
||||
/// </summary>
|
||||
public string Constr
|
||||
|
||||
{
|
||||
get
|
||||
{
|
||||
@@ -102,18 +99,24 @@ namespace NX.ERP.U8
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public void Login(bool showlogin = false)
|
||||
{
|
||||
if (!UiLogin.login("DP", "wx998", "", "192.168.0.250", "2020-12-31", AccID, Serial, showlogin))
|
||||
if (showlogin)
|
||||
{
|
||||
throw new Exception(UiLogin.ErrDescript);
|
||||
if (!UiLogin.login("DP"))
|
||||
{
|
||||
throw new Exception(UiLogin.ErrDescript);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
if (!UiLogin.login("DP", "wx999", "!@#qwe123", "192.168.0.168", DateTime.Today.ToString("yyyy-MM-dd"), AccID, Serial))
|
||||
{
|
||||
throw new Exception(UiLogin.ErrDescript);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (UiLogin.SubLogin("ST") == null)
|
||||
{
|
||||
@@ -126,7 +129,7 @@ namespace NX.ERP.U8
|
||||
}
|
||||
_clslogin.set_TaskId(UiLogin.GetTaskID("ST"));
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user