Esempio n. 1
0
 private void FrmCapNhatBanDat_Load(object sender, EventArgs e)
 {
     DatBan_BUS = new DatBan_BUS(cm);
     DocKhachHang();
     DocBanAn();
     if (bandat != null)
     {
         cbbKhachHang.SelectedValue = bandat.MaKhachHang;
         cbbBanAn.SelectedValue     = bandat.MaBan;
         if (bandat.TrangThai == "Chưa đến ăn")
         {
             cbbHienTrang.SelectedIndex = 1;
             trangThaiOld = 0;
         }
         else
         {
             cbbHienTrang.SelectedIndex = 0;
             trangThaiOld = 1;
         }
         calcEdit_ThoiGianDen.Text = bandat.ThoiGianDen;
     }
 }