/// <summary>
        /// 删除库房
        /// </summary>
        /// <param name="id"></param>
        public void RemoveArrivalReceiptDetail(int id)
        {
            ArrivalReceiptDetail model = this._arrivalReceiptDetailRepository.FindBy(id);

            if (model == null)
            {
                throw new EntityIsInvalidException <string>(id.ToString());
            }
            model.IsValid = false;
            this._arrivalReceiptDetailRepository.Save(model);
            this._uow.Commit();
        }
        /// <summary>
        /// 修改库房
        /// </summary>
        /// <param name="request"></param>
        public void UpdatePurchaseDetailReceipt(AddArrivalReceiptDetailRequest request)
        {
            ArrivalReceiptDetail model = this._arrivalReceiptDetailRepository.FindBy(request.ArrivalNoticeId);

            if (model == null)
            {
                throw new EntityIsInvalidException <string>(request.ArrivalNoticeId.ToString());
            }

            model.Note    = request.Note;
            model.IsValid = request.IsValid;
            this._arrivalReceiptDetailRepository.Save(model);
            this._uow.Commit();
        }