示例#1
0
        public void OutputManual(List <long> stockList)
        {
            string reStr = "";

            for (int i = 0; i < stockList.Count; i++)
            {
                View_StockGSModel skGsModel = bllViewStockGs.GetModelByStockID(stockList[i]);
                if (skGsModel == null)
                {
                    continue;
                }

                CellCoordModel cell = new CellCoordModel(skGsModel.GoodsSiteRow, skGsModel.GoodsSiteColumn, skGsModel.GoodsSiteLayer);
                if (this.iControl == null)
                {
                    return;
                }
                bool status = this.iControl.CreateManualOutputTask(skGsModel.StoreHouseName, cell, ref reStr);
                if (status == true)
                {
                    this.view.AddLog("库存管理", "手动出库货位:" + skGsModel.GoodsSiteName, LogInterface.EnumLoglevel.提示);
                    this.iStorageManager.AddGSOperRecord(skGsModel.StoreHouseName, cell, EnumGSOperateType.手动出库, "手动出库货位:" + skGsModel.GoodsSiteName, ref reStr);
                }
                else
                {
                    this.view.AddLog("库存管理", "手动出库货位:" + skGsModel.GoodsSiteName + "失败!" + reStr, LogInterface.EnumLoglevel.提示);
                    this.iStorageManager.AddGSOperRecord(skGsModel.StoreHouseName, cell, EnumGSOperateType.手动出库, "手动出库货位:" + skGsModel.GoodsSiteName + "失败" + reStr, ref reStr);
                }
            }
            //出完后库要再次查询防止重复出库
            QueryStock(this.currHouseName, this.currHouseArea, this.currRowth, this.currColth, this.currLayerth, this.gsStatus, this.gsTaskSta, this.currProBatch);
        }
示例#2
0
        public void DeleteStock(List <long> stockIDList)
        {
            string reStr = "";

            if (stockIDList == null)
            {
                return;
            }
            for (int i = 0; i < stockIDList.Count; i++)
            {
                StockModel        sm    = bllStock.GetModel(stockIDList[i]);
                View_StockGSModel vsgsm = bllViewStockGs.GetModelByStockID(stockIDList[i]);
                if (vsgsm == null)
                {
                    return;
                }
                bllStock.Delete(stockIDList[i]);

                this.iStorageManager.AddGSOperRecord(vsgsm.StoreHouseName, new CellCoordModel(vsgsm.GoodsSiteRow, vsgsm.GoodsSiteColumn,
                                                                                              vsgsm.GoodsSiteLayer), EnumGSOperateType.手动删除货位, "手动删除货位:" + vsgsm.GoodsSiteName, ref reStr);
                this.view.AddLog("库存管理", "手动删除货位:" + vsgsm.GoodsSiteName + "成功!", LogInterface.EnumLoglevel.提示);

                bllGs.UpdateGSStatusByRCL(vsgsm.StoreHouseName, vsgsm.GoodsSiteRow, vsgsm.GoodsSiteColumn, vsgsm.GoodsSiteLayer, EnumCellStatus.空闲);
                bllGs.UpdateGsTaskStatusByRCL(vsgsm.StoreHouseName, vsgsm.GoodsSiteRow, vsgsm.GoodsSiteColumn, vsgsm.GoodsSiteLayer, EnumGSTaskStatus.完成);
                string operteDetail = "[" + vsgsm.GoodsSiteName + "]货位状态由《" + vsgsm.GoodsSiteStatus + "》变更为《" + EnumCellStatus.空闲.ToString()
                                      + "》;" + "货位任务状态由《" + vsgsm.GoodsSiteTaskStatus + "》变更为《" + EnumGSTaskStatus.完成.ToString() + "》";

                this.iStorageManager.AddGSOperRecord(vsgsm.StoreHouseName, new CellCoordModel(vsgsm.GoodsSiteRow, vsgsm.GoodsSiteColumn, vsgsm.GoodsSiteLayer)
                                                     , EnumGSOperateType.手动修改状态, operteDetail, ref reStr);
                this.view.AddLog("库存管理", "手动删除货位,同时更新货位状态" + operteDetail + "成功!", LogInterface.EnumLoglevel.提示);
            }
            QueryStock(this.currHouseName, this.currHouseArea, this.currRowth, this.currColth, this.currLayerth, this.gsStatus, this.gsTaskSta, this.currProBatch);
            this.view.ClearStockDetailView();
        }
示例#3
0
        public void SetGsUseStatus(List <string> stockIDList, bool status)
        {
            string reStr = "";

            if (stockIDList == null)
            {
                return;
            }
            for (int i = 0; i < stockIDList.Count; i++)
            {
                string            stockID = stockIDList[i];
                View_StockGSModel stockGs = bllViewStockGs.GetModelByStockID(long.Parse(stockID));
                if (stockGs == null)
                {
                    continue;
                }

                bllGs.UpdateGSEnabledStatusByID(stockGs.GoodsSiteID, status);
                if (status == true)
                {
                    this.iStorageManager.AddGSOperRecord(stockGs.StoreHouseName, new CellCoordModel(stockGs.GoodsSiteRow,
                                                                                                    stockGs.GoodsSiteColumn, stockGs.GoodsSiteLayer)
                                                         , EnumGSOperateType.手动启用货位, "手动启用货位", ref reStr);
                    this.view.AddLog("库存列表", "手动启用货位" + stockGs.GoodsSiteName, LogInterface.EnumLoglevel.提示);
                }
                else
                {
                    this.iStorageManager.AddGSOperRecord(stockGs.StoreHouseName, new CellCoordModel(stockGs.GoodsSiteRow,
                                                                                                    stockGs.GoodsSiteColumn, stockGs.GoodsSiteLayer)
                                                         , EnumGSOperateType.手动禁用货位, "手动禁用货位", ref reStr);
                    this.view.AddLog("库存列表", "手动禁用货位" + stockGs.GoodsSiteName, LogInterface.EnumLoglevel.提示);
                }
            }
            //出完后库要再次查询防止重复出库
            QueryStock(this.currHouseName, this.currHouseArea, this.currRowth, this.currColth, this.currLayerth, this.gsStatus, this.gsTaskSta, this.currProBatch);

            this.view.RefreshStorageView();
        }