提交修改

This commit is contained in:
邱敏健
2024-12-15 15:44:27 +08:00
parent 55410bf38e
commit 8cb6b0cb0b
6 changed files with 27 additions and 6 deletions
@@ -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 = "新增失败";