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