Пример #1
0
        public bool SaveModelToDB()
        {
            ReferraBaseInfoBLL refbll = new ReferraBaseInfoBLL();
            int result = refbll.Add(RefModel);

            if (result == 0)
            {
                return(false);
            }
            return(true);
        }
Пример #2
0
 public bool hasData()
 {
     if (!string.IsNullOrEmpty(this.CardID))
     {
         DataSet list = new ReferraBaseInfoBLL().GetList("and IDCardNo='" + this.CardID + "'");
         if (list != null && list.Tables.Count > 0 && list.Tables[0].Rows.Count > 0)
         {
             return(true);
         }
     }
     return(false);
 }
Пример #3
0
 public bool SaveModelToDB()
 {
     try
     {
         bool result = new ReferraBaseInfoBLL().Update(referrModel);
         if (result)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
         return(false);
     }
 }