/// <summary>
        /// 更新字典内容
        /// </summary>
        /// <returns></returns>
        public void UpdateDictContent(DictManageData dictData)
        {
            string sj字典信息 = JsonHelper.SerializeObject(dictData.字典信息);

            SQL sql = SqlHelper.CreateSQL("更新字典内容", "Update 影像字典信息 " +
                                          " Set 字典信息=:字典信息 where 字典名称=:字典名称");

            sql.AddParameter("字典名称", DbType.String, dictData.字典名称);
            sql.AddParameter("字典信息", DbType.String, sj字典信息);

            _dbHelper.ExecuteSQL(sql);
        }
示例#2
0
        /// <summary>
        /// 更新字典内容
        /// </summary>
        /// <returns></returns>
        public void UpdateDictContent(DictManageData dictInfo)
        {
            string sql = "Update 影像字典信息 " +
                         " Set 字典信息=:字典信息 where 字典名称=:字典名称";

            sql = SqlHelper.GetSqlBiz().GetSqlContext("更新科室角色信息", sql);

            //SqlParamInfo sqlPars =  new SqlParamInfo("角色信息", DbType.String, dictInfo.字典信息.ToString());
            SqlParamInfo [] sqlPars = new SqlParamInfo[] { new SqlParamInfo("字典名称", DbType.String, dictInfo.字典信息.ToString()) };
            //return _dbHelper.ExecuteSQL(sql, new SqlParamInfo[] { new SqlParamInfo("字典名称", DbType.String, sDicName) });

            _dbHelper.ExecuteSQL(sql, sqlPars);
        }