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;
}