关键事项、邮件管理、任务管理
This commit is contained in:
@@ -0,0 +1,92 @@
|
||||
using Model;
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace FineUIPro.Web.Email_Send
|
||||
{
|
||||
public partial class Email_Pop_Edit : PageBase
|
||||
{
|
||||
#region 加载
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
//按钮权限
|
||||
GetButtonPower();
|
||||
Email_Pop pops = new Email_Pop();
|
||||
|
||||
pops = BLL.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)
|
||||
{
|
||||
var pop1 = BLL.Email_PopService.GetEmail_Pop("7EC5E991-B7A0-495A-90ED-2BE15370C959");
|
||||
Email_Pop pop = new Email_Pop();
|
||||
|
||||
if (pop1 == null)
|
||||
{
|
||||
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;
|
||||
pop.CreateUserId = this.CurrUser.UserId;
|
||||
pop.CreateName = this.CurrUser.UserName;
|
||||
pop.UpdateTime = DateTime.Now;
|
||||
pop.UpdateUserId = this.CurrUser.UserId;
|
||||
pop.UpdateName = this.CurrUser.UserName;
|
||||
BLL.Email_PopService.AddEmail_Pop(pop);
|
||||
}
|
||||
else
|
||||
{
|
||||
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;
|
||||
pop.CreateUserId = this.CurrUser.UserId;
|
||||
pop.CreateName = this.CurrUser.UserName;
|
||||
pop.UpdateTime = DateTime.Now;
|
||||
pop.UpdateUserId = this.CurrUser.UserId;
|
||||
pop.UpdateName = this.CurrUser.UserName;
|
||||
|
||||
BLL.Email_PopService.UpdateEmail_Pop(pop);
|
||||
}
|
||||
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, "", "", "", "Update Email information");
|
||||
ShowNotify("Save Successfully!", MessageBoxIcon.Success);
|
||||
|
||||
}
|
||||
|
||||
#region 权限设置
|
||||
/// <summary>
|
||||
/// 菜单按钮权限
|
||||
/// </summary>
|
||||
private void GetButtonPower()
|
||||
{
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.RolePowerMenuId);
|
||||
if (buttonList.Count() > 0)
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnSave))
|
||||
{
|
||||
this.btnSubmit.Hidden = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user