private void LoadData()
    {
        using (DataClassesDatabaseDataContext db = new DataClassesDatabaseDataContext())
        {
            PenggunaLogin pengguna = (PenggunaLogin)Session["PenggunaLogin"];

            Laporan_Class Laporan_Class = new Laporan_Class(db, (PenggunaLogin)Session["PenggunaLogin"], Pengaturan.HariIni()[0], Pengaturan.HariIni()[1], false);

            var Result = Laporan_Class.PerbandinganHargaVendor(pengguna.IDTempat, DropDownListCariProduk.SelectedValue.ToInt(), DropDownListCariAtributProduk.SelectedValue.ToInt());

            LiteralColspan.Text = "<td colspan='" + Result["DataJumlahVendor"].ToString() + "'></td>";

            RepeaterVendor.DataSource = Result["DataVendor"];
            RepeaterVendor.DataBind();
            RepeaterProduk.DataSource = Result["DataHargaVendor"];
            RepeaterProduk.DataBind();
        }
    }
Exemple #2
0
 private void LoadDataVendor(DataClassesDatabaseDataContext db)
 {
     RepeaterVendor.DataSource = db.TBVendors.OrderBy(item => item.Nama).ToArray();
     RepeaterVendor.DataBind();
 }