CN104424591A - User-defined method for house rent expense template - Google Patents

User-defined method for house rent expense template Download PDF

Info

Publication number
CN104424591A
CN104424591A CN201310402343.6A CN201310402343A CN104424591A CN 104424591 A CN104424591 A CN 104424591A CN 201310402343 A CN201310402343 A CN 201310402343A CN 104424591 A CN104424591 A CN 104424591A
Authority
CN
China
Prior art keywords
user
expense
template
struts
defined method
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.)
Pending
Application number
CN201310402343.6A
Other languages
Chinese (zh)
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.)
ZHENJIANG JINRUAN COMPUTER TECHNOLOGY CO LTD
Original Assignee
ZHENJIANG JINRUAN COMPUTER TECHNOLOGY 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 ZHENJIANG JINRUAN COMPUTER TECHNOLOGY CO LTD filed Critical ZHENJIANG JINRUAN COMPUTER TECHNOLOGY CO LTD
Priority to CN201310402343.6A priority Critical patent/CN104424591A/en
Publication of CN104424591A publication Critical patent/CN104424591A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a user-defined method for a house rent expense template and belongs to the technical field of computers. The invention introduces a user-defined method for the expense template to overcome the defects that a traditional contract management system is single in charging document format and cannot flexibly adapt to age requirements and the like. According to the user-defined method for the house rent expense template, when a browser analyzes HTML (Hyper Text Markup Language) codes, texts are replaced through a struts label and a character string (the character string serves as an identifier of the struts label) of starting with # and ending with # is replaced into ordinary and user recognizable common HTML elements, and a user-defined document purpose is achieved. The user-defined method for the house rent expense template can liberate a charger from the dull and tedious work of repeatedly inputting same information belonging to the same category, enables the charger to pay more attention to key information in charging information and improves the working efficiency.

Description

A kind of method of self-defined house lease expense template
Technical field
The present invention relates to a kind of method of self-defined house lease expense template, belong to field of computer technology.
Background technology
In a contract management system, there is charge document miscellaneous, have premium notice list, pay demand note, move back Fei Dan etc.These documents are the authority that client pays the fees, and the formation of the charge document of same type exists very large similarity, only several key word difference (as payer name, payment date, Fee Amount etc.), and all the other most words are all identical.If toll collector repeats to input these information, not only waste time and energy, also easily cause makeing mistakes because of reasons such as clerical mistakes, bring loss to company.In addition, the charge document format in some contract management systems is fixing, and user can not change project and the type of charge flexibly, and even its typesetting format can not adjust, and can only export according to set form completely.
Struts is the open source projects that Apache Software Foundation (ASF) is supported.It is by adopting JavaServlet/JSP technology, and achieving the application framework of the MVC design pattern applied based on Java EEWeb, is a classic products in MVC Classic couture pattern.
Struts framework has the modularization of assembly, the advantage of dirigibility and reusability, simplifies the exploitation of the weblication based on MVC simultaneously.Struts clearly can distinguish control, the affair logic and outward appearance, thus the process simplifying developing application.The class that struts provides makes development more simple, and these classes comprise:
(1) class of control program flow process;
(2) class of realization and executive routine the affair logic;
(3) self-defining signature library makes to create and verify that HTML list is more prone to.
Summary of the invention
Charge document format for traditional contracts management system is single, the drawback such as can not to need the flexible adaptation epoch, invention describes a kind of method of self-defined house lease expense template.The method, by struts label, is carried out text replacement when browser resolves HTML code, thus is reached the object of self-defined document.Concrete steps are as follows:
1. to select template type (systemic presupposition three templates in newly-increased expense template JSP, be respectively premium notice list, expense list, move back expense list), such expense list coding rule (as code prefix, code separator, cost-time coding, expense increase numeral) is set;
2. in expense list label, select the entry that will form this expense list particular content, as trade company's name, expense date, accommodation unit, charge type, Fee Amount, charge description etc.Each expense entry is code and occurs in expense list content text frame, all " [# " start, with " #] " to terminate, they are as the foundation when being replaced by the struts label of the page.After preservation, be about to newly-increased expense single mode plate and added, now this expense list is still in not enabled state, and the expense list of same type can only enable one in systems in which.
3., after startup of server, load ActionServlet according to web.xml and read struts-config.xml file content to internal memory.
4. input user name password submission form, be submitted to the login.action of action attribute, reading struts-config.xml file by ActionServlet finds the path attribute under action to find .action, the name attribute of the form-bean in form-beans is looked for obtain the bag name class name of ActionForm by name attribute, first instantiation form, the value of list is filled to form, call the validate method validation of form, ActionErrors returns null and represents and be verified, otherwise unsuccessfully return the page that input specifies. be verified meeting instantiation Action, perform the execute method of Action.
5., according to the feedback information of the page, replace struts label with the html element element of specifying, forming user can input or revise, and is easy to the common html element element (as text box, button, unit frame etc.) of identification.
Embodiment
Embodiment one
Use MyEclipse 8.6 as developing instrument, use special database MySQL on market to set up the database required for system, use Navicat for MySQL as database management tools.
1. to select template type (systemic presupposition three templates in newly-increased expense template JSP, be respectively premium notice list, expense list, move back expense list), such expense list coding rule (as code prefix, code separator, cost-time coding, expense increase numeral) is set;
2. in expense list label, select the entry that will form this expense list particular content, as trade company's name, expense date, accommodation unit, charge type, Fee Amount, charge description etc.Each expense entry is code and occurs in expense list content text frame, all " [# " start, with " #] " to terminate, they are as the foundation when being replaced by the struts label of the page.After preservation, be about to newly-increased expense single mode plate and added, now this expense list is still in not enabled state, and the expense list of same type can only enable one in systems in which.
3., after startup of server, load ActionServlet according to web.xml and read struts-config.xml file content to internal memory.
4. input user name password submission form, be submitted to the login.action of action attribute, reading struts-config.xml file by ActionServlet finds the path attribute under action to find .action, the name attribute of the form-bean in form-beans is looked for obtain the bag name class name of ActionForm by name attribute, first instantiation form, the value of list is filled to form, call the validate method validation of form, ActionErrors returns null and represents and be verified, otherwise unsuccessfully return the page that input specifies. be verified meeting instantiation Action, perform the execute method of Action.
5., according to the feedback information of the page, replace struts label with the html element element of specifying, forming user can input or revise, and is easy to the common html element element (as text box, button, unit frame etc.) of identification.
In addition to the implementation, the present invention can also have other embodiments.All employings are equal to the technical scheme of replacement or equivalent transformation formation, all drop on the protection domain of application claims.

