From 05d57af48f51d2ac8292bc3faaa01ca753763790 Mon Sep 17 00:00:00 2001
From: duheng <2784771470@qq.com>
Date: 星期一, 14 十月 2024 14:52:19 +0800
Subject: [PATCH] 增加泵型号查看界面

---
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-pump/PumpFullInfoViewDlg.cs |   48 ++++++++++++++++++------------------------------
 1 files changed, 18 insertions(+), 30 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-pump/PumpFullInfoViewDlg.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-pump/PumpFullInfoViewDlg.cs
index a399634..41aff03 100644
--- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-pump/PumpFullInfoViewDlg.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-pump/PumpFullInfoViewDlg.cs
@@ -1,4 +1,5 @@
 锘縰sing DevExpress.XtraBars;
+using HStation.WinFrmUI.Xhs.Core.Properties;
 
 namespace HStation.WinFrmUI
 {
@@ -12,40 +13,28 @@
         public DetailInfo4DsDlg()
         {
             InitializeComponent();
-
             this._isMaxWindowStatus = true;//鏈�澶у寲绐椾綋瑕嗙洊浠诲姟鏍�
-            this.navBtnMin.Visible = this.navBtnSize.Visible = this.navBtnClose.Visible = false;
-            this.navBtnMin.ElementClick += new DevExpress.XtraBars.Navigation.NavElementClickEventHandler(this.navBtnMin_ElementClick);
-            this.navBtnSize.ElementClick += new DevExpress.XtraBars.Navigation.NavElementClickEventHandler(this.navBtnSize_ElementClick);
-            this.navBtnClose.ElementClick += new DevExpress.XtraBars.Navigation.NavElementClickEventHandler(this.navBtnClose_ElementClick);
-
             this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.OnFrmClosing);
             this.Load += new System.EventHandler(this.OnFrmLoad);
             this.Shown += new System.EventHandler(this.OnFrmShown);
-
             this.bbi涓嬭浇BIM鏂囦欢.Visibility = BarItemVisibility.Never;
-
             this.bsiPromptInfo.Caption = "";
             this.bsiPromptInfo.Caption = "";
-
-            this.navBtn鎵嬫満椤甸潰.Visible = false;
-
-            thePumpCtrl = new PumpFullInfoCtrl();
-            thePumpCtrl.Name = "PumpFullInfoCtrl";
-            thePumpCtrl.Dock = DockStyle.Fill;
-            this.panelMain.Controls.Add(thePumpCtrl);
         }
 
         private void OnFrmLoad(object sender, EventArgs e)
         {
             //鎵嬫満椤甸潰
             navBtn鎵嬫満椤甸潰.Visible = false;
-
             //bbi娣诲姞涓插苟鑱�.Visibility = BarItemVisibility.Never;//鍔熻兘娌℃湁瀹屾垚
-
             LocationDialog();
-
+            SetNavTileControlMoveAble();
             this.SetMaxWindowStatus();
+        }
+
+        public void SetBindindData(PumpMatchingViewModel pumpMatchingViewModel)
+        {
+            pumpFullInfoCtrl1.SetBindingData(pumpMatchingViewModel);
         }
 
         private void OnFrmShown(object sender, EventArgs e)
@@ -67,8 +56,7 @@
         //绐椾綋灏哄:娉ㄦ剰榛樿鏄笉鏄剧ず鐨�
         public void IsDispBtn绐椾綋灏哄(bool isDisp)
         {
-            navBtnMin.Visible = navBtnSize.Visible = navBtnClose.Visible = isDisp;
-
+            navBtnMin.Visible = navBtnbutton9.Visible = navBtnbutton10.Visible = isDisp;
             //璁剧疆tileNav鍙Щ鍔�
             if (isDisp == true)
                 SetNavTileControlMoveAble();
@@ -78,7 +66,6 @@
         protected void SetNavTileControlMoveAble()
         {
             this.tileNavPaneTop.OptionsPrimaryDropDown.CloseOnOuterClick = DevExpress.Utils.DefaultBoolean.False;
-
             this.tileNavPaneTop.MouseDown += new System.Windows.Forms.MouseEventHandler(this.tileNavPane_MouseDown);
             this.tileNavPaneTop.MouseMove += new System.Windows.Forms.MouseEventHandler(this.tileNavPane_MouseMove);
             this.tileNavPaneTop.MouseUp += new System.Windows.Forms.MouseEventHandler(this.tileNavPane_MouseUp);
@@ -154,10 +141,9 @@
         //璁剧疆绐椾綋鏈�澶у寲,鍏ㄥ睆
         private void SetMaxWindowStatus()
         {
-            this.WindowState = FormWindowState.Normal;
-            // this.navBtnSize.Glyph = HStation.WinFrmUI.Xhs.Core.Properties.Resources.SizeNormal32;
-            (this.navBtnSize.SuperTip.Items[0] as DevExpress.Utils.ToolTipItem).Text = "鍚戜笅杩樺師";
-
+            this.WindowState = FormWindowState.Maximized;
+            this.navBtnbutton9.Glyph = HStation.WinFrmUI.Xhs.Core.Properties.Resources.SizeNormal32;
+            (this.navBtnbutton9.SuperTip.Items[0] as DevExpress.Utils.ToolTipItem).Text = "鍚戜笅杩樺師";
             this._isMaxWindowStatus = true;//鏈�澶у寲绐椾綋鐘舵��
             this.Location = new Point(0, 0);
             //Rectangle rect = System.Windows.Forms.SystemInformation.VirtualScreen;
@@ -165,20 +151,18 @@
             this.Size = new System.Drawing.Size(System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width, System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height);
         }
 
+        //璁剧疆绐椾綋(灏忕獥)
         private void SetNormalWindowStatus()
         {
             this.WindowState = FormWindowState.Normal;
-            //  this.navBtnSize.Glyph = HStation.WinFrmUI.Xhs.Core.Properties.Resources.SizeMax32;
-            (this.navBtnSize.SuperTip.Items[0] as DevExpress.Utils.ToolTipItem).Text = "鏈�澶у寲";
-
+            this.navBtnbutton9.Glyph = HStation.WinFrmUI.Xhs.Core.Properties.Resources.Square32;
+            (this.navBtnbutton9.SuperTip.Items[0] as DevExpress.Utils.ToolTipItem).Text = "鏈�澶у寲";
             this._isMaxWindowStatus = false;
-
             var sq_width = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width / 8;
             var sq_height = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height / 8;
             this.Location = new Point(sq_width, sq_height);
             this.Size = new System.Drawing.Size(sq_width * 6, sq_height * 6);
             //this.Location = new Point(0, 0);
-
             //this.Size = new System.Drawing.Size(900,600);//rect.Width/2, rect.Height/2);
         }
 
@@ -301,6 +285,8 @@
 
         #endregion 鍙嫋鍔ㄧ缉鏀�
 
+        #region 鍔熻兘鐐瑰嚮浜嬩欢
+
         private void navButton璇环_ElementClick(object sender, DevExpress.XtraBars.Navigation.NavElementEventArgs e)
         {
         }
@@ -326,5 +312,7 @@
             alertControl1.AllowHtmlText = true;
             alertControl1.Show(this, "tip", info);
         }
+
+        #endregion 鍔熻兘鐐瑰嚮浜嬩欢
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3