105040 Update 调整线材资料排序方式

This commit is contained in:
lihanbo 2025-01-11 12:29:50 +08:00
parent 9a76f9e60a
commit 5d8eb5d05a
1 changed files with 2 additions and 2 deletions

View File

@ -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)