BKI_DichVuMatDat.NghiepVu.f303_gd_cham_cong_lam_them.kiem_tra_du_lieu C# (CSharp) Method

kiem_tra_du_lieu() private method

private kiem_tra_du_lieu ( ) : bool
return bool
        private bool kiem_tra_du_lieu()
        {
            if (m_txt_thang.Text.Trim() == "" || m_txt_nam.Text.Trim() == "")
            {
                XtraMessageBox.Show("Vui lòng nhập tháng và năm chấm công!", "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (check_ma_nhan_vien_ko_ton_tai())
                return false;
            else if (check_ma_nhan_vien_duplicate())
                return false;
            else if (check_so_ngay_lam_them_sai())
                return false;
            return true;
        }