lixiaojun
2024-11-04 3effbd15ec04bbc39514c6904fa71d00631c96eb
WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/00-core/HydroParterInfoUpdateExtensions.cs
ÎļþÃû´Ó WinFrmUI/Yw.WinFrmUI.Hydro.Core/03-property/00-core/HydroParterInfoUpdateExtensions.cs ÐÞ¸Ä
@@ -10,7 +10,7 @@
        /// <summary>
        /// æ›´æ–°å±žæ€§
        /// </summary>
        public static void UpdateProperty(this Yw.Model.HydroParterInfo rhs, List<Yw.Model.HydroParterInfo> allPaterList, HydroParterPropertyViewModel propertyViewModel)
        public static void UpdateProperty(this Yw.Model.HydroParterInfo rhs, List<Yw.Model.HydroParterInfo> allPaterList, HydroParterViewModel propertyViewModel)
        {
            if (rhs == null)
            {
@@ -33,7 +33,7 @@
            //节点
            if (rhs is Yw.Model.HydroNodeInfo hydroNodeInfo)
            {
                if (propertyViewModel is HydroNodePropertyViewModel hydroNodePropertyViewModel)
                if (propertyViewModel is HydroNodeViewModel hydroNodePropertyViewModel)
                {
                }
@@ -41,7 +41,7 @@
            //水源
            if (rhs is Yw.Model.HydroSourceInfo hydroSourceInfo)
            {
                if (propertyViewModel is HydroSourcePropertyViewModel hydroSourcePropertyViewModel)
                if (propertyViewModel is HydroSourceViewModel hydroSourcePropertyViewModel)
                {
                }
@@ -49,7 +49,7 @@
            //水库
            if (rhs is Yw.Model.HydroReservoirInfo hydroReservoirInfo)
            {
                if (propertyViewModel is HydroReservoirPropertyViewModel hydroReservoirPropertyViewModel)
                if (propertyViewModel is HydroReservoirViewModel hydroReservoirPropertyViewModel)
                {
                    hydroReservoirInfo.PoolElev = hydroReservoirPropertyViewModel.PoolElev;
                    hydroReservoirInfo.UpdatePropStatus(nameof(hydroReservoirInfo.PoolElev), hydroReservoirPropertyViewModel, nameof(hydroReservoirPropertyViewModel.PoolElev));
@@ -62,7 +62,7 @@
            //æ°´æ± 
            if (rhs is Yw.Model.HydroTankInfo hydroTankInfo)
            {
                if (propertyViewModel is HydroTankPropertyViewModel hydroTankPropertyViewModel)
                if (propertyViewModel is HydroTankViewModel hydroTankPropertyViewModel)
                {
                    hydroTankInfo.PoolElev = hydroTankPropertyViewModel.PoolElev;
                    hydroTankInfo.UpdatePropStatus(nameof(hydroTankInfo.PoolElev), hydroTankPropertyViewModel, nameof(hydroTankPropertyViewModel.PoolElev));
@@ -85,7 +85,7 @@
            //æ°´ç®±
            if (rhs is Yw.Model.HydroWaterboxInfo hydroWaterboxInfo)
            {
                if (propertyViewModel is HydroWaterboxPropertyViewModel hydroWaterboxPropertyViewModel)
                if (propertyViewModel is HydroWaterboxViewModel hydroWaterboxPropertyViewModel)
                {
                }
@@ -93,7 +93,7 @@
            //连接节点
            if (rhs is Yw.Model.HydroJunctionInfo hydroJunctionInfo)
            {
                if (propertyViewModel is HydroJunctionPropertyViewModel hydroJunctionPropertyViewModel)
                if (propertyViewModel is HydroJunctionViewModel hydroJunctionPropertyViewModel)
                {
                    hydroJunctionInfo.Elev = hydroJunctionPropertyViewModel.Elev;
                    hydroJunctionInfo.UpdatePropStatus(nameof(hydroJunctionInfo.Elev), hydroJunctionPropertyViewModel, nameof(hydroJunctionPropertyViewModel.Elev));
@@ -106,7 +106,7 @@
            //扩散器
            if (rhs is Yw.Model.HydroEmitterInfo hydroEmitterInfo)
            {
                if (propertyViewModel is HydroEmitterPropertyViewModel hydroEmitterPropertyViewModel)
                if (propertyViewModel is HydroEmitterViewModel hydroEmitterPropertyViewModel)
                {
                    hydroEmitterInfo.Coefficient = hydroEmitterPropertyViewModel.Coefficient;
                    hydroEmitterInfo.UpdatePropStatus(nameof(hydroEmitterInfo.Coefficient), hydroEmitterPropertyViewModel, nameof(hydroEmitterPropertyViewModel.Coefficient));
@@ -115,7 +115,7 @@
            //喷嘴
            if (rhs is Yw.Model.HydroNozzleInfo hydroNozzleInfo)
            {
                if (propertyViewModel is HydroNozzlePropertyViewModel hydroNozzlePropertyViewModel)
                if (propertyViewModel is HydroNozzleViewModel hydroNozzlePropertyViewModel)
                {
                }
@@ -123,7 +123,7 @@
            //消火栓
            if (rhs is Yw.Model.HydroHydrantInfo hydroHydrantInfo)
            {
                if (propertyViewModel is HydroHydrantPropertyViewModel hydroHydrantPropertyViewModel)
                if (propertyViewModel is HydroHydrantViewModel hydroHydrantPropertyViewModel)
                {
                }
@@ -131,7 +131,7 @@
            //连接件
            if (rhs is Yw.Model.HydroCouplingInfo hydroConnectInfo)
            {
                if (propertyViewModel is HydroCouplingPropertyViewModel hydroCouplingPropertyViewModel)
                if (propertyViewModel is HydroCouplingViewModel hydroCouplingPropertyViewModel)
                {
                    hydroConnectInfo.Material = hydroCouplingPropertyViewModel.Material;
                    hydroConnectInfo.UpdatePropStatus(nameof(hydroConnectInfo.Material), hydroCouplingPropertyViewModel, nameof(hydroCouplingPropertyViewModel.Material));
@@ -144,7 +144,7 @@
            //闷头
            if (rhs is Yw.Model.HydroBluntheadInfo hydroBluntheadInfo)
            {
                if (propertyViewModel is HydroBluntheadPropertyViewModel hydroBluntheadPropertyViewModel)
                if (propertyViewModel is HydroBluntheadViewModel hydroBluntheadPropertyViewModel)
                {
                }
@@ -152,7 +152,7 @@
            //弯头
            if (rhs is Yw.Model.HydroElbowInfo hydroElbowInfo)
            {
                if (propertyViewModel is HydroElbowPropertyViewModel hydroElbowPropertyViewModel)
                if (propertyViewModel is HydroElbowViewModel hydroElbowPropertyViewModel)
                {
                }
@@ -160,7 +160,7 @@
            //三通
            if (rhs is Yw.Model.HydroThreelinkInfo hydroThreelinkInfo)
            {
                if (propertyViewModel is HydroThreelinkPropertyViewModel hydroThreelinkPropertyViewModel)
                if (propertyViewModel is HydroThreelinkViewModel hydroThreelinkPropertyViewModel)
                {
                }
@@ -168,7 +168,7 @@
            //四通
            if (rhs is Yw.Model.HydroFourlinkInfo hydroFourlinkInfo)
            {
                if (propertyViewModel is HydroFourlinkPropertyViewModel hydroFourlinkPropertyViewModel)
                if (propertyViewModel is HydroFourlinkViewModel hydroFourlinkPropertyViewModel)
                {
                }
@@ -176,7 +176,7 @@
            //水表
            if (rhs is Yw.Model.HydroMeterInfo hydroMeterInfo)
            {
                if (propertyViewModel is HydroMeterPropertyViewModel hydroMeterPropertyViewModel)
                if (propertyViewModel is HydroMeterViewModel hydroMeterPropertyViewModel)
                {
                }
@@ -184,7 +184,7 @@
            //流量计
            if (rhs is Yw.Model.HydroFlowmeterInfo hydroFlowmeterInfo)
            {
                if (propertyViewModel is HydroFlowmeterPropertyViewModel hydroFlowmeterPropertyViewModel)
                if (propertyViewModel is HydroFlowmeterViewModel hydroFlowmeterPropertyViewModel)
                {
                }
@@ -192,7 +192,7 @@
            //压力表
            if (rhs is Yw.Model.HydroPressmeterInfo hydroPressmeterInfo)
            {
                if (propertyViewModel is HydroPressmeterPropertyViewModel hydroPressmeterPropertyViewModel)
                if (propertyViewModel is HydroPressmeterViewModel hydroPressmeterPropertyViewModel)
                {
                }
@@ -201,7 +201,7 @@
            //管段
            if (rhs is Yw.Model.HydroLinkInfo hydroLinkInfo)
            {
                if (propertyViewModel is HydroLinkPropertyViewModel hydroLinkPropertyViewModel)
                if (propertyViewModel is HydroLinkViewModel hydroLinkPropertyViewModel)
                {
                    hydroLinkInfo.StartCode = hydroLinkPropertyViewModel.StartCode;
                    hydroLinkInfo.UpdatePropStatus(nameof(hydroLinkInfo.StartCode), hydroLinkPropertyViewModel, nameof(hydroLinkPropertyViewModel.StartCode));
@@ -214,7 +214,7 @@
            //管道
            if (rhs is Yw.Model.HydroPipeInfo hydroPipeInfo)
            {
                if (propertyViewModel is HydroPipePropertyViewModel hydroPipePropertyViewModel)
                if (propertyViewModel is HydroPipeViewModel hydroPipePropertyViewModel)
                {
                    hydroPipeInfo.Diameter = hydroPipePropertyViewModel.Diameter;
                    hydroPipeInfo.UpdatePropStatus(nameof(hydroPipeInfo.Diameter), hydroPipePropertyViewModel, nameof(hydroPipePropertyViewModel.Diameter));
@@ -229,7 +229,7 @@
            //过渡件
            if (rhs is Yw.Model.HydroTranslationInfo hydroTranslationInfo)
            {
                if (propertyViewModel is HydroTranslationPropertyViewModel hydroTranslationPropertyViewModel)
                if (propertyViewModel is HydroTranslationViewModel hydroTranslationPropertyViewModel)
                {
                }
@@ -237,7 +237,7 @@
            //换热器
            if (rhs is Yw.Model.HydroExchangerInfo hydroExchangerInfo)
            {
                if (propertyViewModel is HydroExchangerPropertyViewModel hydroExchangerPropertyViewModel)
                if (propertyViewModel is HydroExchangerViewModel hydroExchangerPropertyViewModel)
                {
                }
@@ -245,7 +245,7 @@
            //æ°´æ³µ
            if (rhs is Yw.Model.HydroPumpInfo hydroPumpInfo)
            {
                if (propertyViewModel is HydroPumpPropertyViewModel hydroPumpPropertyViewModel)
                if (propertyViewModel is HydroPumpViewModel hydroPumpPropertyViewModel)
                {
                    hydroPumpInfo.RatedP = hydroPumpPropertyViewModel.RatedP;
                    hydroPumpInfo.UpdatePropStatus(nameof(hydroPumpInfo.RatedP), hydroPumpPropertyViewModel, nameof(hydroPumpPropertyViewModel.RatedP));
@@ -270,7 +270,7 @@
            //阀门
            if (rhs is Yw.Model.HydroValveInfo hydroValveInfo)
            {
                if (propertyViewModel is HydroValvePropertyViewModel hydroValvePropertyViewModel)
                if (propertyViewModel is HydroValveViewModel hydroValvePropertyViewModel)
                {
                    hydroValveInfo.Diameter = hydroValvePropertyViewModel.Diameter;
                    hydroValveInfo.UpdatePropStatus(nameof(hydroValveInfo.Diameter), hydroValvePropertyViewModel, nameof(hydroValvePropertyViewModel.Diameter));