private bool kiem_tra_thoi_gian_hop_le_voi_lns_Update()
{
US_GD_LUONG_CUNG v_us = new US_GD_LUONG_CUNG();
var v_dat_tu_ngay = m_dat_ngay_bat_dau.DateTime.Date;
var v_dat_den_ngay = m_dat_ngay_ket_thuc.EditValue == null ? new DateTime(2100, 1, 1).Date : m_dat_ngay_ket_thuc.DateTime.Date;
if(!v_us.KiemTraThoiGianVoiHeSoLNSForUpdate(m_us_gd_luong_cung.dcID, v_dat_tu_ngay, v_dat_den_ngay))
{
XtraMessageBox.Show("Không sửa lương cứng được vì nhân viên đã có hệ số LNS có hiệu lực trong khoảng thời gian này rồi!", "THÔNG BÁO", MessageBoxButtons.OK, MessageBoxIcon.Warning);
return false;
}
return true;
}