Esempio n. 1
0
 private void frmLapPhieuThuTien_Load(object sender, EventArgs e)
 {
     btnLapPhieu.Enabled = false;
     if (!string.IsNullOrEmpty(frmTimKiem.bienSo))
     {
         txtTenChuXe.Text    = XeBLL.GetChuXe(frmTimKiem.bienSo);
         txtBienSo.Text      = frmTimKiem.bienSo;
         btnLapPhieu.Enabled = true;
     }
 }
Esempio n. 2
0
        private void txtBienSo_TextChanged(object sender, EventArgs e)
        {
            string bienXe = txtBienSo.Text;

            txtTenChuXe.Text = XeBLL.GetChuXe(bienXe);
            if (txtTenChuXe.Text == "1")
            {
                txtTenChuXe.Clear();
            }
            if (txtTenChuXe.Text.Length == 0)
            {
                btnLapPhieu.Enabled = false;
            }
            else
            {
                btnLapPhieu.Enabled = true;
            }
        }