处理弹出窗口
1.弹出UI界面,如分录备注输入界面过短,不易操作,可以实现点击备注单元格弹出输入UI界面:
?
public void openCarRent_Dialog(String tourCodeId) throws Exception{ UIContext uiContext = new UIContext(this); //保存UI打开来自方向 uiContext.put("FROM", "OPEN"); String ui = "com.kingdee.eas.ors.bill.client.CarRentEditUI"; //验证是否存在 String oprtState = ""; String fid = getCarRentBillId(tourCodeId); if(fid == null){//若不存在记录,则弹出新增界面 oprtState = OprtState.ADDNEW; uiContext.put("tourcodeid", tourCodeId); }else{//如果存在记录,则弹出编辑界面 oprtState = OprtState.EDIT; uiContext.put("ID", fid);//关键:单据FID(传递FID进行调用) } IUIWindow uiWindow = UIFactory.createUIFactory(UIFactoryName.MODEL).create(ui, uiContext, null, oprtState);//OprtState.ADDNEW uiWindow.show(); }?