Example #1
0
 public UnknowCtrlVm(Wlst.client.SluCtrlDataMeasureReply.UnknowCtrl info)
 {
     CtrlId = info.CtrlId;
     //this.CtrlPhyId = NewDataViewModel.GetPhyIdByRtuId(i, CtrlId);
     CtrlLoop    = info.CtrlLoop;
     PowerSaving = info.PowerSaving == 0
                       ? "无控制"
                       : info.PowerSaving == 1
                             ? "只有开关灯"
                             : info.PowerSaving == 2
                                   ? "调档节能"
                                   : info.PowerSaving == 3
                                         ? "调光节能"
                                         : info.PowerSaving == 4 ? "RS485" : "调光";
     HasLeakage     = info.HasLeakage ? "有" : "无";
     HasTemperature = info.HasTemperature ? "有" : "无";
     HasTimer       = info.HasTimer ? "有" : "无";
     Model          = info.Model == 1 ? "wj2090j" : "未知";
     CtrlBarcode    = info.CtrlBarcode + "";
 }
 public DataSluUnknow2(Wlst.client.SluCtrlDataMeasureReply.UnknowCtrl info, int sluId)
     : base(info)
 {
     SluId          = sluId;
     this.CtrlPhyId = NewDataViewModel.GetPhyIdByRtuId(sluId, info.CtrlId);
 }