In recent years, The structure of B/S has become one of the popular architectures of enterprise application system by its advantages of zero client-side , easy maintenance and the characteristic of distributing. At the same time, many correlative standards and develop tools appeared. But these standards and develop tools give little support to the functions of client-side and lead to the heavy development work of client-side. Furthermore, the little support of enterprise logic description in server-side lead to worse performance of the maintenance.In order to resolve the problems described above and to build platform of enterprise application with B/S structure for redeveloping, this paper firstly analyzes the limit of traditional structure of B/S, then gives the solution to the problems based on XML. At last, the platform is designed in details by analyzing the requirements of the function procedure and data.The server-side and the client-side are divided into several layers. The client-side is divided into four layers: view, data, control and BTS intercommunication layer. Each layer has special function: the view layer is the main interface between the system and the user; because the data layer is the center of the other three layers and its main data object is bounded with the controls of the view layer, all layers but data layer finish their duties by operating the data objects in the data layer.The server-side is mainly divided into four layers: BTS intercommunication layer, harmony layer, data layer, logic layer. The BTS intercommunication layer is responsible for the communication with the client-side, the harmonize layer is responsible for updating and sending the data from the client-side to data objects in data layer of the server-side and for calling the relevant module in logic layer to operate the enterprise logic. The data layer is also the center of the others, and the other layers finish their duties by operating the data objects in data layer.In the platform, both the microcosmic logic and the macroscopical logic are described by XML which separate the logic from the code. The separation improves the universal performance and the maintenance performance of the system. |