文件名从 WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/03-valve/01-valvesinglematching/XhsProjectSimulationPumpSingleMatchingForm.cs 修改 |
| | |
| | | 锘縰sing HStation.WinFrmUI.PhartRelation; |
| | | using System.Windows.Input; |
| | | using Yw.WinFrmUI.Phart; |
| | | |
| | | namespace HStation.WinFrmUI.Xhs.Core |
| | | namespace HStation.WinFrmUI.Xhs |
| | | { |
| | | public partial class ValveSimulationPumpSingleMatchingForm : DevExpress.XtraEditors.XtraUserControl |
| | | public partial class ValveSingleMatchingForm : DevExpress.XtraEditors.XtraUserControl |
| | | { |
| | | public ValveSimulationPumpSingleMatchingForm() |
| | | public ValveSingleMatchingForm() |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalView(); |
| | |
| | | public Vmo.XhsPumpMainPhartMappingExtensions Curveinfo { get; set; } |
| | | } |
| | | |
| | | private List<ValveSimulationPumpSingleMatchingViewModel> _allBindingList = null; |
| | | private List<ValveSingleMatchingViewModel> _allBindingList = null; |
| | | |
| | | private BLL.PumpMain _pumpBll = null; |
| | | |
| | |
| | | public async void SetBindingData(PumpMatchingViewModel pumpMatchingViewModel) |
| | | { |
| | | _pumpMatchingViewModel = pumpMatchingViewModel; |
| | | _allBindingList = new List<ValveSimulationPumpSingleMatchingViewModel>(); |
| | | _allBindingList = new List<ValveSingleMatchingViewModel>(); |
| | | _pumpBll = new BLL.PumpMain(); |
| | | var allPumpMain = await _pumpBll.GetAll(); |
| | | foreach (var Main in allPumpMain) |
| | | { |
| | | _allBindingList.Add(new ValveSimulationPumpSingleMatchingViewModel(Main)); |
| | | _allBindingList.Add(new ValveSingleMatchingViewModel(Main)); |
| | | } |
| | | for (int i = 0; i < _allBindingList.Count; i++) |
| | | { |