Java DialogResult类使用实例

发布时间:2025-12-09 11:50:20 浏览次数:2

实例1: onFormDialogClosed

import ims.framework.enumerations.DialogResult; //导入依赖的package包/类protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException{//WDEV-16762if(form.getGlobalContext().OCRR.getRefusedInvestigation() != null && form.getGlobalContext().OCRR.getRefusedInvestigation().size() > 0){removeQuestionsInformations();if(form.getGlobalContext().OCRR.getMyOrderInformations() == null || form.getGlobalContext().OCRR.getMyOrderInformations().size() == 0){engine.close(result);return;}populateQuestionsInformations();}form.getLocalContext().setYesNoResult(result);} 

实例2: onFormDialogClosed

import ims.framework.enumerations.DialogResult; //导入依赖的package包/类protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException{if (formName.equals(form.getForms().Core.YesNoDialog)){if (result.equals(DialogResult.YES)){// WDEV-11598if (form.ctnDetails().lyrDetails().tabDetails().cmbAction().getValue() != null || form.ctnDetails().lyrDetails().tabDetails().cmbMovement().getValue() != null || form.ctnDetails().lyrDetails().tabDetails().intEOR().getValue() != null || form.ctnDetails().lyrDetails().tabDetails().intSOR().getValue() != null)// See if we can promote the unsaved child.if (addOrUpdateChild()){saveWithoutCheck();open();}}else{clearDetailsInstanceControls();}}} 

实例3: onBtnCopyClick

import ims.framework.enumerations.DialogResult; //导入依赖的package包/类protected void onBtnCopyClick() throws ims.framework.exceptions.PresentationLogicException{PatientGraphicAssessmentFindingVoCollection coll = new PatientGraphicAssessmentFindingVoCollection();for (int i = 0; i < form.grdFinding().getRows().size(); i++){grdFindingRow row = form.grdFinding().getRows().get(i);if(row.getColumnSelect()){PatientGraphicAssessmentFindingVo item = row.getValue();item.setDrawingId(new Integer(i));coll.add(cloneFinding(item));}}if(coll.size() == 0){engine.showMessage("Please select at least one finding !");return;}form.getGlobalContext().Assessment.setPatientGraphicAssessmentFinding(coll);engine.close(DialogResult.OK);} 

实例4: onFormDialogClosed

import ims.framework.enumerations.DialogResult; //导入依赖的package包/类protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException {if(formName.equals(form.getForms().OCRR.OrderSummaryDialog)){if(result.equals(DialogResult.OK)){if(validateUISearchCriteria() == false)return;form.getLocalContext().setPrintingContext(null);// WDEV-11643populateResultsGrid(domain.listRadOrderInvestigation(form.cmbService().getValue(), form.cmbDepartment().getValue(), Category.CLINICALIMAGING, form.chkCompleted().isVisible() ? form.chkCompleted().getValue() : Boolean.FALSE, form.dteFrom().getValue(), form.dteTo().getValue()));enablePrintButton();}}} 
dialogresult
需要做网站?需要网络推广?欢迎咨询客户经理 13272073477