|
|
|
@ -2098,11 +2098,24 @@ namespace Myshipping.Application
|
|
|
|
|
if (b.SubStatusList != null && b.SubStatusList.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
b.SubStatusList.ForEach(sb => {
|
|
|
|
|
var eSubRunInfo = runInfo.ActivitiesList
|
|
|
|
|
.FirstOrDefault(p => p.ActId == sb.ActPKId);
|
|
|
|
|
|
|
|
|
|
ServiceWorkFlowActivitiesRunSubDto eSubRunInfo = null;
|
|
|
|
|
|
|
|
|
|
if(eRunInfo != null && eRunInfo.SubList != null)
|
|
|
|
|
{
|
|
|
|
|
eSubRunInfo = eRunInfo.SubList
|
|
|
|
|
.FirstOrDefault(p => p.ActId == sb.ActPKId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(eSubRunInfo != null)
|
|
|
|
|
{
|
|
|
|
|
decimal calcSort = (decimal)b.ActSortNo + (eSubRunInfo.ExecSortNo * 0.001m);
|
|
|
|
|
|
|
|
|
|
if (eRunInfo != null)
|
|
|
|
|
{
|
|
|
|
|
calcSort = (decimal)eRunInfo.ExecSortNo + (eSubRunInfo.ExecSortNo * 0.001m);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rltList.Add(new ServiceProjectStatusDto
|
|
|
|
|
{
|
|
|
|
|
ActPKId = eSubRunInfo.ActId,
|
|
|
|
@ -2114,12 +2127,20 @@ namespace Myshipping.Application
|
|
|
|
|
ActVal = eSubRunInfo.ActVal,
|
|
|
|
|
ActRemark = eSubRunInfo.ActRemark,
|
|
|
|
|
WFSortNo = l.SortNo,
|
|
|
|
|
CalcSortNo = (decimal)eSubRunInfo.ExecSortNo,
|
|
|
|
|
CalcSortNo = calcSort,
|
|
|
|
|
|
|
|
|
|
SortNo = sb.SortNo
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
decimal calcSort = (decimal)b.ActSortNo + (sb.ActSortNo * 0.001m);
|
|
|
|
|
|
|
|
|
|
if (eRunInfo != null)
|
|
|
|
|
{
|
|
|
|
|
calcSort = (decimal)eRunInfo.ExecSortNo + (sb.ActSortNo * 0.001m);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rltList.Add(new ServiceProjectStatusDto
|
|
|
|
|
{
|
|
|
|
|
ActPKId = sb.ActPKId,
|
|
|
|
@ -2129,7 +2150,7 @@ namespace Myshipping.Application
|
|
|
|
|
StatusSKUCode = sb.StatusSKUCode,
|
|
|
|
|
ActRemark = sb.ActRemark,
|
|
|
|
|
WFSortNo = l.SortNo,
|
|
|
|
|
CalcSortNo = (decimal)b.ActSortNo + (sb.ActSortNo * 0.001m),
|
|
|
|
|
CalcSortNo = calcSort,
|
|
|
|
|
SortNo = sb.SortNo
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|