diff --git a/Epost.BLL/Work_DisplayJobThread.cs b/Epost.BLL/Work_DisplayJobThread.cs index 1064e45..8c1e9ff 100644 --- a/Epost.BLL/Work_DisplayJobThread.cs +++ b/Epost.BLL/Work_DisplayJobThread.cs @@ -135,49 +135,54 @@ namespace Epost.BLL var nowmodel = nowJoblist.FirstOrDefault(); LogHelper.WriteLogInfo("进入任务点亮=====matchid=" + nowmodel.Matchid + "===orderid===" + nowmodel.OrderID + "=====sku==" + nowmodel.Sku + "========"); - #region 点亮任务标签 - foreach (JobModel item in nowJoblist.ToArray()) + #region 点亮任务标签 + foreach (JobModel item in nowJoblist.ToArray()) + { + + //#region 回显设备锁定 + //if (queueDT.Rows[0]["lightcolor"].ToString() == EnumHelper.EMToDescriptionString(LightColor.Color.Blue)) + //{ + + // LabelParamModel locklamodel = new LabelParamModel(); + // locklamodel.Address = item.Address.ToString(); + // locklamodel.ControlIP = item.ControlIP.ToString(); + // locklamodel.Command = "LOCK"; + // locklamodel.Parameter = "11111000"; + // locklamodel.Type = "N"; + // list.Add(locklamodel); + + //} + //#endregion + // else + //{ + //判断设备当前有没有被点亮 + List isshowList = jobList.FindAll(p => p.Address == item.Address && p.ControlIP == item.ControlIP && p.State == 1); + if (!isshowList.Any()) { - - //#region 回显设备锁定 - //if (queueDT.Rows[0]["lightcolor"].ToString() == EnumHelper.EMToDescriptionString(LightColor.Color.Blue)) - //{ - - // LabelParamModel locklamodel = new LabelParamModel(); - // locklamodel.Address = item.Address.ToString(); - // locklamodel.ControlIP = item.ControlIP.ToString(); - // locklamodel.Command = "LOCK"; - // locklamodel.Parameter = "11111000"; - // locklamodel.Type = "N"; - // list.Add(locklamodel); - - //} - //#endregion - // else - //{ - - List manyJoblist = nowJoblist.FindAll(m => m.Tolocation == item.Tolocation); + List manyJoblist = nowJoblist.FindAll(m => m.Tolocation == item.Tolocation && m.Address == item.Address); int quantity = item.Quantity; LabelParamModel lamodel = new LabelParamModel(); lamodel.Address = item.Address.ToString(); lamodel.ControlIP = item.ControlIP.ToString(); lamodel.Command = "DISPLAY_JOB"; - #region 同一个货位的数据合并显示 - if (manyJoblist.Count > 1) - { - if (manyJoblist.FindAll(m => m.State == 0).Any()) + #region 同一个货位的数据合并显示 + if (manyJoblist.Count > 1) { - foreach (JobModel mitem in manyJoblist) + quantity = 0; + if (manyJoblist.FindAll(m => m.State == 0).Any()) { - quantity += mitem.Quantity; - mitem.State = 1; - mitem.ManyState = 1; - } + foreach (JobModel mitem in manyJoblist) + { + quantity += mitem.Quantity; + mitem.State = 1; + mitem.ManyState = 1; + } + } } - } - #endregion - lamodel.Type = "N"; + + #endregion + lamodel.Type = "N"; lamodel.Quantity = quantity.ToString(); lamodel.Uid = "U" + item.ID; lamodel.Mode = queueDT.Rows[0]["lightcolor"].ToString() + "0"; @@ -187,6 +192,7 @@ namespace Epost.BLL item.ColorCode = queueDT.Rows[0]["lightcolor"].ToString(); item.DisplayTime = DateTime.Now; } + } #endregion #region 点亮通道灯 comBLL.DISPLAY_LIGHT_BLOCK(model.Taskblock, model.Taskarea, "1"); diff --git a/Epost.BLL/Work_JobDownThread.cs b/Epost.BLL/Work_JobDownThread.cs index d6f287a..05ba090 100644 --- a/Epost.BLL/Work_JobDownThread.cs +++ b/Epost.BLL/Work_JobDownThread.cs @@ -216,12 +216,16 @@ namespace Epost.BLL List downlist = new List(); JobModel model = job.FirstOrDefault(); - List manyList = job.FindAll(m => m.ManyState == 1 && m.Tolocation == model.Tolocation); + List manyList = job.FindAll(m => m.ManyState == 1 && m.Tolocation == model.Tolocation && m.Address == model.Address); if (manyList.Any())//合并显示数据 { downlist.AddRange(manyList); LogHelper.WriteLogInfo("合并显示数据==========" + manyList.Count + "=================="); + foreach (JobModel many in manyList) + { + many.State = 3; + } } else { @@ -240,7 +244,7 @@ namespace Epost.BLL List scanlist = downCacheDAL.GetPlanJobDownList().FindAll(p => p.Parameter == model.Sku && p.Command == "QUERY_SPECIAL_STATUS" && p.Area == area); downCacheDAL.UpdateJobDownModelList(scanlist, EdownCommend.Execute); //熄灭通道灯 - comBLL.DISPLAY_LIGHT_BLOCK(block, area, "0"); + // comBLL.DISPLAY_LIGHT_BLOCK(block, area, "0"); #region 熄灭当前区显示屏 List offList = jobList.FindAll(m => m.Block == block && m.Area == area && m.State == 3 && m.Sku == model.Sku); diff --git a/Epost.TestToolsWeb/Properties/PublishProfiles/Toolsweb.pubxml.user b/Epost.TestToolsWeb/Properties/PublishProfiles/Toolsweb.pubxml.user index da4e20b..713a9f4 100644 --- a/Epost.TestToolsWeb/Properties/PublishProfiles/Toolsweb.pubxml.user +++ b/Epost.TestToolsWeb/Properties/PublishProfiles/Toolsweb.pubxml.user @@ -7,7 +7,7 @@ <_PublishTargetUrl>D:\驿传\GuangzhouHuiFeng_DAS - True|2025-06-26T03:51:25.0046611Z||;True|2025-06-26T10:39:18.2677815+08:00||;True|2025-06-24T19:52:28.3640036+08:00||;True|2025-06-24T19:41:27.8431415+08:00||;True|2025-06-24T19:02:20.3384315+08:00||;True|2025-06-24T14:58:06.2128620+08:00||;False|2025-06-24T14:57:07.8710970+08:00||;True|2025-06-24T14:54:53.0047658+08:00||;True|2025-06-24T14:21:21.1147627+08:00||;False|2025-06-24T14:20:37.2040902+08:00||;True|2025-06-24T13:14:08.5696828+08:00||;True|2025-06-24T11:28:41.9414169+08:00||;False|2025-06-24T11:28:18.5427055+08:00||;True|2025-06-23T18:49:19.8150434+08:00||;False|2025-06-23T18:47:53.8200239+08:00||;True|2025-06-23T18:13:17.9954519+08:00||;True|2025-06-16T16:39:46.1896351+08:00||;True|2025-06-04T15:01:49.8008687+08:00||;True|2025-01-16T15:37:40.8814043+08:00||;True|2024-12-19T15:11:44.2536385+08:00||;True|2024-12-10T19:10:26.6514077+08:00||;True|2024-12-10T18:30:34.7211512+08:00||;True|2024-12-09T14:06:46.4112259+08:00||;True|2024-12-03T14:23:26.2134334+08:00||;True|2024-11-27T18:53:48.7373661+08:00||;True|2024-11-27T14:27:33.0840789+08:00||;True|2024-11-27T14:08:15.6442660+08:00||;True|2024-11-27T12:10:03.9412549+08:00||;True|2024-11-27T11:45:31.3775097+08:00||;True|2024-11-27T11:32:00.8297320+08:00||;True|2024-11-23T20:50:04.5476409+08:00||;False|2024-11-04T17:48:25.2781696+08:00||;True|2024-11-01T16:04:56.3535724+08:00||;True|2024-09-01T10:13:37.1598955+08:00||;True|2024-08-31T17:27:57.5375469+08:00||;True|2022-07-15T16:41:13.9750291+08:00||;True|2022-07-14T14:02:20.7983427+08:00||;True|2022-07-13T17:40:22.7531000+08:00||;True|2022-07-13T17:34:22.9908701+08:00||;True|2022-07-13T17:30:06.3588502+08:00||;True|2022-07-11T10:32:06.9053981+08:00||;True|2021-04-26T10:07:37.4889549+08:00||;True|2021-04-09T10:32:51.9130162+08:00||;True|2021-04-09T10:31:50.4974012+08:00||; + True|2025-06-26T06:43:53.4124674Z||;True|2025-06-26T14:36:49.8290629+08:00||;True|2025-06-26T14:32:48.0261661+08:00||;True|2025-06-26T14:25:41.0829044+08:00||;True|2025-06-26T11:51:25.0046611+08:00||;True|2025-06-26T10:39:18.2677815+08:00||;True|2025-06-24T19:52:28.3640036+08:00||;True|2025-06-24T19:41:27.8431415+08:00||;True|2025-06-24T19:02:20.3384315+08:00||;True|2025-06-24T14:58:06.2128620+08:00||;False|2025-06-24T14:57:07.8710970+08:00||;True|2025-06-24T14:54:53.0047658+08:00||;True|2025-06-24T14:21:21.1147627+08:00||;False|2025-06-24T14:20:37.2040902+08:00||;True|2025-06-24T13:14:08.5696828+08:00||;True|2025-06-24T11:28:41.9414169+08:00||;False|2025-06-24T11:28:18.5427055+08:00||;True|2025-06-23T18:49:19.8150434+08:00||;False|2025-06-23T18:47:53.8200239+08:00||;True|2025-06-23T18:13:17.9954519+08:00||;True|2025-06-16T16:39:46.1896351+08:00||;True|2025-06-04T15:01:49.8008687+08:00||;True|2025-01-16T15:37:40.8814043+08:00||;True|2024-12-19T15:11:44.2536385+08:00||;True|2024-12-10T19:10:26.6514077+08:00||;True|2024-12-10T18:30:34.7211512+08:00||;True|2024-12-09T14:06:46.4112259+08:00||;True|2024-12-03T14:23:26.2134334+08:00||;True|2024-11-27T18:53:48.7373661+08:00||;True|2024-11-27T14:27:33.0840789+08:00||;True|2024-11-27T14:08:15.6442660+08:00||;True|2024-11-27T12:10:03.9412549+08:00||;True|2024-11-27T11:45:31.3775097+08:00||;True|2024-11-27T11:32:00.8297320+08:00||;True|2024-11-23T20:50:04.5476409+08:00||;False|2024-11-04T17:48:25.2781696+08:00||;True|2024-11-01T16:04:56.3535724+08:00||;True|2024-09-01T10:13:37.1598955+08:00||;True|2024-08-31T17:27:57.5375469+08:00||;True|2022-07-15T16:41:13.9750291+08:00||;True|2022-07-14T14:02:20.7983427+08:00||;True|2022-07-13T17:40:22.7531000+08:00||;True|2022-07-13T17:34:22.9908701+08:00||;True|2022-07-13T17:30:06.3588502+08:00||;True|2022-07-11T10:32:06.9053981+08:00||;True|2021-04-26T10:07:37.4889549+08:00||;True|2021-04-09T10:32:51.9130162+08:00||;True|2021-04-09T10:31:50.4974012+08:00||; @@ -33,19 +33,19 @@ 04/04/2018 15:45:12 - 06/26/2025 11:51:21 + 06/26/2025 14:43:50 - 06/26/2025 11:51:21 + 06/26/2025 14:43:50 02/24/2020 15:29:24 - 06/26/2025 10:38:48 + 06/26/2025 14:25:19 - 06/26/2025 10:38:48 + 06/26/2025 14:25:19 04/29/2020 16:50:14 @@ -63,31 +63,31 @@ 10/23/2017 13:15:20 - 06/26/2025 11:50:55 + 06/26/2025 14:43:36 - 06/26/2025 11:50:55 + 06/26/2025 14:43:36 08/26/2020 18:09:48 - 06/26/2025 10:38:51 + 06/26/2025 14:25:21 - 06/26/2025 10:38:51 + 06/26/2025 14:25:21 - 06/26/2025 11:51:03 + 06/26/2025 14:43:41 - 06/26/2025 11:51:03 + 06/26/2025 14:43:41 - 06/26/2025 10:38:48 + 06/26/2025 14:25:18 - 06/26/2025 10:38:48 + 06/26/2025 14:25:18 09/06/2018 11:57:11 @@ -105,13 +105,13 @@ 04/29/2020 16:50:14 - 06/26/2025 10:21:36 + 06/26/2025 14:19:55 - 06/26/2025 10:21:36 + 06/26/2025 14:19:55 - 06/26/2025 10:21:36 + 06/26/2025 14:19:55 08/10/2018 18:51:54 @@ -5661,7 +5661,7 @@ 05/30/2022 16:58:47 - 06/26/2025 11:51:05 + 06/26/2025 14:43:42 04/04/2018 15:45:12 @@ -7581,7 +7581,7 @@ 07/04/2022 14:22:38 - 06/26/2025 10:38:57 + 06/26/2025 14:25:27 \ No newline at end of file diff --git a/PrintBoxFormsApp/PrintList.cs b/PrintBoxFormsApp/PrintList.cs index 13c144d..ec0da23 100644 --- a/PrintBoxFormsApp/PrintList.cs +++ b/PrintBoxFormsApp/PrintList.cs @@ -127,7 +127,7 @@ namespace PrintBoxFormsApp // totalcount = "共" + item["totalcount"].ToString() + "箱"; //} //string boxno = "第" + item["boxno"].ToString() + "箱"; - FastReportHelper.Report_Box(@filePath, "", item["shopid"].ToString(), item["shopname"].ToString(), item["boxcode"].ToString(), item["matchid"].ToString(), "", item["orderway"].ToString(), totalcount, item["printstate"].ToString(), item["senddate"].ToString(), item["loc"].ToString(), out Report rep); + FastReportHelper.Report_Box(@filePath, "", item["shopid"].ToString(), item["shopname"].ToString(), item["boxcode"].ToString(), item["matchid"].ToString(), item["city"].ToString(), item["orderway"].ToString(), totalcount, item["printstate"].ToString(), item["senddate"].ToString(), item["loc"].ToString(), out Report rep); boxbll.UpPrintList(item["id"].ToString());