From 08dd2afd7a9614dad029e94918516b068d413cac Mon Sep 17 00:00:00 2001 From: huanghongfeng <huanghongfeng@hnkhzn.com> Date: 星期四, 04 七月 2024 17:46:41 +0800 Subject: [PATCH] 大屏 --- 代码管理/PCS/WCS_Server/WIDESEA_WCS/Jobs/equipment/One_two_unitJob.cs | 123 ++++++++-------------------------------- 1 files changed, 26 insertions(+), 97 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WCS/Jobs/equipment/One_two_unitJob.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WCS/Jobs/equipment/One_two_unitJob.cs" index dbafe1e..b6aa078 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WCS/Jobs/equipment/One_two_unitJob.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WCS/Jobs/equipment/One_two_unitJob.cs" @@ -105,19 +105,20 @@ VOLContext context = new VOLContext(); Idt_plcinfodetailRepository repository = new dt_plcinfodetailRepository(context); List<dt_plcinfodetail> plcinfodetail = new List<dt_plcinfodetail>(); - string name = "VK5"; - for (int i = 1; i <= 2; i++) + string name = "Pipeline"; + for (int i = 1; i <= 3; i++) { dt_plcinfodetail dt_Plcinfodetail1 = new dt_plcinfodetail() { plcdetail_id = Guid.NewGuid(), plcdetail_iotype = name, - plcdetail_db = "DB603", - plcdetail_value = (0 + (i - 1) * 144).ToString(), - plcdetail_valtype = "byte", - plcdetail_name = "oi_on", - plcdetail_opratortype = "labeller", - plcdetail_remark = "鐢宠", + plcdetail_db = "DB29", + plcdetail_value = (21 + (i - 1) * 80).ToString(), + plcdetail_valtype = "string", + plcdetail_len = 20, + plcdetail_name = "R_Wheel_SN", + plcdetail_opratortype = "oiler", + plcdetail_remark = "Wheel_SN", plcdetail_number = i + "鍗曞厓", }; plcinfodetail.Add(dt_Plcinfodetail1); @@ -125,13 +126,12 @@ { plcdetail_id = Guid.NewGuid(), plcdetail_iotype = name, - plcdetail_db = "DB603", - plcdetail_value = (2 + (i - 1) * 144).ToString(), - plcdetail_len = 20, - plcdetail_valtype = "string", - plcdetail_name = "o_wp_id", - plcdetail_opratortype = "labeller", - plcdetail_remark = "杞﹁疆SN鍙�", + plcdetail_db = "DB29", + plcdetail_value = (22 + (i - 1) * 80).ToString(), + plcdetail_valtype = "int16", + plcdetail_name = "R_Wheel_Type", + plcdetail_opratortype = "oiler", + plcdetail_remark = "Wheel_Type", plcdetail_number = i + "鍗曞厓", }; plcinfodetail.Add(dt_Plcinfodetail2); @@ -139,13 +139,12 @@ { plcdetail_id = Guid.NewGuid(), plcdetail_iotype = name, - plcdetail_db = "DB603", - plcdetail_value = (24 + (i - 1) * 144).ToString(), - plcdetail_len = 20, - plcdetail_valtype = "string", - plcdetail_name = "i_job_id", - plcdetail_opratortype = "labeller", - plcdetail_remark = "宸ュ崟缂栧彿", + plcdetail_db = "DB29", + plcdetail_value = (24 + (i - 1) * 80).ToString(), + plcdetail_valtype = "byte", + plcdetail_name = "R_Part_Status", + plcdetail_opratortype = "oiler", + plcdetail_remark = "Part_Status", plcdetail_number = i + "鍗曞厓", }; plcinfodetail.Add(dt_Plcinfodetail3); @@ -153,85 +152,15 @@ { plcdetail_id = Guid.NewGuid(), plcdetail_iotype = name, - plcdetail_db = "DB603", - plcdetail_value = (22 + (i - 1) * 144).ToString(), + plcdetail_db = "DB29", + plcdetail_value = (25 + (i - 1) * 80).ToString(), plcdetail_valtype = "byte", - plcdetail_name = "i_status", - plcdetail_opratortype = "labeller", - plcdetail_remark = "鐘舵��", + plcdetail_name = "R_Part_Process", + plcdetail_opratortype = "oiler", + plcdetail_remark = "Part_Process", plcdetail_number = i + "鍗曞厓", }; plcinfodetail.Add(dt_Plcinfodetail4); - dt_plcinfodetail dt_Plcinfodetail5 = new dt_plcinfodetail() - { - plcdetail_id = Guid.NewGuid(), - plcdetail_iotype = name, - plcdetail_db = "DB603", - plcdetail_value = (44 + (i - 1) * 144).ToString(), - plcdetail_len = 20, - plcdetail_valtype = "string", - plcdetail_name = "i_heat_id", - plcdetail_opratortype = "labeller", - plcdetail_remark = "鐐変唬鍙�", - plcdetail_number = i + "鍗曞厓", - }; - plcinfodetail.Add(dt_Plcinfodetail5); - dt_plcinfodetail dt_Plcinfodetail6 = new dt_plcinfodetail() - { - plcdetail_id = Guid.NewGuid(), - plcdetail_iotype = name, - plcdetail_db = "DB603", - plcdetail_value = (64 + (i - 1) * 144).ToString(), - plcdetail_len = 20, - plcdetail_valtype = "string", - plcdetail_name = "i_billet_id", - plcdetail_opratortype = "labeller", - plcdetail_remark = "閽㈠澂鍙�", - plcdetail_number = i + "鍗曞厓", - }; - plcinfodetail.Add(dt_Plcinfodetail6); - dt_plcinfodetail dt_Plcinfodetail7 = new dt_plcinfodetail() - { - plcdetail_id = Guid.NewGuid(), - plcdetail_iotype = name, - plcdetail_db = "DB603", - plcdetail_value = (84 + (i - 1) * 144).ToString(), - plcdetail_len = 20, - plcdetail_valtype = "string", - plcdetail_name = "i_batch_id", - plcdetail_opratortype = "labeller", - plcdetail_remark = "鐑鐞嗘壒娆�", - plcdetail_number = i + "鍗曞厓", - }; - plcinfodetail.Add(dt_Plcinfodetail7); - dt_plcinfodetail dt_Plcinfodetail8 = new dt_plcinfodetail() - { - plcdetail_id = Guid.NewGuid(), - plcdetail_iotype = name, - plcdetail_db = "DB603", - plcdetail_value = (104 + (i - 1) * 144).ToString(), - plcdetail_len = 20, - plcdetail_valtype = "string", - plcdetail_name = "i_drawing_id", - plcdetail_opratortype = "labeller", - plcdetail_remark = "鍥惧彿", - plcdetail_number = i + "鍗曞厓", - }; - plcinfodetail.Add(dt_Plcinfodetail8); - dt_plcinfodetail dt_Plcinfodetail9 = new dt_plcinfodetail() - { - plcdetail_id = Guid.NewGuid(), - plcdetail_iotype = name, - plcdetail_db = "DB603", - plcdetail_value = (124 + (i - 1) * 144).ToString(), - plcdetail_len = 20, - plcdetail_valtype = "string", - plcdetail_name = "i_wheel_type", - plcdetail_opratortype = "labeller", - plcdetail_remark = "i_wheel_type", - plcdetail_number = i + "鍗曞厓", - }; - plcinfodetail.Add(dt_Plcinfodetail9); } repository.AddRange(plcinfodetail, true); } -- Gitblit v1.9.3