示例#1
0
    protected bool Carga_Datos(int idmensaje)
    {
        iCom_BusinessEntity.Mensaje oBE = new iCom_BusinessEntity.Mensaje();
        iCom_BusinessLogic.Mensaje  oBL = new iCom_BusinessLogic.Mensaje();

        oBE.idmensaje = idmensaje;

        try
        {
            dtDatos = oBL.Consultar(oBE);

            if (dtDatos.Rows.Count > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
        catch (Exception ex)
        {
            ResgitraLog(ex.Message);
            return(false);
        }
    }
示例#2
0
    protected void Carga_Datos()
    {
        {
            iCom_BusinessEntity.Mensaje oBE = new iCom_BusinessEntity.Mensaje();
            iCom_BusinessLogic.Mensaje  oBL = new iCom_BusinessLogic.Mensaje();

            oBE.idusuario     = int.Parse(Session["id"].ToString());
            oBE.idtipousuario = 1;

            try
            {
                dtDatos = oBL.Consultar(oBE);

                if (dtDatos.Rows.Count > 0)
                {
                    gvDatos.DataSource = dtDatos;
                    gvDatos.DataBind();
                }
            }
            catch (Exception ex)
            {
                ResgitraLog(ex.Message);
                return;
            }
        }
    }