KDComponentRomptDialog dlg=(KDCommonPromptDialog)selector;
if(dlg==null){
dlg=new KDCommonPromptDialog();
if(dlg.getQueryInfo()==null){
dlg.setQueryInfo(boxBizEle.getQueryAgent().getQueryInfo());
}
try{
dlg.setEntityViewInfo(new EntityViewInfo(boxBizEle.getQueryAgent().getRuntimeEntityView().toString()));
}catch(Exception e){
e.pringtStackTrace();
}
dlg.setSelectorCollection(boxBizEle.getQueryAgent().getSelelctorCollection())];
dlg.setQueryExecutor(boxBizEle.getQueryAgent().getQueryExecutor());
dlg.setEnableMultiSelection(boxBizEle.getQueryAgent.isEnableMultiSelection();
dlg.setReturnValueType(boxBizEle.getQueryAgent().getReturnValueType());
}
dlg.show();
if(dlg.isCanceled()){
boxBizEle.setValue((Object)dlg.getData()[0]);
ICell cell=pnlTables.getFocusCell();
if(cell!=null){
cell.setValue((BgContractInfo)((Object[])dlg.getData()[0]).getContractNum());
}
}