| | |
| | | namespace Tiger.Business.WMS.Transaction |
| | | { |
| | | /// <summary> |
| | | /// 盘点调度事务 |
| | | /// 仓库盘点事务 |
| | | /// </summary> |
| | | public class WmsCount : WMSTransactionBase, IWmsCount |
| | | { |
| | |
| | | } |
| | | |
| | | //解析条码 |
| | | Result<Inventory> result = WMS_ITEM_Biz.WmsItem.Get(input.SN, input.AuthOption, true); |
| | | Result<IInventory> result = WMS_ITEM_Biz.WmsItem.Get(input.SN, input.AuthOption, true); |
| | | if (!result.IsSuccessed) |
| | | { |
| | | action.IsSuccessed = false; |
| | | action.LocaleMsg = result.LocaleMsg; |
| | | return action; |
| | | } |
| | | CurInv = result.Data; |
| | | CurInv = result.Data as Inventory; |
| | | |
| | | //验证条码是否正确 |
| | | if (!CurInv.isNormalStatus || CurInv.Status != WMS_ITEM.STATUSs.InStore) |
| | |
| | | public override bool Close(bool needSaveHistoryLog = false) |
| | | { |
| | | //检查盘点单是否关闭 |
| | | Biz.Db.Ado.UseStoredProcedure().ExecuteCommand("pkg_count_status", new SugarParameter("CountNo", count.COUNT_NO)); |
| | | Biz.Db.Ado.UseStoredProcedure().ExecuteCommand("sp_count_status", new SugarParameter("CountNo", count.COUNT_NO)); |
| | | //needSaveHistoryLog = true; |
| | | CloseLight(new CountLightEntity() { ShelfCode = "" }).Wait(); |
| | | //保存操作日志 |