修改金额
This commit is contained in:
@@ -5,7 +5,7 @@ using System.Text;
|
||||
using U8Login;
|
||||
using UFIDA.U8.U8APIFramework;
|
||||
using UFIDA.U8.U8MOMAPIFramework;
|
||||
|
||||
using Dapper;
|
||||
namespace NX.ERP.U8
|
||||
{
|
||||
public class U8LoginContext : IDisposable
|
||||
@@ -49,6 +49,31 @@ namespace NX.ERP.U8
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//public int GetDefaultPoTaxRate()
|
||||
//{
|
||||
|
||||
// try
|
||||
// {
|
||||
// string strSQL = "Select cValue from AccInformation Where cSysID=N'PU' and cName=N'iDefaultZHBVRate'";
|
||||
// using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net))
|
||||
// {
|
||||
// return conn.ExecuteScalar<int>(strSQL, null, null, 0, System.Data.CommandType.Text);
|
||||
|
||||
// }
|
||||
// }
|
||||
// catch (Exception)
|
||||
// {
|
||||
// throw;
|
||||
// }
|
||||
// finally
|
||||
// {
|
||||
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (uiLogin != null)
|
||||
@@ -77,6 +102,21 @@ namespace NX.ERP.U8
|
||||
return this.ClsLogin.UFDataConnstringForNet;
|
||||
}
|
||||
}
|
||||
public string LoginUserName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ClsLogin.cUserName;
|
||||
}
|
||||
}
|
||||
|
||||
public string LoginUserId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ClsLogin.cUserId;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// ADO的链接字符串
|
||||
/// </summary>
|
||||
@@ -135,12 +175,12 @@ namespace NX.ERP.U8
|
||||
}
|
||||
|
||||
|
||||
public void AddRdVoucher(string URL,VoucherParameter para)
|
||||
public void AddRdVoucher(string URL, VoucherParameter para)
|
||||
{
|
||||
try
|
||||
{
|
||||
U8EnvContext u8EnvContext = new U8EnvContext();
|
||||
u8EnvContext.U8Login =this.ClsLogin;
|
||||
u8EnvContext.U8Login = this.ClsLogin;
|
||||
|
||||
U8ApiAddress apiAddress = new U8ApiAddress(URL);
|
||||
U8ApiBroker u8ApiBroker = new U8ApiBroker(apiAddress, u8EnvContext);
|
||||
@@ -151,7 +191,7 @@ namespace NX.ERP.U8
|
||||
{
|
||||
u8ApiBroker.AssignNormalValue("domPosition", para.DomPosition);
|
||||
}
|
||||
|
||||
|
||||
u8ApiBroker.AssignNormalValue("cnnFrom", null);
|
||||
if (para.DOMMsg != null)
|
||||
{
|
||||
@@ -174,21 +214,21 @@ namespace NX.ERP.U8
|
||||
if (exception is MomSysException)
|
||||
{
|
||||
MomSysException ex = exception as MomSysException;
|
||||
|
||||
|
||||
}
|
||||
else if (exception is MomBizException)
|
||||
{
|
||||
MomBizException ex2 = exception as MomBizException;
|
||||
|
||||
|
||||
}
|
||||
string exceptionString = u8ApiBroker.GetExceptionString();
|
||||
if (exceptionString.Length != 0)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
para.ReturnValue = false;
|
||||
|
||||
|
||||
u8ApiBroker.Release();
|
||||
return;
|
||||
}
|
||||
@@ -228,7 +268,7 @@ namespace NX.ERP.U8
|
||||
}
|
||||
catch (Exception ex3)
|
||||
{
|
||||
|
||||
|
||||
throw ex3;
|
||||
}
|
||||
}
|
||||
@@ -255,21 +295,21 @@ namespace NX.ERP.U8
|
||||
if (exception is MomSysException)
|
||||
{
|
||||
MomSysException ex = exception as MomSysException;
|
||||
|
||||
|
||||
}
|
||||
else if (exception is MomBizException)
|
||||
{
|
||||
MomBizException ex2 = exception as MomBizException;
|
||||
|
||||
|
||||
}
|
||||
string exceptionString = u8ApiBroker.GetExceptionString();
|
||||
if (exceptionString.Length != 0)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
para.ReturnValue = false;
|
||||
|
||||
|
||||
u8ApiBroker.Release();
|
||||
return;
|
||||
}
|
||||
@@ -297,14 +337,14 @@ namespace NX.ERP.U8
|
||||
}
|
||||
catch (Exception ex3)
|
||||
{
|
||||
|
||||
|
||||
throw new Exception("装载供应链库存单据失败!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user