예제 #1
0
 public TrialShare GetTrialShare(TrialShare model)
 {
     try
     {
         return _ITrialRecordDao.GetTrialShare(model);
     }
     catch (Exception ex)
     {
         throw new Exception("TrialRecordMgr-->GetTrialShare-->" + ex.Message, ex);
     }
 }
예제 #2
0
 public TrialShare GetTrialShare(TrialShare model)
 {
     StringBuilder sql = new StringBuilder();
     try
     {
         sql.Append("select  user_id,user_name from  trial_share");
         sql.AppendFormat(" where user_id='{0}'", model.user_id);
         sql.AppendFormat(" and share_id='{0}'", model.share_id);
         return _access.getSinggleObj<TrialShare>(sql.ToString());
     }
     catch (Exception ex)
     {
         throw new Exception("TrialRecordDao-->GetTrialShare-->" + sql.ToString() + ex.Message, ex);
     }
 }