diff --git a/shangjian/XGL/Views/DryingRoomUC.xaml b/shangjian/XGL/Views/DryingRoomUC.xaml
index 2cf1e64..afc4209 100644
--- a/shangjian/XGL/Views/DryingRoomUC.xaml
+++ b/shangjian/XGL/Views/DryingRoomUC.xaml
@@ -377,12 +377,12 @@
-
-
diff --git a/shangjian/XGL/Views/HBLogWin.xaml b/shangjian/XGL/Views/HBLogWin.xaml
new file mode 100644
index 0000000..c55779c
--- /dev/null
+++ b/shangjian/XGL/Views/HBLogWin.xaml
@@ -0,0 +1,128 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/shangjian/XGL/Views/HBLogWin.xaml.cs b/shangjian/XGL/Views/HBLogWin.xaml.cs
new file mode 100644
index 0000000..da8f3f1
--- /dev/null
+++ b/shangjian/XGL/Views/HBLogWin.xaml.cs
@@ -0,0 +1,74 @@
+using CentralControl.DBDAO;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+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;
+
+namespace XGL.Views
+{
+ ///
+ /// HBLogWin.xaml 的交互逻辑
+ ///
+ public partial class HBLogWin : Window
+ {
+ DBService userDbWareHouse = new DBService();
+ public HBLogWin()
+ {
+ InitializeComponent();
+ }
+ private void Window_Loaded(object sender, RoutedEventArgs e)
+ {
+ GetPlcValueList();
+ }
+
+ private void dgLogInfo_LoadingRow(object sender, DataGridRowEventArgs e)
+ {
+ e.Row.Header = (e.Row.GetIndex() + 1).ToString();
+ }
+
+ private void btnQueryLog_Click(object sender, RoutedEventArgs e)
+ {
+ GetPlcValueList();
+ }
+
+ private void GetPlcValueList()
+ {
+
+ DataTable dt = userDbWareHouse.GetHFPlcValueList(this.txtDeviceCode.Text);
+ if (dt == null) return;
+ this.dgPlcValueInfo.ItemsSource = null;
+ this.dgPlcValueInfo.ItemsSource = dt.DefaultView;
+ }
+
+ private void btnClose_Click(object sender, RoutedEventArgs e)
+ {
+ this.Close();
+ }
+
+ private void txtKey_KeyDown(object sender, KeyEventArgs e)
+ {
+ if (e.Key == Key.Enter)
+ {
+ GetPlcValueList();
+ }
+ }
+
+ private void txtDeviceCode_KeyDown(object sender, KeyEventArgs e)
+ {
+ if (e.Key == Key.Enter)
+ {
+ GetPlcValueList();
+ }
+ }
+ }
+}
diff --git a/shangjian/XGL/Views/LanJu_Operator.xaml b/shangjian/XGL/Views/LanJu_Operator.xaml
index ef44567..44f8cfa 100644
--- a/shangjian/XGL/Views/LanJu_Operator.xaml
+++ b/shangjian/XGL/Views/LanJu_Operator.xaml
@@ -374,6 +374,25 @@
Foreground="White"
Click="btnViewPlcvalue_Click" Content="查看Plc值">
+
+
+
// 此代码由工具生成。
@@ -90,7 +90,15 @@ namespace XGL.Views {
#line hidden
- #line 378 "..\..\..\..\Views\LanJu_Operator.xaml"
+ #line 383 "..\..\..\..\Views\LanJu_Operator.xaml"
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ internal System.Windows.Controls.Button HFPlcvalue;
+
+ #line default
+ #line hidden
+
+
+ #line 397 "..\..\..\..\Views\LanJu_Operator.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.DataGrid dgWorkOrderInfo;
@@ -98,7 +106,7 @@ namespace XGL.Views {
#line hidden
- #line 518 "..\..\..\..\Views\LanJu_Operator.xaml"
+ #line 537 "..\..\..\..\Views\LanJu_Operator.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ContentControl Window1;
@@ -214,29 +222,38 @@ namespace XGL.Views {
#line hidden
return;
case 10:
- this.dgWorkOrderInfo = ((System.Windows.Controls.DataGrid)(target));
-
- #line 389 "..\..\..\..\Views\LanJu_Operator.xaml"
- this.dgWorkOrderInfo.LoadingRow += new System.EventHandler(this.dgWorkOrderInfo_LoadingRow);
-
- #line default
- #line hidden
+ this.HFPlcvalue = ((System.Windows.Controls.Button)(target));
#line 394 "..\..\..\..\Views\LanJu_Operator.xaml"
- this.dgWorkOrderInfo.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dgWorkOrderInfo_SelectionChanged);
+ this.HFPlcvalue.Click += new System.Windows.RoutedEventHandler(this.HFPlcvalue_Click);
#line default
#line hidden
return;
case 11:
+ this.dgWorkOrderInfo = ((System.Windows.Controls.DataGrid)(target));
- #line 450 "..\..\..\..\Views\LanJu_Operator.xaml"
- ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.InOut_Click);
+ #line 408 "..\..\..\..\Views\LanJu_Operator.xaml"
+ this.dgWorkOrderInfo.LoadingRow += new System.EventHandler(this.dgWorkOrderInfo_LoadingRow);
+
+ #line default
+ #line hidden
+
+ #line 413 "..\..\..\..\Views\LanJu_Operator.xaml"
+ this.dgWorkOrderInfo.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dgWorkOrderInfo_SelectionChanged);
#line default
#line hidden
return;
case 12:
+
+ #line 469 "..\..\..\..\Views\LanJu_Operator.xaml"
+ ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.InOut_Click);
+
+ #line default
+ #line hidden
+ return;
+ case 13:
this.Window1 = ((System.Windows.Controls.ContentControl)(target));
return;
}