private void SetTransOutLineLotInfo(TransOutLine transOutLine, LotMaster.EntityKey lotKey)
        {
            if (lotKey == null)
            {
                return;
            }
            LotMaster lotMaster = lotKey.GetEntity();

            transOutLine.LotInfo = new LotMasterInfo();
            transOutLine.LotInfo.DisabledDatetime = lotMaster.InvalidTime;
            transOutLine.LotInfo.LotCode          = lotMaster.LotCode;
            transOutLine.LotInfo.LotMaster        = lotMaster;
            transOutLine.LotInfo.LotValidDate     = lotMaster.ValidDate;
        }
        private ProductBarCodeByShipDTO FindProductBarCodeDTO(List <ProductBarCodeByShipDTO> barCodeDTOs, TransOutLine transOutline)
        {
            foreach (ProductBarCodeByShipDTO barCodeDTO in barCodeDTOs)
            {
                if (barCodeDTO.SOShipLine == transOutline.SrcDocInfo.SrcDocSubLine.EntityID && barCodeDTO.ActualLength == (int)(transOutline.StoreUOMQty * 1000))
                {
                    return(barCodeDTO);
                }
            }

            throw new Exception(string.Format("没有找到调出单{0}行{1}对应的DTO数据", transOutline.TransferOut.DocNo, transOutline.DocLineNo));
        }