105040 Update 调整提示等级,改为警告
This commit is contained in:
parent
394427a193
commit
e979379045
|
@ -23,20 +23,25 @@ public class CableLectotypeViewModel : INotifyPropertyChanged
|
|||
/// </summary>
|
||||
public void Cablerator()
|
||||
{
|
||||
if (string.IsNullOrEmpty(Motor.MotorPower))
|
||||
{
|
||||
ShowWarning("电机功率不能为空!");
|
||||
return;
|
||||
}
|
||||
if (EncoderLineParagraph == 0 || PowerLineParagraph == 0)
|
||||
{
|
||||
ShowError("段数不能为零!");
|
||||
ShowWarning("段数不能为零!");
|
||||
return;
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(AxisNo))
|
||||
{
|
||||
ShowError("轴号不能为空!");
|
||||
ShowWarning("轴号不能为空!");
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(CableType))
|
||||
{
|
||||
ShowError("请选择线材类型!");
|
||||
ShowWarning("请选择线材类型!");
|
||||
return;
|
||||
}
|
||||
int seqNo = 1;
|
||||
|
@ -174,6 +179,10 @@ public class CableLectotypeViewModel : INotifyPropertyChanged
|
|||
{
|
||||
Growl.Error(msg, MESSAGE_KEY);
|
||||
}
|
||||
private void ShowWarning(string msg)
|
||||
{
|
||||
Growl.Warning(msg, MESSAGE_KEY);
|
||||
}
|
||||
#region Props
|
||||
|
||||
public List<ConfigItemModel> CableTypes
|
||||
|
|
Loading…
Reference in New Issue