修改工单流程页面,订单列表增加工单按钮

This commit is contained in:
chfei committed 2026-10-18 20:35:47 +08:00
1 parent f9dcae4610
commit 10bb0803d9
44 files changed
+5920 -1291

No files matched your search

@@ -12,7 +12,41 @@ namespace WxOrder.Framework.Commons.Dialogs
public static class DialogService
{
// ========== 对外接口 ==========
public static bool ExistsWindow(FrameworkElement view)
{
var window = Application.Current.Windows.OfType<Window>().FirstOrDefault(w => w.Content != null && w.Content.GetType() == view.GetType());
return window != null;
}
public static void ActivateWindow(FrameworkElement view)
{
var window = Application.Current.Windows.OfType<Window>().FirstOrDefault(w => w.Content != null && w.Content.GetType() == view.GetType());
if (window == null)
return;
if (!window.IsVisible)
window.Show();
if (window.WindowState == WindowState.Minimized)
window.WindowState = WindowState.Normal;
if (!window.Activate())
{
// 窗口被其他进程遮挡时,短暂置顶以切换到用户面前。
window.Topmost = true;
window.Topmost = false;
window.Activate();
}
}
public static void ShowOrActivateWindow(FrameworkElement view, IDialogParameters parameters = null, Action<IDialogResult> callback = null)
{
if (ExistsWindow(view))
{
ActivateWindow(view);
}
else
{
Show(view, parameters, callback);
}
}
/// <summary>非模态弹出</summary>
public static void Show(FrameworkElement view,
IDialogParameters parameters = null,