From a980cd04341d71216e0f59bd4b7327fe9fc50032 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 21 五月 2025 11:41:46 +0800
Subject: [PATCH] 提交

---
 CY_ECommercePlatform/CY.WebForm/MainPage.cs |   68 ++++++++++++++++++++++++++++++++++
 1 files changed, 68 insertions(+), 0 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/MainPage.cs b/CY_ECommercePlatform/CY.WebForm/MainPage.cs
index aca46ef..a4ee718 100644
--- a/CY_ECommercePlatform/CY.WebForm/MainPage.cs
+++ b/CY_ECommercePlatform/CY.WebForm/MainPage.cs
@@ -190,6 +190,17 @@
                 string script = "alertMsg('" + Message + "')";
                 JavaScript.ExecuteClientScript("key", script, page);
             }
+
+            /// <summary>
+            /// 鏄剧ずIE娴忚鍣ㄧ鐨勫璇濇骞朵笖璺宠浆椤甸潰
+            /// </summary>
+            /// <param name="Message">娑堟伅</param>
+            /// <param name="page">婧愰〉闈�</param> 
+            public static void MessageBoxandhideLoadingIndicator(string Message, System.Web.UI.Page page)
+            {
+                string script = "alertMsg('" + Message + "');hideLoadingIndicator();";
+                JavaScript.ExecuteClientScript("key", script, page);
+            }
             /// <summary>
             /// 鏄剧ず瀵硅瘽妗�
             /// </summary>
@@ -206,6 +217,50 @@
                     jsfn = "top.Dialog.close();";
                 else if (IsRefreshParent)
                     jsfn = "top.frmright.ReLoad();";
+
+                string script = string.Format("alertMsg('{0}');{1}", Message, jsfn);
+                JavaScript.ExecuteClientScript("key", script, page);
+            }
+
+
+            /// <summary>
+            /// 鏄剧ず瀵硅瘽妗�
+            /// </summary>
+            /// <param name="Message">娑堟伅</param>
+            /// <param name="page"></param>
+            /// <param name="IsClose">鏄惁鍏抽棴</param>
+            /// <param name="IsRefreshParent">鏄惁鍒锋柊鐖剁獥鍙�</param>
+            public static void MessageBoxsssss(string Message, System.Web.UI.Page page, bool IsClose, bool IsRefreshParent)
+            {
+                string jsfn = "";
+                if (IsClose && IsRefreshParent)
+                    jsfn = "top.frmright.document.getElementById('btn_Search').click();top.Dialog.close();";
+                else if (IsClose)
+                    jsfn = "top.Dialog.close();";
+                else if (IsRefreshParent)
+                    jsfn = "top.frmright.document.getElementById('btn_Search').click();";
+
+                string script = string.Format("alertMsg('{0}');{1}", Message, jsfn);
+                JavaScript.ExecuteClientScript("key", script, page);
+            }
+
+
+            /// <summary>
+            /// 鏄剧ず瀵硅瘽妗�,缁欑埗椤甸潰鎺т欢璧嬪��
+            /// </summary>
+            /// <param name="Message">娑堟伅</param>
+            /// <param name="page"></param>
+            /// <param name="IsClose">鏄惁鍏抽棴</param>
+            /// <param name="IsRefreshParent">鏄惁鍒锋柊鐖剁獥鍙�</param>
+            public static void MessageBoxfuzhi(string Message, System.Web.UI.Page page, bool IsClose, string kongjian,string fileUrl)
+            {
+                string jsfn = "";
+                if (IsClose && !string.IsNullOrEmpty(kongjian))
+                    jsfn = "top.frmright.document.getElementById('" + kongjian + "').src = '"+ fileUrl + "';top.frmright.document.getElementById('view" + kongjian + "').href = '" + fileUrl + "';top.frmright.document.getElementById('hide" + kongjian + "').value = '" + fileUrl + "';top.Dialog.close();";
+                else if (IsClose)
+                    jsfn = "top.Dialog.close();";
+                else if (!string.IsNullOrEmpty(kongjian))
+                    jsfn = "top.frmright.document.getElementById('" + kongjian + "').src = '" + fileUrl + "';top.frmright.document.getElementById('view" + kongjian + "').href = '" + fileUrl + "';top.frmright.document.getElementById('hide" + kongjian + "').value = '" + fileUrl + "';";
 
                 string script = string.Format("alertMsg('{0}');{1}", Message, jsfn);
                 JavaScript.ExecuteClientScript("key", script, page);
@@ -256,6 +311,19 @@
                 string script = string.Format("alertMsg('{0}');{1}", Message, jsfn);
                 JavaScript.ExecuteClientScript("key", script, page);
             }
+
+            /// <summary>
+            /// 鏄剧ず瀵硅瘽妗嗭紝鍒锋柊绗竴涓獥浣撳拰鐖剁獥浣�
+            /// </summary>
+            /// <param name="Message">娑堟伅</param>
+            /// <param name="page"></param>
+            public static void MessageBoxCloseAndRefreshFirsts(string Message, System.Web.UI.Page page)
+            {
+                string jsfn = "top.document.getElementById('_DialogFrame_0').contentWindow.ReWindowSelf();top.Dialog.close();";
+
+                string script = string.Format("alertMsg('{0}');{1}", Message, jsfn);
+                JavaScript.ExecuteClientScript("key", script, page);
+            }
             /// <summary>
             /// 鏄剧ず瀵硅瘽妗嗭紝鍒锋柊绗竴涓獥浣撳拰鐖剁獥浣�(鐖剁獥浣撲负鍒囨崲妗�)
             /// </summary>

--
Gitblit v1.9.1