56 lines
1.8 KiB
C#
56 lines
1.8 KiB
C#
|
using Model;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Web;
|
|||
|
using System.Web.UI;
|
|||
|
using System.Web.UI.WebControls;
|
|||
|
|
|||
|
namespace FineUIPro.Web.Email_Send
|
|||
|
{
|
|||
|
public partial class Email_Pop_Edit : PageBase
|
|||
|
{
|
|||
|
#region 加载
|
|||
|
protected void Page_Load(object sender, EventArgs e)
|
|||
|
{
|
|||
|
if (!IsPostBack)
|
|||
|
{
|
|||
|
//按钮权限
|
|||
|
|
|||
|
Email_Pop pops = new Email_Pop();
|
|||
|
|
|||
|
pops = BLL.Email_Send.Email_PopService.GetEmail_Pop("7EC5E991-B7A0-495A-90ED-2BE15370C959");
|
|||
|
if (pops != null)
|
|||
|
{
|
|||
|
EmailFwq.Text = pops.EmailFwq;
|
|||
|
EmailDk.Text = pops.EmailDk;
|
|||
|
EmailYx.Text = pops.EmailYx;
|
|||
|
EmailUsername.Text = pops.EmailUsername;
|
|||
|
EmailPass.Text = pops.EmailPass;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
protected void btnSubmit_Click(object sender, EventArgs e)
|
|||
|
{
|
|||
|
Email_Pop pop = new Email_Pop();
|
|||
|
|
|||
|
pop.EmailID = "7EC5E991-B7A0-495A-90ED-2BE15370C959";
|
|||
|
pop.EmailFwq = EmailFwq.Text.Trim();
|
|||
|
pop.EmailDk = EmailDk.Text.Trim();
|
|||
|
pop.EmailYx = EmailYx.Text.Trim();
|
|||
|
pop.EmailUsername = EmailUsername.Text.Trim();
|
|||
|
pop.EmailPass = EmailPass.Text.Trim();
|
|||
|
pop.CreateTime = DateTime.Now.ToString();
|
|||
|
pop.CreateName = CurrUser.UserName;
|
|||
|
pop.UpdateTime = DateTime.Now.ToString();
|
|||
|
pop.UpdateName = CurrUser.UserName;
|
|||
|
|
|||
|
BLL.Email_Send.Email_PopService.UpdateEmail_Pop(pop);
|
|||
|
//BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "Update Email information");
|
|||
|
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
}
|