出库单返回单号

增加登录验证
This commit is contained in:
gongxh
2021-12-07 13:07:47 +08:00
parent 9c5298c419
commit 96bc7aaca7
4 changed files with 76 additions and 24 deletions

View File

@@ -259,7 +259,18 @@ namespace NX.ERP.U8.Store
try
{
return AddRdVoucher(voucherParameter);
var voucherId = AddRdVoucher(voucherParameter);
if (!string.IsNullOrEmpty(voucherId))
{
var model = this.GetModel(int.Parse(voucherId));
if (model!=null)
{
voucherId = model.Code;
}
}
return voucherId;
}
catch (Exception err)
{
@@ -294,6 +305,13 @@ namespace NX.ERP.U8.Store
}
}
public MaterialStoreOut GetModel(int Id)
{
return GetList(" a.id=@id", new { Id }).FirstOrDefault();
}
public MaterialStoreOut GetModel(string Code)
{