增加生产订单信息输出

This commit is contained in:
admin
2021-01-22 11:25:03 +08:00
parent f941eb9743
commit 521864dc19
15 changed files with 249 additions and 39 deletions

View File

@@ -5,16 +5,21 @@ using System.Text;
namespace NX.ERP.Model.MOM
{
public class MoAllocate
public class MoAllocate:BaseModel
{
private int id;
private string invCode;
private double qty;
private int modid;
public int Id { get => id; set => id = value; }
public string InvCode { get => invCode; set => invCode = value; }
public int ProductOrderDtlId { get; set; }
public int AllocateId { get => id; set => id = value; }
public string MaterialCode { get => invCode; set => invCode = value; }
public double Qty { get => qty; set => qty = value; }
public int ModId { get => modid; set => modid = value; }
public int ProductOrderId { get => modid; set => modid = value; }
//public string UnitCode { get; set; }
public double Issqty { get; set; }
}
}

View File

@@ -6,15 +6,34 @@ using System.Text;
namespace NX.ERP.Model.MOM
{
public class MomDetail
public class MomDetail: BaseModel
{
private int id;
private double qty;
private int modid;
[JsonIgnore]
public ICollection<MoAllocate> moAllocates { get; set; } = new List<MoAllocate>();
public int Id { get => id; set => id = value; }
public ICollection<MoAllocate> ProductAllocateOrderLst { get; set; } = new List<MoAllocate>();
public int ProductOrderDtlId { get => id; set => id = value; }
public int ProductOrderId { get => modid; set => modid = value; }
public string ProductOrderNo { get; set; }
public DateTime ProductOrderDate { get; set; }
public string ProductCode { get; set; }
//public string BatchNo { get; set; }
public double Qty { get => qty; set => qty = value; }
public int Modid { get => modid; set => modid = value; }
}
}

View File

@@ -5,18 +5,23 @@ using System.Text;
using Newtonsoft.Json;
namespace NX.ERP.Model.MOM
{
public class MomOrder
public class MomOrder: BaseModel
{
private int id;
private string code;
public DateTime Date { get; set; }
//public DateTime Date { get; set; }
/// <summary>
///
/// </summary>
public ICollection<MomDetail> Details { get; set; } = new List<MomDetail>();
public int Id { get => id; set => id = value; }
public string Code { get => code; set => code = value; }
public ICollection<MomDetail> ProductDtlLst { get; set; } = new List<MomDetail>();
public int ProductOrderId { get => id; set => id = value; }
public string ProductOrderNo { get => code; set => code = value; }
public DateTime ProductDate { get; set; }
public string PreparedBy { get; set; }
[Newtonsoft.Json.JsonIgnore]
public ICollection<MoAllocate> Allocates { get; set; } = new List<MoAllocate>();