CN102279719B - Printing control method - Google Patents

Printing control method Download PDF

Info

Publication number
CN102279719B
CN102279719B CN201110240677.9A CN201110240677A CN102279719B CN 102279719 B CN102279719 B CN 102279719B CN 201110240677 A CN201110240677 A CN 201110240677A CN 102279719 B CN102279719 B CN 102279719B
Authority
CN
China
Prior art keywords
ticket
printer
print
printing
appointed object
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110240677.9A
Other languages
Chinese (zh)
Other versions
CN102279719A (en
Inventor
彭松
刘猛
谢闯
沈滨
罗春水
黄河
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CHINA SPORTS LETTWAY TECHNOLOGY DEVELOPMENT Co Ltd
Original Assignee
CHINA SPORTS LETTWAY TECHNOLOGY DEVELOPMENT Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CHINA SPORTS LETTWAY TECHNOLOGY DEVELOPMENT Co Ltd filed Critical CHINA SPORTS LETTWAY TECHNOLOGY DEVELOPMENT Co Ltd
Priority to CN201110240677.9A priority Critical patent/CN102279719B/en
Publication of CN102279719A publication Critical patent/CN102279719A/en
Application granted granted Critical
Publication of CN102279719B publication Critical patent/CN102279719B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Time Recorders, Dirve Recorders, Access Control (AREA)

Abstract

The invention provides a printing control method which comprises the steps of: A. receiving a current printing instruction, and determining the printing status of an appointed object; and B. according to the determined result, displaying the appointed object in a rollback way or printing a non-appointed object. By using the printing control method provided by the invention, the issuing process of lottery tickets can be adjusted in time through judgment of the printing status of the appointed object (the serial number of lottery tickets and password thereof), thus the ticket issuing process is judged by multiple times or twice to ensure the issuing rate of lottery tickets.

Description

Print control program
Technical field
The present invention relates to a kind of control method of print lottery tickets.
Background technology
In sports lottery ticket terminating machine ticket sale process, often occur " lottery data has been recorded in transaction system background data base; but point-of-sale terminal printer does not print complete lottery ticket or prints blank vote, half ticket, mess code ticket " etc. phenomenon, terminating machine owner is referred to as " eating ticket " conventionally.Eat ticket problem has existed since the distribution of computer sports lottery ticket always, this problem probability of happening is very low, and many situations are difficult to sees at the scene or reappears in laboratory, but along with the increasing of terminal quantity, this problem is also increasing to the threat of sports lottery ticket safety in production in recent years.
At old lottery ticket, print in flow process, there will be the ticket of eating that user cannot perception to occur, when printer breaks down, cause any print command all not carried out, and now user cannot judge that this ticket is not send to backstage actually, but still sent to backstage printer, do not print, now user cannot carry out manually cancelling operation.
In addition, if there is misprint when printing sequence number and password, cause printing sequence number and password failure, although user perceives the generation of eating ticket, due to sequence number and password, do not print successfully, user can not cancel operation.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of control method of print lottery tickets, in existing printing flow process, by increasing the judgement to ticket serial number and password print state thereof, adjust in time the flow process of drawing a bill of lottery ticket, can carry out multiple or dual judgement to the process of drawing a bill, thereby guarantee the rate of drawing a bill of lottery ticket.
To achieve these goals, the present invention proposes a kind of print control program, it is characterized in that, comprise the steps:
A. receive current print command, confirm the print state of appointed object;
B. according to confirming result, appointed object is carried out rollback or carries out the printing of non-designated object.
Draw from the above mentioned, can be by increasing the judgement to appointed object (comprising ticket serial number and lottery ticket password) print state, adjust in time the flow process of drawing a bill of lottery ticket, realize the multiple or dual judgement to the process of drawing a bill, guarantee the rate of drawing a bill of lottery ticket.
Preferably, before described steps A, also comprise: the executing state of the print command that A1. judgement had previously sent, determines whether to carry out current print command according to this judged result.
Preferably, described steps A 1 comprises: carrying out before print command, set printer modes; According to the implementation status of print command, adjust the set condition of printer; According to the set condition of printer after adjusting, judge whether to carry out current print command.
Draw from the above mentioned, by the confirmation of printer print state is judged whether to carry out current print command, guarantee that all print out task can print successfully, avoid under busy or malfunction, no marking occurring because of printer.
Preferably, before described steps A, also comprise: A0. printer enters after open state, first carry out the printing of sample ticket, according to sample ticket, print situation, judge the work at present state of printer.
Draw from the above mentioned, by printing sample ticket, confirm the running status of printer, under guaranteeing that printer can normally be printed, start print lottery tickets, thereby avoid, when printing first lottery ticket, eating ticket phenomenon.
Optionally, described steps A 0 comprises following mode:
A01. printer enters after open state, and system is carried out the printing of sample ticket automatically, according to sample ticket, prints situation, judges the work at present state of printer;
If A02. the sample ticket in steps A 01 is printed unsuccessfully, after printer fault is got rid of, system receives and again prints the instruction of sample ticket and print sample ticket;
A03. according to sample ticket in steps A 02, print situation, judge the work at present state of printer, if sample ticket is printed successfully, the work at present state of printer is normal.
Draw from the above mentioned, by system, when control realizes start automatically, print sample ticket, thereby avoid, when printing first lottery ticket, eating ticket phenomenon.
Optionally, described step B comprises one of following situation:
B1. appointed object is printed successfully, continues to carry out the printing of non-designated object;
B2. appointed object is printed unsuccessfully, and system sends rollback request to server, according to request results, appointed object is carried out to rollback demonstration;
B3. appointed object is printed successfully, but not appointed object prints unsuccessfully, via send the operation of cancelling lottery ticket application with user orientation server.
Draw from the above mentioned, for the concrete printing conditions of appointed object, can carry out rollback demonstration to ticket serial number and lottery ticket password, can show in time printing failed lottery information.
Optionally, before described step B2 and B3, also comprise: system is sent the indication of recording appointed object prompting user record appointed object information.
Draw from the above mentioned, by system alert ticket seller, recording appointed object is the information such as ticket serial number and lottery ticket password, can prevent that automatic rollback from unsuccessfully cannot send the situation generation of cancelling corresponding lottery ticket application to server.
Preferably, described step B2 and B3 also comprise: system log (SYSLOG) appointed object information, and/or, rollback state.
Draw from the above mentioned, when lottery ticket rollback, no matter rollback success or not, system all records this rewind journal, comprise ticket serial number, lottery ticket password and rollback state, the operation rollback that anti-locking system auto back rolls or ticket seller cancels lottery ticket application shows unsuccessfully and loses the information such as ticket serial number and lottery ticket password.
Preferably, described appointed object at least comprises ticket serial number and lottery ticket password; Described non-designated object refers to remove in individual lottery ticket nominal value other information outside sequence number and lottery ticket password.
Draw from the above mentioned, by only ticket serial number and lottery ticket password being printed to judgement, can reduce judgement and print the time that prints business and consume, guaranteed the efficiency of print lottery tickets.
Accompanying drawing explanation
Fig. 1 represents the process flow diagram of print control program;
Fig. 2 represents to judge the schematic diagram of printer modes, is a kind of embodiment;
Fig. 3 represents to judge the schematic diagram of printer modes, is another kind of embodiment;
Fig. 4 represents to use the schematic diagram of this print control program, is a kind of embodiment.
Embodiment
Shown in Fig. 1-Fig. 4, to use printer print lottery tickets as example, describe method of the present invention in detail.
Lottery ticket, to raise funds as object distribution, is printed on the information such as number, figure, word, face amount in the above, wherein, is printed on the sequence number that number at par is lottery ticket, is for identifying a foundation that lottery ticket is different from other lottery tickets.In the present embodiment, described appointed object comprises ticket serial number and lottery ticket password, and for example, ticket serial number is 00081617253010000001; Described non-designated object refers to remove other information outside sequence number and lottery ticket password in individual lottery ticket nominal value, comprises figure, word, face amount etc.Existing lottery ticket sales mode mainly realizes by several lottery selling stations are set in the whole nation, at these lottery selling stations, be provided with ticketing terminal machine, this terminating machine is connected with printer with director server respectively, ticket seller sends to server by client's stake information, server can calculate information such as generating a unique ticket serial number and lottery ticket password, and these information are carried out to record, then the information such as sequence number, password are returned to terminal, terminal prints these information by printer.By printer, print this ticket information, whole ticket sale process be similar to railway station ticket sale system and many generations ticket counter.The following system of mentioning or application program refer in prior art, are arranged on the control system or the software program that on terminating machine, director server and printer, are used for realizing information interaction, in order to control, print, and rollback demonstration etc.
As shown in Figure 1, for using the main process flow diagram of printer print lottery tickets.Specifically comprise the steps:
Step S1, confirms that whether the work at present state of printer is normal.If printer can normally be carried out printing, carry out current print command; If can not carry out printing, printer is detected to fix a breakdown, thereby continue to carry out current print command.
In this step, whether the work at present state that can confirm printer by following two kinds of modes is normal, comprising:
S11, printer enters after open state, first carries out the printing of sample ticket, according to sample ticket, prints situation, judges the work at present state of printer.When carrying out the printing of sample ticket, can automatically carry out the printing of sample ticket via application program, according to the printing situation of sample ticket, judge that whether the start duty of printer is normal.Described sample ticket is printed and judge that the state that flow process has just been started shooting mainly for printer carries out.For sample ticket, print failed situation, after printer fault is got rid of, user can manually select to print sample ticket, and system receives again to be printed the instruction of sample ticket and print sample ticket.If sample ticket is printed successfully, the work at present state of printer is normal.
As shown in Figure 2, adopt above-mentioned sample ticket to print flow process, the front inspection that increases printer printing sample ticket state of the ticketing for the first time of starting shooting, salesman, having inputted stake Information buys a ticket after button, first system judges whether printer prints the success of sample ticket, successful continue to print current lottery ticket, otherwise system will point out salesman to check printer and whether print sample ticket test printing machine normal.Salesman is in the situation that printing the failure of sample ticket after login system, if check, printer is errorless, can be by again printing sample ticket, and revise the printer of current terminal record and print sample ticket state.
S12, the executing state of the print command that judgement had previously sent, determines whether to carry out current print command according to this judged result.In this step, mainly by increasing ETB flow process, detect the executing state of printer instructions, comprising: carrying out before print command, set printer modes, for example, setting printer modes is " busy "; According to the implementation status of print command, adjust the set condition of printer; According to the set condition of printer after adjusting, judge whether to carry out current print command.
To increase ETB flow process as example, describe this step S12 in detail below, specifically comprise:
Use " PrinterOpen " to connect printer.
Use " PrinterDeviceEnable " to set the init state of printer.
Data to be printed are sent to printer.
Before execution print command, setting printer modes is " busy ".
Use " PrinterSendETB " to enter ETB flow process, ETB can record the implementation status of current print command.
Use " PrinterIsBusy " to judge whether ETB recovers, if Yes not yet handles leading portion instruction for printer, enter and wait for and check that " error code " checks that whether printer modes is normal, rechecking n time, if be still that " busy " state returns to time-out printing mistake, if " PrinterIsBusy " replys, be that No represents that previous instruction is complete.
If instruction is complete before, continue to print bar code cut paper.
Above-mentioned S 11 and S 12 are the whether normal two kinds of implementations of work at present state of confirming printer, wherein, the operation conditions of corresponding printer when S11 has just started shooting mainly for ticket machine, S12 is mainly for the continuous duty of printer in ticket sale process.By the judgement to printer duty, can avoid causing not carrying out print command because printer breaks down, actually be conducive to judge that corresponding lottery ticket does not send to backstage, still but having sent to backstage printer does not print.Under normal circumstances, in ticket sale process, adopt this two kinds of judgment modes simultaneously.
Step S2, printer, in normal print state, receives current print command, starts the ticket information such as sequence number, figure, word, face amount of print lottery tickets, and judges the print state of ticket serial number and lottery ticket password simultaneously.In step S2, application program is in the print procedure of whole lottery ticket, only once judge having printed after ticket serial number and lottery ticket password, and when having printed, whole ticket information do not increase judgement flow process, thereby can reduce the time that judges print out task and consume, guarantee the efficiency of print lottery tickets.
Described step S2 is in existing ticketing program, and every ticket of increase is confirmed flow process, and by this flow process, if there is misprint when printing sequence number and password, system can be made the counter-measure described in following step S3 in time.Step S2 combines with two judgment modes (being S11 and S12) or one in abovementioned steps S1, can carry out multiple or dual judgement to the process of drawing a bill, thereby guarantee the rate of drawing a bill of lottery ticket, prevents to eat ticket phenomenon.
Step S3, according to confirming result, highlights or carries out the printing of non-designated object to appointed object.In the print procedure of individual lottery ticket, according to the printing situation of the ticket serial number drawing in step S2 and lottery ticket password, determine next step duty of printer.The printing situation of described ticket serial number and password thereof mainly comprises the one in situation as described below.Be specially:
S31, ticket serial number and password thereof are printed successfully, continue to print other ticket information, and for example, figure, word, face amount etc., successfully print corresponding lottery ticket.In this case, all ticket information of lottery ticket all show smoothly, and system can continue the printing of next lottery ticket.
S32, ticket serial number and password thereof are printed unsuccessfully, from trend server, send rollback request and judge whether success of rollback, if rollback request success, terminal shows ticket serial number and password thereof, specifically as shown in Figure 3; If rollback request failure, situation described in corresponding following S33 or S34.If there is misprint when printing sequence number, to cause printing sequence number and password failure, although ticket seller can perceive and eat ticket in this case, but because sequence number and password are not printed successfully, ticket seller also cannot cancel operation, for this situation, system will send rollback request and record the information such as sequence number of described lottery ticket from trend server.
S33, ticket serial number and lottery ticket password are printed successfully, for example, and other ticket information (, figure, word, face amount etc.) print unsuccessfully, for this situation of having known ticket serial number and lottery ticket password, system will can not send rollback request from trend server, send the operation of cancelling lottery ticket application via ticket seller to server.
Optionally, system is when a kind of mode of carrying out in above-mentioned S31-S33, and before step S32 or S33, system also can be sent the prompting of reminding ticket seller to record ticket serial number and password thereof, enters rollback flow for displaying receiving after ticket seller's confirmation.Adopt in this way, can roll failure and lose the information such as ticket serial number and password thereof by anti-locking system auto back.
Optionally, system is when a kind of mode of carrying out in above-mentioned S31-S33, and system has also increased log recording, and application program records the information such as ticket serial number and password thereof automatically) and/or the situation such as rollback state.When the situations such as described rollback state mainly refer to that system is carried out rollback and shown, sequence number, the password of included demonstration lottery ticket, and the information such as the rollback time, number of times that show.Adopt this rollback recording mode, can anti-locking system auto back roll or ticket seller carries out rollback and shows unsuccessfully and lose the information such as ticket serial number and password thereof.
As shown in Figure 4, for a kind of embodiment of described lottery ticket print control program, specifically comprise the steps:
S41, printer enters after open state, first carries out the printing of sample ticket, according to sample ticket, prints situation, judges the current state of printer.If sample ticket is printed successfully, enter S421; If sample ticket is printed unsuccessfully, enter S422.
S421, printer can normally be printed, and setting printer modes is " OK ", enters S43.
S422, printer can not normally be printed, and system will point out salesman to check printer, and whether again print sample ticket test printing machine normal, if Failure elimination enters S421.
S43, judges that whether printer is in busy condition (PrintIsbusy), specifically as described in preceding step S12.If feedback result is " No ", enter step S441; If return results as " Yes ", enter step S442.
S441, carries out the printing that n opens (n is more than or equal to 1) lottery ticket, enters step S45.
S442, detects printer and eliminates printer fault, if Failure elimination returns to step S43.
S45, judges that whether sequence number and password that n opens (n is more than or equal to 1) lottery ticket are printed successfully, if print successfully, enter step S461; If print unsuccessfully, enter step S462.
S461, continues to print n and opens other ticket information of (n is more than or equal to 1) lottery ticket, if printed, enters step S47.
S462, sequence number and password that application program is opened (n is more than or equal to 1) lottery ticket by n send to server, to server, send rollback request, carry out rollback demonstration, if rollback success enters step S47.
S47, judges that whether printer is in busy condition (PrintIsbusy), specifically as described in preceding step S12.If feedback result is " No ", enter step S481; If return results as " Yes ", enter step S482.
S482, detects printer and eliminates printer fault, if Failure elimination returns to step S47.
S481, carries out the n+1 printing of opening (n is more than or equal to 1) lottery ticket, so repeats above steps, realizes the lottery ticket real-time oversight of process of drawing a bill, thereby guarantees the lottery ticket rate of drawing a bill.
By the specific embodiment shown in Fig. 4, can find out, drawing a bill in process of lottery ticket, first the start duty of printer is confirmed, in the situation that printer can normally be printed, then enter the flow process of drawing a bill normally; In continuous ticket sale process, system, when judging that printer is carried out print out task situation, has increased the confirmation to ticket serial number and password, realizes every ticket of the process of drawing a bill is confirmed.This shows, on the one hand, can be by judging that the print state of printer has judged whether the printing of individual lottery ticket, on the other hand, in the print procedure of individual lottery ticket, also, by judging the print state of ticket serial number and password, obtain in time the current concrete printing situation that is printed lottery ticket, thereby make in time rollback prompting or other inspection operations according to printing situation.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention.For example, of the present invention focusing on, in existing lottery ticket print procedure, increased the judgement to appointed object print state, wherein, cited various concrete printing flow process is not limited to this, also comprises other printing flow processs of the prior art, at this, does not repeat.
In a word, within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (7)

