105040 电机型号不同时,不加载旧数据
This commit is contained in:
parent
531e7977e4
commit
c8ebeb55f8
|
@ -39,9 +39,16 @@ namespace Sinvo.EplanHpD.Plugin.WPFUI.Utils
|
||||||
var data = service.GetMotorLectotypeData(motor.GetUniqueFlag());
|
var data = service.GetMotorLectotypeData(motor.GetUniqueFlag());
|
||||||
if (data != null)
|
if (data != null)
|
||||||
{
|
{
|
||||||
viewModel = data;
|
if(motor.MotorModelStr == data.Motor.MotorModelStr)
|
||||||
// 更新电机ID数据,每次导入后可能会刷新这个ID,所以从抓取的数据中更新
|
{
|
||||||
viewModel.Motor.OccPartId = motor.OccPartId;
|
viewModel = data;
|
||||||
|
// 更新电机ID数据,每次导入后可能会刷新这个ID,所以从抓取的数据中更新
|
||||||
|
viewModel.Motor.OccPartId = motor.OccPartId;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
viewModel = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}).Wait();
|
}).Wait();
|
||||||
|
|
Loading…
Reference in New Issue