| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 写入 人工放行 |
| | | /// </summary> |
| | | /// <param name="deviceId"></param> |
| | | /// <param name="value"></param> |
| | | /// <param name="stationCode"></param> |
| | | /// <returns></returns> |
| | | public SdaResEntity WriteStation_PersonAllow(int deviceId, bool value, string stationCode) |
| | | { |
| | | 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.WriteStation_PersonAllow(stationCode, value, 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> |