public DataSluAssis6(Wlst.client.SluCtrlDataMeasureReply.AssistCtrlData.LightData data, int sluId, int ctrlId, double leakageCurrent) : base(data) { SluId = sluId; this.CtrlId = ctrlId; LeakageCurrent = leakageCurrent.ToString("f2"); this.CtrlPhyId = NewDataViewModel.GetPhyIdByRtuId(sluId, ctrlId); this.CtrlLampCode = NewDataViewModel.GetLampCode(sluId, ctrlId); this.BarCode = NewDataViewModel.GetBarCode(sluId, ctrlId).PadLeft(13, '0'); }
public SingleMaxMinData(int sluid, int ctrlid, Wlst.client.SluMaxMinData.SingleMaxMinData info) { SluId = sluid; this.CtrlId = ctrlid; //this.CtrlPhyId = NewDataViewModel.GetPhyIdByRtuId(sluid, ctrlid); this.CtrlLampCode = NewDataViewModel.GetLampCode(sluid, ctrlid); this.BarCode = NewDataViewModel.GetBarCode(sluid, ctrlid).PadLeft(13, '0'); MinVoltage = info.MinVoltage.ToString("f2"); MaxVoltage = info.MaxVoltage.ToString("f2"); MinCurrent = info.MinCurrent.ToString("f2"); MaxCurrent = info.MaxCurrent.ToString("f2"); LampId = info.LampId; }