1. a print control program, is characterized in that, comprises the steps:
A. receive current print command, confirm the print state of appointed object;
B1. appointed object is printed successfully, continues to carry out the printing of non-designated object;
B2. appointed object is printed unsuccessfully, and system sends rollback request to server, according to request results, appointed object is carried out to rollback demonstration;
B3. appointed object is printed successfully, but not appointed object prints unsuccessfully, via send the operation of cancelling lottery ticket application with user orientation server;
Described appointed object comprises sequence number and the lottery ticket password of individual lottery ticket, and described non-designated object refers to remove in individual lottery ticket nominal value other information outside ticket serial number and lottery ticket password.
2. method according to claim 1, is characterized in that, before described steps A, also comprises:
The executing state of the print command that A1. judgement had previously sent, determines whether to carry out current print command according to this judged result.
3. method according to claim 2, is characterized in that, described steps A 1 comprises:
Carrying out before the print command previously having sent, set printer modes;
According to the implementation status of the print command of previous transmission, adjust the set condition of printer;
According to the set condition of printer after adjusting, judge whether to carry out current print command.
4. method according to claim 1, is characterized in that, before described steps A, also comprises:
A0. printer enters after open state, first carries out the printing of sample ticket, according to sample ticket, prints situation, judges the work at present state of printer.
5. method according to claim 4, is characterized in that, described steps A 0 comprises:
A01. printer enters after open state, and system is carried out the printing of sample ticket automatically, according to sample ticket, prints situation, judges the work at present state of printer;
If A02. the sample ticket in steps A 01 is printed unsuccessfully, after printer fault is got rid of, system receives and again prints the instruction of sample ticket and print sample ticket;
A03. according to sample ticket in steps A 02, print situation, judge the work at present state of printer, if sample ticket is printed successfully, the work at present state of printer is normal.
6. method according to claim 1, is characterized in that, before described step B2 and B3, also comprises:
System is sent the indication of recording appointed object, prompting user record appointed object information.
7. method according to claim 1, is characterized in that, described step B2 also comprises:
System log (SYSLOG) appointed object information, and/or, rollback state.
CN201110240677.9A 2011-08-19 2011-08-19 Printing control method Active CN102279719B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110240677.9A CN102279719B (en) 2011-08-19 2011-08-19 Printing control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110240677.9A CN102279719B (en) 2011-08-19 2011-08-19 Printing control method

