Some precautions for document template development

xiaoxiao2021-03-06  104

[Basic Development Step] 1. Use PowerDisingn to establish a database table, generate SQL statement Note: Neighted, non-empty, etc. Do not ignore. Highly Note: Non-string fields, non-custom fields do not name: VDEF *, DEF *, ZDY *, etc. If this naming will cause the type error when saving, GetChangeDvofromui () will not be able to get the change field. value. Because there is a limit in Bitl billitem:

IF ((GetKey () ("VDEF") || getKey (). StartSwith ("DEF") || (GetKey () .startSwith ("zdy" && isisdef ()) && strval! = null)

2. Generate a database using the generated SQL script to generate a data dictionary

3. If it is not a business document, you can take a document type (more than two digits, avoiding the business documents)

Generate a document template. And registered in secondary development - "template settings

Note: If you need a document type, you need to add your business type.

4. Generate a VO class using Codeeed

5. Select the UI template you need with UIFactory. Generate three classes of UI, CTL, and Handle.

[About reception check] Need to register a Chk class in the type of document of document, so if you simply verify it directly

Handle: Onsave () Write.

[About the background check] There are two classes in the background:

1) Define verification rules from the class that inherited from IUNIQUEFIELDCHECK

2) Implement the IBDBusicheck, IBDAction interface, and provide a check () method for call.

[About ComboBox settings]:

protected void initbasicdataroleCombox ()

{

String [] strname = ibasicdatamatchrule.str_rules;

GetBillCardWrapper (). INitHeadcomboBox ("pfxxrule", strname, true

GetBillListWrapper (). INitHeadcomboBox ("pfxxrule", strname, true

GetBillCardWrapper (). InitbodycomboBox ("Matchrule", Strname, True;

GetBillListWrapper (). InitbodycomboBox ("Matchrule", Strname, True;

}

6. Establish a query template and register in the secondary development - "template settings.

7.

转载请注明原文地址:https://www.9cbs.com/read-96984.html

New Post(0)