| | |
| | | using DevExpress.Mvvm.POCO; |
| | | using DevExpress.XtraEditors; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using Yw.Dto; |
| | | |
| | | namespace HStation.WinFrmUI |
| | | { |
| | |
| | | return; |
| | | } |
| | | _input = input; |
| | | this.assetsValveSingleMatchingCtrl2.SetBindingData(input.DbId); |
| | | this.assetsValveSingleMatchingCtrl2.SetBindingData(input.DbId, input.CurveDbId); |
| | | } |
| | | |
| | | private void GeneralOkAndCancelCtrl1_OkEvent() |
| | |
| | | _input.MatchingDiameter = vm.Vmo.Caliber; |
| | | _input.MatchingMinorLoss = vm.Vmo.MinorLoss; |
| | | _input.MatchingCurveOL = vm.MatchingCurveOL; |
| | | _input.MatchingCurveQL = vm.MatchingCurveQL; |
| | | _input.MatchingCurvesQL = vm.MatchingCurvesQL; |
| | | _input.MatchingCurveDbId = vm.MatchingCurveDbId; |
| | | _input.MatchingValveType = (Yw.WinFrmUI.eValveType)(int)vm.Vmo.ValveType; |
| | | this.ReloadDataEvent?.Invoke(_input); |
| | | this.DialogResult = DialogResult.OK; |
| | | this.Close(); |