KiemTraThoiGianVoiHeSoLNSForInsert() public method

public KiemTraThoiGianVoiHeSoLNSForInsert ( decimal ip_dc_id_nhan_vien, System.DateTime ip_dat_tu_ngay, System.DateTime ip_dat_den_ngay ) : bool
ip_dc_id_nhan_vien decimal
ip_dat_tu_ngay System.DateTime
ip_dat_den_ngay System.DateTime
return bool
 private bool kiem_tra_thoi_gian_hop_le_voi_lns_Insert()
 {
     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.KiemTraThoiGianVoiHeSoLNSForInsert(Convert.ToDecimal(m_sle_chon_nhan_vien.EditValue), v_dat_tu_ngay, v_dat_den_ngay))
     {
         XtraMessageBox.Show("Không thêm 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;
 }