protected void btnLoad_Click(object sender, EventArgs e)
        {
            var parameters = ucParameters.GetParameters();

            using (var dataAccess = new FactorsDataAccess(parameters))
            {
                var data = dataAccess.GetMaxFleetFactors();
                hfRecordCount.Value   = data.Count.ToString(CultureInfo.InvariantCulture);
                ucMaxFactors.GridData = data;
            }
            EnableUpdateButton();
            upGrid.Update();
        }
        private void UpdateFactors(double?nonRevPercent, double?utilizationPercent)
        {
            int rowCount = RowCount;

            if (rowCount == 0)
            {
                return;
            }


            var parameters = ucParameters.GetParameters();

            using (var dataAccess = new FactorsDataAccess(parameters))
            {
                dataAccess.UpdateMaxFleetFactors(nonRevPercent, utilizationPercent);
                var data = dataAccess.GetMaxFleetFactors();
                hfRecordCount.Value   = data.Count.ToString(CultureInfo.InvariantCulture);
                ucMaxFactors.GridData = data;
            }
            EnableUpdateButton();
            upGrid.Update();
        }