private void Frm_Planilla_RubrosAportaciones_Activated(object sender, EventArgs e)
        {
            if (Sw_LOad)
            {
                cmbfiltrotipoplanilla.ValueMember = "tipoplla";
                cmbfiltrotipoplanilla.DisplayMember = "tipopllaname";
                var BL = new tb_plla_tipoplanillaBL();
                var BE = new tb_plla_tipoplanilla();

                BE.norden = 1;
                BE.ver_blanco = 0;
                tmpcursor = BL.GetAll_Consulta(VariablesPublicas.EmpresaID.ToString(), BE).Tables[0];
                cmbfiltrotipoplanilla.SelectedValue = string.Empty;

                if (BL.Sql_Error.Length == 0)
                {
                    cmbfiltrotipoplanilla.DataSource = tmpcursor;
                    if (tmpcursor.Rows.Count > 0)
                    {
                        cmbfiltrotipoplanilla.SelectedValue = tmpcursor.Rows[0]["tipoplla"];
                    }
                }

                cmbtipo.ValueMember = "cele";
                cmbtipo.DisplayMember = "descripcion";
                var BL3 = new tb_plla_tab0100BL();
                var BE3 = new tb_plla_tab0100();

                BE3.ver_blanco = 1;
                cmbtipo.DataSource = BL3.GetTipoAportacion(VariablesPublicas.EmpresaID.ToString(), BE3).Tables[0];

                RequeryTipoPlanilla();

                cmbrubrorpts.ValueMember = "rubroid";
                cmbrubrorpts.DisplayMember = "descripcion";
                var BL4 = new tb_plla_pdt_tabla22BL();
                var BE4 = new tb_plla_pdt_tabla22();

                BE4.relrubroidtipo = GlobalVars.GetInstance().RubrosAportacionRPTS;
                BE4.detallado = 1;
                BE4.norden = 1;
                BE4.incluir_blanco = 1;
                cmbrubrorpts.DataSource = BL4.GetAll_Consulta(VariablesPublicas.EmpresaID, BE4).Tables[0];

                U_RefrescaControles();
                CargaDatos();
                U_RefrescaControles();
                Sw_LOad = false;
            }
        }