Beispiel #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);
        }
Beispiel #2
0
        public bool UpdateGSStatusByRCL(string houseName, int row, int col, int layer, EnumCellStatus cellStatus)
        {
            StoreHouseModel house = bllStoreHouse.GetModelByName(houseName);

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

            if (gsm == null)
            {
                return(false);
            }
            gsm.GoodsSiteStatus = cellStatus.ToString();
            return(Update(gsm));
        }
Beispiel #3
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);
        }
Beispiel #4
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()));
        }