BKI_DichVuMatDat.NghiepVu.NhanSu.f330_lap_hop_dong_v4_detail.check_ma_hd_da_ton_tai C# (CSharp) Method

check_ma_hd_da_ton_tai() private method

private check_ma_hd_da_ton_tai ( string ip_str_ma_hd ) : bool
ip_str_ma_hd string
return bool
        private bool check_ma_hd_da_ton_tai(string ip_str_ma_hd)
        {
            if (m_us_gd_hd.strMA_HOP_DONG != ip_str_ma_hd)
            {
                US_GD_HOP_DONG v_us = new US_GD_HOP_DONG();
                DS_GD_HOP_DONG v_ds = new DS_GD_HOP_DONG();
                v_us.FillDataset(v_ds, "where MA_HOP_DONG = '" + ip_str_ma_hd + "'");
                if (v_ds.Tables[0].Rows.Count != 0)
                    return true;
            }
            return false;
        }