Ejemplo n.º 1
0
        private void CargarDatosDocumentoEstandarDos(int idCobranza)
        {
            ALCSA.Negocio.Cobranzas.DocumentoEstandard2 objDocumento = new ALCSA.Negocio.Cobranzas.DocumentoEstandard2();
            if (!objDocumento.CargarPorCobranza(idCobranza))
            {
                return;
            }

            AsignarValor("lblDomicilio", objDocumento.Txtdomicilio);
            AsignarValor("lblNombreRepresentante", objDocumento.Txtdemandado);
            AsignarValor("lblMontoTotal", objDocumento.Txtmontodemandado);
            AsignarValor("lblMontoTotalPalabras", ALCSA.FWK.Numero.ConvertirNumeroEnPalabras(objDocumento.Txtmontodemandado, 2));
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Page.IsPostBack)
            {
                return;
            }

            int intIdCobranza = ALCSA.FWK.Web.Sitio.ExtraerValorQueryStringComoEntero(Request, "id_cob");

            if (intIdCobranza < 1)
            {
                return;
            }
            hdfIdEsCobranzaNueva.Value = ALCSA.FWK.Web.Sitio.ExtraerValorQueryStringComoEntero(Request, "es_nueva").ToString();
            btnGuardar.Text            = hdfIdEsCobranzaNueva.Value.Equals("1") ? "GUARDAR" : "GUARDAR Y GENERAR";

            ALCSA.Negocio.Cobranzas.Cobranza objCobranza = new ALCSA.Negocio.Cobranzas.Cobranza(intIdCobranza);
            ALCSA.FWK.Web.Control.AsignarValor(hdfIdCobranza, objCobranza.ID);

            txtNumeroOperacion.Text = objCobranza.Nrooperacion;
            txtRutCliente.Text      = ALCSA.FWK.IdentificacionTributaria.FormatearRut(objCobranza.RutCli);
            txtRutDeudor.Text       = ALCSA.FWK.IdentificacionTributaria.FormatearRut(objCobranza.RutDeudor);
            txtNombreCliente.Text   = objCobranza.NombreCliente;
            txtNombreDeudor.Text    = objCobranza.NombreDeudor;

            CambiarColorControlesSoloLectura();

            ALCSA.Negocio.Cobranzas.DocumentoEstandard2 objDocumento = new ALCSA.Negocio.Cobranzas.DocumentoEstandard2();
            if (objDocumento.CargarPorCobranza(intIdCobranza))
            {
                ALCSA.FWK.Web.Control.AsignarValor(hdfIdDocumento2, objDocumento.ID);
                ALCSA.FWK.Web.Control.AsignarValor(txtCaratulaJuicio, objDocumento.Txtcaratulajuicio);
                ALCSA.FWK.Web.Control.AsignarValor(txtJuzgado, objDocumento.Txtjuzgado);
                ALCSA.FWK.Web.Control.AsignarValor(txtRol, objDocumento.Txtrol);
                ALCSA.FWK.Web.Control.AsignarValor(txtTipoJuicio, objDocumento.Txttipojuicio);
                ALCSA.FWK.Web.Control.AsignarValor(txtMateria, objDocumento.Txtmateria);
                ALCSA.FWK.Web.Control.AsignarValor(txtDemandante, objDocumento.Txtdemandante);
                ALCSA.FWK.Web.Control.AsignarValor(txtDomicilioDemandante, objDocumento.Txtdomiciliodemandante);
                ALCSA.FWK.Web.Control.AsignarValor(txtRutDemandante, objDocumento.Txtrutdemandante);
                ALCSA.FWK.Web.Control.AsignarValor(txtAbogado, objDocumento.Txtabogado);
                ALCSA.FWK.Web.Control.AsignarValor(txtDomicilioabogado, objDocumento.Txtdomicilioabogado);
                ALCSA.FWK.Web.Control.AsignarValor(txtRutAbogado, objDocumento.Txtrutabogado);
                ALCSA.FWK.Web.Control.AsignarValor(txtDemandado, objDocumento.Txtdemandado);
                ALCSA.FWK.Web.Control.AsignarValor(txtRutDemandado, objDocumento.Txtrutdemandado);
                ALCSA.FWK.Web.Control.AsignarValor(txtRepresentante2, objDocumento.Txtrepresentante2);
                ALCSA.FWK.Web.Control.AsignarValor(txtActividad, objDocumento.Txtactividad);
                ALCSA.FWK.Web.Control.AsignarValor(txtActividad2, objDocumento.Txtactividad2);
                ALCSA.FWK.Web.Control.AsignarValor(txtDomicilio, objDocumento.Txtdomicilio);
                ALCSA.FWK.Web.Control.AsignarValor(txtmontoDemandado, objDocumento.Txtmontodemandado, 0);
                ALCSA.FWK.Web.Control.AsignarValor(txtTituloFunda, objDocumento.Txttitulofunda);
                ALCSA.FWK.Web.Control.AsignarValor(txtNroTitulo, objDocumento.Txtnrotitulo);
                ALCSA.FWK.Web.Control.AsignarValor(txtTipoNotificacion, objDocumento.Txttiponotificacion);
                ALCSA.FWK.Web.Control.AsignarValor(txtFechasubasta, objDocumento.Txtfechasubasta);
                ALCSA.FWK.Web.Control.AsignarValor(txtMinimosubasta, objDocumento.Txtminimosubasta);
                ALCSA.FWK.Web.Control.AsignarValor(txtDocumentosfundantes, objDocumento.Txtdocumentosfundantes);
                ALCSA.FWK.Web.Control.AsignarValor(txtObservacion, objDocumento.Txtobservacion);

                IList <ALCSA.Entidades.Documentos.Fisicos.Documento> arrDocumentosFisicos = new ALCSA.Negocio.Documentos.Fisicos.Documento().Listar(
                    objDocumento.IdCobranza.ToString(),
                    ALCSA.Negocio.Documentos.Fisicos.TipoIdentificador.TIPO_IDENTIFICADOR_COBRANZA);

                if (arrDocumentosFisicos != null && arrDocumentosFisicos.Count > 0)
                {
                    gvDocumentosFisicos.DataSource = arrDocumentosFisicos;
                    gvDocumentosFisicos.DataBind();
                }
            }
        }