Claims (4)

1. the common segment of expense single mode plate struts label replaced, each struts label all starts with " [# ", terminate with " #] ".
2., when browser obtains these HTML character streams by server, the character string terminated by starting with " [# ", with " #] " replaces to common, the discernible html element element of user.
3. in contract management system, multiple premium notice list, pay demand note can be had, a template that expense of moving back is single, but the expense template of a type can only there is one is at one time in initiate mode.
4. when enabling another expense single mode plate, do not affect the expense single mode plate of the same type originally used, namely former contract is still by the charge of old contract template, but newly-increased contract will use brand-new expense single mode plate.
CN201310402343.6A 2013-09-07 2013-09-07 User-defined method for house rent expense template Pending CN104424591A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310402343.6A CN104424591A (en) 2013-09-07 2013-09-07 User-defined method for house rent expense template

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310402343.6A CN104424591A (en) 2013-09-07 2013-09-07 User-defined method for house rent expense template

Publications (1)

Publication Number Publication Date
CN104424591A true CN104424591A (en) 2015-03-18

Family

ID=52973486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310402343.6A Pending CN104424591A (en) 2013-09-07 2013-09-07 User-defined method for house rent expense template

Country Status (1)

Country Link
CN (1) CN104424591A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113033171A (en) * 2019-12-09 2021-06-25 阿里巴巴集团控股有限公司 Template creating method, file generating method, device and computer equipment
CN113435877A (en) * 2021-06-01 2021-09-24 广州木铎信息技术有限公司 Transcoding system based on temporary two-dimensional code

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101615177A (en) * 2009-07-21 2009-12-30 深圳市科陆电子科技股份有限公司 At structural self-defined report implementation method of server/browser and device
US7747469B2 (en) * 2004-03-31 2010-06-29 Lee M Hinman System and method for a made to specification e-commerce quoting and orders processing system on a stand alone or integrated portal
CN102117203A (en) * 2009-12-30 2011-07-06 上海杉达学院 Information management system based on Struts frame

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7747469B2 (en) * 2004-03-31 2010-06-29 Lee M Hinman System and method for a made to specification e-commerce quoting and orders processing system on a stand alone or integrated portal
CN101615177A (en) * 2009-07-21 2009-12-30 深圳市科陆电子科技股份有限公司 At structural self-defined report implementation method of server/browser and device
CN102117203A (en) * 2009-12-30 2011-07-06 上海杉达学院 Information management system based on Struts frame

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
余佳: "基于SCA的自定义表单的设计与实现", 《万方学术期刊数据库》 *
宋丹: "通信企业合同综合管理系统需求分析", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113033171A (en) * 2019-12-09 2021-06-25 阿里巴巴集团控股有限公司 Template creating method, file generating method, device and computer equipment
CN113435877A (en) * 2021-06-01 2021-09-24 广州木铎信息技术有限公司 Transcoding system based on temporary two-dimensional code

Similar Documents

Publication Publication Date Title
CN110196971A (en) Online document edit methods, device, terminal device and storage medium
CN104133772A (en) Automatic test data generation method
CN102799690A (en) Method for verifying page input by using database technology
CN101165685A (en) Dynamic web page generation method and system
CN102637188A (en) Extensible template pipeline for web applications
CN101382893B (en) On-line assembling method for component based on Web service
CN111695805B (en) Intelligent contract model construction method and system for legal contracts
CN107203658A (en) A kind of marine system schematic diagram Fast design method based on CAD and PDM
CN108241605A (en) A kind of technical report standardization write method based on VC
CN104598619A (en) Service compositional verification method based on constraint solver
CN105144091B (en) It is generated for the user interface model of the order line based on program
CN104424591A (en) User-defined method for house rent expense template
CN101853163A (en) Industry application software system construction method based on assembly business modeling
CN105468381A (en) Android and IOS system and operating method for rapidly integrating third-party class libraries
Lumpe et al. PSPWizard: machine-assisted definition of temporal logical properties with specification patterns
Eriksson et al. Software product line modeling made practical
CN103595549A (en) Standardization information management system
CN105426424A (en) Directional paging type acquisition method for network data
CN102236559A (en) Software generation system
CN103279889A (en) Method for merging crystal report and WORD document by using VB (Virtual Basic)
Liu et al. MVDLite: A Light-weight Representation of Model View Definition with Fast Validation for BIM Applications
CN107463690B (en) Method and system for realizing quick link
Elrom et al. Build Dapps with Angular: Part I
Li et al. Requirements analysis on flexibility of ERP system of medium and small publishers
Ren et al. A Method of Automatically Evolving Feature Models of Software Product Lines

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150318

WD01 Invention patent application deemed withdrawn after publication