105040 Update 修改识别方式
This commit is contained in:
parent
88eaa4ec36
commit
b25b0f0750
|
|
@ -60,7 +60,7 @@ public class CableLectotypeViewModel : INotifyPropertyChanged
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int seqNo = 1;
|
int seqNo = 1;
|
||||||
|
var brandData = Brands.GetBrandData(Motor.Brand);
|
||||||
var LectotypeList = new List<LectotypeLineModel>();
|
var LectotypeList = new List<LectotypeLineModel>();
|
||||||
var line = new LectotypeLineModel
|
var line = new LectotypeLineModel
|
||||||
{
|
{
|
||||||
|
|
@ -73,7 +73,7 @@ public class CableLectotypeViewModel : INotifyPropertyChanged
|
||||||
//DriverInterface = DriverInterface,
|
//DriverInterface = DriverInterface,
|
||||||
//DriverModel = DriverModel,
|
//DriverModel = DriverModel,
|
||||||
CableConnectionClass = CableConnectionType == ConnectionType.FullParagraph ? "前段" : "直通",
|
CableConnectionClass = CableConnectionType == ConnectionType.FullParagraph ? "前段" : "直通",
|
||||||
CableType = Motor.Brand == Brands.ANCHUAN ? CableTypePrimary : $"{CableTypePrimary}+{CableTypeSecond}",
|
CableType = brandData.ComplexLine ? $"{CableTypePrimary}+{CableTypeSecond}" : CableTypePrimary,
|
||||||
//IsFlexibility = IsFlexibility,
|
//IsFlexibility = IsFlexibility,
|
||||||
//PowerLineLength = PowerLineLength,
|
//PowerLineLength = PowerLineLength,
|
||||||
//EncoderLineLength = EncoderLineLength,
|
//EncoderLineLength = EncoderLineLength,
|
||||||
|
|
@ -99,8 +99,6 @@ public class CableLectotypeViewModel : INotifyPropertyChanged
|
||||||
// return;
|
// return;
|
||||||
//}
|
//}
|
||||||
|
|
||||||
var brandData = Brands.GetBrandData(Motor.Brand);
|
|
||||||
|
|
||||||
// 安川第一条线不合并,所以需要再次添加另一个类型的线
|
// 安川第一条线不合并,所以需要再次添加另一个类型的线
|
||||||
if (!brandData.ComplexLine)
|
if (!brandData.ComplexLine)
|
||||||
{
|
{
|
||||||
|
|
@ -238,7 +236,7 @@ public class CableLectotypeViewModel : INotifyPropertyChanged
|
||||||
{
|
{
|
||||||
LectotypeList.Add(line);
|
LectotypeList.Add(line);
|
||||||
// 安川电机,允许有两条直通线
|
// 安川电机,允许有两条直通线
|
||||||
if (!string.IsNullOrEmpty(CableTypeSecond) && Motor.Brand == Brands.ANCHUAN)
|
if (!string.IsNullOrEmpty(CableTypeSecond) && !brandData.ComplexLine)
|
||||||
{
|
{
|
||||||
if (_passthroughCableCount >= 2)
|
if (_passthroughCableCount >= 2)
|
||||||
{
|
{
|
||||||
|
|
@ -341,16 +339,8 @@ public class CableLectotypeViewModel : INotifyPropertyChanged
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
var isCombo = false;
|
var brandData = Brands.GetBrandData(Motor.Brand);
|
||||||
if (Motor.Brand == Brands.SANLING)
|
var isCombo = brandData.ComplexLine;
|
||||||
{
|
|
||||||
isCombo = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(Motor.Brand == Brands.ANCHUAN)
|
|
||||||
{
|
|
||||||
isCombo = false;
|
|
||||||
}
|
|
||||||
var types = motorExcelHelper.GetCableTypes();
|
var types = motorExcelHelper.GetCableTypes();
|
||||||
if(isCombo)
|
if(isCombo)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue