lixiaojun
2024-12-02 8486fdaaf94faddbf7e475c660726f9a71b72a4b
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/01-set/03-pipe/SetSchemePipeListCtrl.cs
@@ -72,7 +72,7 @@
        /// </summary>
        public void SetBindingData(HydroModelInfo hydroInfo)
        {
            _hydroInfo=hydroInfo;
            _hydroInfo = hydroInfo;
            _allList = new List<HydroPipeViewModel>();
            if (hydroInfo != null && hydroInfo.Pipes != null && hydroInfo.Pipes.Count > 0)
            {
@@ -88,7 +88,7 @@
        /// <summary>
        /// 绑定数据
        /// </summary>
        public void SetBindingData(Yw.Model.HydroModelInfo hydroInfo, List<HydroCalcuResult> allCalcuResultList)
        public void SetBindingData(Yw.Model.HydroModelInfo hydroInfo, List<HydroCalcuVisualResult> allCalcuResultList)
        {
            _allList = new List<HydroPipeViewModel>();
            if (hydroInfo != null && hydroInfo.Pipes != null && hydroInfo.Pipes.Count > 0)
@@ -169,7 +169,7 @@
        /// <summary>
        /// 更新计算属性
        /// </summary>
        public void UpdateCalcuProperty(List<HydroCalcuResult> allCalcuResultList)
        public void UpdateCalcuProperty(List<HydroCalcuVisualResult> allCalcuResultList)
        {
            if (allCalcuResultList != null && allCalcuResultList.Count > 0)
            {
@@ -226,7 +226,7 @@
        //设置
        private void SelectChange()
        {
        {
            Search();
            var row = this.gridView1.GetFocusedRow() as HydroPipeViewModel;
            if (row == null)
@@ -235,9 +235,9 @@
                return;
            }
        }
        private void gridView1_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e)
        {
@@ -264,18 +264,18 @@
                        var record = new SetSchemeParterRecord();
                        record.Name = row.Vmo.Name;
                        record.Code = row.Vmo.Code;
                        record.Catalog = Yw.Hydro.ParterCatalog.Pipe;
                        record.Catalog = Yw.Hydro.ParterCatalog.Pipe;
                        record.MatchingModel = output;
                        record.Items = new List<SetSchemeParterRecordItem>() {
                        new() {Name="型号",BeforeValue=$"{output.ModelType}",AfterValue=$"{output.MatchingModelType}"},
                        new() {Name="材料",BeforeValue=$"{output.Material}",AfterValue=$"{output.MatchingMaterial}"},
                        new() {Name="直径(mm)",BeforeValue=$"{output.Diameter}",AfterValue=$"{output.MatchingDiameter}"},
                        new() {Name="直径(mm)",BeforeValue=$"{output.Diameter}",AfterValue=$"{output.MatchingDiameter}"},
                        new() {Name="粗糙系数",BeforeValue=$"{output.Roughness}",AfterValue=$"{output.MatchingRoughness}"},
                        new() {Name="局阻系数",BeforeValue=$"{output.MinorLoss}",AfterValue=$"{output.MatchingMinorLoss}"},
                        };
                        this.HydroRecordChangedEvent?.Invoke(record);
                    }
                    }
                };
                dlg.ShowDialog();
@@ -287,8 +287,8 @@
        }
    }
}