Example #1
0
        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);
        }
Example #2
0
 public bool hasData()
 {
     if (!string.IsNullOrEmpty(this.CardID))
     {
         DataSet list = new KidsTcmhmOneToThreeDAL().GetList(" IDCardNo='" + this.CardID + "'");
         if (list != null && list.Tables.Count > 0 && list.Tables[0].Rows.Count > 0)
         {
             return(true);
         }
     }
     return(false);
 }