出入库回退增加备注

This commit is contained in:
18942506660
2024-07-27 10:31:57 +08:00
parent a28c882307
commit 16d067fa94
11 changed files with 150 additions and 11 deletions

View File

@@ -1,7 +1,10 @@
using System;

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using WMS.Web.Core.Internal.Results;
using WMS.Web.Domain.Values;
namespace WMS.Web.Domain.Entitys
@@ -10,7 +13,7 @@ namespace WMS.Web.Domain.Entitys
/// wms出入库回退记录表
/// </summary>
[Serializable]
[Table("t_wms_back_record")]
[Table("t_wms_back_record")]
public class BackRecord
{
/// <summary>
@@ -89,5 +92,18 @@ namespace WMS.Web.Domain.Entitys
}
this.BillNo = "CR" + idStr;
}
/// <summary>
/// 修改备注
/// </summary>
/// <param name="detailId"></param>
/// <param name="remark"></param>
/// <returns></returns>
public Result UpdateRemark(int detailId, string remark)
{
var detail = this.Details.Where(w => w.Id == detailId).FirstOrDefault();
if (detail == null) return Result.ReFailure(ResultCodes.NoDateError);
detail.Remark = remark;
return Result.ReSuccess();
}
}
}

View File

@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using WMS.Web.Core;
namespace WMS.Web.Domain.Entitys
{
@@ -10,12 +11,12 @@ namespace WMS.Web.Domain.Entitys
/// </summary>
[Serializable]
[Table("t_wms_back_record_details")]
public class BackRecordDetails
public class BackRecordDetails : EntityBase
{
/// <summary>
/// ID
/// 编号
/// </summary>
public int Id { get; set; }
public override int Id { get; set; }
/// <summary>
/// 回退记录表ID
/// </summary>
@@ -39,5 +40,9 @@ namespace WMS.Web.Domain.Entitys
/// 序列号集
/// </summary>
public List<string> SerialNumbers { get; set; } = new List<string>();
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
}
}