protected void Page_Load(object sender, EventArgs e)
        {
            this.cambioPagina.Visible = false;
            LogicaCuentaPorCobrar logica = new LogicaCuentaPorCobrar();
            this._fechaInicio = (string)Session["FechaInicio"];
            this._fechaFin = (string)Session["FechaFin"];
            //this.cambioPagina.Text = this._fechaInicio+ " " + this._fechaFin;
            //_usuario = logica.ObtenerUsuarioFechas(this._fechaInicio, this._fechaFin);

            if (_usuario.Count == 0)
            {
                falla.Text = "NO SE ENCONTRARON FACTURAS POR PAGAR";
                falla.Visible = true;
            }
            cargarTabla();
        }
Exemplo n.º 2
0
        protected void defaultButton_Click(object sender, EventArgs e)
        {
            LogicaCuentaPorCobrar logica = new LogicaCuentaPorCobrar();

            /*if (logica.ValidarEstado( this._usuario[0].Id, this.estadoNuevo.SelectedItem.Value))
            {
                if (logica.ModificarEstado(this._usuario[0].Id, this.estadoNuevo.SelectedItem.Value))
                {

                    Exito.Text = "Operacion Realizada Exitosamente";
                    Exito.Visible = true;

                }
                else
                {
                    falla.Text = "Error Al Modificar en la Base de Datos";
                    falla.Visible = true;
                    Exito.Text = string.Empty;
                }

            }
            else
            {
                falla.Text = "Estado Invalido";
                falla.Visible = true;
                Exito.Text = string.Empty;
            }
            */
        }
Exemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            falla.Visible = false;
            Exito.Visible = false;

            LogicaCuentaPorCobrar logica = new LogicaCuentaPorCobrar();

            this._cedula = (string)Session["Cedula"];
            this._tipo = (string)Session["TipoUser"];

            //   _usuario = logica.ObtenerUsuarioCedula(_tipo, _cedula);

              // _ficticio = logica.ObtenerFacturaCedula(_cedula, _tipo);

               if (_usuario.Count == 0)
               {
                   this.falla.Text = "NO SE ENCONTRO EL USUARIO";
                   this.falla.Visible = true;
               }

               if ((_ficticio.Count == 0) && (_usuario.Count != 0))
               {
                   this.Exito.Text = "EL USUARIO NO POSEE FACTURAS POR PAGAR";
                   this.Exito.Visible = true;
               }

            cargarFicticio();
            cargarDatos();
        }