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