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.Model;
|
using CY.Infrastructure.Query;
|
using CY.Infrastructure;
|
using CY.Infrastructure.DESEncrypt;
|
using CY.Infrastructure.Common;
|
using CY.BLL.Sys;
|
using CY.Config;
|
|
namespace CY.WebForm.Pages.member
|
{
|
//吴辉
|
//支付码设置
|
public partial class SetSafeCode : BasePage
|
{
|
EC_MemberBasicBLL bll_EC_MemberBasicBLL = null;
|
|
//初始化
|
public SetSafeCode()
|
{
|
bll_EC_MemberBasicBLL = new EC_MemberBasicBLL();
|
}
|
|
//页面加载
|
protected void Page_Load(object sender, EventArgs e)
|
{
|
if (!IsPostBack)
|
{
|
if (!string.IsNullOrEmpty(CurrentPayAccount.PayPwd))
|
JavaScript.MessageBox("您已经设置了支付密码,如需修改请联系网站管理员", this, true, true);
|
}
|
}
|
|
//提交事件
|
protected void btn_submit_form(object sender, EventArgs e)
|
{
|
try
|
{
|
Pay_PaymentAccount m_Pay_PaymentAccount = bll_EC_MemberBasicBLL.GetPaymentAccountByMemberId(CurrentUser.MemberId);
|
if (m_Pay_PaymentAccount != null)
|
{
|
if (string.IsNullOrEmpty(this.pwdNewPassWord.Value) || string.IsNullOrEmpty(this.pwdAgainPassWord.Value))
|
JavaScript.MessageBox("密码不能为空", this);
|
else if (this.pwdNewPassWord.Value != this.pwdAgainPassWord.Value)
|
JavaScript.MessageBox("两次密码输入不一致", this);
|
else
|
{
|
m_Pay_PaymentAccount.PayPwd = DESEncrypt.Encrypt(this.pwdNewPassWord.Value);
|
m_Pay_PaymentAccount.Operator = CurrentUser.ShortName;
|
m_Pay_PaymentAccount.LastUpdateTime = DateTime.Now;
|
if (bll_EC_MemberBasicBLL.UpdateModelPay_PaymentAccount(m_Pay_PaymentAccount))
|
{
|
//JavaScript.MessageBox("更新成功", this);
|
JavaScript.RefreshDIVOpener(this);
|
}
|
else
|
JavaScript.MessageBox("操作失败", this);
|
}
|
}
|
else
|
JavaScript.MessageBox("操作失败", this);
|
}
|
catch (Exception ex)
|
{
|
PAGEHandleException(ex);
|
JavaScript.MessageBox("操作失败", this);
|
}
|
}
|
}
|
}
|