选择合约规划F7默认焦点
This commit is contained in:
parent
ed8d6cf709
commit
6619ac1f18
|
@ -0,0 +1,26 @@
|
||||||
|
package shkd.repc.recos.formplugin;
|
||||||
|
|
||||||
|
import kd.bos.dataentity.entity.DynamicObjectCollection;
|
||||||
|
import kd.bos.form.control.EntryGrid;
|
||||||
|
import kd.bos.form.control.TreeEntryGrid;
|
||||||
|
import kd.bos.form.control.events.ListboxClickListener;
|
||||||
|
import kd.bos.form.control.events.SearchEnterListener;
|
||||||
|
import kd.bos.form.plugin.AbstractFormPlugin;
|
||||||
|
import kd.repc.recos.formplugin.split.base.ReSelectConPlanTreeF7FormPlugin;
|
||||||
|
|
||||||
|
import java.util.EventObject;
|
||||||
|
|
||||||
|
public class ReSelectConPlanTreeF7FromPluginExt extends AbstractFormPlugin {
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void afterBindData(EventObject e) {
|
||||||
|
super.afterBindData(e);
|
||||||
|
DynamicObjectCollection entryEntity = this.getModel().getEntryEntity("entrylist");
|
||||||
|
if (entryEntity!=null&&entryEntity.size()!=0){
|
||||||
|
//默认选中第一行名称焦点
|
||||||
|
TreeEntryGrid treeEntryGrid = (TreeEntryGrid)this.getView().getControl("entrylist");
|
||||||
|
treeEntryGrid.focusCell(0,"entry_name");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue