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

项目:AvoinApotti    文件:Logic.java   
protected void onChkConfirmValueChanged() throws PresentationLogicException
{
    if (form.ctnDetails().chkConfirm().getValue() == true)
    {
        form.ctnDetails().setcustomConfirmingHCPEnabled(true);
        form.ctnDetails().customConfirmingHCP().setLabels(AuthoringLabelType.CONFIRMED);
        form.ctnDetails().customConfirmingHCP().initializeComponent();
        form.ctnDetails().customConfirmingHCP().setIsRequiredPropertyToControls(true);

    }
    if (form.ctnDetails().chkConfirm().getValue() == false)
    {
        form.ctnDetails().customConfirmingHCP().setValue(null);
        form.ctnDetails().setcustomConfirmingHCPEnabled(false);
        form.ctnDetails().customConfirmingHCP().setIsRequiredPropertyToControls(false);
    }
}
项目:AvoinApotti    文件:Logic.java   
public void initialize() throws FormOpenException
{
    // Set user rights (at this point it might always be false)
    form.getLocalContext().setUserHasEditRights(isActionEditable());

    // Clear local contexts
    form.getLocalContext().setPatientICPAction(null);
    form.getLocalContext().setSelectedPatientAssessment(null);
    form.getLocalContext().setSelectedPatientGraphicalAssessment(null);

    // Set authoring information components as required
    form.lyrMain().tabPageAssessment().authStructuredAssessment().setIsRequiredPropertyToControls(Boolean.TRUE);
    form.lyrMain().tabPageAssessment().authStructuredAssessmentCompleted().setIsRequiredPropertyToControls(Boolean.TRUE);
    form.lyrMain().tabPageAssessment().authStructuredAssessmentCompleted().setLabels(AuthoringLabelType.COMPLETING_COMPLETED);
    form.lyrMain().tabPageGraphicalAssessment().authGraphicalAssessment().setIsRequiredPropertyToControls(Boolean.TRUE);
    form.lyrMain().tabPageGraphicalAssessment().authGraphicalAssessmentCompleted().setIsRequiredPropertyToControls(Boolean.TRUE);
    form.lyrMain().tabPageGraphicalAssessment().authGraphicalAssessmentCompleted().setLabels(AuthoringLabelType.COMPLETING_COMPLETED);
}
项目:AvoinApotti    文件:Logic.java   
private void openStructuredAssessments()
{
    form.lyrMain().tabPageDetails().lyrICP().tabAssessment().authStructuredAssessment().setIsRequiredPropertyToControls(Boolean.TRUE);

    form.lyrMain().tabPageDetails().lyrICP().tabAssessment().authStructuredAssessmentCompleted().setLabels(AuthoringLabelType.COMPLETING_COMPLETED);
    form.lyrMain().tabPageDetails().lyrICP().tabAssessment().setauthStructuredAssessmentCompletedVisible(Boolean.FALSE);

    clearPageControls();

    PatientICPActionLiteVo action = domain.getPatientICPActionLiteVo((PatientICPActionRefVo) form.lyrMain().tabPageActions().grdActions().getValue());
    UserAssessmentVo assessment = action.getAction().getLinkedAssessment();

    form.getLocalContext().setStructuralAssessment(assessment);
    populateStructuralAssessmentControlsFromData();

    boolean hasLinkedReport = refreshReport(assessment);
    form.lyrMain().tabPageDetails().lyrICP().settabReportEnabled(hasLinkedReport);
    form.lyrMain().tabPageDetails().lyrICP().settabAssessmentEnabled(true);
    form.lyrMain().tabPageDetails().lyrICP().tabAssessment().setHeaderVisible(true);
    form.lyrMain().tabPageDetails().lyrICP().tabReport().setHeaderVisible(hasLinkedReport);
    if (hasLinkedReport)
        form.lyrMain().tabPageDetails().lyrICP().showtabReport();
    form.lyrMain().tabPageDetails().lyrICP().showtabAssessment();
}
项目:AvoinApotti    文件:Logic.java   
public void initialize(Boolean displayReadOnly, DiagnosisManagementLiteVo value) 
{
    form.getLocalContext().setDisplayReadOnly(displayReadOnly);
    form.ccLastUpdating().setLabels(AuthoringLabelType.LAST);

    initializeScreen();     
    clearScreen();
    DiagnosisManagementVo diagnosis = null;
    if (value != null && value.getCatsReferralIsNotNull()) {    
        diagnosis = domain.getDiagnosis(value);         
        populateScreenFromData(diagnosis);              
        form.ccLastUpdating().setValue(value.getLastAuthoringHCP());
        return;
    }

    open();
}
项目:AvoinApotti    文件:Logic.java   
public void initialize(Boolean displayReadOnly, ConsultationClinicalNotesLiteVo value) 
{
    form.getLocalContext().setDisplayReadOnly(displayReadOnly);
    form.ccInitiallySeen().setLabels(AuthoringLabelType.INITIALLY);
    form.ccLastUpdating().setLabels(AuthoringLabelType.LAST);

    ConsultationClinicalNotesVo note = null;
    if (value != null && value.getCatsReferralIsNotNull()) 
    {
        note = domain.getNote(value);
        populateScreenFromData(note);                           
        form.ccInitiallySeen().setValue(note.getInitiallySeenBy());         
        enableInitiallySeenComponent(false);
        form.ccLastUpdating().setValue(note.getLastUpdatingHCP());
        form.setMode(FormMode.VIEW);
        return;
    }

    initializeScreen();
}
项目:openMAXIMS    文件:Logic.java   
protected void onChkConfirmValueChanged() throws PresentationLogicException
{
    if (form.ctnDetails().chkConfirm().getValue() == true)
    {
        form.ctnDetails().setcustomConfirmingHCPEnabled(true);
        form.ctnDetails().customConfirmingHCP().setLabels(AuthoringLabelType.CONFIRMED);
        form.ctnDetails().customConfirmingHCP().initializeComponent();
        form.ctnDetails().customConfirmingHCP().setIsRequiredPropertyToControls(true);

    }
    if (form.ctnDetails().chkConfirm().getValue() == false)
    {
        form.ctnDetails().customConfirmingHCP().setValue(null);
        form.ctnDetails().setcustomConfirmingHCPEnabled(false);
        form.ctnDetails().customConfirmingHCP().setIsRequiredPropertyToControls(false);
    }
}
项目:openMAXIMS    文件:Logic.java   
public void initialize() throws FormOpenException
{
    // Set user rights (at this point it might always be false)
    form.getLocalContext().setUserHasEditRights(isActionEditable());

    // Clear local contexts
    form.getLocalContext().setPatientICPAction(null);
    form.getLocalContext().setSelectedPatientAssessment(null);
    form.getLocalContext().setSelectedPatientGraphicalAssessment(null);

    // Set authoring information components as required
    form.lyrMain().tabPageAssessment().authStructuredAssessment().setIsRequiredPropertyToControls(Boolean.TRUE);
    form.lyrMain().tabPageAssessment().authStructuredAssessmentCompleted().setIsRequiredPropertyToControls(Boolean.TRUE);
    form.lyrMain().tabPageAssessment().authStructuredAssessmentCompleted().setLabels(AuthoringLabelType.COMPLETING_COMPLETED);
    form.lyrMain().tabPageGraphicalAssessment().authGraphicalAssessment().setIsRequiredPropertyToControls(Boolean.TRUE);
    form.lyrMain().tabPageGraphicalAssessment().authGraphicalAssessmentCompleted().setIsRequiredPropertyToControls(Boolean.TRUE);
    form.lyrMain().tabPageGraphicalAssessment().authGraphicalAssessmentCompleted().setLabels(AuthoringLabelType.COMPLETING_COMPLETED);
}
项目:openMAXIMS    文件:Logic.java   
private void openStructuredAssessments()
{
    form.lyrMain().tabPageDetails().lyrICP().tabAssessment().authStructuredAssessment().setIsRequiredPropertyToControls(Boolean.TRUE);

    form.lyrMain().tabPageDetails().lyrICP().tabAssessment().authStructuredAssessmentCompleted().setLabels(AuthoringLabelType.COMPLETING_COMPLETED);
    form.lyrMain().tabPageDetails().lyrICP().tabAssessment().setauthStructuredAssessmentCompletedVisible(Boolean.FALSE);

    clearPageControls();

    PatientICPActionLiteVo action = domain.getPatientICPActionLiteVo((PatientICPActionRefVo) form.lyrMain().tabPageActions().grdActions().getValue());
    UserAssessmentVo assessment = action.getAction().getLinkedAssessment();

    form.getLocalContext().setStructuralAssessment(assessment);
    populateStructuralAssessmentControlsFromData();

    boolean hasLinkedReport = refreshReport(assessment);
    form.lyrMain().tabPageDetails().lyrICP().settabReportEnabled(hasLinkedReport);
    form.lyrMain().tabPageDetails().lyrICP().settabAssessmentEnabled(true);
    form.lyrMain().tabPageDetails().lyrICP().tabAssessment().setHeaderVisible(true);
    form.lyrMain().tabPageDetails().lyrICP().tabReport().setHeaderVisible(hasLinkedReport);
    if (hasLinkedReport)
        form.lyrMain().tabPageDetails().lyrICP().showtabReport();
    form.lyrMain().tabPageDetails().lyrICP().showtabAssessment();
}
项目:openMAXIMS    文件:Logic.java   
public void initialize(Boolean displayReadOnly, DiagnosisManagementLiteVo value) 
{
    form.getLocalContext().setDisplayReadOnly(displayReadOnly);
    form.ccLastUpdating().setLabels(AuthoringLabelType.LAST);

    initializeScreen();     
    clearScreen();
    DiagnosisManagementVo diagnosis = null;
    if (value != null && value.getCatsReferralIsNotNull()) {    
        diagnosis = domain.getDiagnosis(value);         
        populateScreenFromData(diagnosis);              
        form.ccLastUpdating().setValue(value.getLastAuthoringHCP());
        return;
    }

    open();
}
项目:openMAXIMS    文件:Logic.java   
public void initialize(Boolean displayReadOnly, ConsultationClinicalNotesLiteVo value) 
{
    form.getLocalContext().setDisplayReadOnly(displayReadOnly);
    form.ccInitiallySeen().setLabels(AuthoringLabelType.INITIALLY);
    form.ccLastUpdating().setLabels(AuthoringLabelType.LAST);

    ConsultationClinicalNotesVo note = null;
    if (value != null && value.getCatsReferralIsNotNull()) 
    {
        note = domain.getNote(value);
        populateScreenFromData(note);                           
        form.ccInitiallySeen().setValue(note.getInitiallySeenBy());         
        enableInitiallySeenComponent(false);
        form.ccLastUpdating().setValue(note.getLastUpdatingHCP());
        form.setMode(FormMode.VIEW);
        return;
    }

    initializeScreen();
}
项目:openMAXIMS    文件:Logic.java   
public void initializeComponent()
{
    setTooltips();

    populateWards();
    form.lblMessage().setVisible(form.getLocalContext().getSelectedRecordIsNotNull()&& form.getLocalContext().getSelectedRecord().getDischargeDetailsIsNotNull() && !(DischargeLetterStatus.GENERATED.equals(form.getLocalContext().getSelectedRecord().getDischargeDetails().getDischargeLetterStatus()))); //WDEV-18845
    form.lblMessage().setTextColor(Color.Red);//WDEV-18622
    form.ccDischCons().initialize(MosType.MEDIC);
    form.ccAuthoring().setIsRequiredPropertyToControls(true);
    form.ccAuthoring().setLabels(AuthoringLabelType.AUTHORISING); //WDEV-18622
    form.ccAuthoring().initializeComponent(HcpDisType.MEDICAL);

    initializeSummaryDynGrid(); //WDEV-18916
    clearInstanceControls();

    form.getGlobalContext().Clinical.seteDischargeCompleted(false);

    form.getLocalContext().setisReadonly(false);

    form.getLocalContext().setbInitialised(null);
}
项目:openMAXIMS    文件:Logic.java   
protected void onChkConfirmValueChanged() throws PresentationLogicException
{
    if (form.ctnDetails().chkConfirm().getValue() == true)
    {
        form.ctnDetails().setcustomConfirmingHCPEnabled(true);
        form.ctnDetails().customConfirmingHCP().setLabels(AuthoringLabelType.CONFIRMED);
        form.ctnDetails().customConfirmingHCP().initializeComponent();
        form.ctnDetails().customConfirmingHCP().setIsRequiredPropertyToControls(true);

    }
    if (form.ctnDetails().chkConfirm().getValue() == false)
    {
        form.ctnDetails().customConfirmingHCP().setValue(null);
        form.ctnDetails().setcustomConfirmingHCPEnabled(false);
        form.ctnDetails().customConfirmingHCP().setIsRequiredPropertyToControls(false);
    }
}
项目:openMAXIMS    文件:Logic.java   
public void initialize() throws FormOpenException
{
    // Set user rights (at this point it might always be false)
    form.getLocalContext().setUserHasEditRights(isActionEditable());

    // Clear local contexts
    form.getLocalContext().setPatientICPAction(null);
    form.getLocalContext().setSelectedPatientAssessment(null);
    form.getLocalContext().setSelectedPatientGraphicalAssessment(null);

    // Set authoring information components as required
    form.lyrMain().tabPageAssessment().authStructuredAssessment().setIsRequiredPropertyToControls(Boolean.TRUE);
    form.lyrMain().tabPageAssessment().authStructuredAssessmentCompleted().setIsRequiredPropertyToControls(Boolean.TRUE);
    form.lyrMain().tabPageAssessment().authStructuredAssessmentCompleted().setLabels(AuthoringLabelType.COMPLETING_COMPLETED);
    form.lyrMain().tabPageGraphicalAssessment().authGraphicalAssessment().setIsRequiredPropertyToControls(Boolean.TRUE);
    form.lyrMain().tabPageGraphicalAssessment().authGraphicalAssessmentCompleted().setIsRequiredPropertyToControls(Boolean.TRUE);
    form.lyrMain().tabPageGraphicalAssessment().authGraphicalAssessmentCompleted().setLabels(AuthoringLabelType.COMPLETING_COMPLETED);
}
项目:openMAXIMS    文件:Logic.java   
private void openStructuredAssessments()
{
    form.lyrMain().tabPageDetails().lyrICP().tabAssessment().authStructuredAssessment().setIsRequiredPropertyToControls(Boolean.TRUE);

    form.lyrMain().tabPageDetails().lyrICP().tabAssessment().authStructuredAssessmentCompleted().setLabels(AuthoringLabelType.COMPLETING_COMPLETED);
    form.lyrMain().tabPageDetails().lyrICP().tabAssessment().setauthStructuredAssessmentCompletedVisible(Boolean.FALSE);

    clearPageControls();

    PatientICPActionLiteVo action = domain.getPatientICPActionLiteVo((PatientICPActionRefVo) form.lyrMain().tabPageActions().grdActions().getValue());
    UserAssessmentVo assessment = action.getAction().getLinkedAssessment();

    form.getLocalContext().setStructuralAssessment(assessment);
    populateStructuralAssessmentControlsFromData();

    boolean hasLinkedReport = refreshReport(assessment);
    form.lyrMain().tabPageDetails().lyrICP().settabReportEnabled(hasLinkedReport);
    form.lyrMain().tabPageDetails().lyrICP().settabAssessmentEnabled(true);
    form.lyrMain().tabPageDetails().lyrICP().tabAssessment().setHeaderVisible(true);
    form.lyrMain().tabPageDetails().lyrICP().tabReport().setHeaderVisible(hasLinkedReport);
    if (hasLinkedReport)
        form.lyrMain().tabPageDetails().lyrICP().showtabReport();
    form.lyrMain().tabPageDetails().lyrICP().showtabAssessment();
}
项目:openMAXIMS    文件:Logic.java   
public void initialize(Boolean displayReadOnly, DiagnosisManagementLiteVo value) 
{
    form.getLocalContext().setDisplayReadOnly(displayReadOnly);
    form.ccLastUpdating().setLabels(AuthoringLabelType.LAST);

    initializeScreen();     
    clearScreen();
    DiagnosisManagementVo diagnosis = null;
    if (value != null && value.getCatsReferralIsNotNull()) {    
        diagnosis = domain.getDiagnosis(value);         
        populateScreenFromData(diagnosis);              
        form.ccLastUpdating().setValue(value.getLastAuthoringHCP());
        return;
    }

    open();
}
项目:openMAXIMS    文件:Logic.java   
public void initialize(Boolean displayReadOnly, ConsultationClinicalNotesLiteVo value) 
{
    form.getLocalContext().setDisplayReadOnly(displayReadOnly);
    form.ccInitiallySeen().setLabels(AuthoringLabelType.INITIALLY);
    form.ccLastUpdating().setLabels(AuthoringLabelType.LAST);

    ConsultationClinicalNotesVo note = null;
    if (value != null && value.getCatsReferralIsNotNull()) 
    {
        note = domain.getNote(value);
        populateScreenFromData(note);                           
        form.ccInitiallySeen().setValue(note.getInitiallySeenBy());         
        enableInitiallySeenComponent(false);
        form.ccLastUpdating().setValue(note.getLastUpdatingHCP());
        form.setMode(FormMode.VIEW);
        return;
    }

    initializeScreen();
}
项目:openmaxims-linux    文件:Logic.java   
protected void onChkConfirmValueChanged() throws PresentationLogicException
{
    if (form.ctnDetails().chkConfirm().getValue() == true)
    {
        form.ctnDetails().setcustomConfirmingHCPEnabled(true);
        form.ctnDetails().customConfirmingHCP().setLabels(AuthoringLabelType.CONFIRMED);
        form.ctnDetails().customConfirmingHCP().initializeComponent();
        form.ctnDetails().customConfirmingHCP().setIsRequiredPropertyToControls(true);

    }
    if (form.ctnDetails().chkConfirm().getValue() == false)
    {
        form.ctnDetails().customConfirmingHCP().setValue(null);
        form.ctnDetails().setcustomConfirmingHCPEnabled(false);
        form.ctnDetails().customConfirmingHCP().setIsRequiredPropertyToControls(false);
    }
}
项目:openmaxims-linux    文件:Logic.java   
public void initialize() throws FormOpenException
{
    // Set user rights (at this point it might always be false)
    form.getLocalContext().setUserHasEditRights(isActionEditable());

    // Clear local contexts
    form.getLocalContext().setPatientICPAction(null);
    form.getLocalContext().setSelectedPatientAssessment(null);
    form.getLocalContext().setSelectedPatientGraphicalAssessment(null);

    // Set authoring information components as required
    form.lyrMain().tabPageAssessment().authStructuredAssessment().setIsRequiredPropertyToControls(Boolean.TRUE);
    form.lyrMain().tabPageAssessment().authStructuredAssessmentCompleted().setIsRequiredPropertyToControls(Boolean.TRUE);
    form.lyrMain().tabPageAssessment().authStructuredAssessmentCompleted().setLabels(AuthoringLabelType.COMPLETING_COMPLETED);
    form.lyrMain().tabPageGraphicalAssessment().authGraphicalAssessment().setIsRequiredPropertyToControls(Boolean.TRUE);
    form.lyrMain().tabPageGraphicalAssessment().authGraphicalAssessmentCompleted().setIsRequiredPropertyToControls(Boolean.TRUE);
    form.lyrMain().tabPageGraphicalAssessment().authGraphicalAssessmentCompleted().setLabels(AuthoringLabelType.COMPLETING_COMPLETED);
}
项目:openmaxims-linux    文件:Logic.java   
private void openStructuredAssessments()
{
    form.lyrMain().tabPageDetails().lyrICP().tabAssessment().authStructuredAssessment().setIsRequiredPropertyToControls(Boolean.TRUE);

    form.lyrMain().tabPageDetails().lyrICP().tabAssessment().authStructuredAssessmentCompleted().setLabels(AuthoringLabelType.COMPLETING_COMPLETED);
    form.lyrMain().tabPageDetails().lyrICP().tabAssessment().setauthStructuredAssessmentCompletedVisible(Boolean.FALSE);

    clearPageControls();

    PatientICPActionLiteVo action = domain.getPatientICPActionLiteVo((PatientICPActionRefVo) form.lyrMain().tabPageActions().grdActions().getValue());
    UserAssessmentVo assessment = action.getAction().getLinkedAssessment();

    form.getLocalContext().setStructuralAssessment(assessment);
    populateStructuralAssessmentControlsFromData();

    boolean hasLinkedReport = refreshReport(assessment);
    form.lyrMain().tabPageDetails().lyrICP().settabReportEnabled(hasLinkedReport);
    form.lyrMain().tabPageDetails().lyrICP().settabAssessmentEnabled(true);
    form.lyrMain().tabPageDetails().lyrICP().tabAssessment().setHeaderVisible(true);
    form.lyrMain().tabPageDetails().lyrICP().tabReport().setHeaderVisible(hasLinkedReport);
    if (hasLinkedReport)
        form.lyrMain().tabPageDetails().lyrICP().showtabReport();
    form.lyrMain().tabPageDetails().lyrICP().showtabAssessment();
}
项目:AvoinApotti    文件:Logic.java   
protected void showHideCustomComponent(IComponent customControl, Boolean isEnabled, String setLabel, Boolean isRequire)
{   
    if (customControl != null)
    {
        customControl.setEnabledAuthoringHCP(isEnabled);
        customControl.setEnabledDateTime(isEnabled);
    }
    if (isEnabled != null &&
            customControl != null)
    {
        if (isEnabled.equals(Boolean.TRUE))
        {
            customControl.initializeComponent();
        }
        if (isEnabled.equals(Boolean.FALSE))
        {
            customControl.setValue(null);
        }
    }
    if (setLabel != null &&
            customControl != null)
    {
        if (setLabel.equals("Start") ||
                setLabel.equals("Confirm") || 
                setLabel.equals("Resolved"))
        {
            if (setLabel.equals("Start"))
                customControl.setLabels(AuthoringLabelType.START);
            if (setLabel.equals("Confirm"))
                customControl.setLabels(AuthoringLabelType.CONFIRMED);
            if (setLabel.equals("Resolved"))
                customControl.setLabels(AuthoringLabelType.RESOLVING);
        }
    }
    if (isRequire != null &&
            customControl != null)
    {
        customControl.setIsRequiredPropertyToControls(isRequire);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void initialize() 
{
    form.ctnDetail().lyrDetails().tabDevice().customInsertedHCP().ignoreComponentReadonlyFlag(Boolean.TRUE);

    populateFilterCombo(); 
    setContextMenuState();  
    updateContextMenuState();

    form.ctnDetail().lyrDetails().showtabDevice();
    form.ctnDetail().lyrDetails().tabVIP().setHeaderVisible(false);
    form.ctnDetail().lyrDetails().tabDevice().setHeaderVisible(true);

    form.ctnDetail().lyrDetails().tabDevice().customInsertedHCP().setLabels(AuthoringLabelType.INSERTED);
    form.ctnDetail().lyrDetails().tabDevice().setcustomInsertedHCPEnabled(false);

    form.ctnDetail().lyrDetails().tabVIP().customVipAuthoringHCP().setIsRequiredPropertyToControls(true);

    if (form.cmbFilter().getValue() != null)
    {
        if (form.cmbFilter().getValue().equals(FILTER_HISTORIC))
        {
            initialiseHistoricDynamicGrid();
        }
        if (form.cmbFilter().getValue().equals(FILTER_CURRENT))
        {
            initialiseCurrentDynamicGrid();
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void initializeUploadComponent(AuthoringLabelType type) 
{
    form.ccImported().initializeComponent();
    form.ccImported().setLabels(type);
    form.ccImported().setEnabledAuthoringHCP(false);
    form.ccImported().setEnabledDateTime(false);        
}
项目:AvoinApotti    文件:Logic.java   
private void initialize()
{
    form.getLocalContext().setOneInstancePresent(Boolean.FALSE);

    if(form.getLocalContext().getInRIEMode() != null)
    {
        boolean storedRIEmode = form.getLocalContext().getInRIEMode();
        if(storedRIEmode != engine.isRIEMode())
        {
            form.getLocalContext().setCurrentPatientAssessment(null);
        }
    }

    //WDEV-17043
    if (dialogOpenedFromEas() && form.getGlobalContext().EAS.getEasPatientAssessment() != null)
    {
        form.getGlobalContext().Assessment.setDynamicAssessmentSearchCriteria(null);
    }

    form.getLocalContext().setInRIEMode(engine.isRIEMode());

    form.lyrAssessments().tabStructuralAssessment().authStructuredAssessment().setIsRequiredPropertyToControls(Boolean.TRUE);
    form.lyrAssessments().tabStructuralAssessment().authStructuredAssessmentCompleted().setLabels(AuthoringLabelType.COMPLETING_COMPLETED);
    form.lyrAssessments().tabGraphicalAssessment().authGraphicalAssessment().setIsRequiredPropertyToControls(Boolean.TRUE);
    form.lyrAssessments().tabGraphicalAssessment().authGraphicalAssessmentCompleted().setLabels(AuthoringLabelType.COMPLETING_COMPLETED);

    form.lyrAssessments().tabStructuralAssessment().setauthStructuredAssessmentCompletedVisible(false);
    form.lyrAssessments().tabStructuralAssessment().setauthStructuredAssessmentCompletedEnabled(false);
    form.lyrAssessments().tabGraphicalAssessment().setauthGraphicalAssessmentCompletedVisible(false);
    form.lyrAssessments().tabGraphicalAssessment().setauthGraphicalAssessmentCompletedEnabled(false);

    // WDEV-12954
    // Check if the search criteria needs to be reseted
    resetSearchCriteriaIfNeeded();
}
项目:AvoinApotti    文件:Logic.java   
private void initialize()
{
    form.ccAuthoringInfo().setLabels(AuthoringLabelType.AUTHORED);
    form.ccAuthoringInfo().setIsRequiredPropertyToControls(true);
    form.ctnNoteDetails().cmbAttendance().setValue(form.getGlobalContext().Core.getCurrentCareContext());

    Object hcp = domain.getHcpLiteUser();
    if (hcp !=null && hcp instanceof HcpLiteVo)
    {
        HcpLiteVo hcpLite = (HcpLiteVo)hcp;
        form.ctnNoteDetails().cmbDiscipline().setValue(hcpLite.getHcpType().getParent()!=null ? hcpLite.getHcpType().getParent() : hcpLite.getHcpType() );//WDEV-17264
        form.ctnNoteDetails().cmbSpecialty().setValue(domain.getSpecialtyForHCP(hcpLite, hcpLite.getHcpType()));
    }
}
项目:AvoinApotti    文件:Logic.java   
private void initialize() 
{
    form.ccUpdatingHCP().setLabels(AuthoringLabelType.LAST);

    AuthoringInformationVo auth = new AuthoringInformationVo();
    auth.setAuthoringHcp((HcpLiteVo)domain.getHcpLiteUser());
    auth.setAuthoringDateTime(new DateTime());

    form.ccUpdatingHCP().setValue(auth);
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onRadioButtonGroup1ValueChanged() throws PresentationLogicException 
{   
    if (form.lyr1().tabTLT().lyrTLT().tabPageTLTOutcome().Group1().getValue().equals(Group1Enumeration.rdoDischargePatient))            
    {
        form.lyr1().tabTLT().lyrTLT().tabPageTLTOutcome().ccAuthoring().setLabels(AuthoringLabelType.DISCHARGING);
        hideAllFields(false);
        openTLTOutcome();
    }
    else if (form.lyr1().tabTLT().lyrTLT().tabPageTLTOutcome().Group1().getValue().equals(Group1Enumeration.rdoReferBackToConsultant))          
    {
        form.lyr1().tabTLT().lyrTLT().tabPageTLTOutcome().ccAuthoring().setLabels(AuthoringLabelType.AUTHORING);
        hideAllFields(true);
    }           
}
项目:AvoinApotti    文件:Logic.java   
private void openAsDialog() throws PresentationLogicException
{
    form.setMode(FormMode.EDIT);

    if(form.getGlobalContext().Core.getClinicalNotingModeIsNotNull() && 
        form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.REVIEW))
    {
        form.chkForReview().setVisible(false);
        form.cmbDiscipline().setVisible(false);
        form.lblDiscipline().setVisible(false);
        form.setcustomControlReviewedVisible(true);
        form.customControlReviewed().setLabels(AuthoringLabelType.REVIEWING);
        form.chkMarkAsReviewed().setVisible(true);
        form.chkMarkAsReviewed().setValue(true);

        onChkMarkAsReviewedValueChanged();

        if (! form.getGlobalContext().Clinical.getCurrentClinicalNote().getReviewingHCPIsNotNull() && 
                ! form.getGlobalContext().Clinical.getCurrentClinicalNote().getReviewingDateTimeIsNotNull())
        {
            enabledCustomReviewed(Boolean.TRUE);
        }
    }

    enableCustomReviewed(false);

    form.btnClose().setVisible(false);
}
项目:AvoinApotti    文件:Logic.java   
private void initialize()
{
    form.ccGraphicAssesment().setEnabled(true);
    form.ccGraphicAssesment().clear(true);

    // WDEV-13973
    form.ccCompletingAuthInfo().setIsRequiredPropertyToControls(Boolean.TRUE);
    form.ccCompletingAuthInfo().setLabels(AuthoringLabelType.COMPLETING_COMPLETED);
}
项目:AvoinApotti    文件:Logic.java   
private void openAsDialog() throws PresentationLogicException
{
    form.setMode(FormMode.EDIT);

    if(form.getGlobalContext().Core.getClinicalNotingModeIsNotNull() && 
        form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.REVIEW))
    {
        form.chkForReview().setVisible(false);
        form.cmbDiscipline().setVisible(false);
        form.lblDiscipline().setVisible(false);
        form.setcustomControlReviewedVisible(true);
        form.customControlReviewed().setLabels(AuthoringLabelType.REVIEWING);
        form.chkMarkAsReviewed().setVisible(true);
        form.chkMarkAsReviewed().setValue(true);

        onChkMarkAsReviewedValueChanged();

        if (! form.getGlobalContext().Clinical.getCurrentClinicalNote().getReviewingHCPIsNotNull() && 
                ! form.getGlobalContext().Clinical.getCurrentClinicalNote().getReviewingDateTimeIsNotNull())
        {
            enabledCustomReviewed(Boolean.TRUE);
        }
    }

    enableCustomReviewed(false);

    form.btnClose().setVisible(false);
}
项目:openMAXIMS    文件:Logic.java   
protected void showHideCustomComponent(IComponent customControl, Boolean isEnabled, String setLabel, Boolean isRequire)
{   
    if (customControl != null)
    {
        customControl.setEnabledAuthoringHCP(isEnabled);
        customControl.setEnabledDateTime(isEnabled);
    }
    if (isEnabled != null &&
            customControl != null)
    {
        if (isEnabled.equals(Boolean.TRUE))
        {
            customControl.initializeComponent();
        }
        if (isEnabled.equals(Boolean.FALSE))
        {
            customControl.setValue(null);
        }
    }
    if (setLabel != null &&
            customControl != null)
    {
        if (setLabel.equals("Start") ||
                setLabel.equals("Confirm") || 
                setLabel.equals("Resolved"))
        {
            if (setLabel.equals("Start"))
                customControl.setLabels(AuthoringLabelType.START);
            if (setLabel.equals("Confirm"))
                customControl.setLabels(AuthoringLabelType.CONFIRMED);
            if (setLabel.equals("Resolved"))
                customControl.setLabels(AuthoringLabelType.RESOLVING);
        }
    }
    if (isRequire != null &&
            customControl != null)
    {
        customControl.setIsRequiredPropertyToControls(isRequire);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void initialize() 
{
    form.ctnDetail().lyrDetails().tabDevice().customInsertedHCP().ignoreComponentReadonlyFlag(Boolean.TRUE);

    populateFilterCombo(); 
    setContextMenuState();  
    updateContextMenuState();

    form.ctnDetail().lyrDetails().showtabDevice();
    form.ctnDetail().lyrDetails().tabVIP().setHeaderVisible(false);
    form.ctnDetail().lyrDetails().tabDevice().setHeaderVisible(true);

    form.ctnDetail().lyrDetails().tabDevice().customInsertedHCP().setLabels(AuthoringLabelType.INSERTED);
    form.ctnDetail().lyrDetails().tabDevice().setcustomInsertedHCPEnabled(false);

    form.ctnDetail().lyrDetails().tabVIP().customVipAuthoringHCP().setIsRequiredPropertyToControls(true);

    if (form.cmbFilter().getValue() != null)
    {
        if (form.cmbFilter().getValue().equals(FILTER_HISTORIC))
        {
            initialiseHistoricDynamicGrid();
        }
        if (form.cmbFilter().getValue().equals(FILTER_CURRENT))
        {
            initialiseCurrentDynamicGrid();
        }
    }
    try //WDEV-19962
    {
        form.ctnDetail().lyrDetails().tabDevice().dtimTargetRemDate().setMaxValue(new DateTime("290001010000"));
        form.ctnDetail().lyrDetails().tabDevice().dtimRemDate().setMaxValue(new DateTime("290001010000"));
    }
    catch (ParseException e)
    {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void initializeUploadComponent(AuthoringLabelType type) 
{
    form.ccImported().initializeComponent();
    form.ccImported().setLabels(type);
    form.ccImported().setEnabledAuthoringHCP(false);
    form.ccImported().setEnabledDateTime(false);        
}
项目:openMAXIMS    文件:Logic.java   
private void initialize()
{
    form.getLocalContext().setOneInstancePresent(Boolean.FALSE);

    if(form.getLocalContext().getInRIEMode() != null)
    {
        boolean storedRIEmode = form.getLocalContext().getInRIEMode();
        if(storedRIEmode != engine.isRIEMode())
        {
            form.getLocalContext().setCurrentPatientAssessment(null);
        }
    }

    //WDEV-17043
    if (dialogOpenedFromEas() && form.getGlobalContext().EAS.getEasPatientAssessment() != null)
    {
        form.getGlobalContext().Assessment.setDynamicAssessmentSearchCriteria(null);
    }

    form.getLocalContext().setInRIEMode(engine.isRIEMode());

    form.lyrAssessments().tabStructuralAssessment().authStructuredAssessment().setIsRequiredPropertyToControls(Boolean.TRUE);
    form.lyrAssessments().tabStructuralAssessment().authStructuredAssessmentCompleted().setLabels(AuthoringLabelType.COMPLETING_COMPLETED);
    form.lyrAssessments().tabGraphicalAssessment().authGraphicalAssessment().setIsRequiredPropertyToControls(Boolean.TRUE);
    form.lyrAssessments().tabGraphicalAssessment().authGraphicalAssessmentCompleted().setLabels(AuthoringLabelType.COMPLETING_COMPLETED);

    form.lyrAssessments().tabStructuralAssessment().setauthStructuredAssessmentCompletedVisible(false);
    form.lyrAssessments().tabStructuralAssessment().setauthStructuredAssessmentCompletedEnabled(false);
    form.lyrAssessments().tabGraphicalAssessment().setauthGraphicalAssessmentCompletedVisible(false);
    form.lyrAssessments().tabGraphicalAssessment().setauthGraphicalAssessmentCompletedEnabled(false);
    form.btnSavePDF().setImage(form.getImages().Core.PDFIcon); //WDEV-19127

    // WDEV-12954
    // Check if the search criteria needs to be reseted
    resetSearchCriteriaIfNeeded();
}
项目:openMAXIMS    文件:Logic.java   
private void initialize()
{
    form.ccAuthoringInfo().setLabels(AuthoringLabelType.AUTHORED);
    form.ccAuthoringInfo().setIsRequiredPropertyToControls(true);
    form.ctnNoteDetails().cmbAttendance().setValue(form.getGlobalContext().Core.getCurrentCareContext());

    Object hcp = domain.getHcpLiteUser();
    if (hcp !=null && hcp instanceof HcpLiteVo)
    {
        HcpLiteVo hcpLite = (HcpLiteVo)hcp;
        form.ctnNoteDetails().cmbDiscipline().setValue(hcpLite.getHcpType().getParent()!=null ? hcpLite.getHcpType().getParent() : hcpLite.getHcpType() );//WDEV-17264
        form.ctnNoteDetails().cmbSpecialty().setValue(domain.getSpecialtyForHCP(hcpLite, hcpLite.getHcpType()));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void initialize() 
{
    form.ccUpdatingHCP().setLabels(AuthoringLabelType.LAST);

    AuthoringInformationVo auth = new AuthoringInformationVo();
    auth.setAuthoringHcp((HcpLiteVo)domain.getHcpLiteUser());
    auth.setAuthoringDateTime(new DateTime());

    form.ccUpdatingHCP().setValue(auth);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onRadioButtonGroup1ValueChanged() throws PresentationLogicException 
{   
    if (form.lyr1().tabTLT().lyrTLT().tabPageTLTOutcome().Group1().getValue().equals(Group1Enumeration.rdoDischargePatient))            
    {
        form.lyr1().tabTLT().lyrTLT().tabPageTLTOutcome().ccAuthoring().setLabels(AuthoringLabelType.DISCHARGING);
        hideAllFields(false);
        openTLTOutcome();
    }
    else if (form.lyr1().tabTLT().lyrTLT().tabPageTLTOutcome().Group1().getValue().equals(Group1Enumeration.rdoReferBackToConsultant))          
    {
        form.lyr1().tabTLT().lyrTLT().tabPageTLTOutcome().ccAuthoring().setLabels(AuthoringLabelType.AUTHORING);
        hideAllFields(true);
    }           
}
项目:openMAXIMS    文件:Logic.java   
private void openAsDialog() throws PresentationLogicException
{
    form.setMode(FormMode.EDIT);

    if(form.getGlobalContext().Core.getClinicalNotingModeIsNotNull() && 
        form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.REVIEW))
    {
        form.chkForReview().setVisible(false);
        form.cmbDiscipline().setVisible(false);
        form.lblDiscipline().setVisible(false);
        form.setcustomControlReviewedVisible(true);
        form.customControlReviewed().setLabels(AuthoringLabelType.REVIEWING);
        form.chkMarkAsReviewed().setVisible(true);
        form.chkMarkAsReviewed().setValue(true);

        onChkMarkAsReviewedValueChanged();

        if (! form.getGlobalContext().Clinical.getCurrentClinicalNote().getReviewingHCPIsNotNull() && 
                ! form.getGlobalContext().Clinical.getCurrentClinicalNote().getReviewingDateTimeIsNotNull())
        {
            enabledCustomReviewed(Boolean.TRUE);
        }
    }

    enableCustomReviewed(false);

    form.btnClose().setVisible(false);
}
项目:openMAXIMS    文件:Logic.java   
private void openAsDialog() throws PresentationLogicException
{
    form.setMode(FormMode.EDIT);

    if(form.getGlobalContext().Core.getClinicalNotingModeIsNotNull() && 
        form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.REVIEW))
    {
        form.chkForReview().setVisible(false);
        form.cmbDiscipline().setVisible(false);
        form.lblDiscipline().setVisible(false);
        form.setcustomControlReviewedVisible(true);
        form.customControlReviewed().setLabels(AuthoringLabelType.REVIEWING);
        form.chkMarkAsReviewed().setVisible(true);
        form.chkMarkAsReviewed().setValue(true);

        onChkMarkAsReviewedValueChanged();

        if (! form.getGlobalContext().Clinical.getCurrentClinicalNote().getReviewingHCPIsNotNull() && 
                ! form.getGlobalContext().Clinical.getCurrentClinicalNote().getReviewingDateTimeIsNotNull())
        {
            enabledCustomReviewed(Boolean.TRUE);
        }
    }

    enableCustomReviewed(false);

    form.btnClose().setVisible(false);
}
项目:openMAXIMS    文件:Logic.java   
private void initialize()
{
    form.ccGraphicAssesment().setEnabled(true);
    form.ccGraphicAssesment().clear(true);

    // WDEV-13973
    form.ccCompletingAuthInfo().setIsRequiredPropertyToControls(Boolean.TRUE);
    form.ccCompletingAuthInfo().setLabels(AuthoringLabelType.COMPLETING_COMPLETED);
}
项目:openMAXIMS    文件:Logic.java   
private void openAsDialog() throws PresentationLogicException
{
    form.setMode(FormMode.EDIT);

    if(form.getGlobalContext().Core.getClinicalNotingModeIsNotNull() && 
        form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.REVIEW))
    {
        form.chkForReview().setVisible(false);
        form.cmbDiscipline().setVisible(false);
        form.lblDiscipline().setVisible(false);
        form.setcustomControlReviewedVisible(true);
        form.customControlReviewed().setLabels(AuthoringLabelType.REVIEWING);
        form.chkMarkAsReviewed().setVisible(true);
        form.chkMarkAsReviewed().setValue(true);

        onChkMarkAsReviewedValueChanged();

        if (! form.getGlobalContext().Clinical.getCurrentClinicalNote().getReviewingHCPIsNotNull() && 
                ! form.getGlobalContext().Clinical.getCurrentClinicalNote().getReviewingDateTimeIsNotNull())
        {
            enabledCustomReviewed(Boolean.TRUE);
        }
    }

    enableCustomReviewed(false);

    form.btnClose().setVisible(false);
}