change -修复产品型号为空问题

dep_yangw
frankiecao 11 months ago
commit e3fc917a94

@ -187,7 +187,10 @@ namespace ProductionSystem.Forms
var selectedItem = cmbProductType.SelectedItem as ListItem;
if (selectedItem == null || string.IsNullOrEmpty(selectedItem.Value))
{
CustomMessageBoxHelper.AlertShow(this, "产品型号为空!");
if(selectedItem.Text != "--请选择--")
{
CustomMessageBoxHelper.AlertShow(this, "产品型号为空!");
}
return;
}
Program.ProductType = selectedItem.Value;//选中的产品型号

Loading…
Cancel
Save