首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

处置弹出窗口

2012-09-14 
处理弹出窗口1.弹出UI界面,如分录备注输入界面过短,不易操作,可以实现点击备注单元格弹出输入UI界面:?publ

处理弹出窗口

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();            }
?

热点排行