同步金蝶

This commit is contained in:
18942506660
2023-11-09 15:30:59 +08:00
parent e1a3a87ac3
commit 3450a98119
6 changed files with 50 additions and 7 deletions

View File

@@ -56,6 +56,11 @@ namespace WMS.Web.Domain.Entitys
[Column("CreatorId")]
public int CreatorId { get; set; }
/// <summary>
/// 操作人
/// </summary>
[Column("OperateId")]
public int OperateId { get; set; }
/// <summary>
/// 创建时间(出库时间)
/// </summary>
[Column("CreateTime")]
@@ -66,6 +71,16 @@ namespace WMS.Web.Domain.Entitys
[Column("SuccessSync")]
public bool? SuccessSync { get; set; }
/// <summary>
/// 同步时间
/// </summary>
[Column("SyncTime")]
public DateTime? SyncTime { get; set; }
/// <summary>
/// 备注
/// </summary>
[Column("Remark")]
public string Remark { get; set; }
/// <summary>
/// 明细
/// </summary>
public List<OutStockDetails> Details = new List<OutStockDetails>();
@@ -82,7 +97,17 @@ namespace WMS.Web.Domain.Entitys
this.CreatorId = creatorId;
this.CreateTime = DateTime.Now;
}
/// <summary>
/// 同步金蝶
/// </summary>
/// <param name="operateId"></param>
public void Sync(bool isSuccess, int operateId,string remark)
{
this.SuccessSync = isSuccess;
this.Remark = remark;
this.OperateId = operateId;
this.SyncTime = DateTime.Now;
}
/// <summary>
/// 生成单据号