示例#1
0
 private void btnGopBan_Click(object sender, EventArgs e)
 {
     try
     {
         using (var k = new AppCode.QuanCafe())
         {
             //var kq = k.TimHoaDonTheoIDBan(AppCode.STBan.idBan);
             var kq = k.GopBan(AppCode.STBanGop.idBan, AppCode.STBan.idBan);
             if (kq == true)
             {
                 MessageBox.Show("Gop thanh cong");
             }
             else
             {
                 MessageBox.Show("Gop that bai");
             }
         }
     }
     catch
     {
     }
 }