/// <summary>
        /// 向数据库添加单条Record的记录
        /// </summary>
        /// <param name="record"></param>
        private void AddRecordToDB(Record record)
        {
            try
            {
                OleDbConnection con = null;
                if (record.M_requestID.Length > 0)
                {
                    con = recordDao.BeginKeyword();
                }
                else
                {
                    con = recordDao.Begin();
                }

                recordDao.AddRecordItemDAO(con, record);
                recordDao.Commit();
            }
            catch (Exception)
            {
                recordDao.RollBack();
                throw;
            }
            finally
            {
                recordDao.Close();
            }
        }
 /// <summary>
 /// 向数据库添加单条Record的记录
 /// </summary>
 /// <param name="record"></param>
 private void AddRecordToDB(Record record)
 {
     try
     {
         OleDbConnection con = recordDao.Begin();
         recordDao.AddRecordItemDAO(con, record);
         recordDao.Commit();
     }
     catch (Exception)
     {
         recordDao.RollBack();
         throw;
     }
     finally
     {
         recordDao.Close();
     }
 }
        public void TestAddRecordItemDAO()
        {
            Record record = new Record();

            record.UserName = "******";
            RecordDAO       recordDao = new RecordDAO();
            OleDbConnection con       = recordDao.Begin();

            recordDao.AddRecordItemDAO(con, record);

            recordDao.Commit();
            recordDao.Close();
        }