Create an eas group Basic Data Template

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.