NC57, NC63-NC two open Experience summary, nc57nc63-nc two open

Source: Internet
Author: User

NC57, NC63-NC two open Experience summary, nc57nc63-nc two open

Moderator: 2010 level marketing undergraduate

Training Java-related technologies in August 2013

I joined the company in December and started secondary development of UFIDA NC.

I resigned in and joined an internet finance company in the middle.

The following are some of the common technical points accumulated during the NC opening stage for reference by NC interns. Thank you!

 

Original docx File Download http://files.cnblogs.com/files/liaolongjun/ExNC.zip

 

 

The following is a copy from the Word document. All the images are missing. If necessary, you can directly download the document above.

 

 

 

NC two open Empirical Summary formula related 1. show that the formula is not executed

The list page is displayed. The card page is not displayed:

Handler's onBoCard execution: getbillcardpanel(cmd.exe cHeadLoadFormulas ();

The isLoadCardFormula of Controller returns true.

In addition, when the length of the field entry is insufficient, the list is displayed, and the card is not displayed.

2. Extract the Data Execution Formula

Run getbillcardpanel(cmd.exe cHeadLoadFormulas ();

Run getbillcardpanel().getbillmodel(cmd.exe cLoadFormula ();

Supplement: The above is the simplest method, and others are tested on their own. For example, specify the table body row execution formula:

// The edit formula must be set for the following method -- the effect of the for Loop is equal to that of the preceding method.

Getbillcardpanel(cmd.exe cBodyFormula (I, "pk_supdoc ");

You can select multiple items on the UI1.

Public ClientUI (){

Super ();

GetBillListPanel (). setMultiSelect (true );

}

2. query Conditions

UIDialog dlg = getQueryUI ();

If (dlg. showModal ()! = 1) return;

INormalQuery query = (INormalQuery) dlg;

String SQL = query. getWhereSql ();

3. Hide table body Fields

BillData bs = getBillCardPanel (). getBillData ();

BillItem [] items = bs. getBillModel (). getBodyItems ();

For(IntI = 0; I <items. length; I ++ ){

Items [I]. setShow (False);

}

GetBillCardPanel (). setBillData (bs); // This row must exist.

4. Hide the header field

Method 1:

BillCardPanel. getHeadItem ("hzdy42"). getComponent (). setVisible (False);

BillCardPanel. getHeadItem ("hzdy42"). getCaptionLabel (). setText ("");

Method 2:

BillCardPanel. hideHeadItem (NewString [] {"hzdy38", "hzdy39", "hzdy40", "hzdy41", "hzdy42 "});

5. Display AggVO on the Document Interface

BillCardPanel. setBillValueVO (aggvo );

System variable related 1. Document No.

Pre-job: Configure document number rules

Create document number:NewHYPubBO (). getBillNo (document type, organization,Null,Null);

Or: getVbillCode (document type, organization );

NewBillcodeGenerater (). getBillCode (document type, organization,Null,Null);

2. Primary Key

KeyGenerator.GetInstance(). GetKey (20 );

3. Obtain the nchome path

RuntimeEnv.GetInstance(). GetNCHome ();

4. System Variables

InvocationInfoProxy

WorkbenchEnvironment

ClientEnvironment

5. Set the background color of the Client

F: \ NC63 \ AceHome \ ierp \ sf \ themeconf. xml

Module 1. Add a module

The module. xml must be in the META-INF and can be found under Sysconfig

2. No module is defined for the document type

The cause of this exception is that the document type is not added to the project module, but in its own module, in the document type table: bd_billtype, change the systemcode of the document to the project module.

Document action-related 1. Action Registration

Copy the actions of other documents from the pub_billaction table and modify the document type and ID.

2. Action Code path

Modules-> document type module-> META-INF-> var-> source

3. Button display

Only the isEnabled () = true button is displayed:

Int[] BtnAry = (LController) getUIManageController (). getCardButtonAry ();

For(IntI = 0; I <btnAry. length; I ++) {getBillUI (). getButtonManager (). getButton (btnAry [I]). setVisible (getBillUI (). getButtonManager (). getButton (btnAry [I]). isEnabled ());

}

Document Template related 1. drop-down field

The database stores 0, 1, 2, and 3 .... So the corresponding Integer in vo

GetBillCardWrapper (). initHeadComboBox ("vname ",NewString [] {"A", "B", "C "},True);

2. Date Field

When the document template is a date type, vo must be UFDate

3. default date type value

4. query all default query Conditions

 

5. Call the Template

 

Database Operations 1. HYPubBO_Client

The findColValue method can only query struct fields (because this method is embedded with String strong conversion)

2. JdbcSession

JdbcSession session = null;

Session = PersistenceManager.GetInstance(). GetJdbcSession ();

Session = JdbcSessionUtil.CreateJdbcSession();

Password-related 1. Change the root password

 

Patch related 1. How to patch

Find the corresponding module in modules, put the jar package exported from the public, private, and client code under the lib folder of the module, and reload the development tool (how to reload? -- Restart and restart until the development tool can load the classes in the imported jar package)

Run related 1. startup middleware Error

 

2. startup. bat cannot start the service

 

Metadata related 1. Document date

 

Configuration File-related 1. The variable name in the configuration file is incorrect.

 

Node related 1. Open other nodes

Open the specified node directly without data: SFClientUtil. openFrame ("ZZ0102"); // the following code has not been tested.

 

Refer to related 1. Multiple choice values for the header

(UIRefPane) billCardPanel. getHeadItem ("hzdy41"). getComponent (). getRefModel (). getPkValues ();

2. dynamically specify the reference class

(UIRefPane) (getBillCardPanelWrapper (). getBillCardPanel (). getHeadItem ("field"). getComponent (). setRefModel (reference class.Class);

3. Set whether multiple selections are supported by reference

(UIRefPane) editor. getBillCardPanel (). getHeadItem ("vpsn"). getComponent (). setMultiSelectedEnabled (True);

4. Set Reference to show only the level 1

 

5. manual input with reference to Fields

 

6. How to know the reference type of a field:

Object obj = (UIRefPane) getBillCardPanel (). getHeadItem (""). getComponent (). getRefModel ();

Syttem. out. println (obj );

Drop-down related 1. drop-down to remove blank options

 

Warning 1. Configuration

 

Other 1. Naming rules

 

2. Concept of tablespace

 

3. Obtain an organization with the user's Permissions

 

Method 1: Obtain the signature of all pages on the table body

GetBillCardPanel (). getBillData (). getBodyTableCodes ();

2. Obtain the vo of the specified row of the table body.

GetBillModel ("Page signature"). getBodyValueRowVO (rownum, className );

3. Print the message in the Document Status Bar

ShowStatusBarMsgUtil. showStatusBarMsg

4. Get ts

CurTime. getCurrentTimeStampString ();

5. Create a primary key

New SequenceGenerator (). generate (pk_corp, num );

6. retain the second decimal point and "Rounding"

New UFDouble (). setScale (2, UFDouble. ROUND_HALF_UP );

 

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.