From 526fd278002c848ced84d91ea5efbb682541f467 Mon Sep 17 00:00:00 2001
From: wugang <425674808@qq.com>
Date: Mon, 12 Mar 2018 10:14:06 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
CowOutputClient/AutoCloseWindow.xaml | 18 ++++++
CowOutputClient/AutoCloseWindow.xaml.cs | 45 +++++++++++++
CowOutputClient/CowOutputClient.csproj | 7 ++
CowOutputClient/OperateWindow.xaml | 16 ++---
CowOutputClient/OperateWindow.xaml.cs | 24 +++++--
CowOutputClient/app.config | 2 +-
FireBirdUtil/SqlHelper/CreateTableHelper.cs | 2 +-
WeighBusiness/BL/WeightInfoBL.cs | 64 +++++++++++++------
.../BO/CreateTables/CreateWeightInfo.cs | 1 +
WeighBusiness/BO/WeightInfo.cs | 2 +
10 files changed, 149 insertions(+), 32 deletions(-)
create mode 100644 CowOutputClient/AutoCloseWindow.xaml
create mode 100644 CowOutputClient/AutoCloseWindow.xaml.cs
diff --git a/CowOutputClient/AutoCloseWindow.xaml b/CowOutputClient/AutoCloseWindow.xaml
new file mode 100644
index 0000000..af56e09
--- /dev/null
+++ b/CowOutputClient/AutoCloseWindow.xaml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/CowOutputClient/AutoCloseWindow.xaml.cs b/CowOutputClient/AutoCloseWindow.xaml.cs
new file mode 100644
index 0000000..11fec7e
--- /dev/null
+++ b/CowOutputClient/AutoCloseWindow.xaml.cs
@@ -0,0 +1,45 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+using System.Windows.Threading;
+
+namespace CowOutputClient
+{
+ ///
+ /// Interaction logic for AutoCloseWindow.xaml
+ ///
+ public partial class AutoCloseWindow : Window
+ {
+ private DispatcherTimer mShowTimer;
+ private string mInfo;
+
+ public AutoCloseWindow(string info)
+ {
+ InitializeComponent();
+ mInfo = info;
+ }
+
+ private void Window_Loaded(object sender, RoutedEventArgs e)
+ {
+ lblInfo.Content = mInfo;
+ mShowTimer = new DispatcherTimer();
+ mShowTimer.Tick += new EventHandler(CloseWindow);
+ mShowTimer.Interval = new TimeSpan(0, 0, 0, 2, 0);
+ mShowTimer.Start();
+ }
+
+ public void CloseWindow(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+ }
+}
diff --git a/CowOutputClient/CowOutputClient.csproj b/CowOutputClient/CowOutputClient.csproj
index ae42df2..5e9f37f 100644
--- a/CowOutputClient/CowOutputClient.csproj
+++ b/CowOutputClient/CowOutputClient.csproj
@@ -61,6 +61,9 @@
MSBuild:Compile
Designer
+
+ AutoCloseWindow.xaml
+
CalendarSelecterWindow.xaml
@@ -74,6 +77,10 @@
SelectedProductWindow.xaml
+
+ Designer
+ MSBuild:Compile
+
MSBuild:Compile
Designer
diff --git a/CowOutputClient/OperateWindow.xaml b/CowOutputClient/OperateWindow.xaml
index 85cb7c8..e9c9253 100644
--- a/CowOutputClient/OperateWindow.xaml
+++ b/CowOutputClient/OperateWindow.xaml
@@ -129,14 +129,14 @@ Property="HorizontalContentAlignment" Value="Center">
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+