Esempio n. 1
0
        private string CargarDatosCobranzaJuicio(int idCobranza, int idJuicio)
        {
            ALCSA.Negocio.Cobranzas.Cobranza objCobranza = new ALCSA.Negocio.Cobranzas.Cobranza(idCobranza);

            hdfIdCobranza.Value    = idCobranza.ToString();
            hdfIdJuicio.Value      = idJuicio.ToString();
            hdfTipoActividad.Value = objCobranza.TipoActividad;

            txtNroOperacion.Text   = objCobranza.Nrooperacion;
            txtCliente.Text        = objCobranza.NombreCliente;
            txtRutDeudor.Text      = ALCSA.FWK.IdentificacionTributaria.FormatearRut(objCobranza.RutDeudor);
            txtNomDeudor.Text      = objCobranza.NombreDeudor;
            txtNumeroSucursal.Text = !string.IsNullOrWhiteSpace(objCobranza.Codigo) ? objCobranza.Codigo : "SIN NÚMERO";

            DataTable table = ConsultasEspecificas.MostrarDatosJuicioActividad(idJuicio.ToString());

            ALCSA.Negocio.Juicios.Juicio objJuicio = new ALCSA.Negocio.Juicios.Juicio(idJuicio);

            if ((table.Rows.Count > 0) && (table != null))
            {
                txtRol.Text = objJuicio.Rol;

                txtFechaIngCorte.Text = objJuicio.Fingresocorte.ToString("dd/MM/yyyy");
                txtProcedimiento.Text = table.Rows[0]["procedimiento"].ToString();
                txtMateria.Text       = table.Rows[0]["materia"].ToString();
                txtProducto.Text      = table.Rows[0]["producto"].ToString();
                txtTribunal.Text      = table.Rows[0]["tribunal"].ToString();

                CabezeraActividadesDTO sdto = new CabezeraActividadesDTO
                {
                    Deudor     = objCobranza.NombreDeudor,
                    Noperacion = objCobranza.Nrooperacion,
                    Rol        = objJuicio.Rol,
                    Tribunal   = table.Rows[0]["tribunal"].ToString()
                };
                Session["CabezeraActividades"] = sdto;
            }
            return(!string.IsNullOrEmpty(objCobranza.Tipo) ? objCobranza.Tipo.Trim() : string.Empty);
        }