private void txtSoHieu_EditValueChanged(object sender, EventArgs e) { string r = txtSoHieu.GetColumnValue("TenLaiXe").ToString(); if (r != "") { lblTenLaiXe.Text = r; } else { lblTenLaiXe.Text = ""; } if (!txtSoHieu.Text.Equals("") && !txtSoHieu.Text.Equals(" ")) { if (!((System.Data.SqlTypes.SqlInt32)(txtSoHieu.GetColumnValue("DiemDo"))).IsNull && txtSoHieu.GetColumnValue("DiemDo").ToString() != "") { lblViTri.Text = lienlac.GetDiemDo(txtSoHieu.GetColumnValue("SoHieuXeInt").ToString()); string TrangThaiLaiXeBao = lienlac.GetDiemDo(txtSoHieu.GetColumnValue("TrangThaiLaiXeBao").ToString()); } else { lblViTri.Text = ""; } } }
private void txtSoHieu_EditValueChanged(object sender, EventArgs e) { lblTenLaiXe.Text = txtSoHieu.GetColumnValue("TenNhanVien").To <string>(); lVungDieuHanh.Text = ""; lVungDieuHanh.SelectedText = lienlac.GetDiemDo(txtSoHieu.GetColumnValue("SoHieuXe").To <string>()); lVungDieuHanh.ClosePopup(); }
private void txtSoHieu_EditValueChanged(object sender, EventArgs e) { string r = (string)txtSoHieu.GetColumnValue("TenNhanVien"); if (r != "") { lblTenLaiXe.Text = r; lblViTri.Text = lienlac.GetDiemDo(txtSoHieu.GetColumnValue("SoHieuXe").ToString()); } else { lblTenLaiXe.Text = ""; } }
private void txtSoHieu_EditValueChanged(object sender, EventArgs e) { var r = txtSoHieu.GetColumnValue("TenNhanVien"); if (r != DBNull.Value && r != "") { lblTenLaiXe.Text = r.ToString(); lblViTri.Text = lienlac.GetDiemDo(txtSoHieu.GetColumnValue("SoHieuXe").ToString()); G_DiemDo_Old = txtSoHieu.GetColumnValue("DiemDo") == null ? 0 : (int)(txtSoHieu.GetColumnValue("DiemDo")); } else { lblTenLaiXe.Text = ""; } }