Recently in a project implementation process, because the customer is the domestic business leader, business forms are not really determined, has been constantly improving. So the business form of the program has been diverted by customers, has been following the business changes, to be very good support for the entire project and the realization of the real sense of the business form and the whole project loose coupling integration to achieve the best implementation and the highest development efficiency. After many discussions with the company director and Chief engineer, decided to develop dynamic form plug-ins to meet the changing needs of customer business forms.
Dynamic form plug-in, that is, for the customer to determine the business form, through the plug-in input to the dynamic form of the core program to generate business forms.
The concrete realization thought:
1, hand-made with special markup HTML page, and through the program upload to the server.
2, through the data stream read-by-line, to determine whether the line contains tags <!--startfragment--> text, if it is replaced by the Business code (text box, text field, and other code) and the line to hide the callout, if not then pass.
3, modify the page generated business code, through the hidden annotations to determine the line, to achieve business code replacement.
4, generate the final page, not to go out of the callout text, generate a Submit button and other business needs of the hidden domain.
5, the data storage, using different from ordinary data of the horizontal table model, the use of vertical table storage.
6, the business data, the same use of the vertical table storage method.
7, the extraction of business data, the use of vertical table to achieve the method of horizontal table.
A dynamic form business system has been implemented thus far.
Because of the company's requirements for technology, it is not changed in this detailed explanation. If you are developing this kind of system, you can leave a message for me to discuss together.