Beispiel #1
0
    private void LoadData(bool GenerateExcel)
    {
        using (DataClassesDatabaseDataContext db = new DataClassesDatabaseDataContext())
        {
            Laporan_Class Laporan_Class = new Laporan_Class(db, (PenggunaLogin)Session["PenggunaLogin"], DateTime.Now, DateTime.Now, GenerateExcel);

            Result = Laporan_Class.UmurProduk();

            RepeaterLaporan.DataSource = Result["Data"];
            RepeaterLaporan.DataBind();

            //FILE EXCEL
            LinkDownload.Visible = GenerateExcel;

            if (LinkDownload.Visible)
            {
                LinkDownload.HRef = Laporan_Class.LinkDownload;
            }

            //PRINT LAPORAN
            ButtonPrint.OnClientClick = "return popitup('DefaultPrint.aspx" + Laporan_Class.TempPencarian + "')";
        }
    }