private void FunConsultarDatos()
        {
            try
            {
                _dts = new ConsultaDatosDAO().FunConsultaDatos(14, int.Parse(DdlCatalogo.SelectedValue), 0, 0, "", "", "", Session["Conectar"].ToString());
                DdlDiasMora.DataSource     = _dts;
                DdlDiasMora.DataTextField  = "Descripcion";
                DdlDiasMora.DataValueField = "Codigo";
                DdlDiasMora.DataBind();
                DdlDiasMora1.DataSource     = _dts;
                DdlDiasMora1.DataTextField  = "Descripcion";
                DdlDiasMora1.DataValueField = "Codigo";
                DdlDiasMora1.DataBind();

                _dts = new ConsultaDatosDAO().FunConsultaDatos(47, int.Parse(DdlCatalogo.SelectedValue), 0, 0, "", "", "",
                                                               Session["Conectar"].ToString());
                GrdvResultado.DataSource = _dts;
                GrdvResultado.DataBind();

                if (_dts.Tables[0].Rows.Count > 0)
                {
                    RdbClientes.Enabled = true;
                }
            }
            catch (Exception ex)
            {
                Lblerror.Text = ex.ToString();
            }
        }
        private void FunClearObjects()
        {
            lblTotal.InnerText = "";
            DdlDiasMora.Items.Clear();
            DdlDiasMora1.Items.Clear();
            _ditem.Text  = "--Seleccione Dia--";
            _ditem.Value = "0";
            DdlDiasMora.Items.Add(_ditem);
            DdlDiasMora1.Items.Add(_ditem);
            TxtExigible.Text           = "1";
            txtExigible0.Text          = "1";
            ChkLogico1.Checked         = false;
            ChkLogico2.Checked         = false;
            trLogico1.Visible          = false;
            trLogico2.Visible          = false;
            RdbTodos.Checked           = false;
            RdbGestor.Checked          = false;
            RdbTodos.Enabled           = false;
            RdbGestor.Enabled          = false;
            DdlGestores.SelectedValue  = "0";
            DdlGestores.Enabled        = false;
            DdlGestorCli.SelectedValue = "0";
            DdlGestorCli.Enabled       = false;
            TxtBuscar.Text             = "";
            TxtBuscar.Enabled          = false;
            TxtOperaciones.Text        = "";
            TxtOperaciones.Enabled     = false;
            LstOrigen.Items.Clear();
            LstDestino.Items.Clear();
            ImgPasar.Enabled          = false;
            ImgBuscar.Enabled         = false;
            ImgPasar1.Enabled         = false;
            ImgQuitar1.Enabled        = false;
            ImgAgregar.Enabled        = true;
            RdbOpera.Checked          = false;
            RdbOpera.Enabled          = false;
            RdbDeudor.Checked         = false;
            RdbClientes.Checked       = false;
            RdbDeudor.Enabled         = false;
            RdbClientes.Enabled       = false;
            RdbIdentificacion.Enabled = false;
            RdbIdentificacion.Checked = false;
            _dtbasignar = (DataTable)ViewState["AsignarSQL"];
            //DataRow[] rows;
            _rows = _dtbasignar.Select();

            foreach (DataRow row in _rows)
            {
                _dtbasignar.Rows.Remove(row);
            }

            ViewState["AsignarSQL"] = _dtbasignar;
            GrdvDatos.DataSource    = _dtbasignar;
            GrdvDatos.DataBind();
            _dtbgestores            = null;
            GrdvGestores.DataSource = _dtbgestores;
            GrdvGestores.DataBind();
            GrdvResultado.DataSource = null;
            GrdvResultado.DataBind();
            updCabecera.Update();
        }