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