private void get_tipimptoid()
        {
            try
            {
                var BL = new tb_tipimptoBL();
                var BE = new tb_tipimpto();
                var dt = new DataTable();

                BE.status = true;
                dt = BL.GetAll(EmpresaID, BE).Tables[0];

                if (dt.Rows.Count > 0)
                {
                    tipimptotasa.DataSource = dt;
                    tipimptotasa.ValueMember = "tipimptoid";
                    tipimptotasa.DisplayMember = "tipimptotasa";
                }
                else
                {
                    MessageBox.Show("Active la tasa de impuesto", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
        private void get_tipimptoid()
        {
            try
            {
                tb_tipimptoBL BL = new tb_tipimptoBL();
                tb_tipimpto BE = new tb_tipimpto();
                DataTable dt = new DataTable();

                BE.status = true;
                dt = BL.GetAll(EmpresaID, BE).Tables[0];

                if (dt.Rows.Count > 0)
                {
                    //tipimptoid = dt.Rows[0]["tipimptoid"].ToString();
                    //igv = Convert.ToDecimal(dt.Rows[0]["tipimptotasa"]);
                    //tipimptotasa.Text = dt.Rows[0]["tipimptotasa"].ToString() + "%";

                    tipimptotasa.DataSource = dt;
                    tipimptotasa.DisplayMember = "tipimptotasa";
                    tipimptotasa.ValueMember = "tipimptoid";
                    tipimptotasa.SelectedIndex = 1;
                }
                else
                {
                    MessageBox.Show("Active la tasa de impuesto", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }

            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }