| | |
| | | } |
| | | |
| | | |
| | | public bool InboundFinishConfirm(string stationCode, out string msg) |
| | | public bool InboundFinishConfirm(string stationCode, bool value, out string msg) |
| | | { |
| | | try |
| | | { |
| | |
| | | var stationObj = this.DBBlockForWrite.W_StationForWriteCommList.Where(x => x.StationCode == stationCode).FirstOrDefault(); |
| | | |
| | | var view_stationObj = this.View.W_StationForWriteCommList.Where(x => x.StationCode == stationCode).FirstOrDefault(); |
| | | MessageModel b2 = this.plcService.WriteValuePoint(stationObj.W_InboundFinishConfirm, true, view_stationObj.W_DataFinish); |
| | | MessageModel b2 = this.plcService.WriteValuePoint(stationObj.W_InboundFinishConfirm, value, view_stationObj.W_DataFinish); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("向Station地址{0} 入库完成确认 写 " + true + "失败,返回结果:" + b2.resMsg, |
| | | msg = string.Format("向Station地址{0} 入库完成确认 写 " + value + "失败,返回结果:" + b2.resMsg, |
| | | stationObj.W_InboundFinishConfirm); |
| | | return false; |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | public bool OutboundFinishConfirm(string stationCode, out string msg) |
| | | public bool OutboundFinishConfirm(string stationCode, bool value, out string msg) |
| | | { |
| | | try |
| | | { |
| | |
| | | var stationObj = this.DBBlockForWrite.W_StationForWriteCommList.Where(x => x.StationCode == stationCode).FirstOrDefault(); |
| | | |
| | | var view_stationObj = this.View.W_StationForWriteCommList.Where(x => x.StationCode == stationCode).FirstOrDefault(); |
| | | MessageModel b2 = this.plcService.WriteValuePoint(stationObj.W_OutboundFinishConfirm, true, view_stationObj.W_OutboundFinishConfirm); |
| | | MessageModel b2 = this.plcService.WriteValuePoint(stationObj.W_OutboundFinishConfirm, value, view_stationObj.W_OutboundFinishConfirm); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("向Station 出库任务完成确认 地址{0} 写 " + true + "失败,返回结果:" + b2.resMsg, |
| | | msg = string.Format("向Station 出库任务完成确认 地址{0} 写 " + value + "失败,返回结果:" + b2.resMsg, |
| | | stationObj.W_OutboundFinishConfirm); |
| | | return false; |
| | | } |