Example #1
0
        /// <summary>
        /// 设置整行逻辑区域
        /// </summary>
        /// <param name="houseName"></param>
        /// <param name="layerth"></param>
        /// <returns></returns>
        public bool SetSingleLayerArea(string houseName, int rowth, int layerth, string logicAreaName)
        {
            string          reStr = "";
            StoreHouseModel house = bllStoreHouse.GetModelByName(houseName);

            if (null == house)
            {
                return(false);
            }
            StoreHouseLogicAreaModel logicArea = bllLogicArea.GetModelByName(logicAreaName);

            if (logicArea == null)
            {
                return(false);
            }
            bool status = bllGs.SetSingleLayerGsArea(house.StoreHouseID, logicArea.StoreHouseLogicAreaID, rowth, layerth);

            if (status == true)
            {
                this.iStorageManage.AddGSOperRecord(houseName, new CellCoordModel(rowth, 1, 1)
                                                    , EnumGSOperateType.库存区域设置, "手动单层库存区域设置:货位层" + layerth + "为:" + logicArea.StoreHouseAreaName, ref reStr);
                RefreshPos(this.currHouseName, currRowth);
                return(true);
            }
            else
            {
                return(false);
            }
        }