Movatterモバイル変換


[0]ホーム

URL:


CN109460196A - A method of printing stamping general utility functions is realized based on the new platform of driving - Google Patents

A method of printing stamping general utility functions is realized based on the new platform of driving
Download PDF

Info

Publication number
CN109460196A
CN109460196ACN201811260337.0ACN201811260337ACN109460196ACN 109460196 ACN109460196 ACN 109460196ACN 201811260337 ACN201811260337 ACN 201811260337ACN 109460196 ACN109460196 ACN 109460196A
Authority
CN
China
Prior art keywords
driving
function
variable
parameter
field
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.)
Granted
Application number
CN201811260337.0A
Other languages
Chinese (zh)
Other versions
CN109460196B (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.)
Inspur Financial Information Technology Co Ltd
Original Assignee
Suzhou Wave Intelligent Software 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 Suzhou Wave Intelligent Software Co LtdfiledCriticalSuzhou Wave Intelligent Software Co Ltd
Priority to CN201811260337.0ApriorityCriticalpatent/CN109460196B/en
Publication of CN109460196ApublicationCriticalpatent/CN109460196A/en
Application grantedgrantedCritical
Publication of CN109460196BpublicationCriticalpatent/CN109460196B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention discloses a kind of based on the method for driving new platform to realize printing stamping general utility functions, and driving layer adapts to projects the switching of function and do not realize whether use function of affixing one's seal between upper layer caller by way of configurable;The internal multiple independent modules of simple function of definition driving meet the different business logic processing of upper layer caller by the logical combination of simple function module;Definition drives internal general data storage organization body, meets the stability of driving built-in function and logical process;In terms of abnormality processing, by another thread monitor printer modes, recovery and the immediate updating of printer modes are completed.By the above-mentioned means, function modoularization degree of the present invention is high, each functions of modules solidification, processing is stablized, and each function is realized according to the characteristic of bottom hardware itself, processing is comprehensively, independence is strong, abnormality processing mode is more flexible rationally, meets the various cases of client traffic logical process.

Description

