| | |
| | | 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; |
| | | |
| | | namespace HStation.WinFrmUI |
| | | namespace HStation.WinFrmUI |
| | | { |
| | | public partial class AssetsFlowmeterSingleMatchingDlg : DevExpress.XtraEditors.XtraForm |
| | | { |
| | |
| | | private HydroFlowmeterMatchingViewModel _input = null; |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// |
| | | /// </summary> |
| | | public void SetBindingData(HydroFlowmeterMatchingViewModel input) |
| | | { |
| | |
| | | return; |
| | | } |
| | | _input = input; |
| | | this.assetsFlowmeterSingleMatchingCtrl1.SetBindingData(input.DbId); |
| | | this.assetsFlowmeterSingleMatchingCtrl2.SetBindingData(input.DbId); |
| | | } |
| | | |
| | | private void GeneralOkAndCancelCtrl1_OkEvent() |
| | |
| | | { |
| | | return; |
| | | } |
| | | var vm = this.assetsFlowmeterSingleMatchingCtrl1.Get(); |
| | | var vm = this.assetsFlowmeterSingleMatchingCtrl2.Get(); |
| | | if (vm == null) |
| | | { |
| | | return; |
| | | } |
| | | |
| | | _input.MatchingDbId = vm.ID.ToString(); |
| | | _input.MatchingModelType = vm.Name; |
| | | _input.MinorLoss = vm.MinorLoss; |
| | | this.ReloadDataEvent?.Invoke(_input); |
| | | this.DialogResult = DialogResult.OK; |
| | | this.Close(); |
| | | } |
| | | |
| | | } |
| | | } |