/// <summary> /// Prints the specified shipment. /// </summary> /// <param name="shipment">The shipment.</param> /// <param name="numberOfCopies">The number of copies.</param> public static void Print( TDCShipment shipment, int numberOfCopies, TDCShipment.ReportTypeEnum reportType) { // Print the shipment TDCShipmentPrintable printableShipment = new TDCShipmentPrintable(); // Map this shipment to a printable one, we could have gone off the the DB Mapper.Map(shipment, printableShipment, "NA", "NA", null, null); // Print the shipment Print(printableShipment, numberOfCopies, reportType); }
/// <summary> /// Prints the specified shipment. /// </summary> /// <param name="shipment">The shipment.</param> /// <param name="numberOfCopies">The number of copies.</param> public static void Print( TDCShipmentPrintable shipment, int numberOfCopies, TDCShipment.ReportTypeEnum reportType) { // Create a list of shipments List <TDCShipmentPrintable> shipments = new List <TDCShipmentPrintable>(); // Add the shipment to the list shipments.Add(shipment); // Print the shipment Print(shipments, numberOfCopies, reportType); }