EAS单据跳

   

eas中的单据跳转 一般需要新增,但如果存在相对应的数据时,就要显示相对应的数据了。
 string destbilledituiclassname = "com.kingdee.eas.custom.studentinfo.client.contacteditui";		studentinfo sinfo = new studentinfo();		sinfo.setnumber(this.txtnumber.gettext());		sinfo.setstudentname(this.txtstudentname.gettext());				contactinfo cinfo = getcontactinfo();				if(cinfo.getid() == null){			map map = new uicontext(this);			map.put(uicontext.owner, this);			map.put("studentinfo", sinfo);			iuiwindow uiwindow = null;			// uifactoryname.model 为弹出模式			uiwindow = uifactory.createuifactory(uifactoryname.model).create(					destbilledituiclassname, map, null, oprtstate.addnew);			// 开始展现 ui			uiwindow.show();		}else{			// 显示窗口			iuifactory uifactory = null;			uicontext uictx = new uicontext(this);			uictx.put(uicontext.id, cinfo.getid().tostring());			//			realmodeidlist idlist = new realmodeidlist();			idlist.add(cinfo.getid().tostring());			uictx.put("idlist", idlist);						iuiwindow uiwindow = null;			// uifactoryname.model 为弹出模式			uiwindow = uifactory.createuifactory(uifactoryname.model).create(					destbilledituiclassname, uictx, null, oprtstate.edit);			// 开始展现 ui			uiwindow.show();		}
 

你可能感兴趣的:(java,工作)