105040 Update 增加识别刹车线
This commit is contained in:
parent
ec7bb642e2
commit
4b088964e2
|
@ -207,6 +207,7 @@ public class LectotypeViewModel(string docId) : INotifyPropertyChanged
|
||||||
var isEncoderLine = GetLineType(occCable.LibraryName,"编码器线");
|
var isEncoderLine = GetLineType(occCable.LibraryName,"编码器线");
|
||||||
var isPowerLine = GetLineType(occCable.LibraryName,"动力线");
|
var isPowerLine = GetLineType(occCable.LibraryName,"动力线");
|
||||||
var isBrakePowerLine = GetLineType(occCable.LibraryName,"动力刹车线");
|
var isBrakePowerLine = GetLineType(occCable.LibraryName,"动力刹车线");
|
||||||
|
var isBrakeLine = GetLineType(occCable.LibraryName,"刹车线");
|
||||||
|
|
||||||
var encoderLength = 0d;
|
var encoderLength = 0d;
|
||||||
var powerLength = 0d;
|
var powerLength = 0d;
|
||||||
|
@ -230,7 +231,7 @@ public class LectotypeViewModel(string docId) : INotifyPropertyChanged
|
||||||
IsPowerLine = isPowerLine,
|
IsPowerLine = isPowerLine,
|
||||||
PowerLineLength = powerLength,
|
PowerLineLength = powerLength,
|
||||||
EncoderLineLength = encoderLength,
|
EncoderLineLength = encoderLength,
|
||||||
CableType = isEncoderLine ? "编码器线" : isPowerLine ? "动力线" : isBrakePowerLine ? "动力刹车线" : "未知类型",
|
CableType = isEncoderLine ? "编码器线" : isPowerLine ? "动力线" : isBrakePowerLine ? "动力刹车线" : isBrakeLine ? "刹车线" : "未知类型",
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
.Where(it => it != null)
|
.Where(it => it != null)
|
||||||
|
|
Loading…
Reference in New Issue