`
忘忧鸟
  • 浏览: 141782 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

处理弹出窗口

    博客分类:
  • BOS
UI 
阅读更多

1.弹出UI界面,如分录备注输入界面过短,不易操作,可以实现点击备注单元格弹出输入UI界面:

 

public Map Open_ReplyWin(Map paramMap) throws Exception{
	String openUIClass = UIClass;
	IUIWindow win = UIFactory.createUIFactory(UIFactoryName.MODEL).create(openUIClass, paramMap, null,OprtState.ADDNEW);
	win.show();
	Map resultMap = win.getUIObject().getUIContext();
	return resultMap;
}

Map resultMap = Open_ReplyWin(paramMap);//调用

 

 

2.调用单据界面

 在单据工具栏上添加按钮,点击按钮弹出其他单据界面,可以进行相应操作(功能类似单据序时薄界面新增、修改功能)

    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();        
    }
 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics