| | |
| | | using Tiger.IBusiness; |
| | | using Tiger.Model; |
| | | using Tiger.Model.Entitys.MES.Position; |
| | | using Tiger.Model.Entitys.MES.U9C; |
| | | using static IronPython.Modules._ast; |
| | | |
| | | namespace Tiger.Business.WMS.Transaction |
| | |
| | | action.Data.MqttMsg = msg; |
| | | return action; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 设置当前物料的默认储位 |
| | | /// </summary> |
| | | public ApiAction<ScanOutput> SetDefaultLocation(DbClient db, BAS_ITEM Item, WMS_LOCATION location) |
| | | { |
| | | var action = new ApiAction<ScanOutput>(new ScanOutput()); |
| | | |
| | | //调用设置默认储位接口 |
| | | //var iInput = new CreateRcvLineLocationInput |
| | | //{ |
| | | |
| | | //}; |
| | | //var result = await DI.Resolve<IWMS_U9C>().CreateRcvLineLocation(iInput); |
| | | //if (!result.IsSuccessed) |
| | | //{ |
| | | // action.IsSuccessed = false; |
| | | // action.LocaleMsg = result.LocaleMsg; |
| | | //} |
| | | //else |
| | | { |
| | | Item.DEFAULT_LOCATION = location.LOCATION_CODE; |
| | | db.Updateable(Item, UserCode).UpdateColumns(q => new { q.DEFAULT_LOCATION, q.UPDATE_TIME, q.UPDATE_USER }).ExecuteCommand(); |
| | | } |
| | | |
| | | return action; |
| | | } |
| | | #endregion Functions |
| | | |
| | | /// <summary> |