KiemTraDuLieuCongTacHopLeForUpdate() public method

public KiemTraDuLieuCongTacHopLeForUpdate ( decimal ip_dc_id_gd_cong_tac, System.DateTime ip_dat_tu_ngay, System.DateTime ip_dat_den_ngay, decimal ip_dc_id_loai_cong_tac ) : bool
ip_dc_id_gd_cong_tac decimal
ip_dat_tu_ngay System.DateTime
ip_dat_den_ngay System.DateTime
ip_dc_id_loai_cong_tac decimal
return bool
 private bool check_logic_data()
 {
     bool v_bool_check = false;
     US_GD_CONG_TAC v_us_ct = new US_GD_CONG_TAC();
     if(m_e_loai_cap_nhat == e_loai_cap_nhat.THEM_MOI)
     {
         v_bool_check = v_us_ct.KiemTraDuLieuCongTacHopLeForInsert(Convert.ToDecimal(m_sle_chon_nhan_vien.EditValue)
                                             , Convert.ToDecimal(m_sle_chon_loai_cong_tac.EditValue)
                                             , m_dat_ngay_bat_dau.DateTime.Date
                                             , m_dat_ngay_ket_thuc.EditValue == null ? DateTime.Now.AddYears(100).Date : m_dat_ngay_ket_thuc.DateTime.Date);
     }
     if(m_e_loai_cap_nhat == e_loai_cap_nhat.UPDATE)
     {
         v_bool_check = v_us_ct.KiemTraDuLieuCongTacHopLeForUpdate(
                                             m_us_cong_tac.dcID
                                             , m_dat_ngay_bat_dau.DateTime.Date
                                             , m_dat_ngay_ket_thuc.EditValue == null ? DateTime.Now.AddYears(100).Date : m_dat_ngay_ket_thuc.DateTime.Date
                                             , Convert.ToDecimal(m_sle_chon_loai_cong_tac.EditValue));
     }
     if(v_bool_check == false)
     {
         XtraMessageBox.Show("Ngày tháng công tác không hợp lệ do nhân viên đã có công tác khác trong khoảng thời gian này!", "THÔNG BÁO", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     return v_bool_check;
 }