Song.Site/Manage/Content/NewsSetup.aspx.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using WeiSha.Common;
using Song.ServiceInterfaces;
using Song.Entities;
using WeiSha.WebControl;
namespace Song.Site.Manage.Content
{
public partial class NewsSetup : Extend.CustomPage
{
private string _uppath = "News";
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
fill();
}
}
private void fill()
{
//新闻最大置顶数
tbMaxTop.Text = Extend.Global.Value["NewsMaxTop"].String;
//新闻最大推荐数
tbMaxRec.Text = Extend.Global.Value["NewsMaxRec"].String;
//是否需要审核
cbIsVerify.Checked = Extend.Global.Value["NewsIsVerify"].Boolean ?? true;
//修改后,是否需要重新审核
this.cbIsReVeri.Checked = Extend.Global.Value["NewsIsReVeri"].Boolean ?? false;
//新闻的常用来源
tbSource.Text = Extend.Global.Value["NewsSourceItem"].String;
//文章二维码
tbArtQrWH.Text = Extend.Global.Value["NewsArt_QrCode_WidthAndHeight"].String;
tbArtQrTextTmp.Text = Extend.Global.Value["NewsArt_QrCode_Template"].String;
//专题二维码
tbSpecQrWH.Text = Extend.Global.Value["NewsSpec_QrCode_WidthAndHeight"].String;
tbSpecQrTextTmp.Text = Extend.Global.Value["NewsSpec_QrCode_Template"].String;
}
/// <summary>
/// 修改
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnEnter_Click(object sender, EventArgs e)
{
try
{
Business.Do<ISystemPara>().Save("NewsMaxTop", tbMaxTop.Text.Trim(), false);
Business.Do<ISystemPara>().Save("NewsMaxRec", tbMaxRec.Text.Trim(), false);
Business.Do<ISystemPara>().Save("NewsIsVerify", cbIsVerify.Checked.ToString(), false);
后面还有 163 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
