提交修改
This commit is contained in:
@@ -22,7 +22,7 @@ namespace UFIDA.U8.Framework.Api.ControlObject.ST
|
||||
{
|
||||
try
|
||||
{
|
||||
var co = "USERPCO.USERPCO".GetComObject();
|
||||
var co = "USERPCO.VoucherCO".GetComObject();
|
||||
|
||||
var errorMsg = "";
|
||||
|
||||
@@ -52,10 +52,11 @@ namespace UFIDA.U8.Framework.Api.ControlObject.ST
|
||||
var newCode = co.GetNewVouchCode(sVouchType, domHead, ref errorMsg);
|
||||
|
||||
logInfo.Debug($"获取新单号:{newCode}");
|
||||
//if (!string.IsNullOrWhiteSpace(newCode))
|
||||
//{
|
||||
// object value = domHead.SetDomKeyValue(codeKey, newCode);
|
||||
//}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(newCode))
|
||||
{
|
||||
object value = CommonHelper.SetDomKeyValue(domHead, codeKey, newCode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -78,6 +79,8 @@ namespace UFIDA.U8.Framework.Api.ControlObject.ST
|
||||
throw ex;
|
||||
}
|
||||
|
||||
baseLogin.Connection.CommitTrans();
|
||||
|
||||
if (!res.bSuccess)
|
||||
{
|
||||
res.message = "新增失败";
|
||||
|
||||
Reference in New Issue
Block a user