private void ShowCheckPrice(String entityId, bool submitSalesOrder)
    {
        EntityPage page = Page as EntityPage;

        if (page != null)
        {
            try
            {
                IList <ComponentView> lines = _currentSOEntity.GetUpdatedErpPricingLines();
                string caption = GetLocalResourceObject("CheckPrice_Dialog.Caption").ToString();
                DialogService.SetSpecs(200, 200, 400, 975, "ICUpdatePricing", caption, true);
                DialogService.EntityType = page.EntityContext.EntityType;
                DialogService.DialogParameters.Remove("SubmitSalesOrder");
                DialogService.DialogParameters.Remove("PriceList");
                DialogService.DialogParameters.Add("SubmitSalesOrder", submitSalesOrder);
                DialogService.DialogParameters.Add("PriceList", lines);
                DialogService.EntityID = entityId;
                DialogService.ShowDialog();
            }
            catch (Exception)
            {
                throw new ValidationException(GetLocalResourceObject("Error_PricingService").ToString());
            }
        }
    }