Exemple #1
0
        public ControllerAssembly(ControllerLayoutType layoutType, SystemVRF sysItem)
        {
            if (sysItem.OutdoorItem == null)
            {
                return;
            }

            this._systemVRFID            = sysItem.Id;
            this._controllerAssemblyType = sysItem.OutdoorItem.Type.ToUpper().Contains("TOP") ? AirDirectionType.TOP : AirDirectionType.HORIZONTAL;

            switch (layoutType)
            {
            case ControllerLayoutType.MODBUS:

                switch (_controllerAssemblyType)
                {
                case AirDirectionType.HORIZONTAL:
                    Name = (ControllerConstValue.ControllerAssembly_ModbusHor);
                    break;

                case AirDirectionType.TOP:
                    Name = (ControllerConstValue.ControllerAssembly_ModbusTop);
                    break;

                default:
                    break;
                }
                break;

            case ControllerLayoutType.BACNET:
                switch (_controllerAssemblyType)
                {
                case AirDirectionType.HORIZONTAL:
                    Name = (ControllerConstValue.ControllerAssembly_BacnetHor);
                    break;

                case AirDirectionType.TOP:
                    Name = (ControllerConstValue.ControllerAssembly_BacnetTop);
                    break;

                default:
                    break;
                }
                break;

            default:
                break;
            }
        }
Exemple #2
0
        /// 从另一个System中复制属性到当前System Add on 20161126 by Yunxiao Lin
        /// <summary>
        /// 从另一个System中复制属性到当前System
        /// </summary>
        /// <param name="sys"></param>
        public void Copy(SystemVRF sys)
        {
            this._addRefrigeration      = sys._addRefrigeration;
            this._allowExceedRatio      = sys._allowExceedRatio;
            this._controlGroupID        = sys._controlGroupID;
            this._coolingCapacity       = sys._coolingCapacity;
            this._dbCooling             = sys._dbCooling;
            this._dbHeating             = sys._dbHeating;
            this._rhHeatling            = sys._rhHeatling;
            this._diversityFactor       = sys._diversityFactor;
            this._firstPipeLength       = sys._firstPipeLength;
            this._firstPipeLengthbuff   = sys._firstPipeLengthbuff;
            this._heatingCapacity       = sys._heatingCapacity;
            this._heightDiff            = sys._heightDiff;
            this._isExportToReport      = sys._isExportToReport;
            this._isPipingOK            = sys._isPipingOK;
            this._isUpdated             = sys._isUpdated;
            this._iwCooling             = sys._iwCooling;
            this._iwHeating             = sys._iwHeating;
            this._MaxDiffIndoorHeight   = sys._MaxDiffIndoorHeight;
            this._MaxDiffIndoorLength   = sys._MaxDiffIndoorLength;
            this._MaxEqPipeLength       = sys._MaxEqPipeLength;
            this._MaxIndoorLength       = sys._MaxIndoorLength;
            this._MaxOutdoorAboveHeight = sys._MaxOutdoorAboveHeight;
            this._MaxOutdoorBelowHeight = sys._MaxOutdoorBelowHeight;
            this._MaxPipeLength         = sys._MaxPipeLength;
            this._MaxPipeLengthwithFA   = sys._MaxPipeLengthwithFA;
            this._maxRatio                 = sys._maxRatio;
            this._name                     = sys._name;
            this._no                       = sys._no;
            this._optionItem               = sys._optionItem;
            this._pipeActualLength         = sys._pipeActualLength;
            this._pipeEquivalentLength     = sys._pipeEquivalentLength;
            this._pipeEquivalentLengthbuff = sys._pipeEquivalentLengthbuff;
            this._pipingLengthFactor       = sys._pipingLengthFactor;
            this._pipingPositionType       = sys._pipingPositionType;
            this._ratio                    = sys._ratio;
            this._ratioFA                  = sys._ratioFA;
            this._selOutdoorType           = sys._selOutdoorType;
            this._sysType                  = sys._sysType;
            this._wbHeating                = sys._wbHeating;
            this.OutdoorItem               = sys.OutdoorItem;
            this._IDUFirst                 = sys._IDUFirst;

            this._isAuto          = sys._isAuto;
            this._coolingFlowRate = sys._coolingFlowRate;
            this._heatingFlowRate = sys._heatingFlowRate;
            this._flowRateLevel   = sys._flowRateLevel;

            //添加新的属性  add by Shen Junjie on 2018/02/01
            this.MaxTotalPipeLength = sys.MaxTotalPipeLength;
            //this.MaxTotalPipeLength_MaxIU = sys.MaxTotalPipeLength_MaxIU;
            this.MaxMKIndoorPipeLength = sys.MaxMKIndoorPipeLength;
            //this.MaxMKIndoorPipeLength_MaxIU = sys.MaxMKIndoorPipeLength_MaxIU;
            //添加新的属性  add by xyj on 2018/06/25
            this.MaxSameCHBoxHighDiffLength       = sys.MaxSameCHBoxHighDiffLength;
            this.MaxCHBoxHighDiffLength           = sys.MaxCHBoxHighDiffLength;
            this.MaxCHBox_IndoorHighDiffLength    = sys.MaxCHBox_IndoorHighDiffLength;
            this.MaxIndoorHeightDifferenceLength  = sys.MaxIndoorHeightDifferenceLength;
            this.MaxLowerHeightDifferenceLength   = sys.MaxLowerHeightDifferenceLength;
            this.MaxUpperHeightDifferenceLength   = sys.MaxUpperHeightDifferenceLength;
            this.NormalCHBoxHighDiffLength        = sys.NormalCHBoxHighDiffLength;
            this.NormalCHBox_IndoorHighDiffLength = sys.NormalCHBox_IndoorHighDiffLength;
            this.NormalSameCHBoxHighDiffLength    = sys.NormalSameCHBoxHighDiffLength;
        }