| | |
| | | updatepart.NO = TextEditNo.Text; |
| | | updatepart.Code = TextEditProductCode.Text; |
| | | updatepart.SeriesID = _series.ID; |
| | | var propList = _propList.Where(x => x.TagName == "Prop").ToList(); //找到所有的额外属性 |
| | | foreach (var item in _propList) |
| | | { |
| | | if (_allPropList != null) |
| | |
| | | } |
| | | var pumpMainBll = new BLL.AssetsPumpMain(); |
| | | await pumpMainBll.Update(_pumpMain); |
| | | _propList.Remove(_propList.Find(x => x.TagName == "Basic_Flow")); |
| | | _propList.Remove(_propList.Find(x => x.TagName == "Basic_Head")); |
| | | _propList.Remove(_propList.Find(x => x.TagName == "Basic_Power")); |
| | | _propList.Remove(_propList.Find(x => x.TagName == "Basic_Speed")); |
| | | _allPropList.Remove(_allPropList.Find(x => x.TagName == "Basic_Flow")); |
| | | _allPropList.Remove(_allPropList.Find(x => x.TagName == "Basic_Head")); |
| | | _allPropList.Remove(_allPropList.Find(x => x.TagName == "Basic_Power")); |
| | | _allPropList.Remove(_allPropList.Find(x => x.TagName == "Basic_Speed")); |
| | | if (await _bll.UpdateEx(updatepart, _allPropList)) |
| | | { |
| | | vm.Reset(updatepart); |