示例#1
0
        private void CargarDatosDocumentoPagare(int idCobranza)
        {
            ALCSA.Negocio.Cobranzas.DocumentoPagare objDocumento = new ALCSA.Negocio.Cobranzas.DocumentoPagare();
            if (!objDocumento.CargarPorCobranza(idCobranza))
            {
                return;
            }

            AsignarValor("lblDomicilio", objDocumento.DireccionPagare);
            AsignarValor("lblNombreRepresentante", objDocumento.NombreRepresentanteUno);
            AsignarValor("lblMontoTotal", objDocumento.Sumainisuscripcion);
            AsignarValor("lblMontoTotalPalabras", ALCSA.FWK.Numero.ConvertirNumeroEnPalabras(objDocumento.Sumainisuscripcion, 2));
        }
示例#2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int intIdCobranza = ALCSA.FWK.Web.Sitio.ExtraerValorQueryStringComoEntero(Request, "id_cob");

            if (intIdCobranza < 1)
            {
                return;
            }

            ALCSA.Negocio.Cobranzas.Cobranza objCobranza = new ALCSA.Negocio.Cobranzas.Cobranza(intIdCobranza);
            AsignarValorEtiqueta(lblRutCliente, ALCSA.FWK.IdentificacionTributaria.FormatearRut(objCobranza.RutCli));
            AsignarValorEtiqueta(lblRutDeudor, ALCSA.FWK.IdentificacionTributaria.FormatearRut(objCobranza.RutDeudor));
            AsignarValorEtiqueta(lblNombreCliente, objCobranza.NombreCliente);

            AsignarValorEtiqueta(lblNombreDeudor, objCobranza.NombreDeudor);
            AsignarValorEtiqueta(lblNombreDeudor0, objCobranza.NombreDeudor);
            AsignarValorEtiqueta(lblNombreDeudor1, objCobranza.NombreDeudor);
            AsignarValorEtiqueta(lblNombreDeudor2, objCobranza.NombreDeudor);

            ALCSA.Negocio.Cobranzas.DocumentoPagare objDocumento = new ALCSA.Negocio.Cobranzas.DocumentoPagare();
            if (objDocumento.CargarPorCobranza(intIdCobranza))
            {
                AsignarValorEtiqueta(lblTasaInteres, objDocumento.Tasainteres);
                AsignarValorEtiqueta(lblTasaInteres, objDocumento.Fliquidacion);
                AsignarValorEtiqueta(lblNombreComunaExhorto, objDocumento.NombreComunaExhorto);
                AsignarValorEtiqueta(lblTasaInteres, objDocumento.Fmora);

                AsignarValorEtiqueta(lblNumeroPagare, objDocumento.Nropagare);
                AsignarValorEtiqueta(lblNumeroPagare0, objDocumento.Nropagare);

                AsignarValorEtiqueta(lblFechaSuscripcion, objDocumento.Fsuscripcion);
                AsignarValorEtiqueta(lblNumeroCuotaMora, string.Empty);

                AsignarValorEtiqueta(lblDomicilio, objDocumento.DireccionPagare);
                AsignarValorEtiqueta(lblDomicilio0, objDocumento.DireccionPagare);

                AsignarValorEtiqueta(lblNumeroTotalCuotas, objDocumento.Nrocuotas);
                AsignarValorEtiqueta(lblMontoUltimaCuota, objDocumento.Montoultimacuota, 0);
                AsignarValorEtiqueta(lblNumeroPrimerasCuotas, string.Empty);
                AsignarValorEtiqueta(lblNumeroPrimerasCuotas, objDocumento.Monto1cuotas, 0);
                AsignarValorEtiqueta(lblFechaPrimerVencimiento, objDocumento.Vcto1cuota);
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.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);

            AsignarTitulo(objCobranza.IdMateria);

            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.DocumentoPagare objDocumento = new ALCSA.Negocio.Cobranzas.DocumentoPagare();
            if (objDocumento.CargarPorCobranza(intIdCobranza))
            {
                ALCSA.FWK.Web.Control.AsignarValor(hdfIdDocuPagare, objDocumento.ID);
                txtNroPagare.Text = objDocumento.Nropagare;

                ALCSA.FWK.Web.Control.AsignarValor(hdfIdDireccionPagare, objDocumento.IdDomicilio);

                txtRutAval1.Text = ALCSA.FWK.IdentificacionTributaria.FormatearRut(objDocumento.RutRepresentante1);
                ALCSA.FWK.Web.Control.AsignarValor(hdfIdDireccionAval1, objDocumento.IdDomiRepre1);

                txtRutAval2.Text = ALCSA.FWK.IdentificacionTributaria.FormatearRut(objDocumento.RutRepresentante2);
                ALCSA.FWK.Web.Control.AsignarValor(hdfIdDireccionAval2, objDocumento.IdDomiRepre2);

                ALCSA.FWK.Web.Control.AsignarValor(txtMontoDemanda, objDocumento.Montodemanda, 0);
                ALCSA.FWK.Web.Control.AsignarValor(txtMontoTotalDeuda, objDocumento.Montotaldeuda, 0);
                ALCSA.FWK.Web.Control.AsignarValor(txtFechaSuscripcion, objDocumento.Fsuscripcion);
                ALCSA.FWK.Web.Control.AsignarValor(txtSumaInicialSuscripcion, objDocumento.Sumainisuscripcion, 0);
                ALCSA.FWK.Web.Control.AsignarValor(hdfIdTipoMoneda, objDocumento.IdMoneda);
                ALCSA.FWK.Web.Control.AsignarValor(txtNroCuotas, objDocumento.Nrocuotas);
                ALCSA.FWK.Web.Control.AsignarValor(txtTasaInteres, objDocumento.Tasainteres, 2);
                ALCSA.FWK.Web.Control.AsignarValor(txtVcto1cuota, objDocumento.Vcto1cuota);
                ALCSA.FWK.Web.Control.AsignarValor(txtVstoSgteCuotas, objDocumento.Vctosiguientescuotas);
                ALCSA.FWK.Web.Control.AsignarValor(txtMonto1cuota, objDocumento.Monto1cuotas, 0);
                ALCSA.FWK.Web.Control.AsignarValor(txtMontoUltCuota, objDocumento.Montoultimacuota, 0);
                ALCSA.FWK.Web.Control.AsignarValor(txtfechamora, objDocumento.Fmora);
                ALCSA.FWK.Web.Control.AsignarValor(txtfechaprescripcion, objDocumento.Fprescripcion);
                ALCSA.FWK.Web.Control.AsignarValor(txtFechaLiquidacion, objDocumento.Fliquidacion);
                ALCSA.FWK.Web.Control.AsignarValor(hdfIdComunaExhorto, objDocumento.IdComunaExhorto);
                ALCSA.FWK.Web.Control.AsignarValor(txtFechaAutoriFirma, objDocumento.Fautorizacionfirma);
                ALCSA.FWK.Web.Control.AsignarValor(hdfIdNotario, objDocumento.IdNotaria);
                ALCSA.FWK.Web.Control.AsignarValor(hdfIdLocalidadNotario, objDocumento.IdComunaNotaria);
                txtObservacion.Text = objDocumento.Observacion;

                txtTipoMoneda.Text    = objDocumento.NombreTipoMoneda;
                txtComunaExhorto.Text = objDocumento.NombreComunaExhorto;
                txtNotario.Text       = objDocumento.NombreNotario;

                txtNombreAval1.Text = objDocumento.NombreRepresentanteUno;
                txtNombreAval2.Text = objDocumento.NombreRepresentanteDos;

                txtLocalidadNotario.Text = objDocumento.NombreComunaNotario;
                txtDireccionAval1.Text   = objDocumento.DireccionRepresentanteUno;
                txtDireccionAval2.Text   = objDocumento.DireccionRepresentanteDos;
                txtDireccionPagare.Text  = objDocumento.DireccionPagare;

                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();
                }
            }
            txtNumeroOperacion.Focus();
        }