Exemplo n.º 1
0
        public static bool UpdateCellStatus(string childCellID, EnumCellStatus cellStatus, EnumGSTaskStatus cellRunStatus, EnumGSOperate gsoperate)
        {
            WH_Cell_ChildrenModel childCell = bllCellChild.GetModel(childCellID);

            if (childCell == null)
            {
                return(false);
            }
            childCell.Cell_Child_Status       = cellStatus.ToString();
            childCell.Cell_Child_Run_Status   = cellRunStatus.ToString();
            childCell.Cell_Child_Operate_Type = gsoperate.ToString();
            bllCellChild.Update(childCell);
            return(true);
        }
Exemplo n.º 2
0
        public bool UpdateGsTaskStatusByRCL(string houseName, int row, int col, int layer, EnumGSTaskStatus gsTaskStatus)
        {
            StoreHouseModel house = bllStoreHouse.GetModelByName(houseName);

            if (house == null)
            {
                return(false);
            }
            GoodsSiteModel gsm = GetModelByRCL(house.StoreHouseID, row, col, layer);

            if (gsm == null)
            {
                return(false);
            }
            gsm.GoodsSiteTaskStatus = gsTaskStatus.ToString();
            return(Update(gsm));
        }
Exemplo n.º 3
0
        private bool UpateCellStatus(string palletCode, EnumGSOperate cellOperStatus, EnumGSTaskStatus taskStatus)
        {
            View_StockListModel stockModel = bllViewStockList.GetModelByPalletCode(palletCode, EnumCellType.货位.ToString());

            if (stockModel == null)
            {
                this.WmsFrame.WriteLog("下架逻辑", "", "提示", "更新货位状态时,没有找到所选物料库存!");
                return(false);
            }
            WH_Cell_ChildrenModel cellChildModel = bllCellChild.GetModel(stockModel.Cell_Child_ID);

            if (cellChildModel == null)
            {
                this.WmsFrame.WriteLog("下架逻辑", "", "提示", "更新货位状态时,没有找到所选物料货位!");
                return(false);
            }
            cellChildModel.Cell_Child_Run_Status   = taskStatus.ToString();
            cellChildModel.Cell_Child_Operate_Type = cellOperStatus.ToString();
            bllCellChild.Update(cellChildModel);
            this.WmsFrame.WriteLog("下架逻辑", "", "提示", "更新货位状态成功!");
            return(true);
        }
Exemplo n.º 4
0
        private bool AddRecord(string cellID, EnumCellStatus cellStatus, EnumGSTaskStatus cellTaskStatus, ref string restr)
        {
            WH_Cell_ChildrenModel oldgsm = bllChildCell.GetModel(cellID);

            if (oldgsm == null)
            {
                return(false);
            }
            if (oldgsm.Cell_Child_Flag != "1")
            {
                this.WmsFrame.WriteLog("库存看板", "", "提示", "被禁用的货位不允许修改状态!");
                return(false);
            }
            View_CellModel cellModel = bllViewCell.GetModelByChildCellID(cellID);

            string operteStatusDetail = cellModel.WareHouse_Name + ":[" + cellModel.Cell_Name + "]货位状态由[" + oldgsm.Cell_Child_Status + "]变更为[空闲];" + "货位任务状态由[" + oldgsm.Cell_Child_Run_Status + "]变更为[完成]";

            oldgsm.Cell_Child_Status     = cellStatus.ToString();
            oldgsm.Cell_Child_Run_Status = cellTaskStatus.ToString();
            bllChildCell.Update(oldgsm);
            TaskHandleMethod.AddCellOperRecord(cellID, EnumGSOperateType.手动修改状态, operteStatusDetail, ref restr);

            return(true);
        }
Exemplo n.º 5
0
        /// <summary>
        /// 通过库房名称及排列层更新货位
        /// </summary>
        /// <param name="houseName"></param>
        /// <param name="row"></param>
        /// <param name="col"></param>
        /// <param name="layer"></param>
        /// <param name="cellStatus"></param>
        /// <returns></returns>
        public bool UpdateModelByRCL(string houseName, int row, int col, int layer, EnumCellStatus cellStatus, EnumGSTaskStatus gsStatus)
        {
            // View_GoodsSiteModel gsModel =  bllViewGs.GetModelByHouseName(houseName);
            StoreHouseModel house = bllStoreHouse.GetModelByName(houseName);

            if (house == null)
            {
                return(false);
            }

            return(dal.UpdateModelByRCL(houseName, house.StoreHouseID, row, col, layer, cellStatus.ToString(), gsStatus.ToString()));
        }