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;
|
using CY.Infrastructure.Common;
|
namespace CY.WebForm.Pages.sysglobal
|
{
|
//吴辉
|
//短信设置
|
public partial class SMSConfig : BasePage
|
{
|
//短信平台密码 赋值使用
|
public string page_SMSPwd = "";
|
|
//页面加载
|
protected void Page_Load(object sender, EventArgs e)
|
{
|
if (!IsPostBack)
|
{
|
page_SMSPwd = DESEncrypt.Decrypt(WebInfo.Instance.SMSPwd);
|
this.txtSMSLoginName.Value = WebInfo.Instance.SMSLoginName;
|
this.selIsUseSMS.Value = WebInfo.Instance.IsUseSMS;
|
this.SMSNowCount.InnerText = CY.SendMessage.SendMessge.GetBalance().ToString2()+ "条";
|
}
|
}
|
|
//表单提交
|
protected void btn_Submit_Config(object sender, EventArgs e)
|
{
|
try
|
{
|
WebInfo.Instance.SMSLoginName = this.txtSMSLoginName.Value.ToString();
|
WebInfo.Instance.SMSPwd = DESEncrypt.Encrypt(this.txtSMSPwd.Value.ToString());
|
page_SMSPwd = this.txtSMSPwd.Value.ToString();
|
WebInfo.Instance.IsUseSMS = this.selIsUseSMS.Value.ToString();
|
WebInfo.Instance.Update();
|
}
|
catch (Exception ex)
|
{
|
PAGEHandleException(ex);
|
JavaScript.MessageBox("操作失败", this);
|
}
|
JavaScript.MessageBox("操作成功", this);
|
}
|
}
|
}
|