Пример #1
0
        protected void SupportUnitBreakDownGridView_RowUpdating(Object sender, System.Web.UI.WebControls.GridViewUpdateEventArgs e)
        {
            String supportUnit = (String)Session["supportUnit"];
            TextBox TBox;
            String metricType;
            Double metrics;
            LinkButton lb;

            lb = (LinkButton) SupportUnitBreakDownGridView.Rows[e.RowIndex].Cells[0].Controls[0];
            metricType = lb.Text;

            TBox = (TextBox)SupportUnitBreakDownGridView.Rows[e.RowIndex].Cells[1].Controls[0];
            metrics = Double.Parse(TBox.Text);

            StoredProcedures sp = new StoredProcedures();

            sp.UpdateCostDriversMetrics(FinancialYearDropDownList.SelectedValue, supportUnit, metricType, metrics);

            sp.UpdateRevenueExpenseSummary(FinancialYearDropDownList.SelectedValue);

            DisplayRevenueExpenseSummaryReport();

            DisplayAllocatedCostsSummaryReport();

            SupportUnitBreakDownGridView.EditIndex = -1;
            DisplaySupportUnit(supportUnit);
            FocusAnchor.Focus();
        }