public TreeNodeTmlViewModel(NodeBaseNode mvvmFather, IIEquipmentInfo terminalInfomation) { this.NodeType = TypeOfTreeNode.IsTml; Visi = Visibility.Visible; this._father = mvvmFather; Md5 = 0; //TreeSingleViewModel.RegisterNodeToControl(this); if (terminalInfomation == null) { this.NodeName = "加载出错"; } else { this.NodeName = terminalInfomation.RtuName; // this.ImagesIcon = ImageResources.GetTmlTreeIcon(6); this.NodeId = terminalInfomation.RtuId; Md5 = terminalInfomation.Md5; PicIndex = 3005; } this.ReUpdate(9); UpdateTmlStateInfomation(); }
public Wj3005TerminalInformation(IIEquipmentInfo baseTerminalInfomation) : base(baseTerminalInfomation) { //SwitchIn = new SwitchIn(baseTerminalInfomation.RtuId); SwitchOut = new SwitchOut(baseTerminalInfomation.RtuId); RtuParaAnalogueAmps = new RtuParaAnalogueAmps(baseTerminalInfomation.RtuId); }
public TreeNodeConcentratorViewModel(NodeBaseNode mvvmFather, IIEquipmentInfo terminalInfomation) { this.NodeType = TypeOfTreeNode.IsConcentrator; Visi = Visibility.Visible; this._father = mvvmFather; Md5 = 0; //TreeSingleViewModel.RegisterNodeToControl(this); if (terminalInfomation == null) { this.NodeName = "加载出错"; } else { this.NodeName = terminalInfomation.RtuName; // this.ImagesIcon = ImageResources.GetTmlTreeIcon(6); this.NodeId = terminalInfomation.RtuId; Md5 = terminalInfomation.Md5; RtuModelss = terminalInfomation.RtuModel; } GetNoUsedCount(); ReUpdate(11); }
public EquipmentInfomation(IIEquipmentInfo info) { this.AttachRtuId = info.AttachRtuId; this.DataCreate = info.DataCreate; //this.EnumDeviceType = info.EnumDeviceType; this.InstallAddr = info.InstallAddr; this.Md5 = info.Md5; this.OtherArgu = info.OtherArgu; this.PhyId = info.PhyId; this.Remark = info.Remark; this.RtuId = info.RtuId; this.RtuModel = info.RtuModel; this.RtuName = info.RtuName; this.RtuState = info.RtuState; //this.Xgis = info.Xgis; //this.Ygis = info.Ygis; this.Xmap = info.Xmap; this.Ymap = info.Ymap; this.Xgis = info.Xgis; this.Ygis = info.Ygis; this.AreaId = info.AreaId; }