Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ReportTransaction report = new ReportTransaction();

            CrystalReportViewer1.ReportSource = report;

            report.SetDataSource(GetData());
        }
Exemple #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["email"] == null)
            {
                Response.Redirect("LoginForm.aspx");
            }
            User u = UserController.GetUser(Session["email"].ToString());

            if (u.RoleID == 2)
            {
                Page.Visible = false;
            }
            else
            {
                ReportTransaction report = new ReportTransaction();
                CrystalReportViewer1.ReportSource = report;

                report.SetDataSource(GetData());
            }
        }