コード例 #1
0
ファイル: StorageManager.cs プロジェクト: wjggwm/JCJ-WCS
        /// <summary>
        /// 移除库存
        /// </summary>
        /// <param name="houseName">库房信息</param>
        /// <param name="cellCoord">货位位置</param>
        /// <param name="reStr">执行状态描述</param>
        /// <returns>执行状态结果</returns>
        public bool RemoveStack(string houseName, CellCoordModel cellCoord, ref string reStr)
        {
            StoreHouseModel houseModel = bllStoreHouse.GetModelByName(houseName);

            if (houseModel == null)
            {
                reStr = "不存在此库房!";
                return(false);
            }
            GoodsSiteModel gsm = bllGoodsSite.GetModelByRCL(houseModel.StoreHouseID, cellCoord.Row, cellCoord.Col, cellCoord.Layer);

            if (gsm == null)
            {
                reStr = "不存在此库存!";
                return(false);
            }
            bool deleSta = bllStock.DeleteModelByGSID(gsm.GoodsSiteID);

            if (deleSta == false)
            {
                reStr = "数据删除失败!";
                return(false);
            }
            //string operateStr = "库房:" + houseName + ",货位:" + cellCoord.Row + "排" + cellCoord.Col + "列"
            // + cellCoord.Layer + "层," + "移除库存";
            //AddGSOperRecord(houseName, cellCoord, EnumGSOperateType.系统移除库存, operateStr, ref reStr);
            return(true);
        }