A method of printing stamping general utility functions is realized based on the new platform of driving
Technical field
The present invention relates to self-aided terminal product scopes, realize that printing stamping is logical based on the new platform of driving more particularly to one kindWith the method for function.
Background technique
In current self-help terminal equipment field, laser printer and seal-affixing machine module connect in XFS (financial service extension)There is no a standard interface in mouthful specification, application definition interface generally uses PTR printer standard interface, but each application is to respectively connecingMouth and parameter have the format of oneself, therefore drive layer when handling the order and parameter that upper layer application issues, for differentApplication item is it is necessary to there is different processing modes.
Although the function of projects may be implemented in used driving platform, due to printing stamping Development of Module itJust there is no master-plan and planning, cause each project that will change on original procedure basis in the Development of Module larger,And function treatment is not comprehensive enough.
Summary of the invention
The invention mainly solves the technical problem of providing one kind to realize printing stamping general utility functions based on the new platform of drivingMethod, in the driving of the new Platform Designing module, only for the printing function of each project, only need to patrolling according to applicationVolume, the character string parsing into ginseng is completed inside driving layer, the logic of modules is called, so that it may complete the printing stamping of this projectFunction, exploitation amount is small, improves development efficiency.Drive inner function module degree high, each functions of modules solidification, processing is surelyIt is fixed, and each function is realized according to the characteristic of bottom hardware itself, processing is comprehensively, independence is strong, abnormality processing mode is clevererIt is living reasonable, meet the various cases of client traffic logical process.
In order to solve the above technical problems, one technical scheme adopted by the invention is that: it provides a kind of based on the new platform of drivingThe method for realizing printing stamping general utility functions, the order issued according to different driving caller and parameter carry out printing stamping, firstFirst it will be converted into the internal general parameter of driving using the order and parameter that issue, flexibly to call in each driving convenient for application interfacePortion's function simultaneously reduces the coupling between each functional module, according to printing stamping module hardware attribute, by printing stamping logic flowJourney is probably split are as follows: internal common variable function of initializing module, print module, module of affixing one's seal, judgement printing (affixing one's seal) terminateModule, these modules are called according to the logic function demand combinations of command in combination and repeatedly realizes that bulk print is affixed one's seal function;If applied business does not need module of affixing one's seal, inside can be driven to never call function of affixing one's seal according to the adjustment of configuration;
Further, the process for driving internal general parameter processing is converted into using the order and parameter that issue include the following:
A, it first determines whether to apply into whether ginseng is empty, directly return failure if sky;If not empty, judge that input parameter is longDegree whether≤0? if≤0 returns to failure;
B, effective into ginseng using issuing, internal general parameter variable is emptied, and to all initialization of variable assignment, parsing is answeredPrinter driver is arrived according to the driving naming method assignment of definition according to the information of specific field with each field issuedIn structural body variable, according to the information of specific field, assignment is into structural body variable, every other field all assignment to structural bodyIn corresponding variable;
C, each field processing mode of structural body is as follows: the field being resolved to before specific field, is worth after assignment and no longer changes;The corresponding variable of all arrays is unified assignment after obtaining corresponding data by the field being resolved to after specific field;
D, the processing of mimeograph documents field are as follows: specific field is often resolved to, just by the file information assignment to structural body variableIn, and be pressed into internal general aray variable, it may know that by the length of array using the quantity of documents to be printed, andThe storage sequence of file is the page order of file in variable data array, is arranged and prints fully according to application transmitting sequence;
E, all Parameter analysis of electrochemical are completed and are stored in the internal general array of driving, start to execute printing function, and according toThe printing stamping information stored in array completes the printing of file.
The beneficial effects of the present invention are: driving of the present invention in the new Platform Designing module, only to the printing of each projectFor function, only the logic tune that the character string parsing into ginseng, modules are completed inside layer need to be driven according to the logic of applicationWith, so that it may the printing stamping function of this project is completed, exploitation amount is small, improves development efficiency.Drive inner function module journeyDegree is high, and each functions of modules solidification, processing is stablized, and realizes each function according to the characteristic of bottom hardware itself, and processing is comprehensively, solelyVertical property is strong, abnormality processing mode is more flexible rationally, meets the various cases of client traffic logical process.
Detailed description of the invention
Fig. 1 is that the present invention is a kind of based on the method framework map for driving new platform to realize printing stamping general utility functions;
Fig. 2 is to apply to issue parameter turn in a kind of shown method based on the new platform realization printing stamping general utility functions of drivingIt is changed to the internal general parameter flow processing figure of driving.
Specific embodiment
The preferred embodiments of the present invention will be described in detail with reference to the accompanying drawing, so that advantages and features of the invention energyIt is easier to be readily appreciated by one skilled in the art, so as to make a clearer definition of the protection scope of the present invention.
Fig. 1 and Fig. 2 are please referred to, the embodiment of the present invention includes:
A method of based on driving new platform to realize printing stamping general utility functions, drive layer by way of configurable,Adapt to projects the switching of function and do not realize whether use function of affixing one's seal between upper layer caller;Definition driving is internal multipleThe independent module of simple function is met at the different service logic of upper layer caller by the logical combination of simple function moduleReason;Definition drives internal general data storage organization body, meets the stability of driving built-in function and logical process;In exceptionReason aspect, by another thread monitor printer modes, completes recovery and the immediate updating of printer modes.
In the present invention, a set of driver of new platform can meet the calling of different upper layer applications.If Fig. 1 is new flatPlatform drives printing stamping general utility functions architecture design figure, for application calling interface and the difference for issuing parameter, realizes hardware phaseSame printing stamping function.It is as follows using the order and parameter declaration that issue: CmdRawData1~N and ControlMediaA~B is that different application is to realize that bulk print is affixed one's seal the same class command in combination issued respectively, and Param1~N and ParamA~B areUsing the parameter for the different printing stamping functions of issuing respectively;In some projects, according to the definition of upper layer application oneself, only makeWith CmdRawData1~N and Param1~N, the ControlMediaA~B and ParamA~B of dotted line frame are not used.
Firstly the need of the order issued and parameter will be applied to be converted into the internal general parameter of driving, for convenient for application interface spiritIt is living to call each driving built-in function and reduce the coupling between each functional module, it, will according to printing stamping module hardware attributePrinting stamping logic flow is probably split are as follows: internal common variable function of initializing module, print module, module of affixing one's seal, judgementPrint (affixing one's seal) ending module, these modules according to CmdRawDataN and ControlMediaN logic function demand combinations andIt repeatedly calls and realizes that bulk print is affixed one's seal function.If applied business does not need module of affixing one's seal, can be driven according to the adjustment of configurationNever call the function of affixing one's seal of dotted line frame in inside.
By taking certain embodiment as an example, it is to drive internal general parameter flow processing figure if Fig. 2 is using Parameter Switch is issued, answersWith issuing parameter format are as follows:
" pagesource=A4;Copies=2;File [0]=
C:\pr_A4.html;File [1]=C: pr_1/3A4.html;Stamp=0;Duplex=2;Color=0;Direction=0;"
Flow chart for ease of understanding, the variable declaration used in figure are as follows:
Char*lpbData: the parameter that application issues;
Int nLen: the length of parameter lpbData;
PRINTINFO m_stPrintInfo: storage monofile print out task drives internal generic structures body;
Single file type information structural body is defined as follows:
Information structure of affixing one's seal is defined as follows:
Vector<PRINTINFO>m_vecInfo: the internal general number of storage batch (multiple files) print out task drivingGroup;
M_vecInfo.pushBack (): current type information structural body is pressed into array;
ClearRawData (): initializing variable is emptied;
PrintRawData (): printer realizes printing (affixing one's seal) function;
It is described below and parameter is issued by application, parsing is converted to the process for driving internal general parameter processing:
A, it first determines whether to apply into whether ginseng is empty, directly return failure if sky;If not empty, judge that input parameter is longDegree whether≤0? if≤0 returns to failure;
B, effective into ginseng using issuing, internal general parameter variable is emptied, and to all initialization of variable assignment, parsing is answeredWith each field issued, according to the information of field " pagesource=" and " direction=", by printer driver according toThe driving naming method assignment that we define is into structural body variable m_stPrintInfo.pchDriverName, according to fieldThe information of " copies=", into structural body variable m_stPrintInfo.nCopies, every other field all assignment arrive assignmentIn the corresponding variable of structural body.
C, every time application to print several files be it is unknown uncertain, issue parameter by application and learn, each taskIn addition to file is different, other it is all printing and information of affixing one's seal all be it is identical, each field processing mode of structural body is as follows:The field being resolved to before " file [" field is worth after assignment and no longer changes;The field being resolved to after " file [" field, is obtainingAfter corresponding data, the corresponding variable of all arrays is unified into assignment, ensures that issue task using primary in this way, it is all to beatPrint task can be consistent in addition to mimeograph documents, other printing stamping information.
D, the processing of mimeograph documents field are as follows: be often resolved to field " file [", just become the file information assignment to structural bodyIt measures in m_stPrintInfo.pchFiles, and is pressed into internal general array m_vecInfo variable, pass through m_vecInfoThe length of array may know that using the quantity of documents to be printed, and the storage sequence of file is beating for file in variable data arrayPrint sequence is arranged and is printed fully according to application transmitting sequence.
E, all Parameter analysis of electrochemical are completed and are stored in the internal general array of driving, start to execute printing functionPrintRawData (), and according to the printing of the printing stamping information completion file stored in array.
In terms of abnormality processing, because some exceptions are to need artificial participation to solve, and manually solving the time is often notIt is determining, so in the case where following hardware self character and applied business process, opens another thread and specially monitor and beatPrint machine state, after occurring extremely, driving layer deletes print out task, etc. equipment states be in when can restore state, execute recoveryPrinter printing function.
The present invention only need to be according to answering only for the printing function of each project in the driving of the new Platform Designing moduleLogic, the character string parsing into ginseng is completed in driving layer inside, the logic of modules is called, so that it may complete beating for this projectStamp cover Zhang Gongneng, exploitation amount is small, improves development efficiency.Drive inner function module degree high, each functions of modules solidification, placeReason is stablized, and realizes each function according to the characteristic of bottom hardware itself, processing is comprehensively, independence is strong, abnormality processing mode moreIt is flexibly reasonable to add, and meets the various cases of client traffic logical process.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hairEquivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skillsArt field, is included within the scope of the present invention.

Claims (2)

1. a kind of based on the method for driving new platform to realize printing stamping general utility functions characterized by comprising according to different drivesThe order and parameter that dynamic caller issues carry out printing stamping, and it is internal to be converted into driving using the order and parameter that issue firstGeneral parameter, flexibly to call each driving built-in function convenient for application interface and reducing the coupling between each functional module, rootAccording to printing stamping module hardware attribute, printing stamping logic flow is probably split are as follows: internal common variable function of initializing mouldBlock, print module, module of affixing one's seal, judgement printing (affixing one's seal) ending module, these modules are according to the logic function of command in combinationIt demand combinations and repeatedly calls and realizes that bulk print is affixed one's seal function;It, can be according to configuration if applied business does not need module of affixing one's sealAdjustment, driving is internal to never call function of affixing one's seal.
CN201811260337.0A2018-10-262018-10-26Method for realizing printing and stamping general function based on new driving platformActiveCN109460196B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201811260337.0ACN109460196B (en)2018-10-262018-10-26Method for realizing printing and stamping general function based on new driving platform

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201811260337.0ACN109460196B (en)2018-10-262018-10-26Method for realizing printing and stamping general function based on new driving platform

