private Entities.ConsultDFeedback LoadSingleConsultDFeedback(DataRow row)
        {
            Entities.ConsultDFeedback model = new Entities.ConsultDFeedback();

            if (row["RecID"].ToString() != "")
            {
                model.RecID = int.Parse(row["RecID"].ToString());
            }
            model.CustID = row["CustID"].ToString();
            if (row["QuestionType"].ToString() != "")
            {
                model.QuestionType = int.Parse(row["QuestionType"].ToString());
            }
            model.CallRecord = row["CallRecord"].ToString();
            if (row["TelSource"].ToString() != "")
            {
                model.TelSource = int.Parse(row["TelSource"].ToString());
            }
            if (row["CreateTime"].ToString() != "")
            {
                model.CreateTime = DateTime.Parse(row["CreateTime"].ToString());
            }
            if (row["CreateUserID"].ToString() != "")
            {
                model.CreateUserID = int.Parse(row["CreateUserID"].ToString());
            }
            return(model);
        }
        /// <summary>
        ///  增加一条数据
        /// </summary>
        public int Insert(Entities.ConsultDFeedback model)
        {
            SqlParameter[] parameters =
            {
                new SqlParameter("@RecID",          SqlDbType.Int,          4),
                new SqlParameter("@CustID",         SqlDbType.VarChar,     20),
                new SqlParameter("@QuestionType",   SqlDbType.Int,          4),
                new SqlParameter("@CallRecord",     SqlDbType.NVarChar,  2000),
                new SqlParameter("@TelSource",      SqlDbType.Int,          4),
                new SqlParameter("@CallRecordType", SqlDbType.Int,          4),
                new SqlParameter("@CreateTime",     SqlDbType.DateTime),
                new SqlParameter("@CreateUserID",   SqlDbType.Int, 4)
            };
            parameters[0].Direction = ParameterDirection.Output;
            parameters[1].Value     = model.CustID;
            parameters[2].Value     = model.QuestionType;
            parameters[3].Value     = model.CallRecord;
            parameters[4].Value     = model.TelSource;
            parameters[5].Value     = model.CallRecordType;
            parameters[6].Value     = model.CreateTime;
            parameters[7].Value     = model.CreateUserID;

            SqlHelper.ExecuteNonQuery(CONNECTIONSTRINGS, CommandType.StoredProcedure, P_ConsultDFeedback_INSERT, parameters);
            return((int)parameters[0].Value);
        }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Insert(Entities.ConsultDFeedback model)
 {
     return(Dal.ConsultDFeedback.Instance.Insert(model));
 }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public int Update(Entities.ConsultDFeedback model)
 {
     return(Dal.ConsultDFeedback.Instance.Update(model));
 }