BKI_DichVuMatDat.NghiepVu.f371_nhan_vien_loai_lao_dong_insert.check_data_is_ok C# (CSharp) Method

check_data_is_ok() private method

private check_data_is_ok ( ) : bool
return bool
        private bool check_data_is_ok()
        {
            if (m_sle_chon_nhan_vien.EditValue == null || m_sle_chon_nhan_vien.EditValue == "")
            {
                MessageBox.Show("Bạn phải chọn nhân viên", "THÔNG BÁO!");
                return false;
            }
            if (m_sle_chon_loai_lao_dong.EditValue == null || m_sle_chon_loai_lao_dong.EditValue == "")
            {
                MessageBox.Show("Bạn phải chọn loại lao động", "THÔNG BÁO!");
                return false;
            }

            if (m_dat_ngay_bat_dau.Value.Date == null || m_dat_ngay_bat_dau.Value.Date.ToString() == "")
            {
                MessageBox.Show("Bạn phải chọn ngày bắt đầu", "THÔNG BÁO!");
                return false;
            }
            if (m_dat_ngay_ket_thuc.Value.Date == null || m_dat_ngay_ket_thuc.Value.Date.ToString() == "")
            {
                MessageBox.Show("Bạn phải chọn ngày kết thúc", "THÔNG BÁO!");
                return false;
            }
            return true;
        }