Java 类ims.clinical.vo.lookups.AnaestheticTypeCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void initialiseScreenAndLists()
{
    //WDEV-16799 - show DoS controls depending on Config Flag value
    form.lyrDetails().tabDOS().setHeaderVisible(!ConfigFlag.DOM.SCHEDULING_SLOTS_CREATION.getValue().equals("Local Only"));
    form.lblDOS().setVisible(!ConfigFlag.DOM.SCHEDULING_SLOTS_CREATION.getValue().equals("Local Only"));
    form.qmbFilterDirectoryOfService().setVisible(!ConfigFlag.DOM.SCHEDULING_SLOTS_CREATION.getValue().equals("Local Only"));


    // workaround to show location is required
    form.lyrDetails().tabGeneralDetails().lblLocStar().setTextColor(Color.Red);
    form.lyrDetails().tabGeneralDetails().lblLocStar().setTooltip("Required");

    form.lyrDetails().tabTheatre().setVisible(form.lyrDetails().tabGeneralDetails().chkTheatre().getValue());
    form.lyrDetails().tabTheatre().setHeaderVisible(form.lyrDetails().tabGeneralDetails().chkTheatre().getValue());

    //WDEV-12918
    if(ConfigFlag.DOM.THEATRE_SESSION_TYPE.getValue().equals("TCI"))
    {
        form.lyrDetails().tabTheatre().lyrSlots().showtabTCI();
        form.lyrDetails().tabGeneralDetails().cmbSlotType().removeRow(SlotType.SLOTS);
    }
    else if(ConfigFlag.DOM.THEATRE_SESSION_TYPE.getValue().equals("Fixed"))
    {
        form.lyrDetails().tabTheatre().lyrSlots().showtabTheatreSlots();
        form.lyrDetails().tabGeneralDetails().cmbSlotType().removeRow(SlotType.THEATRETCITIME);
    }

    //WDEV-12918
    AnaestheticTypeCollection collAnaesTypes = LookupHelper.getAnaestheticType(domain.getLookupService());
    for(int i=0;i<collAnaesTypes.size();i++)
        form.lyrDetails().tabGeneralDetails().chklistAnaesthetictype().newRow(collAnaesTypes.get(i), collAnaesTypes.get(i).getText());

    // prepopulating reference data
    form.getLocalContext().setRoleList(domain.listRoles());

    // initialising search
    form.chkActiveOnly().setValue(true);
    //WDEV-12039
    form.lyrDetails().tabSlots().chkSlotsActiveOnly().setValue(true);

    loadServices();
    loadHospitals();
    loadActivities();

    //WDEV-13362
    form.ccListOwner().initialize(MosType.HCP);

    updateControlState();
}
项目:openMAXIMS    文件:Logic.java   
private void initialiseScreenAndLists()
{
    //WDEV-16799 - show DoS controls depending on Config Flag value
    form.lyrDetails().tabDOS().setHeaderVisible(!ConfigFlag.DOM.SCHEDULING_SLOTS_CREATION.getValue().equals("Local Only"));
    form.lblDOS().setVisible(!ConfigFlag.DOM.SCHEDULING_SLOTS_CREATION.getValue().equals("Local Only"));
    form.qmbFilterDirectoryOfService().setVisible(!ConfigFlag.DOM.SCHEDULING_SLOTS_CREATION.getValue().equals("Local Only"));


    // workaround to show location is required
    //form.lyrDetails().tabGeneralDetails().lblLocStar().setTextColor(Color.Red);   //wdev-20233
    //form.lyrDetails().tabGeneralDetails().lblLocStar().setTooltip("Required");    wdev-20233

    //form.lyrDetails().tabGeneralDetails().lblCNLocStar().setTextColor(Color.Red); //wdev-20233
    //form.lyrDetails().tabGeneralDetails().lblCNLocStar().setTooltip("Required");  //wdev-20233

    //wdev-20074
    form.lyrDetails().tabGeneralDetails().lblFlexibleProfileStar().setTextColor(Color.Red);
    form.lyrDetails().tabGeneralDetails().lblFlexibleProfileStar().setTooltip("Required");

    form.lyrDetails().tabGeneralDetails().lblProfileTypeStar().setTextColor(Color.Red);
    form.lyrDetails().tabGeneralDetails().lblProfileTypeStar().setTooltip("Required");

    form.lyrDetails().tabTheatre().setVisible( GroupProfileTypeEnumeration.rdoTheatre.equals(form.lyrDetails().tabGeneralDetails().GroupProfileType().getValue()) /*form.lyrDetails().tabGeneralDetails().chkTheatre().getValue()*/);       //wdev-20074
    form.lyrDetails().tabTheatre().setHeaderVisible(GroupProfileTypeEnumeration.rdoTheatre.equals(form.lyrDetails().tabGeneralDetails().GroupProfileType().getValue()) /*form.lyrDetails().tabGeneralDetails().chkTheatre().getValue()*/);  //wdev-20074

    //wdev-20074
    form.lyrDetails().tabGeneralDetails().GroupProfileType().setValue(GroupProfileTypeEnumeration.rdoOutpatient);
    form.lyrDetails().tabGeneralDetails().GroupFlexibleProfile().setValue(GroupFlexibleProfileEnumeration.rdoNo);

    //WDEV-12918
    if(ConfigFlag.DOM.THEATRE_SESSION_TYPE.getValue().equals("TCI"))
    {
        form.lyrDetails().tabTheatre().lyrSlots().showtabTCI();
        form.lyrDetails().tabGeneralDetails().cmbSlotType().removeRow(SlotType.SLOTS);
    }
    else if(ConfigFlag.DOM.THEATRE_SESSION_TYPE.getValue().equals("Fixed"))
    {
        form.lyrDetails().tabTheatre().lyrSlots().showtabTheatreSlots();
        form.lyrDetails().tabGeneralDetails().cmbSlotType().removeRow(SlotType.THEATRETCITIME);
    }

    //WDEV-12918
    AnaestheticTypeCollection collAnaesTypes = LookupHelper.getAnaestheticType(domain.getLookupService());
    for(int i=0;i<collAnaesTypes.size();i++)
        form.lyrDetails().tabGeneralDetails().chklistAnaesthetictype().newRow(collAnaesTypes.get(i), collAnaesTypes.get(i).getText());

    // prepopulating reference data
    form.getLocalContext().setRoleList(domain.listRoles());

    // initialising search
    form.chkActiveOnly().setValue(true);
    //WDEV-12039
    form.lyrDetails().tabSlots().chkSlotsActiveOnly().setValue(true);

    loadServices();
    loadHospitals();
    loadActivities();

    //WDEV-13362
    form.ccListOwner().initialize(MosType.HCP);

    //wdev-19419
    //form.lyrDetails().tabListOwners().ccConsultant().initialize(MosType.HCP);     //wdev-20074
    //wdev-19921
    form.btnAdd().setImage(form.getImages().Core.Add);
    form.btnEdit().setImage(form.getImages().Core.Edit);
    form.btnCloneThisProfile().setImage(form.getImages().Core.Copy);
    //---------


    radioButtonGroupProfileTypeValueChanged();
    //----------
    updateControlState();
}
项目:openMAXIMS    文件:Logic.java   
private void initialiseScreenAndLists()
{
    //WDEV-16799 - show DoS controls depending on Config Flag value
    form.lyrDetails().tabDOS().setHeaderVisible(!ConfigFlag.DOM.SCHEDULING_SLOTS_CREATION.getValue().equals("Local Only"));
    form.lblDOS().setVisible(!ConfigFlag.DOM.SCHEDULING_SLOTS_CREATION.getValue().equals("Local Only"));
    form.qmbFilterDirectoryOfService().setVisible(!ConfigFlag.DOM.SCHEDULING_SLOTS_CREATION.getValue().equals("Local Only"));


    // workaround to show location is required
    form.lyrDetails().tabGeneralDetails().lblLocStar().setTextColor(Color.Red);
    form.lyrDetails().tabGeneralDetails().lblLocStar().setTooltip("Required");

    form.lyrDetails().tabTheatre().setVisible(form.lyrDetails().tabGeneralDetails().chkTheatre().getValue());
    form.lyrDetails().tabTheatre().setHeaderVisible(form.lyrDetails().tabGeneralDetails().chkTheatre().getValue());

    //WDEV-12918
    if(ConfigFlag.DOM.THEATRE_SESSION_TYPE.getValue().equals("TCI"))
    {
        form.lyrDetails().tabTheatre().lyrSlots().showtabTCI();
        form.lyrDetails().tabGeneralDetails().cmbSlotType().removeRow(SlotType.SLOTS);
    }
    else if(ConfigFlag.DOM.THEATRE_SESSION_TYPE.getValue().equals("Fixed"))
    {
        form.lyrDetails().tabTheatre().lyrSlots().showtabTheatreSlots();
        form.lyrDetails().tabGeneralDetails().cmbSlotType().removeRow(SlotType.THEATRETCITIME);
    }

    //WDEV-12918
    AnaestheticTypeCollection collAnaesTypes = LookupHelper.getAnaestheticType(domain.getLookupService());
    for(int i=0;i<collAnaesTypes.size();i++)
        form.lyrDetails().tabGeneralDetails().chklistAnaesthetictype().newRow(collAnaesTypes.get(i), collAnaesTypes.get(i).getText());

    // prepopulating reference data
    form.getLocalContext().setRoleList(domain.listRoles());

    // initialising search
    form.chkActiveOnly().setValue(true);
    //WDEV-12039
    form.lyrDetails().tabSlots().chkSlotsActiveOnly().setValue(true);

    loadServices();
    loadHospitals();
    loadActivities();

    //WDEV-13362
    form.ccListOwner().initialize(MosType.HCP);

    updateControlState();
}
项目:openmaxims-linux    文件:Logic.java   
private void initialiseScreenAndLists()
{
    //WDEV-16799 - show DoS controls depending on Config Flag value
    form.lyrDetails().tabDOS().setHeaderVisible(!ConfigFlag.DOM.SCHEDULING_SLOTS_CREATION.getValue().equals("Local Only"));
    form.lblDOS().setVisible(!ConfigFlag.DOM.SCHEDULING_SLOTS_CREATION.getValue().equals("Local Only"));
    form.qmbFilterDirectoryOfService().setVisible(!ConfigFlag.DOM.SCHEDULING_SLOTS_CREATION.getValue().equals("Local Only"));


    // workaround to show location is required
    form.lyrDetails().tabGeneralDetails().lblLocStar().setTextColor(Color.Red);
    form.lyrDetails().tabGeneralDetails().lblLocStar().setTooltip("Required");

    form.lyrDetails().tabTheatre().setVisible(form.lyrDetails().tabGeneralDetails().chkTheatre().getValue());
    form.lyrDetails().tabTheatre().setHeaderVisible(form.lyrDetails().tabGeneralDetails().chkTheatre().getValue());

    //WDEV-12918
    if(ConfigFlag.DOM.THEATRE_SESSION_TYPE.getValue().equals("TCI"))
    {
        form.lyrDetails().tabTheatre().lyrSlots().showtabTCI();
        form.lyrDetails().tabGeneralDetails().cmbSlotType().removeRow(SlotType.SLOTS);
    }
    else if(ConfigFlag.DOM.THEATRE_SESSION_TYPE.getValue().equals("Fixed"))
    {
        form.lyrDetails().tabTheatre().lyrSlots().showtabTheatreSlots();
        form.lyrDetails().tabGeneralDetails().cmbSlotType().removeRow(SlotType.THEATRETCITIME);
    }

    //WDEV-12918
    AnaestheticTypeCollection collAnaesTypes = LookupHelper.getAnaestheticType(domain.getLookupService());
    for(int i=0;i<collAnaesTypes.size();i++)
        form.lyrDetails().tabGeneralDetails().chklistAnaesthetictype().newRow(collAnaesTypes.get(i), collAnaesTypes.get(i).getText());

    // prepopulating reference data
    form.getLocalContext().setRoleList(domain.listRoles());

    // initialising search
    form.chkActiveOnly().setValue(true);
    //WDEV-12039
    form.lyrDetails().tabSlots().chkSlotsActiveOnly().setValue(true);

    loadServices();
    loadHospitals();
    loadActivities();

    //WDEV-13362
    form.ccListOwner().initialize(MosType.HCP);

    updateControlState();
}