222
schangxiang@126.com
2024-11-21 0eaa55a507f09c22a65b962d726872ece93acff5
SDA/iWareSda/Devices/4-Station/StationService/StationService.cs
@@ -407,12 +407,12 @@
        /// <summary>
        /// 1015重新扫码
        /// 写入齐套结果
        /// </summary>
        /// <param name="deviceId"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        public SdaResEntity Write1015ReScan(int deviceId, bool value)
        public SdaResEntity WriteQiTaoInfo(int deviceId, string stationCode, bool value)
        {
            SdaResEntity _SdaResEntity = new SdaResEntity();
            try
@@ -425,7 +425,7 @@
                var Station = StationResult.resData as StationEntity;
                string msg = "";
                var result = Station.Write1015ReScan(deviceId, value, out msg);
                var result = Station.WriteQiTaoInfo(stationCode, value, out msg);
                _SdaResEntity.result = result;
                _SdaResEntity.resMsg = msg;
                return _SdaResEntity;
@@ -439,12 +439,12 @@
        }
        /// <summary>
        /// 1019重新扫码
        /// 入库完成已确认
        /// </summary>
        /// <param name="deviceId"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        public SdaResEntity Write1019ReScan(int deviceId, bool value)
        public SdaResEntity InboundFinishConfirm(int deviceId, string stationCode)
        {
            SdaResEntity _SdaResEntity = new SdaResEntity();
            try
@@ -457,7 +457,39 @@
                var Station = StationResult.resData as StationEntity;
                string msg = "";
                var result = Station.Write1019ReScan(deviceId, value, out msg);
                var result = Station.InboundFinishConfirm(stationCode, out msg);
                _SdaResEntity.result = result;
                _SdaResEntity.resMsg = msg;
                return _SdaResEntity;
            }
            catch (Exception ex)
            {
                _SdaResEntity.result = false;
                _SdaResEntity.resMsg = ex.Message;
                return _SdaResEntity;
            }
        }
        /// <summary>
        /// 写入入库任务信息
        /// </summary>
        /// <param name="deviceId"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        public SdaResEntity WriteInStoreTaskInfo(int deviceId, string stationCode, string toPlaceNo, short length, short width, short height)
        {
            SdaResEntity _SdaResEntity = new SdaResEntity();
            try
            {
                var StationResult = Station_CacheEntity.GetDeviceObj(deviceId);
                if (!StationResult.result)
                {
                    return StationResult;
                }
                var Station = StationResult.resData as StationEntity;
                string msg = "";
                var result = Station.WriteInStoreTaskInfo(stationCode, toPlaceNo, length, width, height, out msg);
                _SdaResEntity.result = result;
                _SdaResEntity.resMsg = msg;
                return _SdaResEntity;