using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Web;
|
using System.Web.UI;
|
using System.Web.UI.WebControls;
|
using CY.BLL;
|
using CY.Infrastructure.DESEncrypt;
|
using CY.Config;
|
|
namespace CY.WebForm.Pages.sysglobal
|
{
|
//吴辉
|
//公告设置
|
public partial class AnnouncementConfig : BasePage
|
{
|
//页面加载
|
protected void Page_Load(object sender, EventArgs e)
|
{
|
if (!IsPostBack)
|
{
|
this.txtAnnouncementDetail.Value = WebInfo.Instance.AnnouncementDetail;
|
this.selIsUseAnnouncement.Value = WebInfo.Instance.IsUseAnnouncement;
|
}
|
}
|
|
//提交表单
|
protected void btn_Submit_Config(object sender, EventArgs e)
|
{
|
try
|
{
|
WebInfo.Instance.AnnouncementDetail = this.txtAnnouncementDetail.Value.ToString();
|
WebInfo.Instance.IsUseAnnouncement = this.selIsUseAnnouncement.Value.ToString();
|
WebInfo.Instance.Update();
|
}
|
catch (Exception ex)
|
{
|
PAGEHandleException(ex);
|
JavaScript.MessageBox("操作失败", this);
|
}
|
JavaScript.MessageBox("操作成功", this);
|
}
|
}
|
}
|