Java 类ims.core.vo.enums.UploadDocumentAction 实例源码

项目:AvoinApotti    文件:Logic.java   
private String[] getUIErrors() 
{
    ArrayList<String> errors = new ArrayList<String>();
    String e = "";
    if (form.txtName().getValue() == null) 
    {
        errors.add("Document Name is mandatory");
    }
    if (form.cmbSource().getValue() == null) 
    {
        errors.add("Document Type is mandatory");
    }
    if (form.cmbType().getValue() == null) 
    {
        errors.add("Document Source is mandatory");
    }
    if (form.getGlobalContext().Core.getUploadDocumentAction().equals(UploadDocumentAction.IMPORT) &&
            !form.getLocalContext().getImportedFileIsNotNull())
    {
        errors.add("Select a file for upload");
    }
    if (form.getGlobalContext().Core.getUploadDocumentAction().equals(UploadDocumentAction.SCAN) &&
            !form.getLocalContext().getScannedFileIsNotNull())
    {
        errors.add("Please scan a document");
    }

    if (errors.size() > 0) 
    {
        String[] err = new String[errors.size()];
        errors.toArray(err);
        for (int i = 0; i < errors.size(); i++) {
            e += errors.get(i) + "\n";
        }           
        engine.showMessage(e);
        return err;
    }

    return null;        
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnImportClick() throws ims.framework.exceptions.PresentationLogicException
{
    if(investigationIsCanceled())
    {
        engine.showMessage("Cannot import result for a cancelled investigation.", "", MessageButtons.OK, MessageIcon.INFORMATION);
        return;
    }

    form.getGlobalContext().Core.setUploadDocumentAction(UploadDocumentAction.IMPORT);
    form.getGlobalContext().RefMan.setUploadDocumentsDialogDocumentType(DocumentCategory.RESULTREPORT);
    openDialog();
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException 
{
    if (formName.equals(form.getForms().Core.UploadDocumentDialog) && result.equals(DialogResult.OK))
    {
        form.getLocalContext().setSelectedRecord(null);//WDEV-13695

        //wdev-12880
        if(form.getGlobalContext().RefMan.getCatsReferral() != null)
            form.getGlobalContext().RefMan.setCatsReferral(domain.getCatsReferral(form.getGlobalContext().RefMan.getCatsReferral()));
        //------------
        form.fireCustomControlValueChanged();
    }   

    open(); //WDEV-13698

    //start WDEV-13889
    if ((formName.equals(form.getForms().Core.DocumentPreview)) && (form.dyngrd().getSelectedRow() == null)) 
    {
        form.getLocalContext().setSelectedRecord(null);
        form.fireCustomControlValueChanged();
    }
    //end

    if(formName.equals(form.getForms().RefMan.ReferralTriage))
    {
        if(result.equals(DialogResult.OK) || result.equals(DialogResult.ABORT))
        {
            form.getLocalContext().setComponentAction(UploadDocumentAction.CLOSEDIALOG);
            form.fireCustomControlValueChanged();
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnImportClick() throws ims.framework.exceptions.PresentationLogicException
{
    if(investigationIsCanceled())
    {
        engine.showMessage("Cannot import result for a cancelled investigation.", "", MessageButtons.OK, MessageIcon.INFORMATION);
        return;
    }

    form.getGlobalContext().Core.setUploadDocumentAction(UploadDocumentAction.IMPORT);
    form.getGlobalContext().RefMan.setUploadDocumentsDialogDocumentType(DocumentCategory.RESULTREPORT);
    //WDEV-19794
    form.getGlobalContext().OCRR.setDisplayExaminDateTime(isRadiologyInvestigation(form.grdInvestigations().getValue()));
    openDialog();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnScanClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.getGlobalContext().Core.setUploadDocumentAction(UploadDocumentAction.SCAN);
    //WDEV-19794
    form.getGlobalContext().OCRR.setDisplayExaminDateTime(isRadiologyInvestigation(form.grdInvestigations().getValue()));
    openDialog();   
}
项目:openMAXIMS    文件:Logic.java   
private String[] getUIErrors() 
{
    ArrayList<String> errors = new ArrayList<String>();
    String e = "";
    if (form.txtName().getValue() == null) 
    {
        errors.add("Document Name is mandatory");
    }
    if (form.cmbSource().getValue() == null) 
    {
        errors.add("Document Type is mandatory");
    }
    if (form.cmbType().getValue() == null) 
    {
        errors.add("Document Source is mandatory");
    }
    if (form.getGlobalContext().Core.getUploadDocumentAction().equals(UploadDocumentAction.IMPORT) &&
            !form.getLocalContext().getImportedFileIsNotNull())
    {
        errors.add("Select a file for upload");
    }
    if (form.getGlobalContext().Core.getUploadDocumentAction().equals(UploadDocumentAction.SCAN) &&
            !form.getLocalContext().getScannedFileIsNotNull())
    {
        errors.add("Please scan a document");
    }

    if (errors.size() > 0) 
    {
        String[] err = new String[errors.size()];
        errors.toArray(err);
        for (int i = 0; i < errors.size(); i++) {
            e += errors.get(i) + "\n";
        }           
        engine.showMessage(e);
        return err;
    }

    return null;        
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnImportClick() throws ims.framework.exceptions.PresentationLogicException
{
    if(investigationIsCanceled())
    {
        engine.showMessage("Cannot import result for a cancelled investigation.", "", MessageButtons.OK, MessageIcon.INFORMATION);
        return;
    }

    form.getGlobalContext().Core.setUploadDocumentAction(UploadDocumentAction.IMPORT);
    form.getGlobalContext().RefMan.setUploadDocumentsDialogDocumentType(DocumentCategory.RESULTREPORT);
    openDialog();
}
项目:openmaxims-linux    文件:Logic.java   
private String[] getUIErrors() 
{
    ArrayList<String> errors = new ArrayList<String>();
    String e = "";
    if (form.txtName().getValue() == null) 
    {
        errors.add("Document Name is mandatory");
    }
    if (form.cmbSource().getValue() == null) 
    {
        errors.add("Document Type is mandatory");
    }
    if (form.cmbType().getValue() == null) 
    {
        errors.add("Document Source is mandatory");
    }
    if (form.getGlobalContext().Core.getUploadDocumentAction().equals(UploadDocumentAction.IMPORT) &&
            !form.getLocalContext().getImportedFileIsNotNull())
    {
        errors.add("Select a file for upload");
    }
    if (form.getGlobalContext().Core.getUploadDocumentAction().equals(UploadDocumentAction.SCAN) &&
            !form.getLocalContext().getScannedFileIsNotNull())
    {
        errors.add("Please scan a document");
    }

    if (errors.size() > 0) 
    {
        String[] err = new String[errors.size()];
        errors.toArray(err);
        for (int i = 0; i < errors.size(); i++) {
            e += errors.get(i) + "\n";
        }           
        engine.showMessage(e);
        return err;
    }

    return null;        
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onBtnImportClick() throws ims.framework.exceptions.PresentationLogicException
{
    if(investigationIsCanceled())
    {
        engine.showMessage("Cannot import result for a cancelled investigation.", "", MessageButtons.OK, MessageIcon.INFORMATION);
        return;
    }

    form.getGlobalContext().Core.setUploadDocumentAction(UploadDocumentAction.IMPORT);
    form.getGlobalContext().CareUk.setUploadDocumentsDialogDocumentType(DocumentCategory.RESULTREPORT);
    openDialog();
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnScanClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.getGlobalContext().Core.setUploadDocumentAction(UploadDocumentAction.SCAN);
    openDialog();   
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnImportClick() throws PresentationLogicException 
{
    form.getGlobalContext().Core.setUploadDocumentAction(UploadDocumentAction.IMPORT);
    openDialog();
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnScanClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.getGlobalContext().Core.setUploadDocumentAction(UploadDocumentAction.SCAN);
    openDialog();   
}
项目:openMAXIMS    文件:Logic.java   
private String[] getUIErrors() 
{
    ArrayList<String> errors = new ArrayList<String>();
    String e = "";
    if (form.txtName().getValue() == null) 
    {
        errors.add("Document Name is mandatory");
    }
    if (form.cmbSource().getValue() == null) 
    {
        errors.add("Document Type is mandatory");
    }
    if (form.cmbType().getValue() == null) 
    {
        errors.add("Document Source is mandatory");
    }
    if (form.getGlobalContext().Core.getUploadDocumentAction().equals(UploadDocumentAction.IMPORT) &&
            !form.getLocalContext().getImportedFileIsNotNull())
    {
        errors.add("Select a file for upload");
    }
    if (form.getGlobalContext().Core.getUploadDocumentAction().equals(UploadDocumentAction.SCAN) &&
            !form.getLocalContext().getScannedFileIsNotNull())
    {
        errors.add("Please scan a document");
    }

    if (form.dtimExamDateTime().isVisible() && form.dtimExamDateTime().getValue() != null &&  form.dtimExamDateTime().getValue().isGreaterThan(new DateTime()) )
    {
        errors.add("Exam Date/Time cannot be in the future");
    }

    if (errors.size() > 0) 
    {
        String[] err = new String[errors.size()];
        errors.toArray(err);
        for (int i = 0; i < errors.size(); i++) {
            e += errors.get(i) + "\n";
        }           
        engine.showMessage(e);
        return err;
    }

    return null;        
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnScanClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.getGlobalContext().Core.setUploadDocumentAction(UploadDocumentAction.SCAN);
    openDialog();   
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnImportClick() throws PresentationLogicException 
{
    form.getGlobalContext().Core.setUploadDocumentAction(UploadDocumentAction.IMPORT);
    openDialog();
}
项目:openMAXIMS    文件:Logic.java   
public UploadDocumentAction getAction()
{
    return form.getLocalContext().getComponentAction();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcUploadValueChanged() throws PresentationLogicException 
{
    CatsReferralWizardVo voRefWizard = domain.getCatsReferral(form.getGlobalContext().RefMan.getCatsReferral());

    if(form.getGlobalContext().RefMan.getCatsReferralHasGpLetterIsNotNull() 
        && form.getGlobalContext().RefMan.getCatsReferralHasGpLetter()
        && ! form.getGlobalContext().RefMan.getCatsReferralStatus().getReferralStatus().equals(ReferralApptStatus.REFERRAL_CANCELLED_BY_PROVIDER))
    {
        //WDEV-16158
        if (voRefWizard.getCurrentStatus().getReferralStatus().equals(ReferralApptStatus.REFERRAL_ACCEPTED))
        {
            updateButtonsState(voRefWizard);
            form.getGlobalContext().RefMan.setCatsReferralHasGpLetter(null);
            return;
        }
        //WDEV-21176 automatically accept it in this case
        if (ReferralUrgency.EMERGENCY.equals(voRefWizard.getUrgency()) && voRefWizard.getReferralDetails() != null && !SourceOfReferral.SELF.equals(voRefWizard.getReferralDetails().getReferrerType()) && voRefWizard.getCurrentStatus() != null && !ReferralApptStatus.REFERRAL_ACCEPTED.equals(voRefWizard.getCurrentStatus().getReferralStatus()))
        {   
            acceptReferral(voRefWizard);
        }
        else
        {   
            setCatsReferralStatus(voRefWizard,ReferralApptStatus.AWAITING_TRIAGE, null, form.getGlobalContext().RefMan.getCatsReferralStatus());
        }
        form.getGlobalContext().RefMan.setCatsReferralHasGpLetter(null);
    }
    //wdev-10366
    else if(form.getGlobalContext().RefMan.getCatsReferralHasGpLetterIsNotNull() 
            && !form.getGlobalContext().RefMan.getCatsReferralHasGpLetter()
            && ! form.getGlobalContext().RefMan.getCatsReferralStatus().getReferralStatus().equals(ReferralApptStatus.REFERRAL_CANCELLED_BY_PROVIDER))
    {
        if(voRefWizard != null)
        {
            updateButtonsState(voRefWizard);
            if(voRefWizard.getCurrentStatus() != null && voRefWizard.getCurrentStatus().getReferralStatus() != null)
                form.lblActualStatus().setValue(voRefWizard.getCurrentStatus().getReferralStatus().getText());

        }
    }

    //WDEV-19330 
    if (voRefWizard != null)
        form.lyrDetail().tabDetails().ccDetails().setValue(voRefWizard.getReferralDetails(), voRefWizard);

    if(Boolean.TRUE.equals(form.getLocalContext().getOpenForReferralTriage()) && UploadDocumentAction.CLOSEDIALOG.equals(form.lyrDetail().tabLetter().ccUpload().getAction()))
    {
        engine.close(DialogResult.OK);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnScanClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.getGlobalContext().Core.setUploadDocumentAction(UploadDocumentAction.SCAN);
    openDialog();   
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnImportClick() throws PresentationLogicException 
{
    form.getGlobalContext().Core.setUploadDocumentAction(UploadDocumentAction.IMPORT);
    openDialog();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnScanClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.getGlobalContext().Core.setUploadDocumentAction(UploadDocumentAction.SCAN);
    openDialog();   
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnScanClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.getGlobalContext().Core.setUploadDocumentAction(UploadDocumentAction.SCAN);
    openDialog();   
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnImportClick() throws PresentationLogicException 
{
    form.getGlobalContext().Core.setUploadDocumentAction(UploadDocumentAction.IMPORT);
    openDialog();
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onBtnScanClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.getGlobalContext().Core.setUploadDocumentAction(UploadDocumentAction.SCAN);
    openDialog();   
}