Exemple #1
0
        private void ActualizarSiniestros()
        {
            int operacion = Convert.ToInt32(Session["OperacionDocPend"]);
            int entidad   = Convert.ToInt32(Session["EntidadDocPend"]);

            DocumentoPendiente[] documentos = null;

            int idSucursal = Convert.ToInt32(cmbSucursal.SelectedItem.Value);

            switch (operacion)
            {
            case 1:
                string noSocio = Session["EntidadDocPend"].ToString();
                documentos = reportesDA.DocumentacionPendiente(idSucursal, noSocio);
                break;

            case 2:
                documentos = reportesDA.DocumentacionPendiente(idSucursal, string.Empty);
                break;
            }

            strDocPend.DataSource = documentos;
            strDocPend.DataBind();
        }