Beispiel #1
0
 private void BunifuImageButton1_Click(object sender, EventArgs e)
 {
     try
     {
         dgvLSdonhang.DataSource = db.Lichsuadonhang(db.getmakh(email));
         lbMadh.Text             = dgvLSdonhang.CurrentRow.Cells[0].Value.ToString();
         lbPhi.Text       = dgvLSdonhang.CurrentRow.Cells[1].Value.ToString();
         lbngaydat.Text   = dgvLSdonhang.CurrentRow.Cells[2].Value.ToString();
         lbTinhtrang.Text = db.Tinhtrang(Convert.ToInt32(dgvLSdonhang.CurrentRow.Cells[3].Value.ToString()));
     }
     catch (Exception)
     {
         return;
     }
 }
Beispiel #2
0
 private void Chitiet_Load(object sender, EventArgs e)
 {
     try
     {
         dgvChitiet.DataSource = db.chitiet_donhang(madh, db.getmakh(email));
         lbTenSach.Text        = dgvChitiet.CurrentRow.Cells[1].Value.ToString();
         lbSoluong.Text        = dgvChitiet.CurrentRow.Cells[4].Value.ToString();
         lbDongia.Text         = dgvChitiet.CurrentRow.Cells[5].Value.ToString();
     }
     catch (Exception)
     {
         return;
     }
 }
Beispiel #3
0
        private void DonHang_Load(object sender, EventArgs e)
        {
            dgvKH.DataSource = db.Thongtindathang(email);
            lbTen.DataBindings.Add("Text", dgvKH.DataSource, "TenKH");
            lbSdt.DataBindings.Add("Text", dgvKH.DataSource, "SDT");
            lbEmail.DataBindings.Add("Text", dgvKH.DataSource, "Email");
            lbDiachi.DataBindings.Add("Text", dgvKH.DataSource, "DiaChi");
            lbTongtien.Text = db.Tongtien(db.getmakh(email)).ToString();
            DateTime dat = DateTime.Now;

            lbNgaydat.Text        = dat.ToString();
            lbNgaygiao.Text       = db.getngaygiao(dat).ToString();
            dgvDonhang.DataSource = db.GioHangtable(db.getmakh(email));
        }
Beispiel #4
0
 public void Cart_Load(object sender, EventArgs e)
 {
     dgvGiohang.DataSource = db.GioHangtable(db.getmakh(email));
     txtTien.Text          = db.Tongtien(db.getmakh(email)).ToString();
 }