diff --git a/shangjian/.vs/BL/v17/.suo b/shangjian/.vs/BL/v17/.suo
index 4c35cc8..6ed61d7 100644
Binary files a/shangjian/.vs/BL/v17/.suo and b/shangjian/.vs/BL/v17/.suo differ
diff --git a/shangjian/CentralControl/bin/Debug/CentralControl.exe b/shangjian/CentralControl/bin/Debug/CentralControl.exe
index 935d974..4e785d2 100644
Binary files a/shangjian/CentralControl/bin/Debug/CentralControl.exe and b/shangjian/CentralControl/bin/Debug/CentralControl.exe differ
diff --git a/shangjian/CentralControl/bin/Debug/CentralControl.pdb b/shangjian/CentralControl/bin/Debug/CentralControl.pdb
index 015a3a9..c227995 100644
Binary files a/shangjian/CentralControl/bin/Debug/CentralControl.pdb and b/shangjian/CentralControl/bin/Debug/CentralControl.pdb differ
diff --git a/shangjian/CentralControl/bin/Debug/CommonFunc.dll b/shangjian/CentralControl/bin/Debug/CommonFunc.dll
index 7eae922..2184338 100644
Binary files a/shangjian/CentralControl/bin/Debug/CommonFunc.dll and b/shangjian/CentralControl/bin/Debug/CommonFunc.dll differ
diff --git a/shangjian/CentralControl/bin/Debug/CommonFunc.pdb b/shangjian/CentralControl/bin/Debug/CommonFunc.pdb
index 9275d5c..58f85d5 100644
Binary files a/shangjian/CentralControl/bin/Debug/CommonFunc.pdb and b/shangjian/CentralControl/bin/Debug/CommonFunc.pdb differ
diff --git a/shangjian/CentralControl/bin/Debug/XGL.Data.dll b/shangjian/CentralControl/bin/Debug/XGL.Data.dll
index 0f36a13..2be1b87 100644
Binary files a/shangjian/CentralControl/bin/Debug/XGL.Data.dll and b/shangjian/CentralControl/bin/Debug/XGL.Data.dll differ
diff --git a/shangjian/CentralControl/bin/Debug/XGL.Data.pdb b/shangjian/CentralControl/bin/Debug/XGL.Data.pdb
index 554d2ac..abad8de 100644
Binary files a/shangjian/CentralControl/bin/Debug/XGL.Data.pdb and b/shangjian/CentralControl/bin/Debug/XGL.Data.pdb differ
diff --git a/shangjian/CentralControl/bin/Debug/XGL.Models.dll b/shangjian/CentralControl/bin/Debug/XGL.Models.dll
index f35e275..08b7ea3 100644
Binary files a/shangjian/CentralControl/bin/Debug/XGL.Models.dll and b/shangjian/CentralControl/bin/Debug/XGL.Models.dll differ
diff --git a/shangjian/CentralControl/bin/Debug/XGL.Models.pdb b/shangjian/CentralControl/bin/Debug/XGL.Models.pdb
index 9baf824..d91e903 100644
Binary files a/shangjian/CentralControl/bin/Debug/XGL.Models.pdb and b/shangjian/CentralControl/bin/Debug/XGL.Models.pdb differ
diff --git a/shangjian/CentralControl/bin/Debug/XGL.Thrift.dll b/shangjian/CentralControl/bin/Debug/XGL.Thrift.dll
index 61f542a..2594335 100644
Binary files a/shangjian/CentralControl/bin/Debug/XGL.Thrift.dll and b/shangjian/CentralControl/bin/Debug/XGL.Thrift.dll differ
diff --git a/shangjian/CentralControl/bin/Debug/XGL.Thrift.pdb b/shangjian/CentralControl/bin/Debug/XGL.Thrift.pdb
index 148ca2f..d47c606 100644
Binary files a/shangjian/CentralControl/bin/Debug/XGL.Thrift.pdb and b/shangjian/CentralControl/bin/Debug/XGL.Thrift.pdb differ
diff --git a/shangjian/CentralControl/bin/Debug/config/log4net.config b/shangjian/CentralControl/bin/Debug/config/log4net.config
index 0c3e9b9..1f39413 100644
--- a/shangjian/CentralControl/bin/Debug/config/log4net.config
+++ b/shangjian/CentralControl/bin/Debug/config/log4net.config
@@ -8,8 +8,8 @@
-
-
+
diff --git a/shangjian/CentralControl/obj/Debug/CentralControl.csproj.AssemblyReference.cache b/shangjian/CentralControl/obj/Debug/CentralControl.csproj.AssemblyReference.cache
index 3ef7eb1..1a86455 100644
Binary files a/shangjian/CentralControl/obj/Debug/CentralControl.csproj.AssemblyReference.cache and b/shangjian/CentralControl/obj/Debug/CentralControl.csproj.AssemblyReference.cache differ
diff --git a/shangjian/CentralControl/obj/Debug/CentralControl.exe b/shangjian/CentralControl/obj/Debug/CentralControl.exe
index 935d974..4e785d2 100644
Binary files a/shangjian/CentralControl/obj/Debug/CentralControl.exe and b/shangjian/CentralControl/obj/Debug/CentralControl.exe differ
diff --git a/shangjian/CentralControl/obj/Debug/CentralControl.pdb b/shangjian/CentralControl/obj/Debug/CentralControl.pdb
index 015a3a9..c227995 100644
Binary files a/shangjian/CentralControl/obj/Debug/CentralControl.pdb and b/shangjian/CentralControl/obj/Debug/CentralControl.pdb differ
diff --git a/shangjian/CommonFunc/Config/log4net.config b/shangjian/CommonFunc/Config/log4net.config
index 0c3e9b9..1f39413 100644
--- a/shangjian/CommonFunc/Config/log4net.config
+++ b/shangjian/CommonFunc/Config/log4net.config
@@ -8,8 +8,8 @@
-
-
+
diff --git a/shangjian/CommonFunc/bin/x86/Debug/CommonFunc.dll b/shangjian/CommonFunc/bin/x86/Debug/CommonFunc.dll
index 7eae922..2184338 100644
Binary files a/shangjian/CommonFunc/bin/x86/Debug/CommonFunc.dll and b/shangjian/CommonFunc/bin/x86/Debug/CommonFunc.dll differ
diff --git a/shangjian/CommonFunc/bin/x86/Debug/CommonFunc.pdb b/shangjian/CommonFunc/bin/x86/Debug/CommonFunc.pdb
index 9275d5c..58f85d5 100644
Binary files a/shangjian/CommonFunc/bin/x86/Debug/CommonFunc.pdb and b/shangjian/CommonFunc/bin/x86/Debug/CommonFunc.pdb differ
diff --git a/shangjian/CommonFunc/bin/x86/Debug/Config/log4net.config b/shangjian/CommonFunc/bin/x86/Debug/Config/log4net.config
index 0c3e9b9..1f39413 100644
--- a/shangjian/CommonFunc/bin/x86/Debug/Config/log4net.config
+++ b/shangjian/CommonFunc/bin/x86/Debug/Config/log4net.config
@@ -8,8 +8,8 @@
-
-
+
diff --git a/shangjian/CommonFunc/bin/x86/Debug/XGL.Models.dll b/shangjian/CommonFunc/bin/x86/Debug/XGL.Models.dll
index f35e275..08b7ea3 100644
Binary files a/shangjian/CommonFunc/bin/x86/Debug/XGL.Models.dll and b/shangjian/CommonFunc/bin/x86/Debug/XGL.Models.dll differ
diff --git a/shangjian/CommonFunc/bin/x86/Debug/XGL.Models.pdb b/shangjian/CommonFunc/bin/x86/Debug/XGL.Models.pdb
index 9baf824..d91e903 100644
Binary files a/shangjian/CommonFunc/bin/x86/Debug/XGL.Models.pdb and b/shangjian/CommonFunc/bin/x86/Debug/XGL.Models.pdb differ
diff --git a/shangjian/CommonFunc/obj/x86/Debug/CommonFunc.csproj.AssemblyReference.cache b/shangjian/CommonFunc/obj/x86/Debug/CommonFunc.csproj.AssemblyReference.cache
index 16d2689..4c3caed 100644
Binary files a/shangjian/CommonFunc/obj/x86/Debug/CommonFunc.csproj.AssemblyReference.cache and b/shangjian/CommonFunc/obj/x86/Debug/CommonFunc.csproj.AssemblyReference.cache differ
diff --git a/shangjian/CommonFunc/obj/x86/Debug/CommonFunc.dll b/shangjian/CommonFunc/obj/x86/Debug/CommonFunc.dll
index 7eae922..2184338 100644
Binary files a/shangjian/CommonFunc/obj/x86/Debug/CommonFunc.dll and b/shangjian/CommonFunc/obj/x86/Debug/CommonFunc.dll differ
diff --git a/shangjian/CommonFunc/obj/x86/Debug/CommonFunc.pdb b/shangjian/CommonFunc/obj/x86/Debug/CommonFunc.pdb
index 9275d5c..58f85d5 100644
Binary files a/shangjian/CommonFunc/obj/x86/Debug/CommonFunc.pdb and b/shangjian/CommonFunc/obj/x86/Debug/CommonFunc.pdb differ
diff --git a/shangjian/LanJuLib/bin/Debug/CommonFunc.dll b/shangjian/LanJuLib/bin/Debug/CommonFunc.dll
index 7eae922..2184338 100644
Binary files a/shangjian/LanJuLib/bin/Debug/CommonFunc.dll and b/shangjian/LanJuLib/bin/Debug/CommonFunc.dll differ
diff --git a/shangjian/LanJuLib/bin/Debug/CommonFunc.pdb b/shangjian/LanJuLib/bin/Debug/CommonFunc.pdb
index 9275d5c..58f85d5 100644
Binary files a/shangjian/LanJuLib/bin/Debug/CommonFunc.pdb and b/shangjian/LanJuLib/bin/Debug/CommonFunc.pdb differ
diff --git a/shangjian/LanJuLib/bin/Debug/Config/log4net.config b/shangjian/LanJuLib/bin/Debug/Config/log4net.config
index 0c3e9b9..1f39413 100644
--- a/shangjian/LanJuLib/bin/Debug/Config/log4net.config
+++ b/shangjian/LanJuLib/bin/Debug/Config/log4net.config
@@ -8,8 +8,8 @@
-
-
+
diff --git a/shangjian/LanJuLib/bin/Debug/XGL.Models.dll b/shangjian/LanJuLib/bin/Debug/XGL.Models.dll
index f35e275..08b7ea3 100644
Binary files a/shangjian/LanJuLib/bin/Debug/XGL.Models.dll and b/shangjian/LanJuLib/bin/Debug/XGL.Models.dll differ
diff --git a/shangjian/LanJuLib/bin/Debug/XGL.Models.pdb b/shangjian/LanJuLib/bin/Debug/XGL.Models.pdb
index 9baf824..d91e903 100644
Binary files a/shangjian/LanJuLib/bin/Debug/XGL.Models.pdb and b/shangjian/LanJuLib/bin/Debug/XGL.Models.pdb differ
diff --git a/shangjian/LanJuLib/obj/Debug/LanJuLib.csproj.AssemblyReference.cache b/shangjian/LanJuLib/obj/Debug/LanJuLib.csproj.AssemblyReference.cache
index 51c354e..0df669c 100644
Binary files a/shangjian/LanJuLib/obj/Debug/LanJuLib.csproj.AssemblyReference.cache and b/shangjian/LanJuLib/obj/Debug/LanJuLib.csproj.AssemblyReference.cache differ
diff --git a/shangjian/XGL.Data/DBService/DringRoomService.cs b/shangjian/XGL.Data/DBService/DringRoomService.cs
index c1ac816..3e7c349 100644
--- a/shangjian/XGL.Data/DBService/DringRoomService.cs
+++ b/shangjian/XGL.Data/DBService/DringRoomService.cs
@@ -25,7 +25,7 @@ namespace XGL.Data.DBService
where += $"'{str2}',";
}
where = "("+where.Trim(',')+")";
- string sql = $@"select equipment_code as quipCode,equipment_name as quipName,equipment_type_code from base_equipment where equipment_type_code = 'equ_type_hf' and equipment_code in {where}";
+ string sql = $@"select equipment_code as quipCode,equipment_name as quipName,equipment_type_code from base_equipment where equipment_type_code = 'equ_type_hf' and equipment_code in {where} order by create_time";
DataSet dtset = Utils.netClientDBHelper.getDataSet(sql);
if (dtset != null && dtset.Tables.Count > 0 && dtset.Tables[0].Rows.Count > 0)
@@ -46,7 +46,7 @@ namespace XGL.Data.DBService
public DataTable GetDringRoomData(string devicecode,int inout)
{
- string sql = $@"SELECT rfid_no,device_code,type,create_time,update_time,factory_no,workorder_code,material_code FROM [dbo].[mes_dryinghouse_info] where device_code = '{devicecode}' and type = '{inout}' and del_flag='0' ;";
+ string sql = $@"SELECT ROW_NUMBER() OVER (ORDER BY create_time) AS RowNumber,rfid_no,device_code,type,create_time,update_time,factory_no,workorder_code,material_code FROM [dbo].[mes_dryinghouse_info] where device_code = '{devicecode}' and type = '{inout}' and del_flag='0' order by create_time ;";
//获取绑定中,且RFID没有出烘房(在烘房内)的数据
// string sql = $@"SELECT rfid,workorder_code,product_name,product_code,isnull(car_num,0) as car_num,isnull([begin],'1900-01-01 08:00:00') as [begin],ord.status FROM [dbo].[mes_material_transfer_result] res
//LEFT JOIN pro_order_workorder ord on res.OrderCode = ord.workorder_id where equipmentCode = '{devicecode}' and rfid_status = '1' and rfid not in(select rfid from mes_material_transfer_result where taskcode = '1' and rfid_status = '1')";
diff --git a/shangjian/XGL.Data/DBService/FormingMachineService.cs b/shangjian/XGL.Data/DBService/FormingMachineService.cs
index d1aa2e2..60d4a81 100644
--- a/shangjian/XGL.Data/DBService/FormingMachineService.cs
+++ b/shangjian/XGL.Data/DBService/FormingMachineService.cs
@@ -61,7 +61,7 @@ where equipmentCode = '{devicecode}' and rfid_status = '1'; ";
///
public DataTable GetInOutHistoryList(string devicecode)
{
- string sql = $@"SELECT workorder_code,product_name,product_code,isnull(car_num,0) as car_num,isnull([begin],'1900-00-00') as [begin],beout,ord.status,product_date,ord.create_time FROM [dbo].[mes_material_transfer_result] res
+ string sql = $@"SELECT workorder_code,product_name,product_code,isnull(car_num,0) as car_num,isnull([begin],'1900-00-00') as [begin],isnull([beout],'1900-00-00') as [beout],ord.status,product_date,ord.create_time,create_by FROM [dbo].[mes_material_transfer_result] res
LEFT JOIN pro_order_workorder ord on res.OrderCode = ord.workorder_id
where equipmentCode = '{devicecode}'; ";
diff --git a/shangjian/XGL.Data/bin/x86/Debug/CommonFunc.dll b/shangjian/XGL.Data/bin/x86/Debug/CommonFunc.dll
index 7eae922..2184338 100644
Binary files a/shangjian/XGL.Data/bin/x86/Debug/CommonFunc.dll and b/shangjian/XGL.Data/bin/x86/Debug/CommonFunc.dll differ
diff --git a/shangjian/XGL.Data/bin/x86/Debug/CommonFunc.pdb b/shangjian/XGL.Data/bin/x86/Debug/CommonFunc.pdb
index 9275d5c..58f85d5 100644
Binary files a/shangjian/XGL.Data/bin/x86/Debug/CommonFunc.pdb and b/shangjian/XGL.Data/bin/x86/Debug/CommonFunc.pdb differ
diff --git a/shangjian/XGL.Data/bin/x86/Debug/Config/log4net.config b/shangjian/XGL.Data/bin/x86/Debug/Config/log4net.config
index 0c3e9b9..1f39413 100644
--- a/shangjian/XGL.Data/bin/x86/Debug/Config/log4net.config
+++ b/shangjian/XGL.Data/bin/x86/Debug/Config/log4net.config
@@ -8,8 +8,8 @@
-
-
+
diff --git a/shangjian/XGL.Data/bin/x86/Debug/XGL.Data.dll b/shangjian/XGL.Data/bin/x86/Debug/XGL.Data.dll
index 0f36a13..2be1b87 100644
Binary files a/shangjian/XGL.Data/bin/x86/Debug/XGL.Data.dll and b/shangjian/XGL.Data/bin/x86/Debug/XGL.Data.dll differ
diff --git a/shangjian/XGL.Data/bin/x86/Debug/XGL.Data.pdb b/shangjian/XGL.Data/bin/x86/Debug/XGL.Data.pdb
index 554d2ac..abad8de 100644
Binary files a/shangjian/XGL.Data/bin/x86/Debug/XGL.Data.pdb and b/shangjian/XGL.Data/bin/x86/Debug/XGL.Data.pdb differ
diff --git a/shangjian/XGL.Data/bin/x86/Debug/XGL.Models.dll b/shangjian/XGL.Data/bin/x86/Debug/XGL.Models.dll
index f35e275..08b7ea3 100644
Binary files a/shangjian/XGL.Data/bin/x86/Debug/XGL.Models.dll and b/shangjian/XGL.Data/bin/x86/Debug/XGL.Models.dll differ
diff --git a/shangjian/XGL.Data/bin/x86/Debug/XGL.Models.pdb b/shangjian/XGL.Data/bin/x86/Debug/XGL.Models.pdb
index 9baf824..d91e903 100644
Binary files a/shangjian/XGL.Data/bin/x86/Debug/XGL.Models.pdb and b/shangjian/XGL.Data/bin/x86/Debug/XGL.Models.pdb differ
diff --git a/shangjian/XGL.Data/obj/x86/Debug/XGL.Data.csproj.AssemblyReference.cache b/shangjian/XGL.Data/obj/x86/Debug/XGL.Data.csproj.AssemblyReference.cache
index de06cda..e019020 100644
Binary files a/shangjian/XGL.Data/obj/x86/Debug/XGL.Data.csproj.AssemblyReference.cache and b/shangjian/XGL.Data/obj/x86/Debug/XGL.Data.csproj.AssemblyReference.cache differ
diff --git a/shangjian/XGL.Data/obj/x86/Debug/XGL.Data.dll b/shangjian/XGL.Data/obj/x86/Debug/XGL.Data.dll
index 0f36a13..2be1b87 100644
Binary files a/shangjian/XGL.Data/obj/x86/Debug/XGL.Data.dll and b/shangjian/XGL.Data/obj/x86/Debug/XGL.Data.dll differ
diff --git a/shangjian/XGL.Data/obj/x86/Debug/XGL.Data.pdb b/shangjian/XGL.Data/obj/x86/Debug/XGL.Data.pdb
index 554d2ac..abad8de 100644
Binary files a/shangjian/XGL.Data/obj/x86/Debug/XGL.Data.pdb and b/shangjian/XGL.Data/obj/x86/Debug/XGL.Data.pdb differ
diff --git a/shangjian/XGL.Model/bin/Debug/XGL.Models.dll b/shangjian/XGL.Model/bin/Debug/XGL.Models.dll
index f35e275..08b7ea3 100644
Binary files a/shangjian/XGL.Model/bin/Debug/XGL.Models.dll and b/shangjian/XGL.Model/bin/Debug/XGL.Models.dll differ
diff --git a/shangjian/XGL.Model/bin/Debug/XGL.Models.pdb b/shangjian/XGL.Model/bin/Debug/XGL.Models.pdb
index 9baf824..d91e903 100644
Binary files a/shangjian/XGL.Model/bin/Debug/XGL.Models.pdb and b/shangjian/XGL.Model/bin/Debug/XGL.Models.pdb differ
diff --git a/shangjian/XGL.Model/obj/Debug/XGL.Models.dll b/shangjian/XGL.Model/obj/Debug/XGL.Models.dll
index f35e275..08b7ea3 100644
Binary files a/shangjian/XGL.Model/obj/Debug/XGL.Models.dll and b/shangjian/XGL.Model/obj/Debug/XGL.Models.dll differ
diff --git a/shangjian/XGL.Model/obj/Debug/XGL.Models.pdb b/shangjian/XGL.Model/obj/Debug/XGL.Models.pdb
index 9baf824..d91e903 100644
Binary files a/shangjian/XGL.Model/obj/Debug/XGL.Models.pdb and b/shangjian/XGL.Model/obj/Debug/XGL.Models.pdb differ
diff --git a/shangjian/XGL.Thrift/bin/Debug/XGL.Thrift.dll b/shangjian/XGL.Thrift/bin/Debug/XGL.Thrift.dll
index 61f542a..2594335 100644
Binary files a/shangjian/XGL.Thrift/bin/Debug/XGL.Thrift.dll and b/shangjian/XGL.Thrift/bin/Debug/XGL.Thrift.dll differ
diff --git a/shangjian/XGL.Thrift/bin/Debug/XGL.Thrift.pdb b/shangjian/XGL.Thrift/bin/Debug/XGL.Thrift.pdb
index 148ca2f..d47c606 100644
Binary files a/shangjian/XGL.Thrift/bin/Debug/XGL.Thrift.pdb and b/shangjian/XGL.Thrift/bin/Debug/XGL.Thrift.pdb differ
diff --git a/shangjian/XGL.Thrift/obj/Debug/XGL.Thrift.csproj.AssemblyReference.cache b/shangjian/XGL.Thrift/obj/Debug/XGL.Thrift.csproj.AssemblyReference.cache
index cf52ee4..98a29bf 100644
Binary files a/shangjian/XGL.Thrift/obj/Debug/XGL.Thrift.csproj.AssemblyReference.cache and b/shangjian/XGL.Thrift/obj/Debug/XGL.Thrift.csproj.AssemblyReference.cache differ
diff --git a/shangjian/XGL.Thrift/obj/Debug/XGL.Thrift.dll b/shangjian/XGL.Thrift/obj/Debug/XGL.Thrift.dll
index 61f542a..2594335 100644
Binary files a/shangjian/XGL.Thrift/obj/Debug/XGL.Thrift.dll and b/shangjian/XGL.Thrift/obj/Debug/XGL.Thrift.dll differ
diff --git a/shangjian/XGL.Thrift/obj/Debug/XGL.Thrift.pdb b/shangjian/XGL.Thrift/obj/Debug/XGL.Thrift.pdb
index 148ca2f..d47c606 100644
Binary files a/shangjian/XGL.Thrift/obj/Debug/XGL.Thrift.pdb and b/shangjian/XGL.Thrift/obj/Debug/XGL.Thrift.pdb differ
diff --git a/shangjian/XGL/App.config b/shangjian/XGL/App.config
index 34dac82..e74510f 100644
--- a/shangjian/XGL/App.config
+++ b/shangjian/XGL/App.config
@@ -10,9 +10,9 @@
-
+
-
+
diff --git a/shangjian/XGL/FormItem/Main.xaml.cs b/shangjian/XGL/FormItem/Main.xaml.cs
index 7d94aa6..042237d 100644
--- a/shangjian/XGL/FormItem/Main.xaml.cs
+++ b/shangjian/XGL/FormItem/Main.xaml.cs
@@ -146,7 +146,7 @@ namespace XGL.FormItem
timerDeciveState.Interval = Utils.GetAppSetting("GetDeviceStateInterval") == "" ? 15000 : Convert.ToInt32(Utils.GetAppSetting("GetDeviceStateInterval"));
timerDeciveState.Elapsed += TimerDeciveState_Elapsed;
timerDeciveState.Start();
- this.lbVersion.Content = "20231003001";
+ this.lbVersion.Content = "20231005001";
}
diff --git a/shangjian/XGL/LanjuLogo.png b/shangjian/XGL/LanjuLogo.png
new file mode 100644
index 0000000..896a8af
Binary files /dev/null and b/shangjian/XGL/LanjuLogo.png differ
diff --git a/shangjian/XGL/Resources/lanjuLogo.png b/shangjian/XGL/Resources/lanjuLogo.png
new file mode 100644
index 0000000..896a8af
Binary files /dev/null and b/shangjian/XGL/Resources/lanjuLogo.png differ
diff --git a/shangjian/XGL/Resources/lanjuLogoNew.ico b/shangjian/XGL/Resources/lanjuLogoNew.ico
new file mode 100644
index 0000000..b3466d8
Binary files /dev/null and b/shangjian/XGL/Resources/lanjuLogoNew.ico differ
diff --git a/shangjian/XGL/Views/DryingRoomUC.xaml b/shangjian/XGL/Views/DryingRoomUC.xaml
index e504420..3a4f906 100644
--- a/shangjian/XGL/Views/DryingRoomUC.xaml
+++ b/shangjian/XGL/Views/DryingRoomUC.xaml
@@ -17,19 +17,19 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
@@ -365,8 +400,19 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/shangjian/XGL/Views/DryingRoomUC.xaml.cs b/shangjian/XGL/Views/DryingRoomUC.xaml.cs
index 9dfa746..b301573 100644
--- a/shangjian/XGL/Views/DryingRoomUC.xaml.cs
+++ b/shangjian/XGL/Views/DryingRoomUC.xaml.cs
@@ -77,7 +77,37 @@ namespace XGL.Views
),
System.Windows.Threading.DispatcherPriority.Render);
}
-
+
+ DataTable dtDringRoomData = dringRoomService.GetDringRoomData(deviceCode, 1);
+ if (dtDringRoomData != null)
+ {
+ //使用Dispatcher来在UI线程上更新UI
+ this.Dispatcher.Invoke(
+ new Action(() =>
+ {
+ DringRoomListBox.ItemsSource = null;
+ DringRoomListBox.Items.Clear();
+ DringRoomListBox.ItemsSource = dtDringRoomData.DefaultView;
+ }
+ ),
+ System.Windows.Threading.DispatcherPriority.Render);
+ }
+
+ DataTable dtDringRoomOuter = dringRoomService.GetDringRoomData(deviceCode, 0);
+ if (dtDringRoomOuter != null)
+ {
+ //使用Dispatcher来在UI线程上更新UI
+ this.Dispatcher.Invoke(
+ new Action(() =>
+ {
+ DringRoomOuterListBox.ItemsSource = null;
+ DringRoomOuterListBox.Items.Clear();
+ DringRoomOuterListBox.ItemsSource = dtDringRoomOuter.DefaultView;
+ }
+ ),
+ System.Windows.Threading.DispatcherPriority.Render);
+ }
+
//if (dt.Rows[0][0].ToString() == "1")
//{
// this.Dispatcher.Invoke(
@@ -97,8 +127,8 @@ namespace XGL.Views
private void GetDringRoomData()
{
- DringRoomListBox.ItemsSource = null;
- DringRoomListBox.Items.Clear();
+ //DringRoomListBox.ItemsSource = null;
+ //DringRoomListBox.Items.Clear();
DataTable dt = dringRoomService.GetDringRoomData(deviceCode, 1);
if (dt == null)
{
@@ -106,37 +136,37 @@ namespace XGL.Views
}
- int index = 0;
- int i = 0;
- foreach (DataRow item in dt.Rows)
- {
- index = i++;
- string rfid = item["rfid_no"].ToString();
- string workorder_code = item["workorder_code"].ToString();
- string materialCode = item["material_code"].ToString();
- string inTime = item["update_time"].ToString();
+ //int index = 0;
+ //int i = 0;
+ //foreach (DataRow item in dt.Rows)
+ //{
+ // index = i++;
+ // string rfid = item["rfid_no"].ToString();
+ // string workorder_code = item["workorder_code"].ToString();
+ // string materialCode = item["material_code"].ToString();
+ // string inTime = item["update_time"].ToString();
- TimeSpan ts;
+ // TimeSpan ts;
- ts = DateTime.Now - Convert.ToDateTime(inTime);
+ // ts = DateTime.Now - Convert.ToDateTime(inTime);
- int minuteDiff = Convert.ToInt32(ts.TotalMinutes);
- //string workorder_code = item["workorder_code"].ToString();
- ModuleUC uc = new ModuleUC(index.ToString(), rfid, workorder_code, materialCode, minuteDiff);
+ // int minuteDiff = Convert.ToInt32(ts.TotalMinutes);
+ // //string workorder_code = item["workorder_code"].ToString();
+ // ModuleUC uc = new ModuleUC(index.ToString(), rfid, workorder_code, materialCode, minuteDiff);
- DringRoomListBox.Items.Add(uc);
- }
- //DringRoomListBox.ItemsSource = null;
- //DringRoomListBox.Items.Clear();
- //DringRoomListBox.ItemsSource = dt.DefaultView;
+ // DringRoomListBox.Items.Add(uc);
+ //}
+ DringRoomListBox.ItemsSource = null;
+ DringRoomListBox.Items.Clear();
+ DringRoomListBox.ItemsSource = dt.DefaultView;
}
private void GetOutDringRoomData()
{
- DringRoomOuterListBox.ItemsSource = null;
- DringRoomOuterListBox.Items.Clear();
+ //DringRoomOuterListBox.ItemsSource = null;
+ //DringRoomOuterListBox.Items.Clear();
DataTable dt = dringRoomService.GetDringRoomData(deviceCode, 0);
if (dt == null)
{
@@ -144,26 +174,28 @@ namespace XGL.Views
}
- int index = 0;
- int i = 0;
- foreach (DataRow item in dt.Rows)
- {
- index = i++;
- string rfid = item["rfid_no"].ToString();
- string workorder_code = item["workorder_code"].ToString();
- string materialCode = item["material_code"].ToString();
- string inTime = item["update_time"].ToString();
- TimeSpan ts;
+ //int index = 0;
+ //int i = 0;
+ //foreach (DataRow item in dt.Rows)
+ //{
+ // index = i++;
+ // string rfid = item["rfid_no"].ToString();
+ // string workorder_code = item["workorder_code"].ToString();
+ // string materialCode = item["material_code"].ToString();
+ // string inTime = item["update_time"].ToString();
+ // TimeSpan ts;
- ts = DateTime.Now - Convert.ToDateTime(inTime);
+ // ts = DateTime.Now - Convert.ToDateTime(inTime);
- int minuteDiff = Convert.ToInt32(ts.TotalMinutes);
- //string workorder_code = item["workorder_code"].ToString();
- ModuleUC uc = new ModuleUC(index.ToString(), rfid, workorder_code, materialCode, minuteDiff);
-
- DringRoomOuterListBox.Items.Add(uc);
- }
+ // int minuteDiff = Convert.ToInt32(ts.TotalMinutes);
+ // //string workorder_code = item["workorder_code"].ToString();
+ // ModuleUC uc = new ModuleUC(index.ToString(), rfid, workorder_code, materialCode, minuteDiff);
+ // DringRoomOuterListBox.Items.Add(uc);
+ //}
+ DringRoomOuterListBox.ItemsSource = null;
+ DringRoomOuterListBox.Items.Clear();
+ DringRoomOuterListBox.ItemsSource = dt.DefaultView;
}
diff --git a/shangjian/XGL/Views/LanJu_InOut.xaml b/shangjian/XGL/Views/LanJu_InOut.xaml
index 634ad03..255d5e9 100644
--- a/shangjian/XGL/Views/LanJu_InOut.xaml
+++ b/shangjian/XGL/Views/LanJu_InOut.xaml
@@ -8,6 +8,13 @@
Width="1920"
Height="330"
mc:Ignorable="d" Loaded="UserControl_Loaded">
+
+
+