示例#1
0
        public IFoundAContainerResult IFoundAContainer(string containerId)
        {
            YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail = this.FindOrCreateNewClientOrderDetail(containerId);
            IFoundAContainerResult result = new IFoundAContainerResult(clientOrderDetail);

            if (string.IsNullOrEmpty(clientOrderDetail.ClientOrderId) == false)
            {
                if (this.m_ClientOrderId != clientOrderDetail.ClientOrderId)
                {
                    result.OkToReceive = false;
                    result.Message     = "This container does not appear to belong to the current order.";
                }
                else
                {
                    this.ReceiveClientOrderDetail(clientOrderDetail);
                    result.OkToReceive = true;
                }
            }
            else
            {
                this.ReceiveClientOrderDetail(clientOrderDetail);
                clientOrderDetail.ClientOrderId = this.m_ClientOrderId;
                result.OkToReceive = true;
            }
            return(result);
        }
        public IFoundAContainerResult IFoundAContainer(string containerId)
        {
            YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail = this.FindOrCreateNewClientOrderDetail(containerId);
            IFoundAContainerResult result = new IFoundAContainerResult(clientOrderDetail);

            if (string.IsNullOrEmpty(clientOrderDetail.ClientOrderId) == false)
            {
                if (this.m_ClientOrder.ClientOrderId != clientOrderDetail.ClientOrderId)
                {
                    result.OkToReceive = false;
                    result.Message = "This container does not appear to belong to the current order.";
                }
                else
                {
                    this.ReceiveClientOrderDetail(clientOrderDetail);
                    result.OkToReceive = true;
                }
            }
            else
            {
                this.ReceiveClientOrderDetail(clientOrderDetail);
                clientOrderDetail.ClientOrderId = this.m_ClientOrder.ClientOrderId;
                result.OkToReceive = true;
            }
            return result;
        }