/// <summary>
        ///  增加一条数据
        /// </summary>
        public void Add(MobileSoft.Model.HSPR.Tb_HSPR_CommunitySuggestions model)
        {
            int rowsAffected;

            SqlParameter[] parameters =
            {
                new SqlParameter("@SuggestionsID",      SqlDbType.NVarChar,    50),
                new SqlParameter("@CommID",             SqlDbType.BigInt,       8),
                new SqlParameter("@CustID",             SqlDbType.BigInt,       8),
                new SqlParameter("@CustName",           SqlDbType.NVarChar,    50),
                new SqlParameter("@RoomID",             SqlDbType.BigInt,       8),
                new SqlParameter("@RoomSign",           SqlDbType.NVarChar,    50),
                new SqlParameter("@SuggestionsType",    SqlDbType.NVarChar,    50),
                new SqlParameter("@SuggestionsTitle",   SqlDbType.NVarChar,   200),
                new SqlParameter("@SuggestionsContent", SqlDbType.NVarChar,  2000),
                new SqlParameter("@IssueDate",          SqlDbType.DateTime),
                new SqlParameter("@LinkPhone",          SqlDbType.NVarChar,    80),
                new SqlParameter("@SuggestionsImages",  SqlDbType.NVarChar,  2000),
                new SqlParameter("@ReplyStats",         SqlDbType.NVarChar,    50),
                new SqlParameter("@ReplyDate",          SqlDbType.DateTime),
                new SqlParameter("@ReplyContent",       SqlDbType.NVarChar,  2000),
                new SqlParameter("@CustEvaluation",     SqlDbType.NVarChar,   500),
                new SqlParameter("@EvaluationDate",     SqlDbType.DateTime),
                new SqlParameter("@IsDelete",           SqlDbType.Int,          4),
                new SqlParameter("@EvaluationLevel",    SqlDbType.Int, 4)
            };
            parameters[0].Value  = model.SuggestionsID;
            parameters[1].Value  = model.CommID;
            parameters[2].Value  = model.CustID;
            parameters[3].Value  = model.CustName;
            parameters[4].Value  = model.RoomID;
            parameters[5].Value  = model.RoomSign;
            parameters[6].Value  = model.SuggestionsType;
            parameters[7].Value  = model.SuggestionsTitle;
            parameters[8].Value  = model.SuggestionsContent;
            parameters[9].Value  = model.IssueDate;
            parameters[10].Value = model.LinkPhone;
            parameters[11].Value = model.SuggestionsImages;
            parameters[12].Value = model.ReplyStats;
            parameters[13].Value = model.ReplyDate;
            parameters[14].Value = model.ReplyContent;
            parameters[15].Value = model.CustEvaluation;
            parameters[16].Value = model.EvaluationDate;
            parameters[17].Value = model.IsDelete;
            parameters[18].Value = model.EvaluationLevel;


            DbHelperSQL.RunProcedure("Proc_Tb_HSPR_CommunitySuggestions_ADD", parameters, out rowsAffected);
        }
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public MobileSoft.Model.HSPR.Tb_HSPR_CommunitySuggestions GetModel(string SuggestionsID)
        {
            SqlParameter[] parameters =
            {
                new SqlParameter("@SuggestionsID", SqlDbType.NVarChar, 50)
            };
            parameters[0].Value = SuggestionsID;

            MobileSoft.Model.HSPR.Tb_HSPR_CommunitySuggestions model = new MobileSoft.Model.HSPR.Tb_HSPR_CommunitySuggestions();
            DataSet ds = DbHelperSQL.RunProcedure("Proc_Tb_HSPR_CommunitySuggestions_GetModel", parameters, "ds");

            if (ds.Tables[0].Rows.Count > 0)
            {
                model.SuggestionsID = ds.Tables[0].Rows[0]["SuggestionsID"].ToString();
                if (ds.Tables[0].Rows[0]["CommID"].ToString() != "")
                {
                    model.CommID = long.Parse(ds.Tables[0].Rows[0]["CommID"].ToString());
                }
                if (ds.Tables[0].Rows[0]["CustID"].ToString() != "")
                {
                    model.CustID = long.Parse(ds.Tables[0].Rows[0]["CustID"].ToString());
                }
                model.CustName = ds.Tables[0].Rows[0]["CustName"].ToString();
                if (ds.Tables[0].Rows[0]["RoomID"].ToString() != "")
                {
                    model.RoomID = long.Parse(ds.Tables[0].Rows[0]["RoomID"].ToString());
                }
                model.RoomSign           = ds.Tables[0].Rows[0]["RoomSign"].ToString();
                model.SuggestionsType    = ds.Tables[0].Rows[0]["SuggestionsType"].ToString();
                model.SuggestionsTitle   = ds.Tables[0].Rows[0]["SuggestionsTitle"].ToString();
                model.SuggestionsContent = ds.Tables[0].Rows[0]["SuggestionsContent"].ToString();
                if (ds.Tables[0].Rows[0]["IssueDate"].ToString() != "")
                {
                    model.IssueDate = DateTime.Parse(ds.Tables[0].Rows[0]["IssueDate"].ToString());
                }
                model.LinkPhone         = ds.Tables[0].Rows[0]["LinkPhone"].ToString();
                model.SuggestionsImages = ds.Tables[0].Rows[0]["SuggestionsImages"].ToString();
                model.ReplyStats        = ds.Tables[0].Rows[0]["ReplyStats"].ToString();
                if (ds.Tables[0].Rows[0]["ReplyDate"].ToString() != "")
                {
                    model.ReplyDate = DateTime.Parse(ds.Tables[0].Rows[0]["ReplyDate"].ToString());
                }
                model.ReplyContent   = ds.Tables[0].Rows[0]["ReplyContent"].ToString();
                model.CustEvaluation = ds.Tables[0].Rows[0]["CustEvaluation"].ToString();
                if (ds.Tables[0].Rows[0]["EvaluationDate"].ToString() != "")
                {
                    model.EvaluationDate = DateTime.Parse(ds.Tables[0].Rows[0]["EvaluationDate"].ToString());
                }
                if (ds.Tables[0].Rows[0]["IsDelete"].ToString() != "")
                {
                    model.IsDelete = int.Parse(ds.Tables[0].Rows[0]["IsDelete"].ToString());
                }
                if (ds.Tables[0].Rows[0]["EvaluationLevel"].ToString() != "")
                {
                    model.EvaluationLevel = int.Parse(ds.Tables[0].Rows[0]["EvaluationLevel"].ToString());
                }
                return(model);
            }
            else
            {
                return(null);
            }
        }