public void bind(string strWhere) { BLL.Recipients brecipients = new LabMS.BLL.Recipients(); List<Model.Recipients> recipient = brecipients.GetModelList(strWhere); gvInstrument.DataSource = recipient; gvInstrument.DataBind(); }
LabMS.Model.Recipients checkQueryString(string strID) { LabMS.BLL.Recipients brecipients = new LabMS.BLL.Recipients(); string strWhere = " Type = 'guizhongyiqi' and ID =" + strID; List<LabMS.Model.Recipients> listrecipients = brecipients.GetModelList(strWhere); if (listrecipients.Count <= 0) { return null; } return listrecipients[0]; }