eas of f7

   f7 control is actually a document. So for modifying the data actually need to modify the documents, it is to modify documents in the metadata is eas components, including the control f7,
    F7 is a shortcut, is a field qualifying collection!
    F7 is a control used to call data from another table, provide choice
    F7 is enumerations meet the filter criteria.

 

EditUI f7 control value acquired in
    the header:
    .. 1) controls the this String name = STR .getText ()
    2) corresponding to f7 info class
        XXXXInfo info = (XXXXInfo) this control name .getValue ();.
        Info.getXXXX (); obtaining property values
    , for example: these two are Global Group acquisition date of this Part, all I pay for selected company
    1.String CompanyStr = this.bizPromptCompany.getText (); // get the company to pay the cost of
    2.CompanyOrgUnitInfo = CompanyInfo (CompanyOrgUnitInfo) this.bizPromptCompany.getValue ();
        String conpanyname companyInfo.getName = ();


1.f7
给f7添加DataChange
例:
pluginCtx.getKDBizPromptBox("prmtHROrg").addDataChangedListener(function(event(){
    com.kingdee.eas.util.client.MsgBox.showInfo("....");
}))


2.f7 out properties -> select a staff employee with
pluginCtx.getKDBizPromptBox ( "prmtPerson") addDataChangeListener (funtion (Event) {.
    // Get information staff f7
    var personInfo = pluginCtx.getKDBizPromptBox ( "prmtPerson" ) getValue (). ;
    var name = personInfo.get ( "name"); // Get the name of the staff
    pluginCtx.getKDTextField ( "txtName") setStringValue (name);.
})

3.f7 f7 associated with a
select type of payment, according to the subjects logic f7 assignment
// f7 controls increase the value change listeners
// payment type field monitor. when the field is changing the trigger
pluginCtx.getKDBizPromptBox ( "f7PayBillType"). addChangeListener (function (Event) {
    var PayBillTypeInfo = pluginCtx.getKDBizPromptBox ( "f7PayBillType"). getValue (); // for payment type information
    var id = PayBillTypeInfo.get ( "id" ); // acquiring ID information for the payment type control, where the control may extract additional information, such as name, code, etc.
})

Guess you like

Origin www.cnblogs.com/luojiabao/p/10973969.html
EAS