public void PrintTravelerLabel(InventoryItem item) { ReceivingLabelDetail labelDetail = ReceivingLabelDetail.GetLabelDetailByLotId(item.LotId); ReceivingLabel lbl = ReceivingLabel.GetReceivingLabel(); lbl.SetLabelValues(item.LotId, item.SerialNumber, item.PartNumber, item.Part.Description, labelDetail.ReturnType, labelDetail.Rma, labelDetail.ReceivedBy, labelDetail.ReceiveDate, labelDetail.Comments, labelDetail.Notes, labelDetail.Process, labelDetail.Program); lbl.Print(); }
// TODO: delegate method to abstract label printing method. public void PrintReceiveLabel(Receipt receipt) { // Guard // Do not print labels for serialized units on carts // TODO: Write Specification(pattern) for this! if (receipt.ReceivingCart != null && receipt.Item.SerializedUnit != null) { return; } //ReceivingLabel label = ReceivingLabel.GetReceivingLabel(); ZPLLabel label = ZPLLabel.GetLabelByName("CHARTER_REC"); label.SetLabelValues( ReceivingLabelDetail.GetLabelDetailByLotId( receipt.UnitTrackingId).ToLabelArgs()); label.Print(); }