duheng
2025-03-28 d5a2d7e66f9c8046bd88b8269e61aac5a2a265e2
WinFrmUI/Yw.WinFrmUI.Hydro.Core/08-grading/03-list/SetHydroGradingModelCtrl.cs
@@ -60,39 +60,14 @@
        {
            switch (_propName)
            {
                case Yw.Hydro.ParterProp.LinkStatus:
                case HydroGradingProp.LinkStatus:
                    {
                        ResetColumns(false);
                    }
                    break;
                case HydroVisualCalcuProp.CalcuPress:
                    {
                        ResetColumns(true);
                    }
                    break;
                case HydroVisualCalcuProp.CalcuHead:
                    {
                        ResetColumns(true);
                    }
                    break;
                case HydroVisualCalcuProp.CalcuFlow:
                    {
                        ResetColumns(true);
                    }
                    break;
                case HydroVisualCalcuProp.CalcuVelocity:
                    {
                        ResetColumns(true);
                    }
                    break;
                case HydroVisualCalcuProp.CalcuHeadLoss:
                    {
                        ResetColumns(true);
                    }
                    break;
                default:
                    {
                        ResetColumns(true);
                    }
                    break;
            }
@@ -101,11 +76,14 @@
        //设置列
        private void ResetColumns(bool numeric)
        {
            this.colSetValue.Visible = false;
            this.colMinValue.Visible = false;
            this.colMaxValue.Visible = false;
            this.colColor.Visible = false;
            this.colDelete.Visible = false;
            this.colColor.Visible = false;
            this.colMaxPercent.Visible = false;
            this.colMinPercent.Visible = false;
            this.colMaxValue.Visible = false;
            this.colMinValue.Visible = false;
            this.colSetValue.Visible = false;
            this.colSetValue.Visible = !numeric;
            this.colMinValue.Visible = numeric;
            this.colMaxValue.Visible = numeric;