Пример #1
0
        private void CargaGrilla(int indice)
        {
            System.Data.DataTable objTabla = ConsultasEspecificas.ConsultaCobranzaRESPONSABLE(
                this.txtRut.Text,
                this.txtNroOperacion.Text,
                ddlEstados.SelectedValue,
                Convert.ToInt32(ddlJurisdicciones.SelectedValue),
                Convert.ToInt32(ddlTribunales.SelectedValue));
            this.Grilla.PageIndex  = indice;
            this.Grilla.DataSource = objTabla;
            this.Grilla.DataBind();

            System.Text.StringBuilder strbTexto = new System.Text.StringBuilder();
            foreach (System.Data.DataRow objFila in objTabla.Rows)
            {
                if ("AR".Contains(objFila["estado"].ToString().Trim().ToUpper()))
                {
                    strbTexto.AppendFormat("{0},", objFila["id_cobranza"]);
                }
            }

            Session["CODIGOS_ASIGNACION_MASIVA"] = strbTexto.ToString();
        }