分录F7从历史记录选择后显示不了值,问题跟踪之后发现F7的Assitor控件中只考虑了id、number、name,不太合理。
分录F7构造逻辑如下:
[code]final KDBizPromptBox kdtEntry_WmContractID_PromptBox = new KDBizPromptBox();
kdtEntry_WmContractID_PromptBox.setQueryInfo("com.kingdee.eas.topview.basedate.app.WmContractQuery");
kdtEntry_WmContractID_PromptBox.setVisible(true);
kdtEntry_WmContractID_PromptBox.setEditable(true);
kdtEntry_WmContractID_PromptBox.setDisplayFormat("$number$");
kdtEntry_WmContractID_PromptBox.setEditFormat("$number$");
kdtEntry_WmContractID_PromptBox.setCommitFormat("$number$");
KDTDefaultCellEditor kdtEntry_WmContractID_CellEditor = new KDTDefaultCellEditor(kdtEntry_WmContractID_PromptBox);
this.kdtEntry.getColumn("WmContractID").setEditor(kdtEntry_WmContractID_CellEditor);
ObjectValueRender kdtEntry_WmContractID_OVR = new ObjectValueRender();
kdtEntry_WmContractID_OVR.setFormat(new BizDataFormat("$contractNo$"));
this.kdtEntry.getColumn("WmContractID").setRenderer(kdtEntry_WmContractID_OVR);[/code]