diff --git a/shangjian/.vs/BL/v17/.suo b/shangjian/.vs/BL/v17/.suo
index f38dab6..4c35cc8 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 48c507d..935d974 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 40af050..015a3a9 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 7ce41cb..7eae922 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 1ac96da..9275d5c 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 d45929b..0f36a13 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 da2ea05..554d2ac 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 6e8be3a..f35e275 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 b1d4766..9baf824 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 bc5a9ec..61f542a 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 7c1351d..148ca2f 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/obj/Debug/CentralControl.csproj.AssemblyReference.cache b/shangjian/CentralControl/obj/Debug/CentralControl.csproj.AssemblyReference.cache
index cf64437..3ef7eb1 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 48c507d..935d974 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 40af050..015a3a9 100644
Binary files a/shangjian/CentralControl/obj/Debug/CentralControl.pdb and b/shangjian/CentralControl/obj/Debug/CentralControl.pdb differ
diff --git a/shangjian/CommonFunc/bin/x86/Debug/CommonFunc.dll b/shangjian/CommonFunc/bin/x86/Debug/CommonFunc.dll
index 7ce41cb..7eae922 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 1ac96da..9275d5c 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/XGL.Models.dll b/shangjian/CommonFunc/bin/x86/Debug/XGL.Models.dll
index 6e8be3a..f35e275 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 b1d4766..9baf824 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 21783d9..16d2689 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 7ce41cb..7eae922 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 1ac96da..9275d5c 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 7ce41cb..7eae922 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 1ac96da..9275d5c 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/XGL.Models.dll b/shangjian/LanJuLib/bin/Debug/XGL.Models.dll
index 6e8be3a..f35e275 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 b1d4766..9baf824 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 b5953e0..51c354e 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/Libs/System.Windows.Interactivity.dll b/shangjian/Libs/System.Windows.Interactivity.dll
new file mode 100644
index 0000000..931c744
Binary files /dev/null and b/shangjian/Libs/System.Windows.Interactivity.dll differ
diff --git a/shangjian/Libs/Telerik.Windows.Controls.dll b/shangjian/Libs/Telerik.Windows.Controls.dll
new file mode 100644
index 0000000..3d48cc0
Binary files /dev/null and b/shangjian/Libs/Telerik.Windows.Controls.dll differ
diff --git a/shangjian/Libs/WpfCustomControlLibrary1.dll b/shangjian/Libs/WpfCustomControlLibrary1.dll
new file mode 100644
index 0000000..6393686
Binary files /dev/null and b/shangjian/Libs/WpfCustomControlLibrary1.dll differ
diff --git a/shangjian/XGL.Data/DBService/DringRoomService.cs b/shangjian/XGL.Data/DBService/DringRoomService.cs
index dfdb4c0..c1ac816 100644
--- a/shangjian/XGL.Data/DBService/DringRoomService.cs
+++ b/shangjian/XGL.Data/DBService/DringRoomService.cs
@@ -16,10 +16,16 @@ namespace XGL.Data.DBService
///
///
///
- public DataTable GetDringRoomInfo()
+ public DataTable GetDringRoomInfo(string list)
{
-
- string sql = $@"select equipment_code as quipCode,equipment_name as quipName,equipment_type_code from base_equipment where equipment_type_code = 'equ_type_hf'";
+ string[] str = list.Split(',');
+ string where = "";
+ foreach (string str2 in str)
+ {
+ 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}";
DataSet dtset = Utils.netClientDBHelper.getDataSet(sql);
if (dtset != null && dtset.Tables.Count > 0 && dtset.Tables[0].Rows.Count > 0)
@@ -47,6 +53,25 @@ namespace XGL.Data.DBService
//where rfid !=null and equipmentCode = '{devicecode}' and rfid_status = '1' and rfid not in(select rfid from mes_material_transfer_result where taskcode = '1' and rfid_status = '1')
+ DataSet dtset = Utils.netClientDBHelper.getDataSet(sql);
+ if (dtset != null && dtset.Tables.Count > 0 && dtset.Tables[0].Rows.Count > 0)
+ {
+ return dtset.Tables[0];
+ }
+ return null;
+ }
+
+ ///
+ /// 获取烘房温湿度
+ ///
+ ///
+ ///
+ ///
+ public DataTable GetTemperAndHumilly(string devicecode)
+ {
+
+ string sql = $@"select isnull(isvalue,0) from base_equipment_attached where device_code = '{devicecode}' and (property='temperature' or property = 'humidity') ; ";
+
DataSet dtset = Utils.netClientDBHelper.getDataSet(sql);
if (dtset != null && dtset.Tables.Count > 0 && dtset.Tables[0].Rows.Count > 0)
{
diff --git a/shangjian/XGL.Data/DBService/FormingMachineService.cs b/shangjian/XGL.Data/DBService/FormingMachineService.cs
index c9ec139..d1aa2e2 100644
--- a/shangjian/XGL.Data/DBService/FormingMachineService.cs
+++ b/shangjian/XGL.Data/DBService/FormingMachineService.cs
@@ -5,6 +5,7 @@ using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using XGL.Models.Model.FoamingMac;
namespace XGL.Data.DBService
{
@@ -17,12 +18,13 @@ namespace XGL.Data.DBService
///
///
public DataTable GetFormingMachineInfo(string devicecode)
- {
-
- string sql = $@"SELECT ord.workorder_id,ord.workorder_code,res.OrderCode,product_name,product_code,isnull(car_num,0) as car_num,isnull([begin],'1900-01-01 08:00:00') as [begin],ord.status ,ord.route_code
+ {
+ string sql = $@"SELECT ord.workorder_id,ord.workorder_code,res.OrderCode,product_name,product_code,isnull(car_num,0) as car_num,
+isnull([begin],'1900-01-01 08:00:00') as [begin],ord.status ,ord.route_code,ord.attr1,work_batch_code,res.taskcode,res.rfid
FROM [dbo].[mes_material_transfer_result] res
LEFT JOIN pro_order_workorder ord on res.OrderCode = ord.workorder_id
-where equipmentCode = '{devicecode}'; ";
+LEFT JOIN pro_rfid_process_detail rfid on rfid.workorder_code = ord.workorder_code and rfid.rfid = res.rfid
+where equipmentCode = '{devicecode}' and rfid_status = '1'; ";
DataSet dtset = Utils.netClientDBHelper.getDataSet(sql);
if (dtset != null && dtset.Tables.Count > 0 && dtset.Tables[0].Rows.Count > 0)
@@ -93,7 +95,7 @@ where res.taskcode = '1' and equipmentCode = '{devicecode}'; ";
}
///
- /// 获取工单当前状态
+ /// 获取工单当前状态,弃用
///
///
///
@@ -123,5 +125,55 @@ where res.taskcode = '1' and equipmentCode = '{devicecode}'; ";
return issucc > 0 ? true : false;
}
+
+ ///
+ /// 更新工单
+ ///
+ ///
+ ///
+ ///
+ public bool InsertData(FoamingMacModel formingModel)
+ {
+
+ string sql = $@"INSERT INTO [lanju_op_xiaolan_ds].[dbo].[mes_material_transfer_result] (
+ [id],
+ [begin],
+ [beout],
+ [equipmentCode],
+ [OrderCode],
+ [sku],
+ [planID],
+ [rfid],
+ [now_process_id],
+ [status],
+ [create_time],
+ [rfid_status],
+ [taskcode],
+ [state],
+ [update_time]
+)
+VALUES
+ (
+ '{CommonFunc.Common.GetUUID()}',
+ 'GetDate()',
+ 'GetDate()',
+ '{Utils.GetAppSetting("DeviceCode")}',
+ '{formingModel.workorder_id}',
+ '{formingModel.product_code}',
+ '',
+ '{formingModel.rfid}',
+ '',
+ '4',
+ 'GetDate()',
+ '1',
+ '0',
+ '1',
+ 'GetDate()'
+ );";
+
+ int issucc = Utils.netClientDBHelper.executeUpdate(sql);
+
+ return issucc > 0 ? true : false;
+ }
}
}
diff --git a/shangjian/XGL.Data/bin/x86/Debug/CommonFunc.dll b/shangjian/XGL.Data/bin/x86/Debug/CommonFunc.dll
index 7ce41cb..7eae922 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 1ac96da..9275d5c 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/XGL.Data.dll b/shangjian/XGL.Data/bin/x86/Debug/XGL.Data.dll
index d45929b..0f36a13 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 da2ea05..554d2ac 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 6e8be3a..f35e275 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 b1d4766..9baf824 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 1038644..de06cda 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 d45929b..0f36a13 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 da2ea05..554d2ac 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/Model/FoamingMac/FoamingMacModel.cs b/shangjian/XGL.Model/Model/FoamingMac/FoamingMacModel.cs
index 267437c..a46abb0 100644
--- a/shangjian/XGL.Model/Model/FoamingMac/FoamingMacModel.cs
+++ b/shangjian/XGL.Model/Model/FoamingMac/FoamingMacModel.cs
@@ -23,5 +23,10 @@ namespace XGL.Models.Model.FoamingMac
public string product_date { get; set; }
public string create_by { get; set; }
public string process_id { get; set; }
+
+ public string attr1 { get; set; }
+ public string work_batch_code { get; set; }
+ public string taskcode { get; set; }
+ public string rfid { get; set; }
}
}
diff --git a/shangjian/XGL.Model/bin/Debug/XGL.Models.dll b/shangjian/XGL.Model/bin/Debug/XGL.Models.dll
index 6e8be3a..f35e275 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 b1d4766..9baf824 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.csproj.AssemblyReference.cache b/shangjian/XGL.Model/obj/Debug/XGL.Models.csproj.AssemblyReference.cache
index aa575d3..709a5dc 100644
Binary files a/shangjian/XGL.Model/obj/Debug/XGL.Models.csproj.AssemblyReference.cache and b/shangjian/XGL.Model/obj/Debug/XGL.Models.csproj.AssemblyReference.cache differ
diff --git a/shangjian/XGL.Model/obj/Debug/XGL.Models.dll b/shangjian/XGL.Model/obj/Debug/XGL.Models.dll
index 6e8be3a..f35e275 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 b1d4766..9baf824 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 bc5a9ec..61f542a 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 7c1351d..148ca2f 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.dll b/shangjian/XGL.Thrift/obj/Debug/XGL.Thrift.dll
index bc5a9ec..61f542a 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 7c1351d..148ca2f 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 4718bc0..34dac82 100644
--- a/shangjian/XGL/App.config
+++ b/shangjian/XGL/App.config
@@ -1,105 +1,108 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- http://192.168.1.125:8080/webservice/interfacesService
-
-
- http://10.142.236.11:81/WebService.asmx
-
-
- http://10.142.236.11:81/WebService.asmx
-
-
- http://localhost:55277/WebService.asmx
-
-
-
-
- http://10.142.236.11:81/WebService.asmx
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ http://192.168.1.125:8080/webservice/interfacesService
+
+
+ http://10.142.236.11:81/WebService.asmx
+
+
+ http://10.142.236.11:81/WebService.asmx
+
+
+ http://localhost:55277/WebService.asmx
+
+
+
+
+ http://10.142.236.11:81/WebService.asmx
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/shangjian/XGL/FormItem/Main.xaml b/shangjian/XGL/FormItem/Main.xaml
index 79a536e..eabd08d 100644
--- a/shangjian/XGL/FormItem/Main.xaml
+++ b/shangjian/XGL/FormItem/Main.xaml
@@ -379,7 +379,7 @@
FontSize="20"
Text="设备状态:" />
-
+
+
-
+
diff --git a/shangjian/XGL/LoginPage.xaml.cs b/shangjian/XGL/LoginPage.xaml.cs
index acfb4f4..97b887e 100644
--- a/shangjian/XGL/LoginPage.xaml.cs
+++ b/shangjian/XGL/LoginPage.xaml.cs
@@ -47,7 +47,8 @@ namespace XGL
{
try
{
- this.dldh.IsActive = true;//遮罩层可见
+ //this.dldh.IsActive = true;//遮罩层可见
+ this.dldh.Visibility = Visibility.Visible;//遮罩层可见
zzdl.Visibility = Visibility.Visible;
ul = new UserLogin
{
@@ -190,7 +191,8 @@ namespace XGL
CustomMessageBox.Show("登录异常,请重试", CustomMessageBoxIcon.Error);
break;
}
- dldh.IsActive = false;
+ //dldh.IsActive = false;
+ this.dldh.Visibility = Visibility.Hidden;//遮罩层可见
zzdl.Visibility = Visibility.Collapsed;
}
@@ -207,7 +209,8 @@ namespace XGL
try
{
username.Focus();
- dldh.IsActive = false;
+ //dldh.IsActive = false;
+ this.dldh.Visibility = Visibility.Hidden;//遮罩层可见
zzdl.Visibility = Visibility.Collapsed;
string name = Common.IniReadValue("登录明细", "loginUser");
username.Text = name;
diff --git a/shangjian/XGL/Resources/startOrder.png b/shangjian/XGL/Resources/startOrder.png
new file mode 100644
index 0000000..cce8990
Binary files /dev/null and b/shangjian/XGL/Resources/startOrder.png differ
diff --git a/shangjian/XGL/Resources/startOrder.jpg b/shangjian/XGL/Resources/startOrder1.jpg
similarity index 100%
rename from shangjian/XGL/Resources/startOrder.jpg
rename to shangjian/XGL/Resources/startOrder1.jpg
diff --git a/shangjian/XGL/Tools/OrderInOutConverter.cs b/shangjian/XGL/Tools/OrderInOutConverter.cs
new file mode 100644
index 0000000..421a80d
--- /dev/null
+++ b/shangjian/XGL/Tools/OrderInOutConverter.cs
@@ -0,0 +1,32 @@
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Data;
+
+namespace XGL.Tools
+{
+ public class OrderInOutConverter : IValueConverter
+ {
+ public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ // 根据输入值返回对应的输出值 已派发w1未派w0活动w2报工w3
+ if (value.Equals("0"))
+ {
+ return "进";
+ }
+ else
+ {
+ return "出";
+ }
+ }
+
+ public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ // 如果需要双向绑定,也需要实现 ConvertBack 方法
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/shangjian/XGL/Views/CheckUserWin.xaml b/shangjian/XGL/Views/CheckUserWin.xaml
index 5029f6d..88df865 100644
--- a/shangjian/XGL/Views/CheckUserWin.xaml
+++ b/shangjian/XGL/Views/CheckUserWin.xaml
@@ -32,8 +32,9 @@
-
+
+
diff --git a/shangjian/XGL/Views/DryingRoomUC.xaml b/shangjian/XGL/Views/DryingRoomUC.xaml
index d6a9e73..e504420 100644
--- a/shangjian/XGL/Views/DryingRoomUC.xaml
+++ b/shangjian/XGL/Views/DryingRoomUC.xaml
@@ -37,35 +37,35 @@
-
-
-
-
-
@@ -77,11 +77,11 @@
HorizontalAlignment="Left" >
-
-
+
@@ -149,132 +149,7 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -375,21 +338,35 @@
-
+
-
+
-
-
+
+
+
+
+
-
-
+
diff --git a/shangjian/XGL/Views/DryingRoomUC.xaml.cs b/shangjian/XGL/Views/DryingRoomUC.xaml.cs
index 95a14d8..9dfa746 100644
--- a/shangjian/XGL/Views/DryingRoomUC.xaml.cs
+++ b/shangjian/XGL/Views/DryingRoomUC.xaml.cs
@@ -16,6 +16,7 @@ using System.Windows.Navigation;
using System.Windows.Shapes;
using XGL.Data.DBService;
using XGL.Tools;
+using System.Timers;
namespace XGL.Views
{
@@ -25,6 +26,9 @@ namespace XGL.Views
public partial class DryingRoomUC : UserControl
{
DringRoomService dringRoomService = new DringRoomService();
+ Timer timerDeciveState = new Timer();
+ string deviceCode = "";
+
public DryingRoomUC()
{
InitializeComponent();
@@ -32,22 +36,76 @@ namespace XGL.Views
private void UserControl_Loaded(object sender, RoutedEventArgs e)
{
+ timerDeciveState.Interval = Utils.GetAppSetting("GetDeviceStateInterval") == "" ? 15000 : Convert.ToInt32(Utils.GetAppSetting("GetDeviceStateInterval"));
+ timerDeciveState.Elapsed += TimerDeciveState_Elapsed;
+ timerDeciveState.Start();
InitComBoboxData();
GetDringRoomData();
GetOutDringRoomData();
+ GetDeviceInfo();
+ }
+
+ private void GetDeviceInfo()
+ {
+ TimerDeciveState_Elapsed(null,null);
+ }
+
+ private void TimerDeciveState_Elapsed(object sender, ElapsedEventArgs e)
+ {
+ DataTable dt = dringRoomService.GetTemperAndHumilly(deviceCode);
+ if (dt == null)
+ {
+ //使用Dispatcher来在UI线程上更新UI
+ this.Dispatcher.Invoke(
+ new Action(() =>
+ {
+ lbCurrTemperature.Content = "0";
+ lbCurrHumilly.Content = "0";
+ }
+ ),
+ System.Windows.Threading.DispatcherPriority.Render);
+ }
+ else
+ {
+ //使用Dispatcher来在UI线程上更新UI
+ this.Dispatcher.Invoke(
+ new Action(() =>
+ {
+ lbCurrTemperature.Content = dt.Rows[0][0].ToString();
+ lbCurrHumilly.Content = dt.Rows[1][0].ToString();
+ }
+ ),
+ System.Windows.Threading.DispatcherPriority.Render);
+ }
+
+ //if (dt.Rows[0][0].ToString() == "1")
+ //{
+ // this.Dispatcher.Invoke(
+ // new Action(() => { LbDeviceState.Background = Brushes.Green; }
+ // ),
+ // System.Windows.Threading.DispatcherPriority.Render);
+ //}
+ //else
+ //{
+ // this.Dispatcher.Invoke(
+ // new Action(() => { LbDeviceState.Background = Brushes.Red; }
+ // ),
+ // System.Windows.Threading.DispatcherPriority.Render);
+
+ //}
}
private void GetDringRoomData()
{
DringRoomListBox.ItemsSource = null;
DringRoomListBox.Items.Clear();
- DataTable dt = dringRoomService.GetDringRoomData(comboDryRoomInfo.SelectedValue.ToString(),1);
+ DataTable dt = dringRoomService.GetDringRoomData(deviceCode, 1);
if (dt == null)
{
return;
}
-
-
+
+
int index = 0;
int i = 0;
foreach (DataRow item in dt.Rows)
@@ -59,24 +117,27 @@ namespace XGL.Views
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);
-
+
DringRoomListBox.Items.Add(uc);
}
-
-
+ //DringRoomListBox.ItemsSource = null;
+ //DringRoomListBox.Items.Clear();
+ //DringRoomListBox.ItemsSource = dt.DefaultView;
+
+
}
private void GetOutDringRoomData()
{
DringRoomOuterListBox.ItemsSource = null;
DringRoomOuterListBox.Items.Clear();
- DataTable dt = dringRoomService.GetDringRoomData(comboDryRoomInfo.SelectedValue.ToString(),0);
+ DataTable dt = dringRoomService.GetDringRoomData(deviceCode, 0);
if (dt == null)
{
return;
@@ -108,7 +169,7 @@ namespace XGL.Views
private void InitComBoboxData()
{
- DataTable dt = dringRoomService.GetDringRoomInfo();
+ DataTable dt = dringRoomService.GetDringRoomInfo(Utils.GetAppSetting("DryingHouseList"));
if (dt == null)
{
CustomMessageBox.Show("没有维护设备信息,请维护设备后重试!", CustomMessageBoxIcon.Warning);
@@ -129,8 +190,16 @@ namespace XGL.Views
private void comboDryRoomInfo_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
string hfCode = comboDryRoomInfo.SelectedValue.ToString();//.Text;
+ deviceCode = hfCode;
GetDringRoomData();
GetOutDringRoomData();
+ GetDeviceInfo();
+ }
+
+ private void btnRefrsh_Click(object sender, RoutedEventArgs e)
+ {
+ GetDringRoomData();
+ GetOutDringRoomData();
}
}
public class EquipmentMode
diff --git a/shangjian/XGL/Views/LanJu_Complete.xaml b/shangjian/XGL/Views/LanJu_Complete.xaml
index 42d17ac..ba8fa73 100644
--- a/shangjian/XGL/Views/LanJu_Complete.xaml
+++ b/shangjian/XGL/Views/LanJu_Complete.xaml
@@ -31,13 +31,13 @@
-
+
diff --git a/shangjian/XGL/Views/LanJu_InOut.xaml b/shangjian/XGL/Views/LanJu_InOut.xaml
index ee5209e..634ad03 100644
--- a/shangjian/XGL/Views/LanJu_InOut.xaml
+++ b/shangjian/XGL/Views/LanJu_InOut.xaml
@@ -31,13 +31,13 @@
-
+
@@ -45,8 +45,8 @@
-
-
+
+
diff --git a/shangjian/XGL/Views/LanJu_Material.xaml b/shangjian/XGL/Views/LanJu_Material.xaml
index ddea67f..a0390a1 100644
--- a/shangjian/XGL/Views/LanJu_Material.xaml
+++ b/shangjian/XGL/Views/LanJu_Material.xaml
@@ -56,12 +56,12 @@
Margin="25,0"
LoadingRow="DataGrid_LoadingRow"
HeadersVisibility="Column"
- AutoGenerateColumns="False">
+ AutoGenerateColumns="False" FontSize="20" IsReadOnly="True" CanUserAddRows="False" VerticalContentAlignment="Center" HorizontalContentAlignment="Center">
@@ -74,7 +74,7 @@
-
+
diff --git a/shangjian/XGL/Views/LanJu_Operator.xaml b/shangjian/XGL/Views/LanJu_Operator.xaml
index c623e31..1cffc8b 100644
--- a/shangjian/XGL/Views/LanJu_Operator.xaml
+++ b/shangjian/XGL/Views/LanJu_Operator.xaml
@@ -12,24 +12,22 @@
mc:Ignorable="d" Loaded="UCOperator_Loaded">
+
-
+
-
-
-
+
+
+
@@ -126,7 +124,7 @@
Height="90" Visibility="Collapsed">