| | |
| | | using HH.WCS.QingXigongchang.core; |
| | | using HH.WCS.QingXigongchang.device; |
| | | using HH.WCS.QingXigongchang.device; |
| | | using HH.WCS.QingXigongchang.dispatch; |
| | | using HH.WCS.QingXigongchang.util; |
| | | using HH.WCS.QingXigongchang.wms; |
| | | using Microsoft.SqlServer.Server; |
| | | using Newtonsoft.Json; |
| | | using NLog.Time; |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Diagnostics.Eventing.Reader; |
| | | using System.Linq; |
| | | using System.Reflection; |
| | | using System.Runtime.InteropServices; |
| | | using System.Security.Cryptography; |
| | | using System.Threading; |
| | | using System.Threading.Tasks; |
| | | using System.Timers; |
| | | using System.Web.Http.Results; |
| | | using System.Web.Security; |
| | | using System.Web.UI.WebControls; |
| | | using static HH.WCS.QingXigongchang.dispatch.NDC; |
| | | using static HH.WCS.QingXigongchang.util.Settings; |
| | | |
| | | namespace HH.WCS.QingXigongchang.process |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | private static void Analysis13(string data, deviceInfo plc) |
| | | { |
| | | //用于 出库时 是否可以直达 提升机。 00 后面还需增加退料工单处理。 |
| | |
| | | { |
| | | LogHelper.Info($" time:{_clrel0?.T_CREATE} = s_type:{_clrel0.S_TYPE}"); |
| | | if (_clrel.Any()) |
| | | if (DateTime.Now.Subtract(_clrel0.T_CREATE).TotalSeconds < 10 || !string.IsNullOrEmpty(_clrel0.S_TYPE)) |
| | | //if (DateTime.Now.Subtract(_clrel0.T_CREATE).TotalSeconds < 10 || !string.IsNullOrEmpty(_clrel0.S_TYPE)) |
| | | // goto ballll; |
| | | //plg 2025年6月23日 去除10秒时间限制 |
| | | if (DateTime.Now.Subtract(_clrel0.T_CREATE).TotalSeconds < 3 || !string.IsNullOrEmpty(_clrel0.S_TYPE)) |
| | | goto ballll; |
| | | |
| | | LocationHelper.DoAction(db => |
| | | { |
| | | db.Deleteable(_clrel).ExecuteCommand(); |
| | | _cl.N_CURRENT_NUM = 0; |
| | | return db.Updateable(_cl).UpdateColumns(x => new { x.N_CURRENT_NUM }).ExecuteCommand() > 0; |
| | | }); |
| | | { |
| | | db.Deleteable(_clrel).ExecuteCommand(); |
| | | _cl.N_CURRENT_NUM = 0; |
| | | return db.Updateable(_cl).UpdateColumns(x => new { x.N_CURRENT_NUM }).ExecuteCommand() > 0; |
| | | }); |
| | | } |
| | | if (!plc.deviceName.Contains("T1")) |
| | | goto ballll; |
| | |
| | | if (sBit != null) |
| | | { |
| | | var sign = Settings.GetTimeStamp(); |
| | | var res = TaskProcess.CreateTransport(sign, sBit.S_LOC_CODE, _cl.S_LOC_CODE, "原物料搬运-纸箱", new List<string> { _clrel.FirstOrDefault().S_CNTR_CODE }, sBit.N_CURRENT_NUM, 1, 1, 50);///, EdnRarea == "YWLYLTKQ" ? _clrel0.S_TYPE : ""); |
| | | var res = TaskProcess.CreateTransport(sign, sBit.S_LOC_CODE, _cl.S_LOC_CODE, "原物料搬运-纸箱", new List<string> { _clrel.FirstOrDefault().S_CNTR_CODE }, sBit.N_CURRENT_NUM, 1, 1, 60);///, EdnRarea == "YWLYLTKQ" ? _clrel0.S_TYPE : ""); |
| | | LogHelper.Info($"原物料搬运 上提升机。 {sign} 任务 ,创建{res} "); |
| | | //var res = TaskProcess.CreateTransport(sign, sBit.S_LOC_CODE, _cl.S_LOC_CODE, "原物料搬运-纸箱", new List<string> { _clrel.FirstOrDefault().S_CNTR_CODE }, sBit.N_CURRENT_NUM, 1, 1, 50);///, EdnRarea == "YWLYLTKQ" ? _clrel0.S_TYPE : ""); |
| | | //LogHelper.Info($"原物料搬运 上提升机。 {sign} 任务 ,创建{res} "); |
| | | } |
| | | } |
| | | } |