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; } } }
public IPreAlertItem GetPreAlertItem(string serialNumber) { IPreAlert preAlert = OrderService.GetPreAlertByType(PreAlertType); if (preAlert == null) { return(null); } return(preAlert.GetItemBySerialNumber(this, serialNumber)); }