| | |
| | | using GZ.DB.Repository.OIDATABASE; |
| | | using GZ.DB.IRepository.OIDATABASE; |
| | | using GZ.DB.Entity.OIDATABASE; |
| | | using static System.Windows.Forms.VisualStyles.VisualStyleElement; |
| | | namespace GZ.Projects.AuxAllWCS |
| | | { |
| | | public class Settings |
| | |
| | | #region [èªå®ä¹ç±»][20250325152141671][TaskProcess] |
| | | internal static bool CreateTask(string no, string from, string to, string taskType, int pri, List<string> cntrs, string workMode = "AGV", int cntrCount = 1, int startLayer = 1, int endLayer = 1) |
| | | { |
| | | LogHelper.Info($"è¾é线RGV空æä»»å¡ from:{from}>to {to}å¼å§å建>"); |
| | | |
| | | LogHelper.Debug($"è¾é线RGV空æä»»å¡ from:{from}>to {to}å¼å§å建>"); |
| | | var cntrInfo = string.Join(",", cntrs); |
| | | ILocRepository locc = new LocRepository(); |
| | | var fromLoc = locc.FindEntity(x => x.S_LOC_CODE == from); |
| | |
| | | }; |
| | | ITaskRepository taskserice = new TaskRepository(); |
| | | taskserice.Insert(wmsTask); |
| | | |
| | | if (workMode == "AGV") |
| | | { |
| | | fromLoc.S_LOCK_STATE = "åºåºé"; |
| | |
| | | locc.Update(endLoc); |
| | | } |
| | | |
| | | LogHelper.Info($"è¾é线RGV空æä»»å¡ from:{from}>to {to} å建{wmsTask.S_TASK_NO}æå"); |
| | | LogHelper.Debug($"è¾é线RGV空æä»»å¡ from:{from}>to {to} å建{wmsTask.S_TASK_NO}æå"); |
| | | return true; |
| | | } |
| | | catch (Exception ex) |
| | |
| | | { |
| | | #region [èªå®ä¹ç±»][20250417094750211][Utils] |
| | | |
| | | |
| | | public void ThreadSettingInit() |
| | | { |
| | | Console.WriteLine("Utils ThreadSettingInit "); |
| | | |
| | | } |
| | | #endregion [èªå®ä¹ç±»][20250417094750211][Utils] |
| | | } |
| | | public class ToWMSMES |