From c0575b3330ef57fffd9e617eb25ea38f821c0aa7 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期四, 31 十月 2024 10:19:43 +0800
Subject: [PATCH] 检验项目增加了审核

---
 DevApp/Gs.DevApp/UserControl/ShowDialogForm.cs |  164 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 164 insertions(+), 0 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/ShowDialogForm.cs b/DevApp/Gs.DevApp/UserControl/ShowDialogForm.cs
new file mode 100644
index 0000000..6ac0b50
--- /dev/null
+++ b/DevApp/Gs.DevApp/UserControl/ShowDialogForm.cs
@@ -0,0 +1,164 @@
+锘縰sing System.ComponentModel;
+using System.Threading;
+using DevExpress.XtraEditors;
+using static DevExpress.XtraPrinting.Native.ExportOptionsPropertiesNames;
+
+namespace Gs.DevApp.UserControl
+{
+    public partial class ShowDialogForm : XtraForm
+    {
+
+         
+        #region Events
+
+        protected override void OnClosing(CancelEventArgs e)
+        {
+            base.OnClosing(e);
+        }
+
+        #endregion
+
+        #region Fields & Properties
+
+        /// <summary>
+        ///     鏍囬
+        /// </summary>
+        public string Caption { get; set; }
+
+        /// <summary>
+        ///     娑堟伅
+        /// </summary>
+        public string Message { get; set; }
+
+        /// <summary>
+        ///     鎻忚堪
+        /// </summary>
+        public string Content { get; set; }
+
+        /// <summary>
+        ///     杩涘害鏉℃渶灏忓��
+        /// </summary>
+        public int MinProcess { get; set; } = 1;
+
+        /// <summary>
+        ///     杩涘害鏉℃渶澶у��
+        /// </summary>
+        public int MaxProcess { get; set; } = 100;
+
+        #endregion
+
+        #region Constructed Function
+
+        public ShowDialogForm()
+        {
+            InitializeComponent();
+        }
+
+        /// <summary>
+        ///     璁剧疆
+        /// </summary>
+        /// <param name="_caption">鎻愮ず</param>
+        public ShowDialogForm(string _caption)
+            : this(_caption, "", "", 100)
+        {
+        }
+
+        /// <summary>
+        ///     璁剧疆
+        /// </summary>
+        /// <param name="_caption"></param>
+        /// <param name="_message"></param>
+        public ShowDialogForm(string _caption, string _message)
+            : this(_caption, _message, "", 100)
+        {
+        }
+
+        /// <summary>
+        ///     璁剧疆
+        /// </summary>
+        /// <param name="_caption"></param>
+        /// <param name="_message"></param>
+        /// <param name="_content"></param>
+        public ShowDialogForm(string _caption, string _message, string _content)
+            : this(_caption, _message, _content, 100)
+        {
+
+        }
+
+        /// <summary>
+        ///     璁剧疆
+        /// </summary>
+        /// <param name="_caption">鎻愮ず</param>
+        /// <param name="_message">娑堟伅鍐呭</param>
+        /// <param name="_content">璇︾粏鎻忚堪</param>
+        /// <param name="_maxProcess">杩涘害鏉℃渶澶у��</param>
+        public ShowDialogForm(string _caption, string _message, string _content,
+            int _maxProcess)
+            : this()
+        {
+            Caption = "";
+            Message = "";
+            Content = "";
+
+            Caption = _caption == "" ? "鎻愮ず" : _caption;
+            Message = _message == "" ? "姝e湪鍔犺浇锛岃绋嶅悗......" : _message;
+            Content = _content;
+            MaxProcess = _maxProcess > MinProcess ? _maxProcess : MinProcess;
+
+            lblCaption.Text = Caption;
+            // lblMessage.Text = this.Message;
+            lblContent.Text = Content;
+            progressShow.Properties.Minimum = MinProcess;
+            progressShow.Properties.Maximum = MaxProcess;
+            progressShow.Properties.Step = 1;
+            progressShow.PerformStep();
+
+            ShowInTaskbar = false;
+            TopMost = true;
+            Show();
+            Refresh();
+        }
+
+        #endregion
+
+        #region Methods
+
+        /// <summary>
+        ///     璁剧疆鎻愮ず
+        /// </summary>
+        /// <param name="newCaption"></param>
+        public void SetCaption(string newCaption)
+        {
+            Caption = newCaption;
+            lblCaption.Text = Caption;
+            progressShow.PerformStep();
+            Refresh();
+        }
+
+        /// <summary>
+        ///     璁剧疆娑堟伅
+        /// </summary>
+        /// <param name="newMessage"></param>
+        public void SetMessage(string newMessage)
+        {
+            Message = newMessage;
+            // lblMessage.Text = this.Message;
+            progressShow.PerformStep();
+            Refresh();
+        }
+
+        /// <summary>
+        ///     璁剧疆鎻忚堪
+        /// </summary>
+        /// <param name="newContent"></param>
+        public void SetContent(string newContent)
+        {
+            Content = newContent;
+            lblContent.Text = Content;
+            progressShow.PerformStep();
+            Refresh();
+        }
+
+        #endregion
+    }
+}
\ No newline at end of file

--
Gitblit v1.9.3