示例#1
0
        private KidsWithinOneYearOldModel getModel(string type)
        {
            KidsWithinOneYearOldDAL kidsWithinOneYearOldDAL = new KidsWithinOneYearOldDAL();
            DataSet list = kidsWithinOneYearOldDAL.GetList("IDCardNo='" + this.CardID + "' and flag=" + type);

            if (list != null && list.Tables.Count > 0 && list.Tables[0].Rows.Count > 0)
            {
                return(kidsWithinOneYearOldDAL.DataRowToModel(list.Tables[0].Rows[0]));
            }
            return(null);
        }
示例#2
0
 public bool hasData()
 {
     if (!string.IsNullOrEmpty(this.CardID))
     {
         DataSet list = new KidsWithinOneYearOldDAL().GetList(" IDCardNo='" + this.CardID + "'");
         if (list != null && list.Tables.Count > 0 && list.Tables[0].Rows.Count > 0)
         {
             return(true);
         }
     }
     return(false);
 }