105040 Update 调整线材资料排序方式
This commit is contained in:
parent
9a76f9e60a
commit
5d8eb5d05a
|
@ -215,7 +215,7 @@ public class LectotypeViewModel(string docId) : INotifyPropertyChanged
|
|||
})
|
||||
.Where(it => it != null)
|
||||
//.Where(it => !string.IsNullOrEmpty(it.AxisNo))
|
||||
.OrderBy(it => it?.CableName ?? "")];
|
||||
.OrderBy(it => it?.CurrentLine ?? 0)];
|
||||
|
||||
Wires = StuffData(cables);
|
||||
designer.SelectSet.NodeSelected += SelectSet_NodeSelected;
|
||||
|
@ -384,7 +384,7 @@ public class LectotypeViewModel(string docId) : INotifyPropertyChanged
|
|||
|
||||
});
|
||||
CheckLines(datas);
|
||||
return [.. datas.OrderByDescending(it => it.SeqNo)];
|
||||
return [.. datas.OrderBy(it => it.AxisNo).ThenBy(it => it.CableType).ThenBy(it => it.CurrentLine)];
|
||||
}
|
||||
|
||||
private void CheckLines(List<LectotypeLineModel> lines)
|
||||
|
|
Loading…
Reference in New Issue