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());
|
||||
if (data != null)
|
||||
{
|
||||
viewModel = data;
|
||||
// 更新电机ID数据,每次导入后可能会刷新这个ID,所以从抓取的数据中更新
|
||||
viewModel.Motor.OccPartId = motor.OccPartId;
|
||||
if(motor.MotorModelStr == data.Motor.MotorModelStr)
|
||||
{
|
||||
viewModel = data;
|
||||
// 更新电机ID数据,每次导入后可能会刷新这个ID,所以从抓取的数据中更新
|
||||
viewModel.Motor.OccPartId = motor.OccPartId;
|
||||
}
|
||||
else
|
||||
{
|
||||
viewModel = null;
|
||||
}
|
||||
}
|
||||
|
||||
}).Wait();
|
||||
|
|
Loading…
Reference in New Issue