Publications (2)

Publication NumberPublication Date
CN109460196Atrue CN109460196A (en)2019-03-12
CN109460196B CN109460196B (en)2021-11-09

Family

ID=65608574

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201811260337.0AActiveCN109460196B (en)2018-10-262018-10-26Method for realizing printing and stamping general function based on new driving platform

Country Status (1)

CountryLink
CN (1)CN109460196B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111078162A (en)*2019-12-032020-04-28浪潮金融信息技术有限公司Method for counting electronic seals of driving layer based on printer

Citations (13)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US4710886A (en)*1984-10-241987-12-01International Business Machines CorporationTable driven print formatting
JP2002321392A (en)*2001-03-022002-11-05Oce Technologies BvConstitution method for printer and ink cartridge
US20050068571A1 (en)*2003-09-252005-03-31Hart Peter E.Stand alone multimedia printer with user interface for allocating processing
CN1841307A (en)*2005-03-292006-10-04佳能株式会社Information processing apparatus capable of customizing device driver, information processing method, and control program
US20080071636A1 (en)*2006-09-152008-03-20Neopost TechnologiesMethod of performing non-secure franking with stamps from books
CN101539903A (en)*2008-03-182009-09-23北京书生国际信息技术有限公司Method for realizing software compatible with documents in various formats
DE102008059009A1 (en)*2008-11-262010-05-27Francotyp-Postalia Gmbh Universal electronic hand stamping device
CN102117185A (en)*2009-12-312011-07-06北京东方开元信息科技有限责任公司Bar code print control method and device
CN103116851A (en)*2013-03-112013-05-22深圳市京兆电子商务有限公司Electronic contract on-line signing method and system
CN103294422A (en)*2013-06-262013-09-11广州市尊网商通资讯科技有限公司Document printing method and system by means of vector diagram segmentation and superposition technology
CN104020967A (en)*2014-06-162014-09-03浪潮软件股份有限公司WEB batch-printing method based on fully-domestic CPU and OS and commonly used for multiple browsers
CN104834507A (en)*2014-02-102015-08-12广东天心天思软件有限公司Frame driving method of application construction platform
JP2016018285A (en)*2014-07-042016-02-01コニカミノルタ株式会社 Portable terminal device, print setting method, and print setting program

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US4710886A (en)*1984-10-241987-12-01International Business Machines CorporationTable driven print formatting
JP2002321392A (en)*2001-03-022002-11-05Oce Technologies BvConstitution method for printer and ink cartridge
US20050068571A1 (en)*2003-09-252005-03-31Hart Peter E.Stand alone multimedia printer with user interface for allocating processing
CN1841307A (en)*2005-03-292006-10-04佳能株式会社Information processing apparatus capable of customizing device driver, information processing method, and control program
US20080071636A1 (en)*2006-09-152008-03-20Neopost TechnologiesMethod of performing non-secure franking with stamps from books
CN101539903A (en)*2008-03-182009-09-23北京书生国际信息技术有限公司Method for realizing software compatible with documents in various formats
DE102008059009A1 (en)*2008-11-262010-05-27Francotyp-Postalia Gmbh Universal electronic hand stamping device
CN102117185A (en)*2009-12-312011-07-06北京东方开元信息科技有限责任公司Bar code print control method and device
CN103116851A (en)*2013-03-112013-05-22深圳市京兆电子商务有限公司Electronic contract on-line signing method and system
CN103294422A (en)*2013-06-262013-09-11广州市尊网商通资讯科技有限公司Document printing method and system by means of vector diagram segmentation and superposition technology
CN104834507A (en)*2014-02-102015-08-12广东天心天思软件有限公司Frame driving method of application construction platform
CN104020967A (en)*2014-06-162014-09-03浪潮软件股份有限公司WEB batch-printing method based on fully-domestic CPU and OS and commonly used for multiple browsers
JP2016018285A (en)*2014-07-042016-02-01コニカミノルタ株式会社 Portable terminal device, print setting method, and print setting program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111078162A (en)*2019-12-032020-04-28浪潮金融信息技术有限公司Method for counting electronic seals of driving layer based on printer

