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