duheng
2024-08-23 b6f84233ce512c9f0f65d550b3892f4ba6c8afa5
WinFrmUI/HStation.WinFrmUI.Assets.Core/00-PumpProductManage/EditPumpPartDlg.cs
@@ -179,21 +179,28 @@
            TextEditNo.Text = string.Empty;
            TextEditProductCode.Text = string.Empty;
            var bll = new Yw.BLL.SysPropStruct();
            var catlog = await bll.GetByCatalogID(_catalogID);
            if (catlog == null)
            try
            {
                this.propGroupChoiceViewModelBindingSource.ResetBindings(false);
                return;
            }
            _proplist.Clear();
            foreach (var item in catlog)
            {
                foreach (var prop in item.PropList)
                var catlog = await bll.GetByCatalogID(_catalogID);
                if (catlog == null)
                {
                    _proplist.Add(new PropGroupChoiceViewModel() { PropGroupName = item.Name, PropName = prop.Name, ID = prop.ID, Value = prop.DefaultValue });
                    this.propGroupChoiceViewModelBindingSource.ResetBindings(false);
                    return;
                }
                _proplist.Clear();
                foreach (var item in catlog)
                {
                    foreach (var prop in item.PropList)
                    {
                        _proplist.Add(new PropGroupChoiceViewModel() { PropGroupName = item.Name, PropName = prop.Name, ID = prop.ID, Value = prop.DefaultValue });
                    }
                }
                this.propGroupChoiceViewModelBindingSource.ResetBindings(false);
            }
            this.propGroupChoiceViewModelBindingSource.ResetBindings(false);
            catch
            {
            }
        }
        //  删除产品