protected void Page_Load(object sender, EventArgs e)
        {
            TransactionReport newTransRep = new TransactionReport();

            CrystalReportViewer1.ReportSource = newTransRep;
            newTransRep.SetDataSource(GenerateData(TransactionReportController.GetTransaction()));
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            TransactionReport newTR = new TransactionReport();

            CrystalReportViewer1.ReportSource = newTR;
            newTR.SetDataSource(GenerateData(HeaderTransactionController.gettAllHeaderTransaction()));
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            TransactionReport report = new TransactionReport();

            crystalReport.ReportSource = report;
            report.SetDataSource(GetReportHistory(_transaction.GetTransactions()));
        }
Exemple #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            TransactionReport report = new TransactionReport();

            CrystalReportViewer.ReportSource = report;

            report.SetDataSource(ReportRepository.GetReportData());
        }
        private void IssueTransactionReportForm_Load(object sender, EventArgs e)
        {
            DataSetTransReport       ds = new DataSetTransReport();
            TransactionsTableAdapter td = new TransactionsTableAdapter();

            td.Fill(ds.Transactions);

            TransactionReport cr = new TransactionReport();

            cr.SetDataSource(ds);
            crystalReportViewer1.ReportSource = cr;
        }
Exemple #6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (UserController.getUserByID(Convert.ToInt32(Session["auth_user"])).RoleID == 3)
     {
         TransactionReport reportTransaction = new TransactionReport();
         CrystalReportViewer1.ReportSource = reportTransaction;
         reportTransaction.SetDataSource(ReportHelper.GenerateData(TransactionController.getAllHeaderTransaction()));
     }
     else
     {
         Response.Redirect("Home.aspx");
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["user"] == null || !UserController.isAdmin(Int32.Parse(Session["user"].ToString())))
            {
                Response.Redirect("/View/Home.aspx");
                return;
            }

            TransactionReport report = new TransactionReport();

            CrystalReportViewer1.ReportSource = report;
            report.SetDataSource(TransactionController.GenerateTransactionLogs(TransactionController.GetAllTransactionsList()));
        }
Exemple #8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.QueryString["transactionID"] == null)
     {
         Response.Redirect("Home.aspx");
     }
     if (Session["auth_user"] != null)
     {
         TransactionReport reportTransaction = new TransactionReport();
         CrystalReportViewer1.ReportSource = reportTransaction;
         List <HeaderTransaction> headerTransactionList = TransactionController.getHeaderTransactionsByHTID(Convert.ToInt32(Request.QueryString["transactionID"]));
         reportTransaction.SetDataSource(ReportHelper.GenerateData(headerTransactionList));
     }
     else
     {
         Response.Redirect("Home.aspx");
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            // Kalo udah ada cookie, berarti langsung redirect ke HomePage
            if (Request.Cookies["remember"] != null)
            {
                int currentUserID = int.Parse(Request.Cookies["remember"].Value);

                User currentUser = UserController.GetUserById(currentUserID);

                if (currentUser.RoleId == 1)
                {
                    Response.Redirect("../Home/HomePage.aspx?id=" + currentUser.RoleId);
                }
            }

            // Kalo udah ada session, berarti langsung redirect ke HomePage
            if (Session["UserId"] != null)
            {
                int currentUserID = int.Parse(Session["UserId"].ToString());

                User currentUser = UserController.GetUserById(currentUserID);

                if (currentUser.RoleId == 1)
                {
                    Response.Redirect("../Home/HomePage.aspx?id=" + currentUser.RoleId);
                }
            }

            int sellerId = Convert.ToInt32(Session["UserId"].ToString());
            TransactionReport transactionReport = new TransactionReport();

            transactionReport.SetDataSource(GetData(sellerId));
            crvTransactionDetail.ReportSource = transactionReport;

            showAdditionalNavbar();
        }