eas-dep Introduction


1. Expand the script engine for the Rhino, based javascrpt syntax, runtime interpreted.
jvm class of methods and properties can be applied to the script, calling a manner similar to code debugging


EntityPK metadata acquired in EditU interface

Example: The client set the encoding rule script,
var earNames JavaImporter = (); // definition introduces variables
easNames.importPackage (Package.com.kingdee.eas.base.codinggrule); // specified package incorporated
with (easNames) {// use introduce a scope
// Get the context from an editing interface to edit the object
var EditData pluginCtx.getDataObject = ();
// obtain f7 control
var bizOrgUnit = pluginCtx.getKDBizPromptBox ( "prmtSaleOrgUnit") the getValue ();.
// Get remote method invocation encoding
var = CodingRuleManagerFactory.getRemoteInstance Number () the getNumber (EditData, bizOrgUnit.getId ());.
// set TextField coding
pluginCtx.getKDTextField ( "txtNumber") the setText (Number);.
}
explanation:
As used herein, Javaimporter () of importPackage introducing package com.kingdee.eas.base.codingrule, CodingRuleMangerFactory
Is this package, he is in the middle with (easNames), there is no need to develop the full path CodingRuleMangerFactory, you can call getRemoteInsatnce method. To introduce other packages, increasing
easNames.importPackage (Package. Pack path) can. Useless with the specified scope, you must use the package name + class name
meaning with the words, you can not add the package name

Guess you like

Origin www.cnblogs.com/luojiabao/p/11087796.html
EAS
DEP