Web/shop/GroupSentEmail.aspx.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Threading;

using WMPT.SQLServerDAL;
using WMPT.Model;
using WMPT.Common;

public partial class shop_GroupSentEmail : System.Web.UI.Page
{
    ECustomer CBLL = new ECustomer();
    EmailGsmRecord bll = new EmailGsmRecord();
    protected void Page_Load(object sender, EventArgs e)
    {
        ValidatorSet validator = new ValidatorSet("Admin");
        validator.SetValidator();

        if (!Page.IsPostBack)
        {
            AlertScript.RegisterAdminPageClientScriptBlock(this.Page);
        }

        string UserEmailList = "";

        EmailGsmRecordInfo info = new EmailGsmRecordInfo();
        //info = bll.GetModel(Convert.ToInt32(HjNetHelper.GetQueryString("id")));
        string strID = HjNetHelper.GetQueryString("id");
        if (strID != "")
        {
            info = bll.GetModel(Convert.ToInt32(strID));
        }

        if (info == null)
        {
            AlertScript.RegisterStartupScript(this.Page, "", "<script>alert('您输入的接收邮件用户名未能查找到相关用户,因此邮件无法发送');</script>");
        }
        else
        {
            hidUserIdList.Value = info.UserIdList;

            DataTable dt = CBLL.GetEmailAddressList(info.UserIdList);

            foreach (DataRow dr in dt.Rows)
            {
                UserEmailList += dr["Email"].ToString();
                UserEmailList += ",";
            }

            if (UserEmailList.Length > 0)
            {
后面还有 73 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。