文件名从 WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/02-pump/01-PumpMainCurveChoice/PumpMainForm.cs 修改 |
| | |
| | | |
| | | namespace HStation.WinFrmUI.Xhs.Core |
| | | { |
| | | public partial class PumpMainForm : DevExpress.XtraEditors.XtraUserControl |
| | | public partial class XhsProjectSimulationPumpSingleMatchingForm : DevExpress.XtraEditors.XtraUserControl |
| | | { |
| | | public PumpMainForm() |
| | | public XhsProjectSimulationPumpSingleMatchingForm() |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.SetNormalView(); |
| | |
| | | public Vmo.XhsPumpMainPhartMappingExtensions Curveinfo { get; set; } |
| | | } |
| | | |
| | | private List<PumpMainChoieViewModel> _allBindingList = null; |
| | | private List<XhsProjectSimulationPumpSingleMatchingViewModel> _allBindingList = null; |
| | | |
| | | private BLL.PumpMain _pumpBll = null; |
| | | |
| | |
| | | public async void SetBindingData(PumpMatchingViewModel pumpMatchingViewModel) |
| | | { |
| | | _pumpMatchingViewModel = pumpMatchingViewModel; |
| | | _allBindingList = new List<PumpMainChoieViewModel>(); |
| | | _allBindingList = new List<XhsProjectSimulationPumpSingleMatchingViewModel>(); |
| | | _pumpBll = new BLL.PumpMain(); |
| | | var allPumpMain = await _pumpBll.GetAll(); |
| | | foreach (var Main in allPumpMain) |
| | | { |
| | | _allBindingList.Add(new PumpMainChoieViewModel(Main)); |
| | | _allBindingList.Add(new XhsProjectSimulationPumpSingleMatchingViewModel(Main)); |
| | | } |
| | | for (int i = 0; i < _allBindingList.Count; i++) |
| | | { |