Beispiel #1
0
        private void MapToPreAlertItem(ReceiptFacts facts, string lotid)
        {
            IPreAlert preAlert =
                OrderService.GetPreAlertByType(facts.PurchaseOrder.PreAlertType);

            if (preAlert == null)
            {
                return;
            }

            string serialNumber = facts.SerialNumber;

            if (!string.IsNullOrEmpty(facts.SerialNumber))
            {
                serialNumber = serialNumber.Trim();
                serialNumber = serialNumber.ToUpper();

                IPreAlertItem item =
                    preAlert.GetItemBySerialNumber(facts.PurchaseOrder, serialNumber);

                if (item != null)
                {
                    item.LotId = lotid;
                }
            }
        }
Beispiel #2
0
        public IPreAlertItem GetPreAlertItem(string serialNumber)
        {
            IPreAlert preAlert =
                OrderService.GetPreAlertByType(PreAlertType);

            if (preAlert == null)
            {
                return(null);
            }

            return(preAlert.GetItemBySerialNumber(this, serialNumber));
        }
Beispiel #3
0
        public bool IsExpectedPreAlertItem(string serialNumber)
        {
            IPreAlert preAlert =
                OrderService.GetPreAlertByType(PreAlertType);

            if (preAlert == null)
            {
                return(true);
            }

            return(preAlert.SerialIsExpected(this, serialNumber));
        }