Publications (2)

Publication Number Publication Date
CN102279719A CN102279719A (en) 2011-12-14
CN102279719B true CN102279719B (en) 2014-04-16

Family

ID=45105191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110240677.9A Active CN102279719B (en) 2011-08-19 2011-08-19 Printing control method

Country Status (1)

Country Link
CN (1) CN102279719B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104574626A (en) * 2014-12-19 2015-04-29 合肥彩象信息科技有限公司 Automatic lottery ticket printing system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004157883A (en) * 2002-11-07 2004-06-03 Nec Corp Web site content management system and program
US7934213B2 (en) * 2004-11-09 2011-04-26 Microsoft Corporation Device driver rollback
US20060136833A1 (en) * 2004-12-15 2006-06-22 International Business Machines Corporation Apparatus and method for chaining objects in a pointer drag path
JP5235456B2 (en) * 2008-03-14 2013-07-10 キヤノン株式会社 Information transmission apparatus and transmission state management apparatus
CN101887386A (en) * 2010-06-02 2010-11-17 深圳市迪菲特科技股份有限公司 Method and system for processing failure of redundant array of independent disk controller

Also Published As

Publication number Publication date
CN102279719A (en) 2011-12-14

Similar Documents

Publication Publication Date Title
US8595312B2 (en) Master device detecting or host computer detecting new device attempting to connect to controller area network (CAN)
US9177272B2 (en) Method and system of obtaining diagnostic data from a device at a remote location
US20040141202A1 (en) Print data controlling method
US20090159661A1 (en) Self-service terminal
CN103150237A (en) Fault-based unit replacement
EP3118804A1 (en) Self-service terminal service emergency method and site server
CN102279719B (en) Printing control method
CN109003065B (en) Detection processing system for cash transaction abnormity of parking lot charging machine
CN103019629A (en) Printing apparatus, information processing apparatus, printing system, and computer readable medium
US9071634B2 (en) Network management system, software and method
CN108777042B (en) Method for realizing self-service printing equipment for inspection and quarantine origin certificate
JP2004164209A (en) Automatic transaction system
CN116149932A (en) Method and device for detecting software system state and electronic equipment
JP2008140374A (en) Print accounting system and print accounting method
JP3280400B2 (en) Automatic transaction equipment
JP2007249630A (en) Financial transaction system
CN102376115A (en) Lottery printing method and lottery printing system
JP2002334281A (en) Automatic printing system, device and method
JP2743815B2 (en) Batch processing of deposit and withdrawal transactions
JP2005100075A (en) Automatic media repair system
JP2014238780A (en) Transaction device, transaction program, and transaction system
JPH0743787B2 (en) Ticketing management system for voting system
JP3395834B2 (en) Prepaid card system and sales information processing method
JP2009289040A (en) Id issuing system and id issuing server used therein
JP2006092402A (en) Seal impression collation system and recognition terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant