BKI_DichVuMatDat.NghiepVu.f350_quan_ly_vi_tri_cong_tac.loai_ctac_cthuc_isExist C# (CSharp) Method

loai_ctac_cthuc_isExist() private method

private loai_ctac_cthuc_isExist ( decimal ip_dc_id_nv, decimal ip_dc_id_loai_ct ) : bool
ip_dc_id_nv decimal
ip_dc_id_loai_ct decimal
return bool
        private bool loai_ctac_cthuc_isExist(decimal ip_dc_id_nv, decimal ip_dc_id_loai_ct)
        {
            US_GD_CONG_TAC v_us = new US_GD_CONG_TAC();
            DS_GD_CONG_TAC v_ds = new DS_GD_CONG_TAC();

            v_us.FillDataset(v_ds);

            string v_str_filter = "ID_NHAN_VIEN = " + ip_dc_id_nv + "AND DA_XOA = 'N' AND ID_LOAI_CONG_TAC = " + ip_dc_id_loai_ct;
            DataRow[] v_dr = v_ds.GD_CONG_TAC.Select(v_str_filter);

            if (v_dr.Count() == 0)
            {
                return false;
            }
            else
            {
                return true;
            }
        }