private KidsTcmhmOneToThreeModel getTwoModel(string type) { KidsTcmhmOneToThreeDAL kidsTcmhmOneToThreeDAL = new KidsTcmhmOneToThreeDAL(); DataSet list = kidsTcmhmOneToThreeDAL.GetList("IDCardNo='" + this.CardID + "' and FollowupType=" + type); if (list != null && list.Tables.Count > 0 && list.Tables[0].Rows.Count > 0) { return(kidsTcmhmOneToThreeDAL.DataRowToModel(list.Tables[0].Rows[0])); } return(null); }
public List <KidsTcmhmOneToThreeModel> GetList(string IDCardNo) { DataSet ds = dal.GetList(IDCardNo); if (ds != null && ds.Tables.Count > 0) { List <KidsTcmhmOneToThreeModel> list = ModelConvertHelper <KidsTcmhmOneToThreeModel> .ToList(ds.Tables[0]); if (list.Count > 0) { return(list); } } return(null); }