1 PACKAGE INV_PRINT_REQUEST AUTHID CURRENT_USER AS
2 /* $Header: INVPRRQS.pls 115.7 2003/10/31 23:56:04 qxliu ship $ */
3 G_PKG_NAME CONSTANT VARCHAR2(50) := 'INV_PRINT_REQUEST';
4
5 PROCEDURE SYNC_PRINT_REQUEST
6 (
7 p_xml_content IN LONG
8 , x_job_status OUT NOCOPY VARCHAR2
9 , x_printer_status OUT NOCOPY VARCHAR2
10 , x_status_type OUT NOCOPY NUMBER
11 );
12
13 PROCEDURE WRITE_XML
14 (
15 p_xml_content IN LONG
16 , p_request_id IN NUMBER
17 , x_return_status OUT NOCOPY VARCHAR2
18 , x_msg_count OUT NOCOPY NUMBER
19 , x_msg_data OUT NOCOPY VARCHAR2
20 );
21
22 PROCEDURE GET_REQUEST_STATUS
23 (
24 p_request_id IN NUMBER
25 , x_job_status OUT NOCOPY VARCHAR2
26 , x_printer_status OUT NOCOPY VARCHAR2
27 , x_status_type OUT NOCOPY NUMBER
28 );
29
30 /*
31 * Method for sending the label XML file to a TCP-IP address when profile
32 * WMS:Label Print Mode is set to Synchronous TCP/IP. The TCP-IP address
33 * is derived by first retrieving the printer specified in the XML file,
34 * and then doing a lookup for this printer in the Printer-IP table.
35 */
36 PROCEDURE SYNC_PRINT_TCPIP
37 (
38 p_xml_content IN LONG
39 , x_job_status OUT NOCOPY VARCHAR2
40 , x_printer_status OUT NOCOPY VARCHAR2
41 , x_status_type OUT NOCOPY NUMBER
42 , x_return_status OUT NOCOPY VARCHAR2
43 , x_return_msg OUT NOCOPY VARCHAR2
44 );
45
46 /*
47 * Method for sending a string to a TCP-IP address. Used to send the
48 * label-XML file to a print-server. The x_return_msg returns any
49 * message send back from this TCP-IP address. This function returns
50 * 0 if the file was send successfully. It returns -1 if there was
51 * any error.
52 */
53 FUNCTION SEND_XML_TCPIP
54 (
55 p_ip_address IN VARCHAR2
56 , p_port IN VARCHAR2
57 , p_xml_content IN VARCHAR2
58 , x_return_msg OUT NOCOPY VARCHAR2
59 , x_printer_status OUT NOCOPY VARCHAR2
60 ) return NUMBER;
61
62 END INV_PRINT_REQUEST;