using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using CY.Infrastructure.Cache;
|
using System.Xml;
|
using System.Web;
|
using CY.Infrastructure.Common;
|
using System.Text.RegularExpressions;
|
using System.Collections;
|
|
namespace CY.Config
|
{
|
public class WebInfo : BaseConfig
|
{
|
|
private static ICacheStrategy cache = null;
|
private static WebInfo instance;
|
private static string cacheKey = "WebInfo";
|
|
static WebInfo()
|
{
|
CacheFactory.InitializeCacheFactory(new DefaultCacheStrategy());
|
cache = CacheFactory.GetCacher();
|
}
|
//public ArrayList _ForbidIP
|
//{
|
// get
|
// {
|
// ArrayList list = new ArrayList();
|
// this.ForbidIP = this.forbidIP.Trim();
|
// if (!this.forbidIP.Equals(""))
|
// {
|
// foreach (string str in this.forbidIP.Split(new char[] { '|' }))
|
// {
|
// list.Add(str);
|
// }
|
// }
|
// return list;
|
// }
|
//}
|
|
/// <summary>
|
/// 相关产品读取条数
|
/// </summary>
|
public int AboutInfoNum
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 相关新闻读取条数
|
/// </summary>
|
public int AboutNewsNum
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 用户充值信息短信内容
|
/// </summary>
|
public string AddMoneyMessageContent
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 用户充值信息短信标题
|
/// </summary>
|
public string AddMoneyMessageTitle
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 审核商业信息启用站内短信信息内容
|
/// </summary>
|
public string AuditingInfoMessageContent
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public string AuditingInfoMessageTitle
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public int BidKeyWordDefaultPercent
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public string BidMessageContent
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public string BidMessageTitle
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public bool BidMoneyType
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public string CookieDomain
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public bool EditInfoAuditingType
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 站长信箱
|
/// </summary>
|
public string Email
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 邮箱名称
|
/// </summary>
|
public string EmailLoginName
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 邮箱密码
|
/// </summary>
|
public string EmailPwd
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 邮箱服务器名称
|
/// </summary>
|
public string EmailServer
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 邮箱端口
|
/// </summary>
|
public string EmailPort
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 是否启用邮箱
|
/// </summary>
|
public string IsUseEmail
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 厂商初始条数
|
/// </summary>
|
public string FirmSMSCount
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 短信接口帐号
|
/// </summary>
|
public string SMSLoginName
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 短信接口密码
|
/// </summary>
|
public string SMSPwd
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 是否启用短信
|
/// </summary>
|
public string IsUseSMS
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public string ForbidIP
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public bool InfoEndTimeType
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public bool InsertInfoAuditingType
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public bool IsAddMoneyEmail
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public bool IsAddMoneyMessage
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public bool IsAuditingInfoEmail
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public bool IsAuditingInfoMessage
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public bool IsAuditingUserEmail
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public bool IsBidEmail
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public bool IsBidMessage
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public bool IsGuestLookLinkInfo
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public bool IsJobEmail
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public bool IsJobMessage
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public bool IsOrderEmail
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public bool IsOrderMessage
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 是否允许注册
|
/// </summary>
|
public bool IsRegister
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 是否允许QQ注册
|
/// </summary>
|
public bool IsRegisterQQ
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 注册验证方式
|
/// </summary>
|
public string RegisterVerificationType
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 注册初始授信等级
|
/// </summary>
|
public string RegisterCreditLine
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 注册初始买家诚信等级
|
/// </summary>
|
public string RegisterBuyerCreditLine
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 注册初始卖家诚信等级
|
/// </summary>
|
public string RegisterSellerCreditLine
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 可设置收货地址数
|
/// </summary>
|
public string AccepterAddressNumber
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 可设置银行卡信息数
|
/// </summary>
|
public string BankInfoNumber
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 印刷厂商注册简介
|
/// </summary>
|
public string FirmRegisterIntroduction
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 买家会员注册简介
|
/// </summary>
|
public string BuyerRegisterIntroduction
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人网店注册简介
|
/// </summary>
|
public string ShopRegisterIntroduction
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 询价配置 特种纸比例
|
/// </summary>
|
public float SuperPaper
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 询价配置 牛卡纸比例
|
/// </summary>
|
public float Linerboard
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 用户注册协议-买家会员
|
/// </summary>
|
public string UserRegisterAgreement_Buyer
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 用户注册协议-个人网店
|
/// </summary>
|
public string UserRegisterAgreement_Shop
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 用户注册协议-印刷厂商
|
/// </summary>
|
public string UserRegisterAgreement_Firm
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public decimal IssueInfoAddWebMoney
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public bool IsWaterMark
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public string JobMessageContent
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public string JobMessageTitle
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public string OrderMessageContent
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public string OrderMessageTitle
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public decimal RefreshInfoAddWebMoney
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public int SystemMessageNumber
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 允许上传文件大小
|
/// </summary>
|
public int UploadFileSize
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 允许上传的文件类型
|
/// </summary>
|
public string UploadFileType
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 缩略图1的尺寸
|
/// </summary>
|
public string UploadThumbnailImg1
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 缩略图2的尺寸
|
/// </summary>
|
public string UploadThumbnailImg2
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 缩略图3的尺寸
|
/// </summary>
|
public string UploadThumbnailImg3
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 缩略图的文件夹
|
/// </summary>
|
public string UploadThumbnailImgFolder
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public string ValidateCodeItemStr
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public string WaterMarkColor
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public string WaterMarkContent
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public string WaterMarkFont
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public int WaterMarkFontSize
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public string WaterMarkPicBgColor
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public float WaterMarkPicDiaphaneity
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public string WaterMarkPicPlace
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public string WaterMarkPicURL
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public string WaterMarkPlace
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public int WaterMarkType
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///
|
/// </summary>
|
public string WebMoneyName
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 网站名称
|
/// </summary>
|
public string WebName
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 网站域名
|
/// </summary>
|
public string WebDomain
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 网站伪后缀名称
|
/// </summary>
|
public string WebSuffix
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 启用伪静态
|
/// </summary>
|
public bool IsBogusStatic
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 静态页面后缀名
|
/// </summary>
|
public string StaticPageSuffix
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 是否启用二级域名(true表启用,false表不启用)
|
/// </summary>
|
public bool IsDomain
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 后台管理地址
|
/// </summary>
|
public string AdminFolder
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 网站图标
|
/// </summary>
|
public string WebIco
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 网站Logo
|
/// </summary>
|
public string WebLogo
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 网站状态
|
/// </summary>
|
public string WebStatus
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 网站SEO标题
|
/// </summary>
|
public string WebSEOTitle
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 网站SEO关键词
|
/// </summary>
|
public string WebSEOKeyword
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 网站SEO描述
|
/// </summary>
|
public string WebSEODetail
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 关闭网站提示
|
/// </summary>
|
public string WebCloseMessage
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 网站默认图片
|
/// </summary>
|
public string WebDefaultImg
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 公告内容
|
/// </summary>
|
public string AnnouncementDetail
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 启用公告
|
/// </summary>
|
public string IsUseAnnouncement
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 财付通商户号
|
/// </summary>
|
public string Tenpay_account
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 财付通密钥
|
/// </summary>
|
public string Tenpay_key
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 厂商订单中介费用
|
/// </summary>
|
public string FirmOrderAgencyFee
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 提现最低金额
|
/// </summary>
|
public string CashMinMoney
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 分站地区名称
|
/// </summary>
|
public string WebCityName
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 分站地区Id
|
/// </summary>
|
public int? WebCityId
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 分站省名称
|
/// </summary>
|
public string WebProvinceName
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 分站省Id
|
/// </summary>
|
public int? WebProvinceId
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 版本号
|
/// </summary>
|
public string VersionNumber
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 对公账户开户行
|
/// </summary>
|
public string Bankofdeposit
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 对公账户名
|
/// </summary>
|
public string AccountName
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 对公账户号
|
/// </summary>
|
public string AccountNum
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 厂商注册金额(1年)
|
/// </summary>
|
public decimal RegisterWebPayByFirm
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人网店担保金额
|
/// </summary>
|
public decimal RegisterWebPayByShop
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 缓存时间(分钟数)
|
/// </summary>
|
public int MAXCACHHOURS
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 厂商初始文件空间
|
/// </summary>
|
public int FirmFileCount
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 过滤非法输入,如:防止SQL注入,其他非法输入
|
/// </summary>
|
public string IllegalInput
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 厂商注册初始业务范围最多选择数
|
/// </summary>
|
public int MaxBusinessCountToFirm
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 网店注册初始业务范围最多选择数
|
/// </summary>
|
public int MaxBusinessCountToShop
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人所得税-起征金额
|
/// </summary>
|
public int TaxBasic
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人所得税-1级超出金额
|
/// </summary>
|
public int TaxLV1Over
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人所得税-1级税率
|
/// </summary>
|
public int TaxLV1Rate
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人所得税-1级速算扣除数
|
/// </summary>
|
public int TaxLV1Deduction
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人所得税-2级超出金额
|
/// </summary>
|
public int TaxLV2Over
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人所得税-2级税率
|
/// </summary>
|
public int TaxLV2Rate
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人所得税-2级速算扣除数
|
/// </summary>
|
public int TaxLV2Deduction
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人所得税-3级超出金额
|
/// </summary>
|
public int TaxLV3Over
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人所得税-3级税率
|
/// </summary>
|
public int TaxLV3Rate
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人所得税-3级速算扣除数
|
/// </summary>
|
public int TaxLV3Deduction
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人所得税-4级超出金额
|
/// </summary>
|
public int TaxLV4Over
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人所得税-4级税率
|
/// </summary>
|
public int TaxLV4Rate
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人所得税-4级速算扣除数
|
/// </summary>
|
public int TaxLV4Deduction
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人所得税-5级超出金额
|
/// </summary>
|
public int TaxLV5Over
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人所得税-5级税率
|
/// </summary>
|
public int TaxLV5Rate
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人所得税-5级速算扣除数
|
/// </summary>
|
public int TaxLV5Deduction
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人所得税-6级超出金额
|
/// </summary>
|
public int TaxLV6Over
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人所得税-6级税率
|
/// </summary>
|
public int TaxLV6Rate
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人所得税-6级速算扣除数
|
/// </summary>
|
public int TaxLV6Deduction
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人所得税-7级超出金额
|
/// </summary>
|
public int TaxLV7Over
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
///个人所得税-7级税率
|
/// </summary>
|
public int TaxLV7Rate
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 个人所得税-7级速算扣除数
|
/// </summary>
|
public int TaxLV7Deduction
|
{
|
get;
|
set;
|
}
|
|
private WebInfo()
|
{
|
}
|
|
/// <summary>
|
/// 加载配置文件,并加载缓存
|
/// </summary>
|
protected override void Init()
|
{
|
XmlDocument xml = new XmlDocument();
|
xml.Load(HttpContext.Current.Server.MapPath("~/Config/WebInfo.config"));
|
this.WebName = base.GetNodeValue(xml, "WebName");
|
this.WebDomain = base.GetNodeValue(xml, "WebDomain");
|
this.WebSuffix = base.GetNodeValue(xml, "WebSuffix");
|
this.IsBogusStatic = MyConvert.GetBoolean(base.GetNodeValue(xml, "IsBogusStatic"));
|
this.StaticPageSuffix = base.GetNodeValue(xml, "StaticPageSuffix");
|
this.IsDomain = MyConvert.GetBoolean(base.GetNodeValue(xml, "IsDomain"));
|
this.WebIco = base.GetNodeValue(xml, "WebIco");
|
this.WebLogo = base.GetNodeValue(xml, "WebLogo");
|
this.WebStatus = base.GetNodeValue(xml, "WebStatus");
|
this.WebSEOTitle = base.GetNodeValue(xml, "WebSEOTitle");
|
this.WebSEOKeyword = base.GetNodeValue(xml, "WebSEOKeyword");
|
this.WebSEODetail = base.GetNodeValue(xml, "WebSEODetail");
|
this.WebCloseMessage = base.GetNodeValue(xml, "WebCloseMessage");
|
this.WebDefaultImg = base.GetNodeValue(xml, "WebDefaultImg");
|
this.AnnouncementDetail = base.GetNodeValue(xml, "AnnouncementDetail");
|
this.IsUseAnnouncement = base.GetNodeValue(xml, "IsUseAnnouncement");
|
this.WebMoneyName = base.GetNodeValue(xml, "WebMoneyName");
|
this.UploadFileType = base.GetNodeValue(xml, "UploadFileType");
|
this.UploadFileSize = MyConvert.GetInt32(base.GetNodeValue(xml, "UploadFileSize"));
|
this.UploadThumbnailImgFolder = base.GetNodeValue(xml, "UploadThumbnailImgFolder");
|
this.UploadThumbnailImg1 = base.GetNodeValue(xml, "UploadThumbnailImg1");
|
this.UploadThumbnailImg2 = base.GetNodeValue(xml, "UploadThumbnailImg2");
|
this.UploadThumbnailImg3 = base.GetNodeValue(xml, "UploadThumbnailImg3");
|
this.Email = base.GetNodeValue(xml, "Email");
|
this.EmailServer = base.GetNodeValue(xml, "EmailServer");
|
this.EmailLoginName = base.GetNodeValue(xml, "EmailLoginName");
|
this.EmailPwd = base.GetNodeValue(xml, "EmailPwd");
|
this.EmailPort = base.GetNodeValue(xml, "EmailPort");
|
this.IsUseEmail = base.GetNodeValue(xml, "IsUseEmail");
|
this.SMSLoginName = base.GetNodeValue(xml, "SMSLoginName");
|
this.SMSPwd = base.GetNodeValue(xml, "SMSPwd");
|
this.IsUseSMS = base.GetNodeValue(xml, "IsUseSMS");
|
this.FirmSMSCount = base.GetNodeValue(xml, "FirmSMSCount");
|
this.IsWaterMark = MyConvert.GetBoolean(base.GetNodeValue(xml, "IsWaterMark"));
|
this.WaterMarkType = MyConvert.GetInt32(base.GetNodeValue(xml, "WaterMarkType"));
|
this.WaterMarkContent = base.GetNodeValue(xml, "WaterMarkContent");
|
this.WaterMarkFont = base.GetNodeValue(xml, "WaterMarkFont");
|
this.WaterMarkFontSize = MyConvert.GetInt32(base.GetNodeValue(xml, "WaterMarkFontSize"));
|
this.WaterMarkPlace = base.GetNodeValue(xml, "WaterMarkPlace");
|
this.WaterMarkColor = base.GetNodeValue(xml, "WaterMarkColor");
|
this.WaterMarkPicURL = base.GetNodeValue(xml, "WaterMarkPicURL");
|
this.WaterMarkPicPlace = base.GetNodeValue(xml, "WaterMarkPicPlace");
|
this.WaterMarkPicDiaphaneity = MyConvert.GetFloat(base.GetNodeValue(xml, "WaterMarkPicDiaphaneity"));
|
this.SuperPaper = MyConvert.GetFloat(base.GetNodeValue(xml, "SuperPaper"));
|
this.Linerboard = MyConvert.GetFloat(base.GetNodeValue(xml, "Linerboard"));
|
this.WaterMarkPicBgColor = base.GetNodeValue(xml, "WaterMarkPicBgColor");
|
this.IsRegister = MyConvert.GetBoolean(base.GetNodeValue(xml, "IsRegister"));
|
this.IsRegisterQQ = MyConvert.GetBoolean(base.GetNodeValue(xml, "IsRegisterQQ"));
|
this.RegisterVerificationType = base.GetNodeValue(xml, "RegisterVerificationType");
|
this.AccepterAddressNumber = base.GetNodeValue(xml, "AccepterAddressNumber");
|
this.BankInfoNumber = base.GetNodeValue(xml, "BankInfoNumber");
|
this.RegisterCreditLine = base.GetNodeValue(xml, "RegisterCreditLine");
|
this.RegisterBuyerCreditLine = base.GetNodeValue(xml, "RegisterBuyerCreditLine");
|
this.RegisterSellerCreditLine = base.GetNodeValue(xml, "RegisterSellerCreditLine");
|
this.FirmRegisterIntroduction = base.GetNodeValue(xml, "FirmRegisterIntroduction");
|
this.BuyerRegisterIntroduction = base.GetNodeValue(xml, "BuyerRegisterIntroduction");
|
this.ShopRegisterIntroduction = base.GetNodeValue(xml, "ShopRegisterIntroduction");
|
this.UserRegisterAgreement_Buyer = base.GetNodeValue(xml, "UserRegisterAgreement_Buyer");
|
this.UserRegisterAgreement_Shop = base.GetNodeValue(xml, "UserRegisterAgreement_Shop");
|
this.UserRegisterAgreement_Firm = base.GetNodeValue(xml, "UserRegisterAgreement_Firm");
|
this.IssueInfoAddWebMoney = MyConvert.GetInt32(base.GetNodeValue(xml, "IssueInfoAddWebMoney"));
|
this.EditInfoAuditingType = MyConvert.GetBoolean(base.GetNodeValue(xml, "EditInfoAuditingType"));
|
this.InsertInfoAuditingType = MyConvert.GetBoolean(base.GetNodeValue(xml, "InsertInfoAuditingType"));
|
this.RefreshInfoAddWebMoney = MyConvert.GetDecimal(base.GetNodeValue(xml, "RefreshInfoAddWebMoney"));
|
this.InfoEndTimeType = MyConvert.GetBoolean(base.GetNodeValue(xml, "InfoEndTimeType"));
|
this.IsAuditingInfoEmail = MyConvert.GetBoolean(base.GetNodeValue(xml, "IsAuditingInfoEmail"));
|
this.IsAuditingInfoMessage = MyConvert.GetBoolean(base.GetNodeValue(xml, "IsAuditingInfoMessage"));
|
this.AuditingInfoMessageTitle = base.GetNodeValue(xml, "AuditingInfoMessageTitle");
|
this.AuditingInfoMessageContent = base.GetNodeValue(xml, "AuditingInfoMessageContent");
|
this.IsAuditingUserEmail = MyConvert.GetBoolean(base.GetNodeValue(xml, "IsAuditingUserEmail"));
|
this.IsGuestLookLinkInfo = MyConvert.GetBoolean(base.GetNodeValue(xml, "IsGuestLookLinkInfo"));
|
this.IsJobEmail = MyConvert.GetBoolean(base.GetNodeValue(xml, "IsJobEmail"));
|
this.IsAddMoneyEmail = MyConvert.GetBoolean(base.GetNodeValue(xml, "IsAddMoneyEmail"));
|
this.IsJobMessage = MyConvert.GetBoolean(base.GetNodeValue(xml, "IsJobMessage"));
|
this.JobMessageTitle = base.GetNodeValue(xml, "JobMessageTitle");
|
this.JobMessageContent = base.GetNodeValue(xml, "JobMessageContent");
|
this.IsBidEmail = MyConvert.GetBoolean(base.GetNodeValue(xml, "IsBidEmail"));
|
this.IsBidMessage = MyConvert.GetBoolean(base.GetNodeValue(xml, "IsBidMessage"));
|
this.BidMessageTitle = base.GetNodeValue(xml, "BidMessageTitle");
|
this.BidMessageContent = base.GetNodeValue(xml, "BidMessageContent");
|
this.BidKeyWordDefaultPercent = MyConvert.GetInt32(base.GetNodeValue(xml, "BidKeyWordDefaultPercent"));
|
this.BidMoneyType = MyConvert.GetBoolean(base.GetNodeValue(xml, "BidMoneyType"));
|
this.IsAddMoneyMessage = MyConvert.GetBoolean(base.GetNodeValue(xml, "IsAddMoneyMessage"));
|
this.AddMoneyMessageTitle = base.GetNodeValue(xml, "AddMoneyMessageTitle");
|
this.AddMoneyMessageContent = base.GetNodeValue(xml, "AddMoneyMessageContent");
|
this.IsOrderEmail = MyConvert.GetBoolean(base.GetNodeValue(xml, "IsOrderEmail"));
|
this.IsOrderMessage = MyConvert.GetBoolean(base.GetNodeValue(xml, "IsOrderMessage"));
|
this.OrderMessageTitle = base.GetNodeValue(xml, "OrderMessageTitle");
|
this.OrderMessageContent = base.GetNodeValue(xml, "OrderMessageContent");
|
this.SystemMessageNumber = MyConvert.GetInt32(base.GetNodeValue(xml, "SystemMessageNumber"));
|
this.AdminFolder = base.GetNodeValue(xml, "AdminFolder");
|
this.AboutInfoNum = MyConvert.GetInt32(base.GetNodeValue(xml, "AboutInfoNum"));
|
this.AboutNewsNum = MyConvert.GetInt32(base.GetNodeValue(xml, "AboutNewsNum"));
|
this.ValidateCodeItemStr = base.GetNodeValue(xml, "ValidateCodeItem");
|
this.ForbidIP = base.GetNodeValue(xml, "ForbidIP");
|
this.Tenpay_account = base.GetNodeValue(xml, "Tenpay_account");
|
this.Tenpay_key = base.GetNodeValue(xml, "Tenpay_key");
|
this.FirmOrderAgencyFee = base.GetNodeValue(xml, "FirmOrderAgencyFee");
|
this.CashMinMoney = base.GetNodeValue(xml, "CashMinMoney");
|
this.CookieDomain = base.GetNodeValue(xml, "CookieDomain");
|
this.WebCityName = base.GetNodeValue(xml, "WebCityName");
|
this.WebCityId = MyConvert.GetInt32(base.GetNodeValue(xml, "WebCityId"));
|
this.WebProvinceName = base.GetNodeValue(xml, "WebProvinceName");
|
this.WebProvinceId = MyConvert.GetInt32(base.GetNodeValue(xml, "WebProvinceId"));
|
this.VersionNumber = base.GetNodeValue(xml, "VersionNumber");
|
this.Bankofdeposit = base.GetNodeValue(xml, "Bankofdeposit");
|
this.AccountName = base.GetNodeValue(xml, "AccountName");
|
this.AccountNum = base.GetNodeValue(xml, "AccountNum");
|
this.RegisterWebPayByFirm = MyConvert.ConvertToDecimal(base.GetNodeValue(xml, "RegisterWebPayByFirm")).Value;
|
this.RegisterWebPayByShop = MyConvert.ConvertToDecimal(base.GetNodeValue(xml, "RegisterWebPayByShop")).Value;
|
this.FirmFileCount = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "FirmFileCount")).Value;
|
this.MAXCACHHOURS = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "MAXCACHHOURS")).Value;
|
this.IllegalInput = MyConvert.ConvertToString(base.GetNodeValue(xml, "IllegalInput"));
|
this.MaxBusinessCountToFirm = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "MaxBusinessCountToFirm")).Value;
|
this.MaxBusinessCountToShop = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "MaxBusinessCountToShop")).Value;
|
this.TaxBasic = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "TaxBasic")).Value;
|
this.TaxLV1Over = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "TaxLV1Over")).Value;
|
this.TaxLV1Rate = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "TaxLV1Rate")).Value;
|
this.TaxLV1Deduction = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "TaxLV1Deduction")).Value;
|
this.TaxLV2Over = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "TaxLV2Over")).Value;
|
this.TaxLV2Rate = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "TaxLV2Rate")).Value;
|
this.TaxLV2Deduction = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "TaxLV2Deduction")).Value;
|
this.TaxLV3Over = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "TaxLV3Over")).Value;
|
this.TaxLV3Rate = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "TaxLV3Rate")).Value;
|
this.TaxLV3Deduction = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "TaxLV3Deduction")).Value;
|
this.TaxLV4Over = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "TaxLV4Over")).Value;
|
this.TaxLV4Rate = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "TaxLV4Rate")).Value;
|
this.TaxLV4Deduction = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "TaxLV4Deduction")).Value;
|
this.TaxLV5Over = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "TaxLV5Over")).Value;
|
this.TaxLV5Rate = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "TaxLV5Rate")).Value;
|
this.TaxLV5Deduction = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "TaxLV5Deduction")).Value;
|
this.TaxLV6Over = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "TaxLV6Over")).Value;
|
this.TaxLV6Rate = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "TaxLV6Rate")).Value;
|
this.TaxLV6Deduction = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "TaxLV6Deduction")).Value;
|
this.TaxLV7Over = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "TaxLV7Over")).Value;
|
this.TaxLV7Rate = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "TaxLV7Rate")).Value;
|
this.TaxLV7Deduction = MyConvert.ConvertToInt32(base.GetNodeValue(xml, "TaxLV7Deduction")).Value;
|
string filename = HttpContext.Current.Server.MapPath("~/config/webInfo.config");
|
if (cache.RetrieveObject(cacheKey) != null)
|
{
|
cache.RemoveObject(cacheKey);
|
}
|
string[] files = new string[] { filename };
|
cache.AddObjectWithFileChange(cacheKey, this, files);
|
}
|
|
/// <summary>
|
/// 验证
|
/// </summary>
|
/// <param name="item"></param>
|
/// <returns></returns>
|
public bool IsEnabledValidateCode(ValidateCodeItem item)
|
{
|
string str = "";
|
if (item == ValidateCodeItem.Register)
|
{
|
str = "register";
|
}
|
if (item == ValidateCodeItem.Login)
|
{
|
str = "login";
|
}
|
if (item == ValidateCodeItem.Comment)
|
{
|
str = "comment";
|
}
|
if (item == ValidateCodeItem.Message)
|
{
|
str = "message";
|
}
|
if (item == ValidateCodeItem.MakeTheOrder)
|
{
|
str = "order";
|
}
|
if (item == ValidateCodeItem.QuickPost)
|
{
|
str = "quickpost";
|
}
|
string str2 = Regex.Match(this.ValidateCodeItemStr, str + ",[(0,1)]").Groups[0].ToString();
|
if (!str2.Equals(""))
|
{
|
try
|
{
|
if (str2.Split(new char[] { ',' })[1].ToString().Equals("1"))
|
{
|
return true;
|
}
|
}
|
catch
|
{
|
}
|
}
|
return false;
|
}
|
|
/// <summary>
|
/// 验证
|
/// </summary>
|
/// <param name="item"></param>
|
/// <param name="isEnabled"></param>
|
public void SetValidateCodeIsEnabled(ValidateCodeItem item, bool isEnabled)
|
{
|
string str = "";
|
string str2 = isEnabled ? "1" : "0";
|
if (item == ValidateCodeItem.Register)
|
{
|
str = "register";
|
}
|
if (item == ValidateCodeItem.Login)
|
{
|
str = "login";
|
}
|
if (item == ValidateCodeItem.Comment)
|
{
|
str = "comment";
|
}
|
if (item == ValidateCodeItem.Message)
|
{
|
str = "message";
|
}
|
if (item == ValidateCodeItem.MakeTheOrder)
|
{
|
str = "order";
|
}
|
if (item == ValidateCodeItem.QuickPost)
|
{
|
str = "quickpost";
|
}
|
this.ValidateCodeItemStr = Regex.Replace(this.ValidateCodeItemStr, str + ",(0|1)", str + "," + str2);
|
}
|
|
/// <summary>
|
/// 修改配置文件,并保存
|
/// </summary>
|
/// <returns></returns>
|
public override bool Update()
|
{
|
bool flag;
|
XmlDocument xml = new XmlDocument();
|
xml.Load(HttpContext.Current.Server.MapPath("~/Config/WebInfo.config"));
|
base.SetNodeValue(xml, "WebName", this.WebName);
|
base.SetNodeValue(xml, "WebDomain", this.WebDomain);
|
base.SetNodeValue(xml, "WebSuffix", this.WebSuffix);
|
base.SetNodeValue(xml, "IsBogusStatic", this.IsBogusStatic);
|
base.SetNodeValue(xml, "StaticPageSuffix", this.StaticPageSuffix);
|
base.SetNodeValue(xml, "IsDomain", this.IsDomain);
|
base.SetNodeValue(xml, "WebIco", this.WebIco);
|
base.SetNodeValue(xml, "WebLogo", this.WebLogo);
|
base.SetNodeValue(xml, "WebStatus", this.WebStatus);
|
base.SetNodeValue(xml, "WebSEOTitle", this.WebSEOTitle);
|
base.SetNodeValue(xml, "WebSEOKeyword", this.WebSEOKeyword);
|
base.SetNodeValue(xml, "WebSEODetail", this.WebSEODetail);
|
base.SetNodeValue(xml, "WebCloseMessage", this.WebCloseMessage);
|
base.SetNodeValue(xml, "WebDefaultImg", this.WebDefaultImg);
|
base.SetNodeValue(xml, "AnnouncementDetail", this.AnnouncementDetail);
|
base.SetNodeValue(xml, "IsUseAnnouncement", this.IsUseAnnouncement);
|
base.SetNodeValue(xml, "WebMoneyName", this.WebMoneyName);
|
base.SetNodeValue(xml, "UploadFileType", this.UploadFileType);
|
base.SetNodeValue(xml, "UploadFileSize", this.UploadFileSize);
|
base.SetNodeValue(xml, "UploadThumbnailImgFolder", this.UploadThumbnailImgFolder);
|
base.SetNodeValue(xml, "UploadThumbnailImg1", this.UploadThumbnailImg1);
|
base.SetNodeValue(xml, "UploadThumbnailImg2", this.UploadThumbnailImg2);
|
base.SetNodeValue(xml, "UploadThumbnailImg3", this.UploadThumbnailImg3);
|
base.SetNodeValue(xml, "Email", this.Email);
|
base.SetNodeValue(xml, "EmailServer", this.EmailServer);
|
base.SetNodeValue(xml, "EmailLoginName", this.EmailLoginName);
|
base.SetNodeValue(xml, "EmailPwd", this.EmailPwd);
|
base.SetNodeValue(xml, "EmailPort", this.EmailPort);
|
base.SetNodeValue(xml, "IsUseEmail", this.IsUseEmail);
|
base.SetNodeValue(xml, "SMSLoginName", this.SMSLoginName);
|
base.SetNodeValue(xml, "SMSPwd", this.SMSPwd);
|
base.SetNodeValue(xml, "IsUseSMS", this.IsUseSMS);
|
base.SetNodeValue(xml, "FirmSMSCount", this.FirmSMSCount);
|
base.SetNodeValue(xml, "IsWaterMark", this.IsWaterMark);
|
base.SetNodeValue(xml, "WaterMarkType", this.WaterMarkType);
|
base.SetNodeValue(xml, "WaterMarkContent", this.WaterMarkContent);
|
base.SetNodeValue(xml, "WaterMarkFont", this.WaterMarkFont);
|
base.SetNodeValue(xml, "WaterMarkFontSize", this.WaterMarkFontSize);
|
base.SetNodeValue(xml, "WaterMarkPlace", this.WaterMarkPlace);
|
base.SetNodeValue(xml, "WaterMarkColor", this.WaterMarkColor);
|
base.SetNodeValue(xml, "WaterMarkPicURL", this.WaterMarkPicURL);
|
base.SetNodeValue(xml, "WaterMarkPicPlace", this.WaterMarkPicPlace);
|
base.SetNodeValue(xml, "WaterMarkPicDiaphaneity", this.WaterMarkPicDiaphaneity);
|
base.SetNodeValue(xml, "WaterMarkPicBgColor", this.WaterMarkPicBgColor);
|
base.SetNodeValue(xml, "IsRegister", this.IsRegister);
|
base.SetNodeValue(xml, "IsRegisterQQ", this.IsRegisterQQ);
|
base.SetNodeValue(xml, "RegisterVerificationType", this.RegisterVerificationType);
|
base.SetNodeValue(xml, "RegisterCreditLine", this.RegisterCreditLine);
|
base.SetNodeValue(xml, "RegisterBuyerCreditLine", this.RegisterBuyerCreditLine);
|
base.SetNodeValue(xml, "RegisterSellerCreditLine", this.RegisterSellerCreditLine);
|
base.SetNodeValue(xml, "AccepterAddressNumber", this.AccepterAddressNumber);
|
base.SetNodeValue(xml, "BankInfoNumber", this.BankInfoNumber);
|
base.SetNodeValue(xml, "FirmRegisterIntroduction", this.FirmRegisterIntroduction);
|
base.SetNodeValue(xml, "BuyerRegisterIntroduction", this.BuyerRegisterIntroduction);
|
base.SetNodeValue(xml, "ShopRegisterIntroduction", this.ShopRegisterIntroduction);
|
base.SetNodeValue(xml, "UserRegisterAgreement_Buyer", this.UserRegisterAgreement_Buyer);
|
base.SetNodeValue(xml, "UserRegisterAgreement_Shop", this.UserRegisterAgreement_Shop);
|
base.SetNodeValue(xml, "UserRegisterAgreement_Firm", this.UserRegisterAgreement_Firm);
|
base.SetNodeValue(xml, "IssueInfoAddWebMoney", this.IssueInfoAddWebMoney);
|
base.SetNodeValue(xml, "EditInfoAuditingType", this.EditInfoAuditingType);
|
base.SetNodeValue(xml, "InsertInfoAuditingType", this.InsertInfoAuditingType);
|
base.SetNodeValue(xml, "RefreshInfoAddWebMoney", this.RefreshInfoAddWebMoney);
|
base.SetNodeValue(xml, "InfoEndTimeType", this.InfoEndTimeType);
|
base.SetNodeValue(xml, "IsAuditingInfoEmail", this.IsAuditingInfoEmail);
|
base.SetNodeValue(xml, "IsAuditingInfoMessage", this.IsAuditingInfoMessage);
|
base.SetNodeValue(xml, "AuditingInfoMessageTitle", this.AuditingInfoMessageTitle);
|
base.SetNodeValue(xml, "AuditingInfoMessageContent", this.AuditingInfoMessageContent);
|
base.SetNodeValue(xml, "IsAuditingUserEmail", this.IsAuditingUserEmail);
|
base.SetNodeValue(xml, "IsGuestLookLinkInfo", this.IsGuestLookLinkInfo);
|
base.SetNodeValue(xml, "IsJobEmail", this.IsJobEmail);
|
base.SetNodeValue(xml, "IsAddMoneyEmail", this.IsAddMoneyEmail);
|
base.SetNodeValue(xml, "IsJobMessage", this.IsJobMessage);
|
base.SetNodeValue(xml, "JobMessageTitle", this.JobMessageTitle);
|
base.SetNodeValue(xml, "JobMessageContent", this.JobMessageContent);
|
base.SetNodeValue(xml, "SuperPaper", this.SuperPaper);
|
base.SetNodeValue(xml, "Linerboard", this.Linerboard);
|
base.SetNodeValue(xml, "IsBidEmail", this.IsBidEmail);
|
base.SetNodeValue(xml, "IsBidMessage", this.IsBidMessage);
|
base.SetNodeValue(xml, "BidMessageTitle", this.BidMessageTitle);
|
base.SetNodeValue(xml, "BidMessageContent", this.BidMessageContent);
|
base.SetNodeValue(xml, "BidKeyWordDefaultPercent", this.BidKeyWordDefaultPercent);
|
base.SetNodeValue(xml, "BidMoneyType", this.BidMoneyType);
|
base.SetNodeValue(xml, "IsAddMoneyMessage", this.IsAddMoneyMessage);
|
base.SetNodeValue(xml, "AddMoneyMessageTitle", this.AddMoneyMessageTitle);
|
base.SetNodeValue(xml, "AddMoneyMessageContent", this.AddMoneyMessageContent);
|
base.SetNodeValue(xml, "IsOrderEmail", this.IsOrderEmail);
|
base.SetNodeValue(xml, "IsOrderMessage", this.IsOrderMessage);
|
base.SetNodeValue(xml, "OrderMessageTitle", this.OrderMessageTitle);
|
base.SetNodeValue(xml, "OrderMessageContent", this.OrderMessageContent);
|
base.SetNodeValue(xml, "SystemMessageNumber", this.SystemMessageNumber);
|
base.SetNodeValue(xml, "AboutInfoNum", this.AboutInfoNum);
|
base.SetNodeValue(xml, "AboutNewsNum", this.AboutNewsNum);
|
base.SetNodeValue(xml, "ValidateCodeItem", this.ValidateCodeItemStr);
|
base.SetNodeValue(xml, "ForbidIP", this.ForbidIP);
|
base.SetNodeValue(xml, "Tenpay_account", this.Tenpay_account);
|
base.SetNodeValue(xml, "Tenpay_key", this.Tenpay_key);
|
base.SetNodeValue(xml, "FirmOrderAgencyFee", this.FirmOrderAgencyFee);
|
base.SetNodeValue(xml, "CashMinMoney", this.CashMinMoney);
|
base.SetNodeValue(xml, "CookieDomain", this.CookieDomain);
|
base.SetNodeValue(xml, "WebCityName", this.WebCityName);
|
base.SetNodeValue(xml, "WebCityId", this.WebCityId.ToString2());
|
base.SetNodeValue(xml, "WebProvinceName", this.WebProvinceName);
|
base.SetNodeValue(xml, "WebProvinceId", this.WebProvinceId.ToString2());
|
base.SetNodeValue(xml, "VersionNumber", this.VersionNumber);
|
base.SetNodeValue(xml, "Bankofdeposit", this.Bankofdeposit);
|
base.SetNodeValue(xml, "AccountName", this.AccountName);
|
base.SetNodeValue(xml, "AccountNum", this.AccountNum);
|
base.SetNodeValue(xml, "RegisterWebPayByFirm", this.RegisterWebPayByFirm.ToString2());
|
base.SetNodeValue(xml, "RegisterWebPayByShop", this.RegisterWebPayByShop.ToString2());
|
base.SetNodeValue(xml, "FirmFileCount", this.FirmFileCount.ToString2());
|
base.SetNodeValue(xml, "MAXCACHHOURS", this.MAXCACHHOURS.ToString2());
|
base.SetNodeValue(xml, "IllegalInput", this.IllegalInput);
|
base.SetNodeValue(xml, "MaxBusinessCountToFirm", this.MaxBusinessCountToFirm.ToString2());
|
base.SetNodeValue(xml, "MaxBusinessCountToShop", this.MaxBusinessCountToShop.ToString2());
|
base.SetNodeValue(xml, "TaxBasic", this.TaxBasic.ToString2());
|
base.SetNodeValue(xml, "TaxLV1Over", this.TaxLV1Over.ToString2());
|
base.SetNodeValue(xml, "TaxLV1Rate", this.TaxLV1Rate.ToString2());
|
base.SetNodeValue(xml, "TaxLV1Deduction", this.TaxLV1Deduction.ToString2());
|
base.SetNodeValue(xml, "TaxLV2Over", this.TaxLV2Over.ToString2());
|
base.SetNodeValue(xml, "TaxLV2Rate", this.TaxLV2Rate.ToString2());
|
base.SetNodeValue(xml, "TaxLV2Deduction", this.TaxLV2Deduction.ToString2());
|
base.SetNodeValue(xml, "TaxLV3Over", this.TaxLV3Over.ToString2());
|
base.SetNodeValue(xml, "TaxLV3Rate", this.TaxLV3Rate.ToString2());
|
base.SetNodeValue(xml, "TaxLV3Deduction", this.TaxLV3Deduction.ToString2());
|
base.SetNodeValue(xml, "TaxLV4Over", this.TaxLV4Over.ToString2());
|
base.SetNodeValue(xml, "TaxLV4Rate", this.TaxLV4Rate.ToString2());
|
base.SetNodeValue(xml, "TaxLV4Deduction", this.TaxLV4Deduction.ToString2());
|
base.SetNodeValue(xml, "TaxLV5Over", this.TaxLV5Over.ToString2());
|
base.SetNodeValue(xml, "TaxLV5Rate", this.TaxLV5Rate.ToString2());
|
base.SetNodeValue(xml, "TaxLV5Deduction", this.TaxLV5Deduction.ToString2());
|
base.SetNodeValue(xml, "TaxLV6Over", this.TaxLV6Over.ToString2());
|
base.SetNodeValue(xml, "TaxLV6Rate", this.TaxLV6Rate.ToString2());
|
base.SetNodeValue(xml, "TaxLV6Deduction", this.TaxLV6Deduction.ToString2());
|
base.SetNodeValue(xml, "TaxLV7Over", this.TaxLV7Over.ToString2());
|
base.SetNodeValue(xml, "TaxLV7Rate", this.TaxLV7Rate.ToString2());
|
base.SetNodeValue(xml, "TaxLV7Deduction", this.TaxLV7Deduction.ToString2());
|
try
|
{
|
xml.Save(HttpContext.Current.Server.MapPath("~/Config/WebInfo.config"));
|
flag = true;
|
}
|
catch
|
{
|
flag = false;
|
}
|
finally
|
{
|
base.Refresh();
|
}
|
return flag;
|
}
|
|
/// <summary>
|
/// 获取WebInfo的实例
|
/// </summary>
|
public static WebInfo Instance
|
{
|
get
|
{
|
if (cache.RetrieveObject(cacheKey) == null)
|
{
|
instance = new WebInfo();
|
}
|
else
|
{
|
instance = (WebInfo)cache.RetrieveObject(cacheKey);
|
}
|
return instance;
|
}
|
}
|
}
|
}
|