protected void SetABCCurveParameters()
    {
        productManager = new ProductManager(this);
        if (cboDeposit.SelectedValue != "0")
            listAbcCurve = productManager.GetProductsRankByDeposit(Company.CompanyId, Convert.ToInt32(cboDeposit.SelectedValue), "", ucDateTimeInterval.DateInterval);
        else
            listAbcCurve = productManager.GetProductsRankByDeposit(Company.CompanyId, null, "", ucDateTimeInterval.DateInterval);

        productsCount = listAbcCurve.Count;
        Page.ViewState["A"] = (Convert.ToDecimal("0" + ucCurrFieldValA.Text) * productsCount) / 100;
        Page.ViewState["B"] = ((Convert.ToDecimal("0" + ucCurrFieldValB.Text) * productsCount) / 100) + Convert.ToDecimal(Page.ViewState["A"]);
        Page.ViewState["C"] = ((Convert.ToDecimal("0" + ucCurrFieldValC.Text) * productsCount) / 100) + Convert.ToDecimal(Page.ViewState["B"]);
        Page.ViewState["D"] = ((Convert.ToDecimal("0" + ucCurrFieldValD.Text) * productsCount) / 100) + Convert.ToDecimal(Page.ViewState["C"]);
        Page.ViewState["E"] = ((Convert.ToDecimal("0" + ucCurrFieldValE.Text) * productsCount) / 100) + Convert.ToDecimal(Page.ViewState["D"]);
        grdAbcCurve.DataSource = listAbcCurve;
        grdAbcCurve.DataBind();
    }