Java 类ims.core.vo.ActivityContextPricingDetailsVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void menuActivityUpdatePriceClick()
{
    TreeNode node = form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode();
    if (node == null)
        return;

    if (node.getParent() == null)
        return;

    form.getLocalContext().setSelectedLocationServiceActivity((LocationServiceActivityVo) node.getParent().getValue());
    form.getGlobalContext().Admin.setActivityContextPricingDetail((ActivityContextPricingDetailsVo) node.getValue());

    form.getGlobalContext().Admin.setLSAPricingAction(Integer.valueOf(PRICING_UPDATE));
    form.getGlobalContext().Admin.setActivityContextPricingDetailCollection(((LocationServiceActivityVo) node.getParent().getValue()).getActivityContextPricings());

    engine.open(form.getForms().Admin.ActivityContextPricingDetails);
}
项目:openMAXIMS    文件:Logic.java   
private void menuActivityUpdatePriceClick()
{
    TreeNode node = form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode();
    if (node == null)
        return;

    if (node.getParent() == null)
        return;

    form.getLocalContext().setSelectedLocationServiceActivity((LocationServiceActivityVo) node.getParent().getValue());
    form.getGlobalContext().Admin.setActivityContextPricingDetail((ActivityContextPricingDetailsVo) node.getValue());

    form.getGlobalContext().Admin.setLSAPricingAction(Integer.valueOf(PRICING_UPDATE));
    form.getGlobalContext().Admin.setActivityContextPricingDetailCollection(((LocationServiceActivityVo) node.getParent().getValue()).getActivityContextPricings());

    engine.open(form.getForms().Admin.ActivityContextPricingDetails);
}
项目:openMAXIMS    文件:Logic.java   
private void menuActivityUpdatePriceClick()
{
    TreeNode node = form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode();
    if (node == null)
        return;

    if (node.getParent() == null)
        return;

    form.getLocalContext().setSelectedLocationServiceActivity((LocationServiceActivityVo) node.getParent().getValue());
    form.getGlobalContext().Admin.setActivityContextPricingDetail((ActivityContextPricingDetailsVo) node.getValue());

    form.getGlobalContext().Admin.setLSAPricingAction(Integer.valueOf(PRICING_UPDATE));
    form.getGlobalContext().Admin.setActivityContextPricingDetailCollection(((LocationServiceActivityVo) node.getParent().getValue()).getActivityContextPricings());

    engine.open(form.getForms().Admin.ActivityContextPricingDetails);
}
项目:openmaxims-linux    文件:Logic.java   
private void menuActivityUpdatePriceClick()
{
    TreeNode node = form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode();
    if (node == null)
        return;

    if (node.getParent() == null)
        return;

    form.getLocalContext().setSelectedLocationServiceActivity((LocationServiceActivityVo) node.getParent().getValue());
    form.getGlobalContext().Admin.setActivityContextPricingDetail((ActivityContextPricingDetailsVo) node.getValue());

    form.getGlobalContext().Admin.setLSAPricingAction(Integer.valueOf(PRICING_UPDATE));
    form.getGlobalContext().Admin.setActivityContextPricingDetailCollection(((LocationServiceActivityVo) node.getParent().getValue()).getActivityContextPricings());

    engine.open(form.getForms().Admin.ActivityContextPricingDetails);
}
项目:AvoinApotti    文件:Logic.java   
private void menuActivityViewPriceClick()
{
    TreeNode node = form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode();
    if (node == null)
        return;

    if (node.getValue() instanceof ActivityContextPricingDetailsVo)
    {
        form.getGlobalContext().Admin.setActivityContextPricingDetail((ActivityContextPricingDetailsVo) node.getValue());
        form.getGlobalContext().Admin.setLSAPricingAction(Integer.valueOf(PRICING_VIEW));

        engine.open(form.getForms().Admin.ActivityContextPricingDetails);
    }
}
项目:AvoinApotti    文件:Logic.java   
protected String createPricingTooltip(ActivityContextPricingDetailsVo voPricing)
{
    StringBuffer strTooltip = new StringBuffer();
    strTooltip.append("<font color=\"#FF0000\"><b>Pricing</b></font>&nbsp;<br><br>");

    if ((voPricing.getIsActiveIsNotNull()) && (!voPricing.getIsActive().booleanValue()))
        strTooltip.append("*** Pre-active Context ***<br><br>");

    strTooltip.append("Context: " + (voPricing.getContextIsNotNull() ? voPricing.getContext().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Category: " + (voPricing.getPriceCategoryIsNotNull() ? voPricing.getPriceCategory().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Currency: " + (voPricing.getCurrencyIsNotNull() ? voPricing.getCurrency().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Price: " + (voPricing.getPriceIsNotNull() ? voPricing.getPrice().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Normal length of stay: " + (voPricing.getNormLengthStayIsNotNull() ? voPricing.getNormLengthStay().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Effective from: " + (voPricing.getEffectiveFromIsNotNull() ? voPricing.getEffectiveFrom().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Effective from set: " + (voPricing.getEffectiveFromSetIsNotNull() ? voPricing.getEffectiveFromSet().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Effective to: " + (voPricing.getEffectiveToIsNotNull() ? voPricing.getEffectiveTo().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Effective to set: " + (voPricing.getEffectiveToSetIsNotNull() ? voPricing.getEffectiveToSet().toString() : ""));
    strTooltip.append("<br><br>");
    if (voPricing.getIsActiveIsNotNull() && voPricing.getIsActive().booleanValue())
        strTooltip.append("Status: Active");
    else if (voPricing.getIsPreActiveIsNotNull() && voPricing.getIsPreActive().booleanValue())
        strTooltip.append("Status: Pre - Active");

    return strTooltip.toString();
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onTrePricingTreeViewSelectionChanged(TreeNode node) throws PresentationLogicException
{
    if (node == null)
        return;

    form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setVisible(false);
    form.getContextMenus().getLocationServiceActivityGridNEW_PRICEItem().setVisible((node.getValue() instanceof LocationServiceActivityVo) && form.getMode().equals(FormMode.EDIT));

    if (node.getValue() instanceof ActivityContextPricingDetailsVo)
    {
        ActivityContextPricingDetailsVo voACP = (ActivityContextPricingDetailsVo) node.getValue();
        if (voACP.getEffectiveTo() == null || (voACP.getEffectiveToIsNotNull() && voACP.getIsPreActiveIsNotNull() && voACP.getIsPreActive().booleanValue()))
            form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setVisible((node.getValue() instanceof ActivityContextPricingDetailsVo) && form.getMode().equals(FormMode.EDIT));

        if (!voACP.getID_ActivityContextPricingDetailsIsNotNull())
        {
            form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setText("No Update until saved");
            form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setEnabled(false);
        }
        else
        {
            form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setText("Update Pricing");
            form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setEnabled(true);
        }
    }
    form.getContextMenus().getLocationServiceActivityGridVIEW_PRICINGItem().setVisible(node.getValue() instanceof ActivityContextPricingDetailsVo);

    if (node.getValue() instanceof LocationServiceActivityVo)
        form.getLocalContext().setSelectedLocationServiceActivity((LocationServiceActivityVo) node.getValue());

    if (node.getValue() instanceof ActivityContextPricingDetailsVo)
        form.getLocalContext().setSelectedLocationServiceActivity((LocationServiceActivityVo) node.getParent().getValue());
}
项目:openMAXIMS    文件:Logic.java   
private void menuActivityViewPriceClick()
{
    TreeNode node = form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode();
    if (node == null)
        return;

    if (node.getValue() instanceof ActivityContextPricingDetailsVo)
    {
        form.getGlobalContext().Admin.setActivityContextPricingDetail((ActivityContextPricingDetailsVo) node.getValue());
        form.getGlobalContext().Admin.setLSAPricingAction(Integer.valueOf(PRICING_VIEW));

        engine.open(form.getForms().Admin.ActivityContextPricingDetails);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected String createPricingTooltip(ActivityContextPricingDetailsVo voPricing)
{
    StringBuffer strTooltip = new StringBuffer();
    strTooltip.append("<font color=\"#FF0000\"><b>Pricing</b></font>&nbsp;<br><br>");

    if ((voPricing.getIsActiveIsNotNull()) && (!voPricing.getIsActive().booleanValue()))
        strTooltip.append("*** Pre-active Context ***<br><br>");

    strTooltip.append("Context: " + (voPricing.getContextIsNotNull() ? voPricing.getContext().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Category: " + (voPricing.getPriceCategoryIsNotNull() ? voPricing.getPriceCategory().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Currency: " + (voPricing.getCurrencyIsNotNull() ? voPricing.getCurrency().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Price: " + (voPricing.getPriceIsNotNull() ? voPricing.getPrice().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Normal length of stay: " + (voPricing.getNormLengthStayIsNotNull() ? voPricing.getNormLengthStay().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Effective from: " + (voPricing.getEffectiveFromIsNotNull() ? voPricing.getEffectiveFrom().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Effective from set: " + (voPricing.getEffectiveFromSetIsNotNull() ? voPricing.getEffectiveFromSet().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Effective to: " + (voPricing.getEffectiveToIsNotNull() ? voPricing.getEffectiveTo().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Effective to set: " + (voPricing.getEffectiveToSetIsNotNull() ? voPricing.getEffectiveToSet().toString() : ""));
    strTooltip.append("<br><br>");
    if (voPricing.getIsActiveIsNotNull() && voPricing.getIsActive().booleanValue())
        strTooltip.append("Status: Active");
    else if (voPricing.getIsPreActiveIsNotNull() && voPricing.getIsPreActive().booleanValue())
        strTooltip.append("Status: Pre - Active");

    return strTooltip.toString();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onTrePricingTreeViewSelectionChanged(TreeNode node) throws PresentationLogicException
{
    if (node == null)
        return;

    form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setVisible(false);
    form.getContextMenus().getLocationServiceActivityGridNEW_PRICEItem().setVisible((node.getValue() instanceof LocationServiceActivityVo) && form.getMode().equals(FormMode.EDIT));

    if (node.getValue() instanceof ActivityContextPricingDetailsVo)
    {
        ActivityContextPricingDetailsVo voACP = (ActivityContextPricingDetailsVo) node.getValue();
        if (voACP.getEffectiveTo() == null || (voACP.getEffectiveToIsNotNull() && voACP.getIsPreActiveIsNotNull() && voACP.getIsPreActive().booleanValue()))
            form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setVisible((node.getValue() instanceof ActivityContextPricingDetailsVo) && form.getMode().equals(FormMode.EDIT));

        if (!voACP.getID_ActivityContextPricingDetailsIsNotNull())
        {
            form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setText("No Update until saved");
            form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setEnabled(false);
        }
        else
        {
            form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setText("Update Pricing");
            form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setEnabled(true);
        }
    }
    form.getContextMenus().getLocationServiceActivityGridVIEW_PRICINGItem().setVisible(node.getValue() instanceof ActivityContextPricingDetailsVo);

    if (node.getValue() instanceof LocationServiceActivityVo)
        form.getLocalContext().setSelectedLocationServiceActivity((LocationServiceActivityVo) node.getValue());

    if (node.getValue() instanceof ActivityContextPricingDetailsVo)
        form.getLocalContext().setSelectedLocationServiceActivity((LocationServiceActivityVo) node.getParent().getValue());
}
项目:openMAXIMS    文件:Logic.java   
private void menuActivityViewPriceClick()
{
    TreeNode node = form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode();
    if (node == null)
        return;

    if (node.getValue() instanceof ActivityContextPricingDetailsVo)
    {
        form.getGlobalContext().Admin.setActivityContextPricingDetail((ActivityContextPricingDetailsVo) node.getValue());
        form.getGlobalContext().Admin.setLSAPricingAction(Integer.valueOf(PRICING_VIEW));

        engine.open(form.getForms().Admin.ActivityContextPricingDetails);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected String createPricingTooltip(ActivityContextPricingDetailsVo voPricing)
{
    StringBuffer strTooltip = new StringBuffer();
    strTooltip.append("<font color=\"#FF0000\"><b>Pricing</b></font>&nbsp;<br><br>");

    if ((voPricing.getIsActiveIsNotNull()) && (!voPricing.getIsActive().booleanValue()))
        strTooltip.append("*** Pre-active Context ***<br><br>");

    strTooltip.append("Context: " + (voPricing.getContextIsNotNull() ? voPricing.getContext().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Category: " + (voPricing.getPriceCategoryIsNotNull() ? voPricing.getPriceCategory().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Currency: " + (voPricing.getCurrencyIsNotNull() ? voPricing.getCurrency().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Price: " + (voPricing.getPriceIsNotNull() ? voPricing.getPrice().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Normal length of stay: " + (voPricing.getNormLengthStayIsNotNull() ? voPricing.getNormLengthStay().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Effective from: " + (voPricing.getEffectiveFromIsNotNull() ? voPricing.getEffectiveFrom().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Effective from set: " + (voPricing.getEffectiveFromSetIsNotNull() ? voPricing.getEffectiveFromSet().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Effective to: " + (voPricing.getEffectiveToIsNotNull() ? voPricing.getEffectiveTo().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Effective to set: " + (voPricing.getEffectiveToSetIsNotNull() ? voPricing.getEffectiveToSet().toString() : ""));
    strTooltip.append("<br><br>");
    if (voPricing.getIsActiveIsNotNull() && voPricing.getIsActive().booleanValue())
        strTooltip.append("Status: Active");
    else if (voPricing.getIsPreActiveIsNotNull() && voPricing.getIsPreActive().booleanValue())
        strTooltip.append("Status: Pre - Active");

    return strTooltip.toString();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onTrePricingTreeViewSelectionChanged(TreeNode node) throws PresentationLogicException
{
    if (node == null)
        return;

    form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setVisible(false);
    form.getContextMenus().getLocationServiceActivityGridNEW_PRICEItem().setVisible((node.getValue() instanceof LocationServiceActivityVo) && form.getMode().equals(FormMode.EDIT));

    if (node.getValue() instanceof ActivityContextPricingDetailsVo)
    {
        ActivityContextPricingDetailsVo voACP = (ActivityContextPricingDetailsVo) node.getValue();
        if (voACP.getEffectiveTo() == null || (voACP.getEffectiveToIsNotNull() && voACP.getIsPreActiveIsNotNull() && voACP.getIsPreActive().booleanValue()))
            form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setVisible((node.getValue() instanceof ActivityContextPricingDetailsVo) && form.getMode().equals(FormMode.EDIT));

        if (!voACP.getID_ActivityContextPricingDetailsIsNotNull())
        {
            form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setText("No Update until saved");
            form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setEnabled(false);
        }
        else
        {
            form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setText("Update Pricing");
            form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setEnabled(true);
        }
    }
    form.getContextMenus().getLocationServiceActivityGridVIEW_PRICINGItem().setVisible(node.getValue() instanceof ActivityContextPricingDetailsVo);

    if (node.getValue() instanceof LocationServiceActivityVo)
        form.getLocalContext().setSelectedLocationServiceActivity((LocationServiceActivityVo) node.getValue());

    if (node.getValue() instanceof ActivityContextPricingDetailsVo)
        form.getLocalContext().setSelectedLocationServiceActivity((LocationServiceActivityVo) node.getParent().getValue());
}
项目:openmaxims-linux    文件:Logic.java   
private void menuActivityViewPriceClick()
{
    TreeNode node = form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode();
    if (node == null)
        return;

    if (node.getValue() instanceof ActivityContextPricingDetailsVo)
    {
        form.getGlobalContext().Admin.setActivityContextPricingDetail((ActivityContextPricingDetailsVo) node.getValue());
        form.getGlobalContext().Admin.setLSAPricingAction(Integer.valueOf(PRICING_VIEW));

        engine.open(form.getForms().Admin.ActivityContextPricingDetails);
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected String createPricingTooltip(ActivityContextPricingDetailsVo voPricing)
{
    StringBuffer strTooltip = new StringBuffer();
    strTooltip.append("<font color=\"#FF0000\"><b>Pricing</b></font>&nbsp;<br><br>");

    if ((voPricing.getIsActiveIsNotNull()) && (!voPricing.getIsActive().booleanValue()))
        strTooltip.append("*** Pre-active Context ***<br><br>");

    strTooltip.append("Context: " + (voPricing.getContextIsNotNull() ? voPricing.getContext().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Category: " + (voPricing.getPriceCategoryIsNotNull() ? voPricing.getPriceCategory().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Currency: " + (voPricing.getCurrencyIsNotNull() ? voPricing.getCurrency().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Price: " + (voPricing.getPriceIsNotNull() ? voPricing.getPrice().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Normal length of stay: " + (voPricing.getNormLengthStayIsNotNull() ? voPricing.getNormLengthStay().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Effective from: " + (voPricing.getEffectiveFromIsNotNull() ? voPricing.getEffectiveFrom().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Effective from set: " + (voPricing.getEffectiveFromSetIsNotNull() ? voPricing.getEffectiveFromSet().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Effective to: " + (voPricing.getEffectiveToIsNotNull() ? voPricing.getEffectiveTo().toString() : ""));
    strTooltip.append("<br><br>");
    strTooltip.append("Effective to set: " + (voPricing.getEffectiveToSetIsNotNull() ? voPricing.getEffectiveToSet().toString() : ""));
    strTooltip.append("<br><br>");
    if (voPricing.getIsActiveIsNotNull() && voPricing.getIsActive().booleanValue())
        strTooltip.append("Status: Active");
    else if (voPricing.getIsPreActiveIsNotNull() && voPricing.getIsPreActive().booleanValue())
        strTooltip.append("Status: Pre - Active");

    return strTooltip.toString();
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onTrePricingTreeViewSelectionChanged(TreeNode node) throws PresentationLogicException
{
    if (node == null)
        return;

    form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setVisible(false);
    form.getContextMenus().getLocationServiceActivityGridNEW_PRICEItem().setVisible((node.getValue() instanceof LocationServiceActivityVo) && form.getMode().equals(FormMode.EDIT));

    if (node.getValue() instanceof ActivityContextPricingDetailsVo)
    {
        ActivityContextPricingDetailsVo voACP = (ActivityContextPricingDetailsVo) node.getValue();
        if (voACP.getEffectiveTo() == null || (voACP.getEffectiveToIsNotNull() && voACP.getIsPreActiveIsNotNull() && voACP.getIsPreActive().booleanValue()))
            form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setVisible((node.getValue() instanceof ActivityContextPricingDetailsVo) && form.getMode().equals(FormMode.EDIT));

        if (!voACP.getID_ActivityContextPricingDetailsIsNotNull())
        {
            form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setText("No Update until saved");
            form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setEnabled(false);
        }
        else
        {
            form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setText("Update Pricing");
            form.getContextMenus().getLocationServiceActivityGridUPDATE_PRICINGItem().setEnabled(true);
        }
    }
    form.getContextMenus().getLocationServiceActivityGridVIEW_PRICINGItem().setVisible(node.getValue() instanceof ActivityContextPricingDetailsVo);

    if (node.getValue() instanceof LocationServiceActivityVo)
        form.getLocalContext().setSelectedLocationServiceActivity((LocationServiceActivityVo) node.getValue());

    if (node.getValue() instanceof ActivityContextPricingDetailsVo)
        form.getLocalContext().setSelectedLocationServiceActivity((LocationServiceActivityVo) node.getParent().getValue());
}
项目:AvoinApotti    文件:Logic.java   
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if (formName.equals(form.getForms().Admin.ActivityContextPricingDetails) && result.equals(DialogResult.OK))
    {
        LocationServiceActivityVo lsaVo = form.getLocalContext().getSelectedLocationServiceActivity();
        if (lsaVo == null)
            return;

        if (!NTPFExchequerCodingChecks.validatePricingIsUnique(form.getLocalContext().getSelectedLocationServiceActivity().getActivityContextPricings(), form.getGlobalContext().Admin.getActivityContextPricingDetail()))
            return;

        if (form.getGlobalContext().Admin.getLSAPricingAction().equals(Integer.valueOf(PRICING_NEW)))
        {
            lsaVo.getActivityContextPricings().add(form.getGlobalContext().Admin.getActivityContextPricingDetail());
            populatePricing(form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode(), lsaVo.getActivityContextPricings());

        }
        else if (form.getGlobalContext().Admin.getLSAPricingAction().equals(Integer.valueOf(PRICING_UPDATE)))
        {
            // Replace the object in the collection
            for (int i = 0; i < lsaVo.getActivityContextPricings().size(); i++)
            {
                if (lsaVo.getActivityContextPricings().get(i).equals(form.getGlobalContext().Admin.getActivityContextPricingDetail()))
                {
                    lsaVo.getActivityContextPricings().set(i, form.getGlobalContext().Admin.getActivityContextPricingDetail());
                    break;
                }
            }
            populatePricing(form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode().getParent(), lsaVo.getActivityContextPricings());
        }

        form.getLocalContext().setSelectedLocationServiceActivity(lsaVo);

        if (form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode() != null)
        {
            if (form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode().getValue() instanceof ActivityContextPricingDetailsVo)
                form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode().getParent().setValue(lsaVo);
            else if (form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode().getValue() instanceof LocationServiceActivityVo)
                form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode().setValue(lsaVo);
        }

        if (form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode() == null)//wdev-7106
            form.getContextMenus().hideAllLocationServiceActivityGridMenuItems();

        form.lyr1().Edit().lyrLocationDetail().showtabPagePricing();
    }
    if (formName.equals(form.getForms().Admin.ProcedurePriceIncrease) && result.equals(DialogResult.OK))
    {
        populateLocationServices(form.treHeader().getSelectedNode(), (LocShortVo) form.treHeader().getSelectedNode().getValue());
        managePricingMenuOptions(((LocShortVo) form.treHeader().getSelectedNode().getValue()).getTreatingHosp());
    }

    if (formName.equals(form.getForms().Admin.NTPFBatchPriceSelectionDialog) && result.equals(DialogResult.OK))
    {
        engine.open(form.getForms().Admin.ProcedurePriceIncrease);
    }

    if (formName.equals(form.getForms().Core.NewPriceBatchDialog) && result.equals(DialogResult.OK))
    {
        form.getGlobalContext().NTPF.setConfirmPriceIncreases(false);
        engine.open(form.getForms().Admin.ProcedurePriceIncrease, new Object[]{FormMode.EDIT});
    }
}
项目:AvoinApotti    文件:Logic.java   
private StringBuffer createPricingString(ActivityContextPricingDetailsVo voActivityContextPricing)
{
    StringBuffer sb = new StringBuffer();

    if ((voActivityContextPricing.getIsActiveIsNotNull()) && (voActivityContextPricing.getIsActive().booleanValue()))
        sb.append("Context:");
    else
        sb.append("Pre-active Context:");

    sb.append(voActivityContextPricing.getContext().toString());
    sb.append(", Price:");
    sb.append(voActivityContextPricing.getPriceCategoryIsNotNull() ? DecimalFormat.format(voActivityContextPricing.getPrice(), 0, 2) : "");
    sb.append(", Length of Stay:");
    sb.append(voActivityContextPricing.getNormLengthStayIsNotNull() ? voActivityContextPricing.getNormLengthStay().toString() : "");

    if (voActivityContextPricing.getEffectiveFromIsNotNull())
    {
        sb.append(", From:");
        sb.append(voActivityContextPricing.getEffectiveFrom().toString());
    }
    if (voActivityContextPricing.getEffectiveFromSetIsNotNull())
    {
        sb.append(", Set:");
        sb.append(voActivityContextPricing.getEffectiveFromSet().toString());
    }
    if (voActivityContextPricing.getEffectiveToIsNotNull())
    {
        sb.append(", To:");
        sb.append(voActivityContextPricing.getEffectiveTo().toString());
    }
    if (voActivityContextPricing.getEffectiveToSetIsNotNull())
    {
        sb.append(", Set:");
        sb.append(voActivityContextPricing.getEffectiveToSet().toString());
    }
    if (voActivityContextPricing.getCreatingBatchIsNotNull() && voActivityContextPricing.getIsPreActiveIsNotNull() && voActivityContextPricing.getIsPreActive().booleanValue())
    {
        sb.append(", Batch:");
        sb.append(voActivityContextPricing.getCreatingBatch().getBatchName());
    }

    return sb;
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if (formName.equals(form.getForms().Admin.ActivityContextPricingDetails) && result.equals(DialogResult.OK))
    {
        LocationServiceActivityVo lsaVo = form.getLocalContext().getSelectedLocationServiceActivity();
        if (lsaVo == null)
            return;

        if (!NTPFExchequerCodingChecks.validatePricingIsUnique(form.getLocalContext().getSelectedLocationServiceActivity().getActivityContextPricings(), form.getGlobalContext().Admin.getActivityContextPricingDetail()))
            return;

        if (form.getGlobalContext().Admin.getLSAPricingAction().equals(Integer.valueOf(PRICING_NEW)))
        {
            lsaVo.getActivityContextPricings().add(form.getGlobalContext().Admin.getActivityContextPricingDetail());
            populatePricing(form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode(), lsaVo.getActivityContextPricings());

        }
        else if (form.getGlobalContext().Admin.getLSAPricingAction().equals(Integer.valueOf(PRICING_UPDATE)))
        {
            // Replace the object in the collection
            for (int i = 0; i < lsaVo.getActivityContextPricings().size(); i++)
            {
                if (lsaVo.getActivityContextPricings().get(i).equals(form.getGlobalContext().Admin.getActivityContextPricingDetail()))
                {
                    lsaVo.getActivityContextPricings().set(i, form.getGlobalContext().Admin.getActivityContextPricingDetail());
                    break;
                }
            }
            populatePricing(form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode().getParent(), lsaVo.getActivityContextPricings());
        }

        form.getLocalContext().setSelectedLocationServiceActivity(lsaVo);

        if (form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode() != null)
        {
            if (form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode().getValue() instanceof ActivityContextPricingDetailsVo)
                form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode().getParent().setValue(lsaVo);
            else if (form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode().getValue() instanceof LocationServiceActivityVo)
                form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode().setValue(lsaVo);
        }

        if (form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode() == null)//wdev-7106
            form.getContextMenus().hideAllLocationServiceActivityGridMenuItems();

        form.lyr1().Edit().lyrLocationDetail().showtabPagePricing();
    }
    if (formName.equals(form.getForms().Admin.ProcedurePriceIncrease) && result.equals(DialogResult.OK))
    {
        populateLocationServices(form.treHeader().getSelectedNode(), (LocShortVo) form.treHeader().getSelectedNode().getValue());
        managePricingMenuOptions(((LocShortVo) form.treHeader().getSelectedNode().getValue()).getTreatingHosp());
    }

    if (formName.equals(form.getForms().Admin.NTPFBatchPriceSelectionDialog) && result.equals(DialogResult.OK))
    {
        engine.open(form.getForms().Admin.ProcedurePriceIncrease);
    }

    if (formName.equals(form.getForms().Core.NewPriceBatchDialog) && result.equals(DialogResult.OK))
    {
        form.getGlobalContext().NTPF.setConfirmPriceIncreases(false);
        engine.open(form.getForms().Admin.ProcedurePriceIncrease, new Object[]{FormMode.EDIT});
    }
}
项目:openMAXIMS    文件:Logic.java   
private StringBuffer createPricingString(ActivityContextPricingDetailsVo voActivityContextPricing)
{
    StringBuffer sb = new StringBuffer();

    if ((voActivityContextPricing.getIsActiveIsNotNull()) && (voActivityContextPricing.getIsActive().booleanValue()))
        sb.append("Context:");
    else
        sb.append("Pre-active Context:");

    sb.append(voActivityContextPricing.getContext().toString());
    sb.append(", Price:");
    sb.append(voActivityContextPricing.getPriceCategoryIsNotNull() ? DecimalFormat.format(voActivityContextPricing.getPrice(), 0, 2) : "");
    sb.append(", Length of Stay:");
    sb.append(voActivityContextPricing.getNormLengthStayIsNotNull() ? voActivityContextPricing.getNormLengthStay().toString() : "");

    if (voActivityContextPricing.getEffectiveFromIsNotNull())
    {
        sb.append(", From:");
        sb.append(voActivityContextPricing.getEffectiveFrom().toString());
    }
    if (voActivityContextPricing.getEffectiveFromSetIsNotNull())
    {
        sb.append(", Set:");
        sb.append(voActivityContextPricing.getEffectiveFromSet().toString());
    }
    if (voActivityContextPricing.getEffectiveToIsNotNull())
    {
        sb.append(", To:");
        sb.append(voActivityContextPricing.getEffectiveTo().toString());
    }
    if (voActivityContextPricing.getEffectiveToSetIsNotNull())
    {
        sb.append(", Set:");
        sb.append(voActivityContextPricing.getEffectiveToSet().toString());
    }
    if (voActivityContextPricing.getCreatingBatchIsNotNull() && voActivityContextPricing.getIsPreActiveIsNotNull() && voActivityContextPricing.getIsPreActive().booleanValue())
    {
        sb.append(", Batch:");
        sb.append(voActivityContextPricing.getCreatingBatch().getBatchName());
    }

    return sb;
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if (formName.equals(form.getForms().Admin.ActivityContextPricingDetails) && result.equals(DialogResult.OK))
    {
        LocationServiceActivityVo lsaVo = form.getLocalContext().getSelectedLocationServiceActivity();
        if (lsaVo == null)
            return;

        if (!NTPFExchequerCodingChecks.validatePricingIsUnique(form.getLocalContext().getSelectedLocationServiceActivity().getActivityContextPricings(), form.getGlobalContext().Admin.getActivityContextPricingDetail()))
            return;

        if (form.getGlobalContext().Admin.getLSAPricingAction().equals(Integer.valueOf(PRICING_NEW)))
        {
            lsaVo.getActivityContextPricings().add(form.getGlobalContext().Admin.getActivityContextPricingDetail());
            populatePricing(form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode(), lsaVo.getActivityContextPricings());

        }
        else if (form.getGlobalContext().Admin.getLSAPricingAction().equals(Integer.valueOf(PRICING_UPDATE)))
        {
            // Replace the object in the collection
            for (int i = 0; i < lsaVo.getActivityContextPricings().size(); i++)
            {
                if (lsaVo.getActivityContextPricings().get(i).equals(form.getGlobalContext().Admin.getActivityContextPricingDetail()))
                {
                    lsaVo.getActivityContextPricings().set(i, form.getGlobalContext().Admin.getActivityContextPricingDetail());
                    break;
                }
            }
            populatePricing(form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode().getParent(), lsaVo.getActivityContextPricings());
        }

        form.getLocalContext().setSelectedLocationServiceActivity(lsaVo);

        if (form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode() != null)
        {
            if (form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode().getValue() instanceof ActivityContextPricingDetailsVo)
                form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode().getParent().setValue(lsaVo);
            else if (form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode().getValue() instanceof LocationServiceActivityVo)
                form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode().setValue(lsaVo);
        }

        if (form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode() == null)//wdev-7106
            form.getContextMenus().hideAllLocationServiceActivityGridMenuItems();

        form.lyr1().Edit().lyrLocationDetail().showtabPagePricing();
    }
    if (formName.equals(form.getForms().Admin.ProcedurePriceIncrease) && result.equals(DialogResult.OK))
    {
        populateLocationServices(form.treHeader().getSelectedNode(), (LocShortVo) form.treHeader().getSelectedNode().getValue());
        managePricingMenuOptions(((LocShortVo) form.treHeader().getSelectedNode().getValue()).getTreatingHosp());
    }

    if (formName.equals(form.getForms().Admin.NTPFBatchPriceSelectionDialog) && result.equals(DialogResult.OK))
    {
        engine.open(form.getForms().Admin.ProcedurePriceIncrease);
    }

    if (formName.equals(form.getForms().Core.NewPriceBatchDialog) && result.equals(DialogResult.OK))
    {
        form.getGlobalContext().NTPF.setConfirmPriceIncreases(false);
        engine.open(form.getForms().Admin.ProcedurePriceIncrease, new Object[]{FormMode.EDIT});
    }
}
项目:openMAXIMS    文件:Logic.java   
private StringBuffer createPricingString(ActivityContextPricingDetailsVo voActivityContextPricing)
{
    StringBuffer sb = new StringBuffer();

    if ((voActivityContextPricing.getIsActiveIsNotNull()) && (voActivityContextPricing.getIsActive().booleanValue()))
        sb.append("Context:");
    else
        sb.append("Pre-active Context:");

    sb.append(voActivityContextPricing.getContext().toString());
    sb.append(", Price:");
    sb.append(voActivityContextPricing.getPriceCategoryIsNotNull() ? DecimalFormat.format(voActivityContextPricing.getPrice(), 0, 2) : "");
    sb.append(", Length of Stay:");
    sb.append(voActivityContextPricing.getNormLengthStayIsNotNull() ? voActivityContextPricing.getNormLengthStay().toString() : "");

    if (voActivityContextPricing.getEffectiveFromIsNotNull())
    {
        sb.append(", From:");
        sb.append(voActivityContextPricing.getEffectiveFrom().toString());
    }
    if (voActivityContextPricing.getEffectiveFromSetIsNotNull())
    {
        sb.append(", Set:");
        sb.append(voActivityContextPricing.getEffectiveFromSet().toString());
    }
    if (voActivityContextPricing.getEffectiveToIsNotNull())
    {
        sb.append(", To:");
        sb.append(voActivityContextPricing.getEffectiveTo().toString());
    }
    if (voActivityContextPricing.getEffectiveToSetIsNotNull())
    {
        sb.append(", Set:");
        sb.append(voActivityContextPricing.getEffectiveToSet().toString());
    }
    if (voActivityContextPricing.getCreatingBatchIsNotNull() && voActivityContextPricing.getIsPreActiveIsNotNull() && voActivityContextPricing.getIsPreActive().booleanValue())
    {
        sb.append(", Batch:");
        sb.append(voActivityContextPricing.getCreatingBatch().getBatchName());
    }

    return sb;
}
项目:openmaxims-linux    文件:Logic.java   
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if (formName.equals(form.getForms().Admin.ActivityContextPricingDetails) && result.equals(DialogResult.OK))
    {
        LocationServiceActivityVo lsaVo = form.getLocalContext().getSelectedLocationServiceActivity();
        if (lsaVo == null)
            return;

        if (!NTPFExchequerCodingChecks.validatePricingIsUnique(form.getLocalContext().getSelectedLocationServiceActivity().getActivityContextPricings(), form.getGlobalContext().Admin.getActivityContextPricingDetail()))
            return;

        if (form.getGlobalContext().Admin.getLSAPricingAction().equals(Integer.valueOf(PRICING_NEW)))
        {
            lsaVo.getActivityContextPricings().add(form.getGlobalContext().Admin.getActivityContextPricingDetail());
            populatePricing(form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode(), lsaVo.getActivityContextPricings());

        }
        else if (form.getGlobalContext().Admin.getLSAPricingAction().equals(Integer.valueOf(PRICING_UPDATE)))
        {
            // Replace the object in the collection
            for (int i = 0; i < lsaVo.getActivityContextPricings().size(); i++)
            {
                if (lsaVo.getActivityContextPricings().get(i).equals(form.getGlobalContext().Admin.getActivityContextPricingDetail()))
                {
                    lsaVo.getActivityContextPricings().set(i, form.getGlobalContext().Admin.getActivityContextPricingDetail());
                    break;
                }
            }
            populatePricing(form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode().getParent(), lsaVo.getActivityContextPricings());
        }

        form.getLocalContext().setSelectedLocationServiceActivity(lsaVo);

        if (form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode() != null)
        {
            if (form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode().getValue() instanceof ActivityContextPricingDetailsVo)
                form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode().getParent().setValue(lsaVo);
            else if (form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode().getValue() instanceof LocationServiceActivityVo)
                form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode().setValue(lsaVo);
        }

        if (form.lyr1().Edit().lyrLocationDetail().tabPagePricing().trePricing().getSelectedNode() == null)//wdev-7106
            form.getContextMenus().hideAllLocationServiceActivityGridMenuItems();

        form.lyr1().Edit().lyrLocationDetail().showtabPagePricing();
    }
    if (formName.equals(form.getForms().Admin.ProcedurePriceIncrease) && result.equals(DialogResult.OK))
    {
        populateLocationServices(form.treHeader().getSelectedNode(), (LocShortVo) form.treHeader().getSelectedNode().getValue());
        managePricingMenuOptions(((LocShortVo) form.treHeader().getSelectedNode().getValue()).getTreatingHosp());
    }

    if (formName.equals(form.getForms().Admin.NTPFBatchPriceSelectionDialog) && result.equals(DialogResult.OK))
    {
        engine.open(form.getForms().Admin.ProcedurePriceIncrease);
    }

    if (formName.equals(form.getForms().Core.NewPriceBatchDialog) && result.equals(DialogResult.OK))
    {
        form.getGlobalContext().NTPF.setConfirmPriceIncreases(false);
        engine.open(form.getForms().Admin.ProcedurePriceIncrease, new Object[]{FormMode.EDIT});
    }
}
项目:openmaxims-linux    文件:Logic.java   
private StringBuffer createPricingString(ActivityContextPricingDetailsVo voActivityContextPricing)
{
    StringBuffer sb = new StringBuffer();

    if ((voActivityContextPricing.getIsActiveIsNotNull()) && (voActivityContextPricing.getIsActive().booleanValue()))
        sb.append("Context:");
    else
        sb.append("Pre-active Context:");

    sb.append(voActivityContextPricing.getContext().toString());
    sb.append(", Price:");
    sb.append(voActivityContextPricing.getPriceCategoryIsNotNull() ? DecimalFormat.format(voActivityContextPricing.getPrice(), 0, 2) : "");
    sb.append(", Length of Stay:");
    sb.append(voActivityContextPricing.getNormLengthStayIsNotNull() ? voActivityContextPricing.getNormLengthStay().toString() : "");

    if (voActivityContextPricing.getEffectiveFromIsNotNull())
    {
        sb.append(", From:");
        sb.append(voActivityContextPricing.getEffectiveFrom().toString());
    }
    if (voActivityContextPricing.getEffectiveFromSetIsNotNull())
    {
        sb.append(", Set:");
        sb.append(voActivityContextPricing.getEffectiveFromSet().toString());
    }
    if (voActivityContextPricing.getEffectiveToIsNotNull())
    {
        sb.append(", To:");
        sb.append(voActivityContextPricing.getEffectiveTo().toString());
    }
    if (voActivityContextPricing.getEffectiveToSetIsNotNull())
    {
        sb.append(", Set:");
        sb.append(voActivityContextPricing.getEffectiveToSet().toString());
    }
    if (voActivityContextPricing.getCreatingBatchIsNotNull() && voActivityContextPricing.getIsPreActiveIsNotNull() && voActivityContextPricing.getIsPreActive().booleanValue())
    {
        sb.append(", Batch:");
        sb.append(voActivityContextPricing.getCreatingBatch().getBatchName());
    }

    return sb;
}