Also Published As

Publication numberPublication date
CN109460196B (en)2021-11-09

Similar Documents

PublicationPublication DateTitle
DE4408355B4 (en) Network system for printing
CN101551755B (en)Information processing apparatus and information processing method
CN101308610A (en)Calligraphy exercising method and apparatus based on mobile terminal
JP2003044245A (en)Printer, method and system for printing document using format-specific translation module
CN109460196A (en)A method of printing stamping general utility functions is realized based on the new platform of driving
CN1172301A (en) Methods of Handling Print Data
CN205302255U (en)Bluetooth printer and bluetooth print system
CN106354445A (en)Printing method and printing system based on virtual Bluetooth device
DE69432066T2 (en) Telephone system and data processing method with telephone directory and data communication function
CN108773205A (en)Intelligent printing device and intelligent printing control method
CN101164098A (en)Converting three primary color input signals into four drive signals
US20060244998A1 (en)Systems and methods for highlighting print jobs in a print queue
CN110503784A (en)Share Method of printing, apparatus and system in campus
CN109949192A (en)A kind of school work data collection, processing analysis and feedback system and method
CN114579065A (en)Printer redirection method and system of cloud desktop
CN109872674B (en)Display system and drive configuration method
CN103927858B (en)Boat-carrying based on Big Dipper positioning and communicating unit hand-held fishery harvesting information collecting device
CN101364916B (en)Intelligent conference seat management system
CN118135583A (en) An intelligent document recognition method and system based on intelligent agent
CA1172371A (en)System for converting data processing information to text processing format and vice versa
CN109727322A (en)It is a kind of for transmitting the meter bluetooth interactive system and its transmission method of electronic invoice
CN111736887B (en)Access system, method and device for utilizing old equipment and storage medium
JP2003134334A5 (en) Image size conversion apparatus, image size conversion method, program, and storage medium
CN106933520A (en)A kind of method of printing speed invoice
CN110111076A (en)Document handling method, apparatus and system

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
TA01Transfer of patent application right
TA01Transfer of patent application right

Effective date of registration:20210820

Address after:215100 818 Wusong Road, Wusong River Industrial Park, Wuzhong development area, Suzhou, Jiangsu

Applicant after:INSPUR FINANCIAL INFORMATION TECHNOLOGY Co.,Ltd.

Address before:215100 Building 1, 178 Tayun Road, Yuexi street, Wuzhong District, Suzhou City, Jiangsu Province

Applicant before:SUZHOU INSPUR INTELLIGENT SOFTWARE Co.,Ltd.

GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp