Summary of the invention
Technical matters to be solved by this invention provides a kind of implementation method and device of passable bill word depghi, realizes that word depghi directly obtains print What and prints by external unit.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of implementation method of passable bill word depghi, comprising:
To with the features relevant information setting of bill printing the bill printing template;
Obtain the characteristic information value of bill printing template as type information according to type of service;
When the print request that receives bill, the api function in the calling system prints.
Further, the described characteristic information relevant with bill printing comprises the user profile of business information, implementation and operation, the temporal information of operation and the attribute information of bill.
Further, described characteristic information value is the business tine variable relevant with bill printing that printing template is provided with.
The embodiment of the invention also provides a kind of device of passable bill word depghi, it is characterized in that, comprising:
A, the printing template configuration module, being used for the correlated characteristic information setting with bill printing is the bill printing template;
B obtains the type information module, is used for obtaining the characteristic information value of bill printing template as type information according to type of service;
C, the function call module is used for when the print request that receives bill, and the api function in the calling system prints.
The beneficial effect of passable bill word depghi provided by the invention is: support diversified print format, comprise the printing of forms such as text, form, picture, two-dimension code; Can carry out flexible configuration, support the printing of multiple bill type,, can dispose different printing templates according to professional different, regional different, printed tickets type differences.
Embodiment
Below in conjunction with drawings and the specific embodiments technical scheme of the present invention is described in more detail, described embodiment only is used to explain the present invention, is not to be used to limit scope of the present invention.
One embodiment of the invention discloses a kind of implementation method of passable bill word depghi, and Fig. 1 is the implementation method process flow diagram of passable bill word depghi in one embodiment of the invention.As shown in Figure 1, this method comprises:
Step 101: will be the bill printing template with the features relevant information setting of bill printing;
Wherein, described and features relevant information bill printing comprises the user profile of business information, implementation and operation, the temporal information of operation and the attribute information of bill.
In the present embodiment, described business information can be traffic type information, with professional relevant managing detailed catalogue (comprise business item, the professional amount of money, amount to the amount of money etc.) etc.; The user profile of described implementation and operation can be user's log-on message (comprising user name, login ID, Real Name etc.) etc., also can be the numeral corresponding or the alphabetical sequence etc. of registration with each user, or a user's of other unique identification information, can also be authority information, group information of user etc.; When the temporal information of described operation can be the date etc., also can be with the system time of numeric representation etc., if action need certain time length, then indication can be the time that begins to operate and/or the time of end operation; The attribute information of described bill can be the format information (comprising forms such as text, form, picture, two-dimension code) printed and print area configuration information etc.
When practical application, described and features relevant information bill printing is not limited to above-mentioned example, can be other customized information.
In the present embodiment, be the Template Information of bill printing with all or part of and features relevant information setting bill printing.According to dissimilar business, the Template Information of the bill printing relevant with business can include only all or part of described characteristic information, also can also comprise other information except comprising all or part of described characteristic information.The bill printing template of the different service types that is provided with is stored in the system.
Step 102: obtain the characteristic information value of bill printing template as type information according to type of service;
Wherein, described characteristic information value is the business tine variable relevant with bill printing that printing template is provided with.For example, be illustrated in figure 2 as user telephone fee related in one embodiment of the invention and pay the template synoptic diagram of voucher bill, as shown in Figure 2, user telephone fee is paid the voucher ticket templates and is comprised header district, document Head Section, document content district, document tail region, five zones, footer district.
Header comprises type of service (for example: user telephone fee is paid voucher), picture (for example: so-and-so brand icon), service handling time etc.; The document head comprise user's name (for example: Ada), subscriber directory number (for example: 13812345678); In document content, comprise the business item detail (for example: Monthly Fee), the detailed corresponding amount of money detail of business item (for example: 12.00) and the expense Amount in Total (for example: 12 roundings) etc.; The document tail comprise the business accounting time (for example: 16: 21 on the 30th January in 2010), the bill serial number (for example: 100009008), site title (for example: so-and-so communicate by letter Haidian branch office of Beijing company limited of group) and job number (for example: M0000SYS) etc.; What footer showed is page number information (for example: totally 1 page, the 1st page).
In the present embodiment, the bill printing control obtains user telephone fee and pays voucher ticket templates information according to the type of service that the user handles, and comprises fix information and business tine variable information.Described fix information comprises type of service, picture, site title etc., and fix information is to be arranged in advance on the bill printing template; Described business tine variable information comprises user's name " for example: Ada ", telephone number " for example: 13812345678 ", amount of money detail " for example: 12.00 ", expense Amount in Total " for example: 12 roundings " etc., and the business tine variable information is also different according to associated content such as different business, different projects, different users.
Step 103: when the print request that receives bill, the api function in the calling system prints.
In the present embodiment, when the bill word depghi received print request to bill, the api function control printing device in the calling system printed automatically.
Another embodiment of the present invention also discloses a kind of device of passable bill word depghi, and Fig. 3 is the structural representation of passable bill word depghi device in the embodiment of the invention, and as shown in Figure 3, this device comprises:
Module 301: the printing template configuration module, being used for the features relevant information setting with bill printing is the bill printing template;
Module 302: obtain the type information module, be used for obtaining the characteristic information value of bill printing template as type information according to type of service;
Module 303: the function call module, be used for when the print request that receives bill, the api function in the calling system prints.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the memory storage and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Therefore, the present invention is not restricted to any specific hardware and software combination.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.