BKI_DichVuMatDat.DanhMuc.F104_dm_loai_hop_dong_de.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_txt_ma_loai_hop_dong.Text == null || m_txt_ma_loai_hop_dong.Text == "")
            {
                CHRM_BaseMessages.MsgBox_Error(CONST_ID_MSGBOX.ERROR_CHUA_NHAP_MA_LOAI_HOP_DONG);
                return false;
            }
            if (m_txt_ten_loai_hop_dong.Text == null || m_txt_ten_loai_hop_dong.Text == "")
            {
                CHRM_BaseMessages.MsgBox_Error(CONST_ID_MSGBOX.ERROR_CHUA_NHAP_TEN_LOAI_HOP_DONG);
                return false;
            }
            if (m_txt_ti_le.Text == null || m_txt_ti_le.Text == "")
            {
                CHRM_BaseMessages.MsgBox_Error(CONST_ID_MSGBOX.ERROR_CHUA_NHAP_TI_LE);
                return false;
            }
            if (m_txt_so_tien.Text == null || m_txt_so_tien.Text == "")
            {
                CHRM_BaseMessages.MsgBox_Error(CONST_ID_MSGBOX.ERROR_CHUA_NHAP_SO_TIEN);
                return false;
            }
            if (check_ma_loai_hd_da_ton_tai())
            {
                string v_str_error = "Mã loại hợp đồng đã tồn tại!";
                XtraMessageBox.Show(v_str_error, "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return false;
            }
            return true;
        }