增加行号
This commit is contained in:
@@ -20,6 +20,8 @@ namespace NX.ERP.Model.MOM
|
|||||||
|
|
||||||
public string MaterialName { get; set; }
|
public string MaterialName { get; set; }
|
||||||
|
|
||||||
|
public string irowno { get; set; }
|
||||||
|
|
||||||
public string MaterialSpecsModel { get; set; }
|
public string MaterialSpecsModel { get; set; }
|
||||||
public double Qty { get => qty; set => qty = value; }
|
public double Qty { get => qty; set => qty = value; }
|
||||||
public int ProductOrderId { get => modid; set => modid = value; }
|
public int ProductOrderId { get => modid; set => modid = value; }
|
||||||
|
|||||||
@@ -259,7 +259,7 @@ namespace NX.ERP.U8.Mom
|
|||||||
public IEnumerable<Model.MOM.MomDetail> GetDetails(string strWhere = "", object Param = null)
|
public IEnumerable<Model.MOM.MomDetail> GetDetails(string strWhere = "", object Param = null)
|
||||||
{
|
{
|
||||||
var strSql = @"select b.MoId as id ,b.MoDId as ProductOrderDtlId,b.MoId as ProductOrderId,b.MoCode as ProductOrderNo,b.MakeDate as ProductOrderDate,b.InvCode as ProductCode,b.InvName as ProductName ,b.Qty as Qty,
|
var strSql = @"select b.MoId as id ,b.MoDId as ProductOrderDtlId,b.MoId as ProductOrderId,b.MoCode as ProductOrderNo,b.MakeDate as ProductOrderDate,b.InvCode as ProductCode,b.InvName as ProductName ,b.Qty as Qty,
|
||||||
d.AllocateId as id ,d.AllocateId as AllocateId,b.MoDId as ProductOrderDtlId,d.InvCode as MaterialCode,b.MoId as ProductOrderId, d.IssQty as IssQty,d.Qty
|
d.AllocateId as id ,d.AllocateId as AllocateId,b.MoDId as ProductOrderDtlId,d.InvCode as MaterialCode,b.MoId as ProductOrderId, d.IssQty as IssQty,d.Qty,Allocate.SortSeq as irowno
|
||||||
FROM v_st_mom_orderdetail b INNER JOIN
|
FROM v_st_mom_orderdetail b INNER JOIN
|
||||||
(SELECT modid as m_modid,allocateid,CREJECTCODE,IssQty,Qty,InvCode
|
(SELECT modid as m_modid,allocateid,CREJECTCODE,IssQty,Qty,InvCode
|
||||||
from v_st_moallocate
|
from v_st_moallocate
|
||||||
@@ -268,6 +268,8 @@ namespace NX.ERP.U8.Mom
|
|||||||
and (ISNULL(Qty,0)-ISNULL(IssQty,0)+ISNULL(ReplenishQty,0))>0
|
and (ISNULL(Qty,0)-ISNULL(IssQty,0)+ISNULL(ReplenishQty,0))>0
|
||||||
and isnull(RequisitionFlag,0) = 0 and 1=1)
|
and isnull(RequisitionFlag,0) = 0 and 1=1)
|
||||||
d ON b.modid= d.m_modid
|
d ON b.modid= d.m_modid
|
||||||
|
left join mom_moallocate
|
||||||
|
Allocate WITH (NOLOCK) ON Allocate.AllocateId= d.AllocateId
|
||||||
Where b.byproductflag=0
|
Where b.byproductflag=0
|
||||||
and ISNULL(b.Status,0) = 3
|
and ISNULL(b.Status,0) = 3
|
||||||
and ( isnull(b.bWorkshopTrans,0) = 0 or (isnull(b.bWorkshopTrans,0) =1
|
and ( isnull(b.bWorkshopTrans,0) = 0 or (isnull(b.bWorkshopTrans,0) =1
|
||||||
|
|||||||
Reference in New Issue
Block a user