添加备注字段
This commit is contained in:
@@ -12,7 +12,7 @@ namespace NX.ERP.Model.MOM
|
|||||||
private int id;
|
private int id;
|
||||||
private double qty;
|
private double qty;
|
||||||
private int modid;
|
private int modid;
|
||||||
|
private string _remark;
|
||||||
public ICollection<MoAllocate> ProductAllocateOrderLst { get; set; } = new List<MoAllocate>();
|
public ICollection<MoAllocate> ProductAllocateOrderLst { get; set; } = new List<MoAllocate>();
|
||||||
public int ProductOrderDtlId { get => id; set => id = value; }
|
public int ProductOrderDtlId { get => id; set => id = value; }
|
||||||
public int ProductOrderId { get => modid; set => modid = value; }
|
public int ProductOrderId { get => modid; set => modid = value; }
|
||||||
@@ -49,6 +49,6 @@ namespace NX.ERP.Model.MOM
|
|||||||
public DateTime DueDate { get; set; }
|
public DateTime DueDate { get; set; }
|
||||||
|
|
||||||
public int MoTypeId { get; set; }
|
public int MoTypeId { get; set; }
|
||||||
|
public string Remark { get => _remark; set => _remark = value; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ namespace NX.ERP.U8.Mom
|
|||||||
using (var conn = U8LoginContext.Instance.Connection)
|
using (var conn = U8LoginContext.Instance.Connection)
|
||||||
{
|
{
|
||||||
string strSQL = @" select a.MoId as ProductOrderId,a.moCode as ProductOrderNo,ISNULL( ModifyDate,createDate) as ModifyDate,CONVERT(BIGINT,a.Ufts) AS pubufts,a.CreateDate as ProductDate,a.CreateUser as PreparedBy,
|
string strSQL = @" select a.MoId as ProductOrderId,a.moCode as ProductOrderNo,ISNULL( ModifyDate,createDate) as ModifyDate,CONVERT(BIGINT,a.Ufts) AS pubufts,a.CreateDate as ProductDate,a.CreateUser as PreparedBy,
|
||||||
b.MoId as id ,b.MoDId as ProductOrderDtlId,b.MoId as ProductOrderId,b.MoTypeId,d.DueDate,ISNULL( b.MDeptCode,'53') as MDeptCode,a.MoCode as ProductOrderNo,
|
b.MoId as id ,b.MoDId as ProductOrderDtlId,b.MoId as ProductOrderId,b.MoTypeId,d.DueDate,b.Remark as Remark,ISNULL( b.MDeptCode,'53') as MDeptCode,a.MoCode as ProductOrderNo,
|
||||||
a.CreateDate as ProductOrderDate,b.InvCode as ProductCode,b.Qty as Qty,b.SortSeq,b.SoCode,b.Status,InvDetail.cInvName as ProductName ,InvDetail.cInvStd ProductSpecsModel,
|
a.CreateDate as ProductOrderDate,b.InvCode as ProductCode,b.Qty as Qty,b.SortSeq,b.SoCode,b.Status,InvDetail.cInvName as ProductName ,InvDetail.cInvStd ProductSpecsModel,
|
||||||
c.AllocateId as id ,c.AllocateId as AllocateId,c.MoDId as ProductOrderDtlId,c.InvCode as MaterialCode,InvLocate.cInvName as MaterialName,InvLocate.cInvStd as MaterialSpecsModel,b.MoId as ProductOrderId, c.IssQty as IssQty,c.Qty,
|
c.AllocateId as id ,c.AllocateId as AllocateId,c.MoDId as ProductOrderDtlId,c.InvCode as MaterialCode,InvLocate.cInvName as MaterialName,InvLocate.cInvStd as MaterialSpecsModel,b.MoId as ProductOrderId, c.IssQty as IssQty,c.Qty,
|
||||||
e.cInvSN as ID
|
e.cInvSN as ID
|
||||||
@@ -31,7 +31,7 @@ namespace NX.ERP.U8.Mom
|
|||||||
left join mom_SNDetail as e on b.MoDId=e.iVouchsID
|
left join mom_SNDetail as e on b.MoDId=e.iVouchsID
|
||||||
left join mom_moallocate as c on b.MoDId=c.MoDId
|
left join mom_moallocate as c on b.MoDId=c.MoDId
|
||||||
left join Inventory as InvDetail on b.InvCode =InvDetail.cInvCode
|
left join Inventory as InvDetail on b.InvCode =InvDetail.cInvCode
|
||||||
left join Inventory as InvLocate on c.InvCode =InvLocate.cInvCode ";
|
left join Inventory as InvLocate on c.InvCode =InvLocate.cInvCode ";
|
||||||
if (!string.IsNullOrEmpty(strWhere))
|
if (!string.IsNullOrEmpty(strWhere))
|
||||||
{
|
{
|
||||||
strSQL += $" where {strWhere} ";
|
strSQL += $" where {strWhere} ";
|
||||||
|
|||||||
Reference in New Issue
Block a user