protected void btnSave_Click(object sender, EventArgs e)
    {
        try
        {
            if (string.IsNullOrEmpty(txtSectionName.Text))
            {
                ShowMessage("Select Section Name.", false);
                txtSectionName.Focus();
                return;
            }

            if (string.IsNullOrEmpty(txtSubSection.Text))
            {
                ShowMessage("Select Sub-Section Name.", false);
                txtSubSection.Focus();
                return;
            }

            if (string.IsNullOrEmpty(txtBudgetHead.Text))
            {
                ShowMessage("Select Budget Head Name.", false);
                txtBudgetHead.Focus();
                return;
            }
            //if (txtProposedDrAmt.Enabled == true)
            //{
            //    if (string.IsNullOrEmpty(txtProposedDrAmt.Text) || Convert.ToDecimal(txtProposedDrAmt.Text) <= 0)
            //    {
            //        ShowMessage("Enter Proposed Budget Amount 2017-2018.", false);
            //        txtProposedDrAmt.Focus();
            //        return;
            //    }
            //}



            //if (txtProposedCrAmt.Enabled == true)
            //{

            //    if (string.IsNullOrEmpty(txtProposedCrAmt.Text) || Convert.ToDecimal(txtProposedCrAmt.Text) <= 0)
            //    {
            //        ShowMessage("Enter Proposed Budget Amount 2017-2018.", false);
            //        txtProposedCrAmt.Focus();
            //        return;
            //    }

            //}

            objBudgetAmountModel        = new BudgetAmountModel();
            objBudgetAmountModel.Ind    = 2;
            objBudgetAmountModel.OrgID  = GlobalSession.OrgID;
            objBudgetAmountModel.BrID   = GlobalSession.BrID;
            objBudgetAmountModel.YrCode = GlobalSession.YrCD;
            //objBudgetAmountModel.SectionCD = CommonCls.ConvertIntZero(ddlSection.SelectedValue);
            //objBudgetAmountModel.SubSectionCD = CommonCls.ConvertIntZero(ddlSubSection.SelectedValue);
            objBudgetAmountModel.SectionCD    = CommonCls.ConvertIntZero(SectionID);
            objBudgetAmountModel.SubSectionCD = CommonCls.ConvertIntZero(SubSectionID);
            //objBudgetAmountModel.BudgetHeadCD = CommonCls.ConvertIntZero(ddlBudgetHead.SelectedValue);

            objBudgetAmountModel.BudgetHeadCD = CommonCls.ConvertIntZero(BudgetHeadID);

            objBudgetAmountModel.UserID = GlobalSession.UserID;
            objBudgetAmountModel.IP     = "";

            objBudgetAmountModel.Actual3budgetAmtDr = CommonCls.ConvertDecimalZero(txtAcutal3DrAmt.Text);
            objBudgetAmountModel.Actual3budgetAmtCr = CommonCls.ConvertDecimalZero(txtAcutal3CrAmt.Text);
            objBudgetAmountModel.Prop2BudgetAmtDr   = CommonCls.ConvertDecimalZero(txtProposed2DrAmt.Text);
            objBudgetAmountModel.Prop2BudgetAmtCr   = CommonCls.ConvertDecimalZero(txtProposed2CrAmt.Text);
            objBudgetAmountModel.Sanc2BudgetAmtDr   = CommonCls.ConvertDecimalZero(txtSanctioned2DrAmt.Text);
            objBudgetAmountModel.Sanc2BudgetAmtCr   = CommonCls.ConvertDecimalZero(txtSanctioned2CrAmt.Text);
            objBudgetAmountModel.Actual2budgetAmtDr = CommonCls.ConvertDecimalZero(txtActual2DrAmt.Text);
            objBudgetAmountModel.Actual2budgetAmtcr = CommonCls.ConvertDecimalZero(txtActual2CrAmt.Text);
            objBudgetAmountModel.PropBudgetAmtDr    = CommonCls.ConvertDecimalZero(txtProposedDrAmt.Text);
            objBudgetAmountModel.PropBudgetAmtCr    = CommonCls.ConvertDecimalZero(txtProposedCrAmt.Text);

            string uri = string.Format("BudgetAmount/SaveBudget");

            DataTable dtOpeningBalance = CommonCls.ApiPostDataTable(uri, objBudgetAmountModel);
            if (dtOpeningBalance.Rows.Count > 0)
            {
                ShowMessage("Record Save successfully.", true);
                ClearAll();
            }
            else
            {
                ShowMessage("Record Not Save successfully.", false);
            }
        }
        catch (Exception ex)
        {
            ShowMessage(ex.Message, false);
        }
    }