/// <summary> /// 检索 /// </summary> private void dataSelect() { Form_gzzBll xmfl = new Form_gzzBll(); string strWhere = ""; if (UserInfo.Yybm != null && UserInfo.Yybm.Trim().Length > 0) { strWhere = strWhere + string.Format(" and YLJGBM ='{0}' ", UserInfo.Yybm); } if (mc.Text.Trim().Length > 0) { strWhere = strWhere + string.Format(" and GZZMC like '%{0}%' ", mc.Text.Trim()); } DataTable dt = xmfl.GetMoHuList(strWhere); showDataGrid(dt); }