示例#1
0
        /// <summary>
        /// 查询入库时间
        /// </summary>
        /// <param name="houseName">库房名称</param>
        /// <param name="cellCoord">库存位置</param>
        /// <param name="inputDT">入库时间</param>
        /// <returns>若货位空,返回false</returns>
        public bool GetCellInputTime(string houseName, CellCoordModel cellCoord, ref System.DateTime inputDT)
        {
            if (cellCoord == null)
            {
                return(false);
            }
            StoreHouseModel houseModel = bllStoreHouse.GetModelByName(houseName);

            if (houseModel == null)
            {
                return(false);
            }
            GoodsSiteModel gsm = bllGoodsSite.GetModelByRCL(houseModel.StoreHouseID, cellCoord.Row, cellCoord.Col, cellCoord.Layer);

            if (gsm == null)
            {
                return(false);
            }
            StockModel sm = bllStock.GetModelByGSID(gsm.GoodsSiteID);

            if (sm == null)
            {
                return(false);
            }
            StockListModel slm = bllStockList.GetModelByStockID(sm.StockID);

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

            inputDT = slm.InHouseTime;
            return(true);
        }