ÎļþÃû´Ó WinFrmUI/Yw.WinFrmUI.Phart.Core/v1/01-perform/01-pump-chart/05-import/03-one-point/ImportPumpPerform2dByOnePointCtrl.cs ÐÞ¸Ä |
| | |
| | | using DevExpress.XtraEditors; |
| | | using NPOI.Util; |
| | | |
| | | |
| | | |
| | | namespace Yw.WinFrmUI.Phart |
| | | { |
| | | /// <summary> |
| | | /// (å¾
ä¿®æ¹) |
| | | /// </summary> |
| | | public partial class ImportPumpPerform2dByOnePointCtrl : XtraUserControl |
| | | public partial class PumpImportByOnePointCtrl : XtraUserControl |
| | | { |
| | | |
| | | //æé 彿° |
| | | public ImportPumpPerform2dByOnePointCtrl() |
| | | public PumpImportByOnePointCtrl() |
| | | { |
| | | InitializeComponent(); |
| | | this.comboBoxType.SelectedIndex = 0; |
| | |
| | | } |
| | | |
| | | double _ratedn = -1; |
| | | PumpGroupPt _work_point = null; |
| | | PumpQueryPointViewModel _work_point = null; |
| | | List<Yw.Geometry.Point2d> _qh_pt_list = null; |
| | | List<Yw.Geometry.Point2d> _qe_pt_list = null; |
| | | List<Yw.Geometry.Point2d> _qp_pt_list = null; |
| | |
| | | return false; |
| | | } |
| | | |
| | | _work_point = new PumpGroupPt(); |
| | | _work_point = new PumpQueryPointViewModel(); |
| | | _work_point.Q = double.Parse(this.txtQ.Text); |
| | | _work_point.H = double.Parse(this.txtH.Text); |
| | | if (_work_point.H < 1 || _work_point.Q < 1) |
| | |
| | | MessageBox.Show("æçæè¿ä¹å¤§å?"); |
| | | return false; |
| | | } |
| | | _work_point.P = PumpCalcHelper.CalculateP(_work_point.Q, _work_point.H, _work_point.E); |
| | | _work_point.P = PumpCalcHelper.CalculateP(_work_point.Q, _work_point.H, _work_point.E.Value); |
| | | if (string.IsNullOrWhiteSpace(this.txtP.Text)) |
| | | { |
| | | this.txtP.EditValue = Math.Round(_work_point.P, 1); |
| | | this.txtP.EditValue = Math.Round(_work_point.P.Value, 1); |
| | | } |
| | | //æ±½è |
| | | double NPSHr = 0; |
| | |
| | | NPSHr = Math.Round(NPSHr, 1); |
| | | this.txtNPSH.EditValue = NPSHr; |
| | | } |
| | | _work_point.NPSH = NPSHr; |
| | | //_work_point.NPSH = NPSHr; |
| | | |
| | | //å¾å°ç¹ä½ç½® |
| | | |