BKI_DichVuMatDat.NghiepVu.f340_dat_hs_lns_lcd.check_data_hs_lns_is_ok C# (CSharp) Method

check_data_hs_lns_is_ok() private method

private check_data_hs_lns_is_ok ( ) : bool
return bool
        private bool check_data_hs_lns_is_ok()
        {
            if (m_sle_muc_lns.EditValue == null || m_sle_muc_lns.EditValue == "")
            {
                CHRM_BaseMessages.MsgBox_Error(CONST_ID_MSGBOX.ERROR_CHUA_CHON_MUC_LNS);
                return false;
            }

            if (m_sle_chon_ly_do_chinh_sua_hs_lns.EditValue.ToString() == "0")
            {
                CHRM_BaseMessages.MsgBox_Error(CONST_ID_MSGBOX.ERROR_CHUA_CHON_LY_DO_THAY_DOI_LNS);
                return false;
            }

            if (m_sle_chuc_danh_lns.EditValue == null || m_sle_chuc_danh_lns.EditValue == "")
            {
                CHRM_BaseMessages.MsgBox_Error(CONST_ID_MSGBOX.ERROR_CHUA_CHON_CHUC_DANH_DE_TINH_LNS);
                return false;
            }

            if (m_dat_ngay_bat_dau_lns.Value.Date == m_dat_ngay_ket_thuc_lns.Value.Date)
            {
                CHRM_BaseMessages.MsgBox_Error(CONST_ID_MSGBOX.ERROR_NGAY_KET_THUC_NHO_HON_NGAY_BAT_DAU);
                return false;
            }

            if (CHRMCommon.thang_da_chot_bang_luong(m_dat_ngay_ket_thuc_lns.Value))
            {
                CHRM_BaseMessages.MsgBox_Error(CONST_ID_MSGBOX.ERROR_THANG_DA_CHOT_BANG_LUONG);
                return false;
            }

            return true;
        }