1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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);
        }
    }
}