| | |
| | | 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> |
| | |
| | | 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); |
| | |
| | | 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> |