From 6be6a1e453861fa0beb818236fdd8183024074c4 Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期二, 04 十一月 2025 08:21:40 +0800
Subject: [PATCH] 增加和MES对接接口
---
Wms/WMS.IBLL/IBllTransServer/IRcsServer.cs | 52 ++++++++++++++++++++++++++++++++++------------------
1 files changed, 34 insertions(+), 18 deletions(-)
diff --git a/Wms/WMS.IBLL/IBllTransServer/IRcsServer.cs b/Wms/WMS.IBLL/IBllTransServer/IRcsServer.cs
index 38de571..f90d43e 100644
--- a/Wms/WMS.IBLL/IBllTransServer/IRcsServer.cs
+++ b/Wms/WMS.IBLL/IBllTransServer/IRcsServer.cs
@@ -1,4 +1,5 @@
-锘縰sing System;
+锘縰sing Model.InterFaceModel;
+using System;
using System.Collections.Generic;
using System.Text;
using static Model.InterFaceModel.RCSModel;
@@ -8,39 +9,54 @@
public interface IRcsServer
{
/// <summary>
- /// RCS鍙《(鍑�妗跺拰鑴忔《)
+ /// RCS鍙《
/// </summary>
/// <param name="warehouseno">搴撳尯</param>
/// <param name="type">鍙枡绫诲瀷</param>
/// <returns></returns>
- public void GetPalletNo(string warehouseno, string type, out string palletno, out string locatno);
+ public void GetPalletNo(Pallnetmsg pallnetmsg, string url, string urlMes, out string taskNo);
/// <summary>
- /// RCS鍙《(娣锋枡妗跺拰涓嬫枡妗�)
+ /// 灏嗗噣妗舵敼涓鸿剰妗跺苟鎷夊埌鑴忔《鍖�
/// </summary>
- /// <param name="warehouseno">搴撳尯</param>
- /// <param name="type">鍙枡绫诲瀷</param>
- /// <param name="lotno">鍙枡鎵规</param>
+ /// <param name="PalletNo"></param>
/// <returns></returns>
- public void GetPalletNo(string warehouseno, string type, string lotno, out string palletno, out string locatno);
+ public void ChangePalletStatus(string PalletNo, string url);
+
+ /// <summary>
+ /// MES涓嬪彂娓呮礂閿佸畾鑴忔《
+ /// </summary>
+ /// <param name="pallnetmsg"></param>
+ public void CleanPallet(Pallnetmsg pallnetmsg, string url);
/// <summary>
/// 鐢宠鍌ㄤ綅
/// </summary>
/// <param name="PalletNo"></param>
/// <returns></returns>
- public void ApplyLocatNo(string palletno, string type, out string locatno);
+ public void ApplyLocatNo(Pallnetmsg pallnetmsg, string url ,out string taskNo);
/// <summary>
- /// RCS鐢熸垚浠诲姟
+ /// RCS鍙嶉浠诲姟瀹屾垚
/// </summary>
- /// <param name="taskCode"></param>
- /// <param name="taskType"></param>
- /// <param name="startPos">璧峰浣嶇疆</param>
- /// <param name="endPos">鐩殑浣嶇疆</param>
- /// <param name="agvCode"></param>
- /// <param name="url">RCS鍦板潃</param>
- /// <returns></returns>
- public string genAgvSchedulingTask(AgvTask agvtask, string url, ref genAgvSchedulingTaskRep cbrep);
+ /// <param name="TaskNo"></param>
+ /// <param name="Status"></param>
+ void RCSFinishTask(string taskNo, string status, string comeFrom, int userId = 0);
+
+ /// <summary>
+ /// 鎵嬪姩鍙栨秷浠诲姟
+ /// </summary>
+ /// <param name="taskNo"></param>
+ /// <param name="userId"></param>
+ /// <exception cref="Exception"></exception>
+ void CancelTask(string taskNo, int userId);
+
+ /// <summary>
+ /// 鎵嬪姩涓嬪彂浠诲姟
+ /// </summary>
+ /// <param name="taskNo"></param>
+ /// <param name="userId"></param>
+ /// <exception cref="Exception"></exception>
+ void DownTask(string taskNo, int userId, string url);
}
}
--
Gitblit v1.8.0