In the EAS Bos development platform, there is already a template for the basic information of the group, but if we need to expand the template and add some fields and general methods, we can refer to the following method.
1. Create a public object, and edit and list interfaces.
The common object inherits the com. Kingdee. EAS. Framework. App. database and is defined as the abstract inheritance mode. The subclass mode is abstract. Add the fields and server methods that need to be added to the object. Write the method implementation code of the server in controllerbean.
The edit interface inherits COM. Kingdee. EAS. Framework. Client. editui, binds the created public entity, and adds the edit interface action event to call the server code. Define the implementation class
Abstract. (Because createnewdata and other methods cannot be implemented)
The list interface inherits from Com. Kingdee. EAS. Framework. Client. treedetaillistui. You do not need to bind the query, but you can add Action events to call the server code. Define the implementation class
Abstract. (Because createnewdata and other methods cannot be implemented)
2. Create an object (we recommend that you copy the system template to modify it ). Note that you need to modify the parent object to the public object we created. The table object has the object export table to re-bind the link for creating the property treeid.
Create a group entity (we recommend that you copy the system template to modify it ). The table object has an object export table to re-bind the relationship of the property parent.
Create relationships between entities and groups, and between entities. Treeid and parent
Entity export table
Create query based on entity
The create list interface inherits the list interface we define. Bind a query object
The editing interface inherits the editing interface defined by us. Modify the bound object. Override the getselectors method in the code.
Modify the extended attributes of an object, such as eidtui, listui, and defaultf7query.
.
Create bizunit through introduction. Configure listui editui entity Query
Object
Modify the XML file of the bizunit business unit and configure the <bimtemplatetype> treedetail </bimtemplatetype> attribute.
3. copy other business units to create basic group information.