捕获异常

dep_deliver
我叫锄头 11 months ago
parent c5a73503e5
commit 1b5b24abfd

@ -63,9 +63,18 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverPressureSetting
return; return;
} }
try
{
PlcDownload.DownSlio(slioEntity); PlcDownload.DownSlio(slioEntity);
MessageBox.Show("下传成功"); MessageBox.Show("下传成功");
}
catch (Exception)
{
MessageBox.Show("下传失败 参数异常");
}
} }
@ -76,9 +85,18 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverPressureSetting
return; return;
} }
try
{
PlcDownload.DownPipe(pipe); PlcDownload.DownPipe(pipe);
MessageBox.Show("下传成功"); MessageBox.Show("下传成功");
}
catch (Exception)
{
MessageBox.Show("下传失败 参数异常");
}
} }
} }

Loading…
Cancel
Save