ÎļþÃû´Ó WinFrmUI/HStation.WinFrmUI.Assets.Core/07-fourLink/02-main/AddFourLinkMainDlg.cs ÐÞ¸Ä |
| | |
| | | |
| | | private Vmo.AssetsFourlinkMainVmo _FourLinkVmo = null; |
| | | |
| | | private List<Vmo.AssetsFourlinkCoefficientVmo> _AssetsFourlinkCoefficient; |
| | | private List<Vmo.AssetsFourlinkFactorVmo> _AssetsFourlinkCoefficient; |
| | | |
| | | public async void SetBindingData(long SeriesID) |
| | | { |
| | | var bll = new BLL.AssetsFourlinkCoefficient(); |
| | | var bll = new BLL.AssetsFourlinkFactor(); |
| | | _AssetsFourlinkCoefficient = await bll.GetAll(); |
| | | this.fourlinkCoefficientViewModelBindingSource.DataSource = _AssetsFourlinkCoefficient; |
| | | _FourLinkVmo = new Vmo.AssetsFourlinkMainVmo(); |
| | |
| | | } |
| | | |
| | | //æ¾å°æç¸è¿çææ |
| | | private AssetsFourlinkCoefficientVmo GetCoefficientByMaterial(string name) |
| | | private AssetsFourlinkFactorVmo GetCoefficientByMaterial(string name) |
| | | { |
| | | AssetsFourlinkCoefficientVmo select = null; |
| | | AssetsFourlinkFactorVmo select = null; |
| | | int maxMatchedChars = 0; |
| | | foreach (var item in _AssetsFourlinkCoefficient) |
| | | { |
| | |
| | | return; |
| | | _FourLinkVmo.Description = DescriptionTextEdit.Text.Trim(); |
| | | _FourLinkVmo.Name = TextEditName.Text.Trim(); |
| | | _FourLinkVmo.KeyWord = this.TextEditKeyWord.Text.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).ToList(); |
| | | _FourLinkVmo.KeyWords = this.TextEditKeyWord.Text.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).ToList(); |
| | | if (TextEditMaterial.Text != "é»è®¤") |
| | | { |
| | | _FourLinkVmo.Material = TextEditMaterial.Text.Trim(); |