using System;
using System.Collections.Generic;
using System.Text;
using Fm.DataAccess;
using System.Data;
using System.Data.Common;

namespace Fm.Bussiness
{
    public class sys_webset
    {
        /// <summary>
        /// 修改网站基本设置
        /// </summary>
        /// <param name="webname">网站名称</param>
        /// <param name="weburl">网站地址</param>
        /// <param name="indexname">首页连接名</param>
        /// <param name="uppath">上传目录</param>
        /// <param name="keyword">站点关键字</param>
        /// <param name="intro">站点描述</param>
        /// <param name="banquan">版权信息</param>
        /// <param name="beian">备案号</param>
        /// <returns></returns>
        public bool Webset_Update(Fm.EntityClass.Webset webset)
        {
            string sqlstr = "update Fm_webset set webname='"+webset.webname+"',weburl='"+webset.weburl+"',title='"+webset.title+"',uppath='"+webset.uppath+"',keyword='"+webset.keyword+"',intro='"+webset.intro+"',banquan='"+webset.banquan+"',beian='"+webset.beian+"',member="+webset.member+",tougao="+webset.tougao+",html='"+webset.html+"' where sid=1";
            DbCommand db = DataAccess.DataAccess.db.GetSqlStringCommand(sqlstr);
            
            return DataAccess.DataAccess.GetData.Query<DbCommand>(db);
          
        }
    }
}
