0
try    {
            frmCombination.Mode = "Add";
            this.Clear_All_Controls();
            this.Enable_All_Controls();
            if (!(this.Form_Name == "Secured Life"))
                ;
            this.btnGenerate.Enabled = true;
            this.btnChange.Enabled = true;
            this.mskReportDate.Text = Convert.ToString(DateTime.Now);
           ****** 
            if (this.Form_Name == "Secured Life")
                this.txtQuotation.Text = Common_Functionality.GenerateId("ProdMix_Quot_No", "Secured_Life_Quotation", "").ToString();
            else
                this.txtQuotation.Text = Common_Functionality.GenerateId("ProdMix_Quot_No", frmCombination.tblAnnorSet, "").ToString();
            this.SetupDataGridView();
            this.SqlQry = "select Tax_Sec_80CCC_Limit,Tax_Sec_80D_Limit,Tax_rate_Limit from Global_Parameters";
            Connection connection = new Connection();
            if (!connection.OpenConn())
                Application.Exit();
            OleDbCommand oleDbCommand = new OleDbCommand(this.SqlQry, connection.Conn);
            connection.dr = oleDbCommand.ExecuteReader();
            if (connection.dr.HasRows && connection.dr.Read())
            {
                this.mskTaxSlab80C.Text = connection.dr.IsDBNull(connection.dr.GetOrdinal("Tax_rate_Limit")) ? "00.00" : Convert.ToString(connection.dr["Tax_rate_Limit"]);
                this.mskTaxSlab80D.Text = connection.dr.IsDBNull(connection.dr.GetOrdinal("Tax_rate_Limit")) ? "00.00" : Convert.ToString(connection.dr["Tax_rate_Limit"]);
                connection.dr.Close();
            }
            connection.Conn.Close();
            }

Edited by pritaeas: Fixed markdown.

2
Contributors
1
Reply
5
Views
2 Years
Discussion Span
Last Post by pritaeas
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.