| | |
| | | /// </summary> |
| | | public static HydroParterPropStatusViewModel GetPropStatus(this HydroParterPropertyViewModel rhs, string propName) |
| | | { |
| | | var propStatus = rhs.PropStatusList?.Find(x => x.PropName == propName); |
| | | return propStatus; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取属性状态 |
| | | /// </summary> |
| | | public static Yw.Model.HydroParterPropStatusInfo GetPropStatus(this Yw.Model.HydroParterInfo rhs, string propName) |
| | | { |
| | | if (rhs == null) |
| | | { |
| | | return default; |
| | | } |
| | | var propStatus = rhs.PropStatusList?.Find(x => x.PropName == propName); |
| | | return propStatus; |
| | | } |