private KidsTcmhmOneModel getModel(string type) { KidsTcmhmOneDAL kidsTcmhmOneDAL = new KidsTcmhmOneDAL(); DataSet list = kidsTcmhmOneDAL.GetList("IDCardNo='" + this.CardID + "' and FollowupType=" + type); if (list != null && list.Tables.Count > 0 && list.Tables[0].Rows.Count > 0) { return(kidsTcmhmOneDAL.DataRowToModel(list.Tables[0].Rows[0])); } return(null); }