private void DoPipingCalculation(NextGenBLL.PipingBLL pipBll, JCHVRF.Model.NextGen.MyNodeOut nodeOut, JCHVRF.Model.NextGen.SystemVRF currentSystem, out NextGenBLL.PipingErrors errorType) { errorType = NextGenBLL.PipingErrors.OK; if (nodeOut.ChildNode == null) { return; } pipBll.GetSumCapacity(nodeOut.ChildNode); pipBll.IsBranchKitNeedSizeUp(currentSystem); PipingBranchKit firstBranchKit = null; if (nodeOut.ChildNode is JCHVRF.Model.NextGen.MyNodeYP) { JCHVRF.Model.NextGen.MyNodeYP nodeYP = nodeOut.ChildNode as JCHVRF.Model.NextGen.MyNodeYP; if (nodeYP.IsCP) { firstBranchKit = pipBll.getFirstHeaderBranchPipeCalculation(nodeYP, currentSystem, out errorType); } else { firstBranchKit = pipBll.getFirstPipeCalculation(nodeYP, currentSystem, out errorType); } if (errorType != NextGenBLL.PipingErrors.OK) { SetSystemPipingOK(currentSystem, false); return; } } //bug 3489 var L2SizeDownRule = pipBll.GetL2SizeDownRule(currentSystem);//增大1st branch的管径型号 或者 缩小2nd branch的管径型号 add by Shen Junjie on 2018/2/21 //bug 3489 pipBll.getSumCalculationInversion(firstBranchKit, nodeOut, nodeOut.ChildNode, currentSystem, false, out errorType, L2SizeDownRule); if (errorType != NextGenBLL.PipingErrors.OK) { SetSystemPipingOK(currentSystem, false); return; } pipBll.CheckIndoorNumberConnectedCHBox(nodeOut); }