Beispiel #1
0
        public virtual void PreCheckProductInfo()
        {
            ProductInfo productInfo = ExternalDomainBroker.GetProductInfoByProductSysNo(this.CurrentAdjustItemInfo.ProductSysNo);

            if (productInfo == null || productInfo.SysNo <= 0)
            {
                throw new BizException(string.Format("欲调库存的商品不存在,商品编号:{0}", this.CurrentAdjustItemInfo.ProductSysNo));
            }
        }
Beispiel #2
0
        /// <summary>
        /// 根据SysNo获取虚库申请单信息
        /// </summary>
        /// <param name="requestSysNo"></param>
        /// <returns></returns>
        public virtual VirtualRequestInfo GetVirtualRequestInfoBySysNo(int requestSysNo)
        {
            VirtualRequestInfo virtualRequest = virtualRequestDA.GetVirtualRequestInfoBySysNo(requestSysNo);

            if (virtualRequest != null && virtualRequest.VirtualProduct != null && virtualRequest.VirtualProduct.SysNo > 0)
            {
                virtualRequest.VirtualProduct = ExternalDomainBroker.GetProductInfoByProductSysNo(virtualRequest.VirtualProduct.SysNo);
            }

            return(virtualRequest);
        }