From 1eb53152616732f8864893e9379ecb67d8f6085f Mon Sep 17 00:00:00 2001 From: Chfei Date: Sat, 17 Oct 2026 18:16:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E4=B8=BB=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E4=B8=8B=E7=9A=84Comm=E6=96=87=E4=BB=B6=E5=A4=B9=20?= =?UTF-8?q?=E8=BD=AC=E5=88=B0=20Frameork=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 29WxOrderWpf/29WxOrderWpf.csproj | 4 + 29WxOrderWpf/App.xaml | 77 +++++++++---------- 29WxOrderWpf/App.xaml.cs | 21 ++--- 29WxOrderWpf/Common/DialogWindow.xaml | 23 ------ 29WxOrderWpf/Common/InputDialog.xaml | 65 ---------------- .../Ctrls/BuyerCtrls/PDDBuyerSelectCtrl.xaml | 2 +- .../BuyerCtrls/PDDBuyerSelectCtrl.xaml.cs | 2 +- .../Ctrls/BuyerCtrls/PddBuyOrderViewModel.cs | 3 +- .../BuyerCtrls/TaobaoBuyOrderViewModel.cs | 2 +- .../Ctrls/Commons/ShopFilterComboBox.xaml.cs | 2 +- .../Ctrls/OrderCtrls/OrderListCtrl.Command.cs | 6 +- .../Ctrls/OrderCtrls/OrderListCtrl.xaml | 2 +- .../Ctrls/OrderCtrls/OrderListCtrl.xaml.cs | 4 +- .../OrderCtrls/OrderListRowItemCtrl.xaml.cs | 2 +- .../Ctrls/OrderCtrls/OrderTaskDialogView.xaml | 2 +- .../OrderCtrls/OrderTaskDialogView.xaml.cs | 2 +- .../Ctrls/PDDInvoice/PDDInvoiceDialog.xaml.cs | 6 +- .../Ctrls/PDDInvoice/PDDInvoiceView.xaml | 4 +- .../ViewModels/PDDInvoiceViewModel.Browser.cs | 2 +- .../ViewModels/PDDInvoiceViewModel.cs | 8 +- .../PeriodRevenueStatisticsView.xaml | 2 +- .../Statistics/ShopRevenueStatisticsView.xaml | 2 +- .../Ctrls/Statistics/ShowOrderDialogView.xaml | 2 +- .../Statistics/ShowOrderDialogView.xaml.cs | 3 +- .../PeriodRevenueStatisticsViewModel.cs | 4 +- .../ShopRevenueStatisticsViewModel.cs | 4 +- 29WxOrderWpf/OrderSupportTicketWindow.xaml | 14 ++++ 29WxOrderWpf/OrderSupportTicketWindow.xaml.cs | 26 +++++++ .../BaiduGetWaybillInfoViewModel.cs | 2 +- 29WxOrderWpf/ViewModels/BuyMapSkuViewModel.cs | 2 +- .../ViewModels/ChangePickNoViewModel.cs | 2 +- .../ViewModels/ChangeWaybillViewModel.cs | 2 +- .../ViewModels/EWaybillPathViewModel.cs | 2 +- .../ViewModels/PddMobileLoginViewModel.cs | 2 +- .../ViewModels/TaobaoLoginViewModel.cs | 2 +- .../TransitExtraPackagesViewModel.cs | 2 +- .../Views/AutoBuyIntroductionView‌.xaml | 2 +- .../Views/BaiduGetWaybillInfoView.xaml | 2 +- 29WxOrderWpf/Views/PddMobileLoginView.xaml | 2 +- 29WxOrderWpf/Views/TaobaoLoginView.xaml | 2 +- .../Windows/LoginWindows/LoginWindow.xaml.cs | 2 +- Work/29WxOrderWork.csproj | 2 +- WxOrder.Framework/AssemblyInfo.cs | 7 ++ .../Commons}/AsyncDelegateCommand.cs | 3 +- .../Commons}/AsyncDelegateCommand{T}.cs | 3 +- .../Commons}/DebugVisibility.cs | 2 +- .../Commons}/DelegateCommand.cs | 2 +- .../Commons}/DelegateCommandBase.cs | 2 +- .../Commons}/DelegateCommand{T}.cs | 2 +- WxOrder.Framework/Commons/DialogWindow.xaml | 23 ++++++ .../Commons}/DialogWindow.xaml.cs | 7 +- .../Commons}/DialogWindowProperty.cs | 2 +- .../Commons}/Dialogs/ButtonResult.cs | 2 +- .../Commons}/Dialogs/Dialog.cs | 2 +- .../Commons}/Dialogs/DialogParameters.cs | 4 +- .../Commons}/Dialogs/DialogResult.cs | 2 +- .../Commons}/Dialogs/DialogService.cs | 6 +- .../Commons}/Dialogs/IDialogAware.cs | 2 +- .../Commons}/Dialogs/IDialogParameters.cs | 2 +- .../Commons}/Dialogs/IDialogResult.cs | 2 +- .../Commons}/Dialogs/IDialogWindow.cs | 2 +- .../Commons}/Dialogs/IParameters.cs | 2 +- .../Commons}/Dialogs/ParametersBase.cs | 2 +- .../Commons}/Dialogs/ParametersExtensions.cs | 2 +- .../Commons}/EnvironmentHelper.cs | 2 +- .../Commons}/IAsyncCommand.cs | 2 +- WxOrder.Framework/Commons/InputDialog.xaml | 65 ++++++++++++++++ .../Commons}/InputDialog.xaml.cs | 2 +- .../Commons}/ScrollViewerBehavior.cs | 2 +- .../Commons}/pinyin/Data/PinyinCode1.cs | 2 +- .../Commons}/pinyin/Data/PinyinCode2.cs | 2 +- .../Commons}/pinyin/Data/PinyinCode3.cs | 2 +- .../Commons}/pinyin/Data/PinyinData.cs | 2 +- .../Commons}/pinyin/Engine.cs | 4 +- .../Commons}/pinyin/IPinyinDict.cs | 2 +- .../Commons}/pinyin/PinyinDict.cs | 2 +- .../Commons}/pinyin/PinyinHelper.cs | 2 +- WxOrder.Framework/PDDAPI/PddApi.cs | 3 +- 78 files changed, 274 insertions(+), 227 deletions(-) delete mode 100644 29WxOrderWpf/Common/DialogWindow.xaml delete mode 100644 29WxOrderWpf/Common/InputDialog.xaml create mode 100644 29WxOrderWpf/OrderSupportTicketWindow.xaml create mode 100644 29WxOrderWpf/OrderSupportTicketWindow.xaml.cs create mode 100644 WxOrder.Framework/AssemblyInfo.cs rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/AsyncDelegateCommand.cs (99%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/AsyncDelegateCommand{T}.cs (99%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/DebugVisibility.cs (97%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/DelegateCommand.cs (99%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/DelegateCommandBase.cs (99%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/DelegateCommand{T}.cs (99%) create mode 100644 WxOrder.Framework/Commons/DialogWindow.xaml rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/DialogWindow.xaml.cs (96%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/DialogWindowProperty.cs (99%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/Dialogs/ButtonResult.cs (94%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/Dialogs/Dialog.cs (98%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/Dialogs/DialogParameters.cs (92%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/Dialogs/DialogResult.cs (96%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/Dialogs/DialogService.cs (98%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/Dialogs/IDialogAware.cs (96%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/Dialogs/IDialogParameters.cs (98%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/Dialogs/IDialogResult.cs (90%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/Dialogs/IDialogWindow.cs (97%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/Dialogs/IParameters.cs (98%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/Dialogs/ParametersBase.cs (99%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/Dialogs/ParametersExtensions.cs (99%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/EnvironmentHelper.cs (97%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/IAsyncCommand.cs (96%) create mode 100644 WxOrder.Framework/Commons/InputDialog.xaml rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/InputDialog.xaml.cs (99%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/ScrollViewerBehavior.cs (98%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/pinyin/Data/PinyinCode1.cs (99%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/pinyin/Data/PinyinCode2.cs (99%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/pinyin/Data/PinyinCode3.cs (99%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/pinyin/Data/PinyinData.cs (98%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/pinyin/Engine.cs (98%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/pinyin/IPinyinDict.cs (87%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/pinyin/PinyinDict.cs (94%) rename {29WxOrderWpf/Common => WxOrder.Framework/Commons}/pinyin/PinyinHelper.cs (97%) diff --git a/29WxOrderWpf/29WxOrderWpf.csproj b/29WxOrderWpf/29WxOrderWpf.csproj index a8890b8..52569a0 100644 --- a/29WxOrderWpf/29WxOrderWpf.csproj +++ b/29WxOrderWpf/29WxOrderWpf.csproj @@ -59,6 +59,7 @@ + @@ -83,5 +84,8 @@ Code + + + diff --git a/29WxOrderWpf/App.xaml b/29WxOrderWpf/App.xaml index d3fae9d..efe0cd7 100644 --- a/29WxOrderWpf/App.xaml +++ b/29WxOrderWpf/App.xaml @@ -1,42 +1,41 @@  - - - - - - - - - - - - - - - - - - - - - - - - - - - - + x:Class="_29WxOrderWpf.App" + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:converters="clr-namespace:_29WxOrderWpf.Converters" + xmlns:local="clr-namespace:_29WxOrderWpf"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + diff --git a/29WxOrderWpf/App.xaml.cs b/29WxOrderWpf/App.xaml.cs index 4070f92..490f111 100644 --- a/29WxOrderWpf/App.xaml.cs +++ b/29WxOrderWpf/App.xaml.cs @@ -141,17 +141,20 @@ namespace _29WxOrderWpf #endif Cef.Initialize(settings); } - #endregion - } + #endregion - //static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e) - //{ - // string str = GetExceptionMsg(e.Exception, e.ToString()); - // NaiBa.Util.Helper.LogHelper.WriteWithTime("SystemError:" + str); - // BaseMsgWindow.ShowError(str, "系统错误"); - //} + //new MainWindow().Show(); + new OrderSupportTicketWindow().Show(); + } - private void Current_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e) + //static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e) + //{ + // string str = GetExceptionMsg(e.Exception, e.ToString()); + // NaiBa.Util.Helper.LogHelper.WriteWithTime("SystemError:" + str); + // BaseMsgWindow.ShowError(str, "系统错误"); + //} + + private void Current_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e) { string str = GetExceptionMsg(e.Exception, e.ToString()); NaiBa.Util.Helper.LogHelper.WriteWithTime("SystemError:" + str); diff --git a/29WxOrderWpf/Common/DialogWindow.xaml b/29WxOrderWpf/Common/DialogWindow.xaml deleted file mode 100644 index 9bb6e07..0000000 --- a/29WxOrderWpf/Common/DialogWindow.xaml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - diff --git a/29WxOrderWpf/Common/InputDialog.xaml b/29WxOrderWpf/Common/InputDialog.xaml deleted file mode 100644 index 16b8e1d..0000000 --- a/29WxOrderWpf/Common/InputDialog.xaml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - -