cloudflight
2025-01-13 02c14c9c57dbde72d9c771bd8b0fab1cd023047d
WinFrmUI/HStation.WinFrmUI.Assets.Core/12-package/EditPackagePartPropDlg.cs
@@ -130,7 +130,7 @@
            {
                if (_allPropList != null)
                {
                    // 查找 _allPropList 中是否存在与 item.ID 匹配的项
                    // 查找 _allPropList 中是否存在与 item.UserID 匹配的项
                    var prop = _allPropList.FirstOrDefault(x => x.PropID == item.ID);
                    // 如果找到匹配的项,则更新其 PropValue
                    if (prop != null)
@@ -294,11 +294,11 @@
                             {
                                 list.Add(new Yw.Vmo.SysPropMappingSetterVmo
                                 {
                                     PropID = prop.ID,
                                     PropID = prop.UserID,
                                     UnitName = prop.UnitName,
                                     IsNull = prop.IsNull,
                                     DefaultValue = prop.DefaultValue,
                                     ChoiceIds = prop.ChoiceList.Select(x => x.ID).ToList(),
                                     ChoiceIds = prop.ChoiceList.Select(x => x.UserID).ToList(),
                                 });
                             }
                         }
@@ -306,7 +306,7 @@
                     list.Add(new Yw.Vmo.SysPropMappingSetterVmo { PropID = id, UnitName = rhs.UnitName, IsNull = rhs.IsNull });
                     await _sysPropMapping.SetByCatalogID(_series.CatalogID, list);
                     var model = await bll.GetByID(id);
                     var partMain = new ExchangerPropChoiceViewModel() { PropGroupName = groupName, PropName = model.Name, ID = model.ID, Value = propValue, KeyWorldType = "Prop" };
                     var partMain = new ExchangerPropChoiceViewModel() { PropGroupName = groupName, PropName = model.Name, UserID = model.UserID, Value = propValue, KeyWorldType = "Prop" };
                     _propList.Add(partMain);
                     this.propGroupChoiceViewModelBindingSource.ResetBindings(false);
                     return true;