Complete steps of document development and precautions

Complete steps of document development and precautions

Design Data Sheet

When designing a table with Powerdesigner, pay attention to the fields of the table.

specification:

1. Main table name: XXX Main table primary key:

      Sub-table name: XXX_b Sub-table primary key: pk_XXX_b

 2. Primary key: pk_XXX char(20)

Delete marker: dr number(10) default(0)

Timestamp: ts char(19) default to_char(sysdate,''yyyy-mm-dd hh24:mi:ss'')

Date type: char(10)

       3. The required fields are:

   Document status vbillstatus number(38)

   company pk_corp char(4)

   Remarks vmemo varchar2(1024)

   Attachment primary key pk_file char(20)

   Approval statement vapprovenote varchar2(1024)

   Approval Date dapprovedate char(10)

   Approver vapproveid char(20)

   single player voperatorid char(20)

   Make date dmakedate char(10)

   Document date dbildate char(10)

   Document number vbillno varchar2(30)

   Document type pk_billtype char(4)

   Business type pk_busitype char(20)

   delete marker dr number(10) default 0

   Timestamp: ts char(19) default to_char(sysdate,'yyyy_MM_dd hh24:mi:ss')

1. Create a table according to the SQL statement generated by Powerdesigner, and build the table

Import the data dictionary to prepare for document template initialization,

Notice:

   After importing the data dictionary, remember to modify the field type of the table imported into the data dictionary, otherwise the table will not be recognized when the document template is initialized

Generate VO

Log in as a group, customize à secondary development tools à UAP integrated development tools, click the first on the left, à upper left corner, tools and options, generate VO according to the data source

function registration

  Note: There are three important items: function code, function name, corresponding file name

 

document type management

  Secondary development tools à document management à document type management

 

VO control

 

 

remember to save

Document template initialization

 

Note: When the document template was created for the first time, we only need to enter the document we want to do, and just enter it.

Can be modified in pub_billtemplet (document template main table)

Generate query template

Note: The query template is: we click the type to be displayed in the query pop-up box, which looks like

 

Document Action Management

Note: Click the button on the document to save, modify and other operations will be used, the bottom layer has corresponding methods, so to do this, document action management and document action group management must be written, and attention must be compared with others written.

 

 

Function node default template setting: set document template and query template

     Secondary development tools à system management tools à function node default template settings

 

Write code

1. Create the package nc.vo. module in public, put the generated VO in it, and check the field type

Main check:

     Timestamp: private UFDateTime ts;

     Delete marker: private int dr;

     Bill status: private Integer vbillstatus;

        Date type: private UFDate begindate;//Date type: UFDate

       Decimal type: private UFDouble rent_total_origin;//Total contract amount

2. Create a package under public: nc.bs.pub.action

   Put 7 files: (Note: the name is: N_document type_name unchanged)

 

 

   3. Put under Client:

            

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325311008&siteId=291194637