出库单返回单号
增加登录验证
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user