| | |
| | | { |
| | | if (_allPropList != null) |
| | | { |
| | | // 查找 _allPropList 中是否存在与 item.ID 匹配的项 |
| | | // 查找 _allPropList 中是否存在与 item.UserID 匹配的项 |
| | | var prop = _allPropList.FirstOrDefault(x => x.PropID == item.ID); |
| | | // 如果找到匹配的项,则更新其 PropValue |
| | | if (prop != null) |
| | |
| | | { |
| | | 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(), |
| | | }); |
| | | } |
| | | } |
| | |
| | | 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; |