|
|
@ -38,7 +38,7 @@ namespace ICSSoft.ERPWMS.SQL |
|
|
|
|
|
|
|
string sql = @"select a.ID,a.cCode as '退货单号',b.ivouchrowno as '退货单行号',b.cInvCode as '物料编码',-b.iQuantity as '退货数量',
|
|
|
|
d.cPOID as '采购订单',c.ivouchrowno as '采购订单行号',e.cPsn_Num as '操作人',isnull(isnull(isnull(a.cReviser,a.cchanger),a.cverifier),a.cMaker) as '操作人名称', |
|
|
|
isnull(isnull(a.cModifyTime,a.caudittime),a.cMakeTime) as '操作时间' |
|
|
|
isnull(isnull(a.cModifyTime,a.caudittime),a.cMakeTime) as '操作时间',a.caudittime '审核时间' |
|
|
|
from {0}.dbo.PU_ArrivalVouch a |
|
|
|
left join {0}.dbo.PU_ArrivalVouchs b on a.ID = b.ID |
|
|
|
left join {0}.dbo.PO_Podetails c on b.iPOsID = c.ID |
|
|
@ -48,7 +48,7 @@ namespace ICSSoft.ERPWMS.SQL |
|
|
|
|
|
|
|
string sql2 = @"select a.ID,a.cCode as '退货单号',b.ivouchrowno as '退货单行号',b.cInvCode as '物料编码',-b.iQuantity as '退货数量',
|
|
|
|
d.cCode as '采购订单',c.ivouchrowno as '采购订单行号',e.cPsn_Num as '操作人',isnull(isnull(isnull(a.cReviser,a.cchanger),a.cverifier),a.cMaker) as '操作人名称', |
|
|
|
isnull(isnull(a.cModifyTime,a.caudittime),a.cMakeTime) as '操作时间' |
|
|
|
isnull(isnull(a.cModifyTime,a.caudittime),a.cMakeTime) as '操作时间',a.caudittime '审核时间' |
|
|
|
from {0}.dbo.PU_ArrivalVouch a |
|
|
|
left join {0}.dbo.PU_ArrivalVouchs b on a.ID = b.ID |
|
|
|
left join {0}.dbo.OM_MODetails c on b.iPOsID = c.MODetailsID |
|
|
@ -125,6 +125,15 @@ namespace ICSSoft.ERPWMS.SQL |
|
|
|
} |
|
|
|
entity.WorkPoint = WorkPoint; |
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(dr["审核时间"].ToString())) |
|
|
|
{ |
|
|
|
entity.Status = "1";//开立
|
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
entity.Status = "2";//审核
|
|
|
|
} |
|
|
|
|
|
|
|
entityList.Add(entity); |
|
|
|
} |
|
|
|
|
|
|
|