Пример #1
0
    private void DelTempAnnex(string strSenderCode)
    {
        MailManage mailManage = new MailManage();
        DataTable  tempAnnex  = mailManage.GetTempAnnex(strSenderCode);

        for (int i = 0; i < tempAnnex.Rows.Count; i++)
        {
            if (!mailManage.DelTempAnnex(int.Parse(tempAnnex.Rows[i]["i_fj_id"].ToString()), true))
            {
                this.RegisterClientScriptBlock("warn", "<SCRIPT languange=\"JavaScript\">alert('" + mailManage.MessageString + "');</SCRIPT>");
            }
        }
    }
Пример #2
0
    private bool DelTempAnnex(string strSenderCode)
    {
        MailManage mailManage = new MailManage();
        DataTable  tempAnnex  = mailManage.GetTempAnnex(strSenderCode);

        for (int i = 0; i < tempAnnex.Rows.Count; i++)
        {
            if (!mailManage.DelTempAnnex(int.Parse(tempAnnex.Rows[i]["i_fj_id"].ToString()), true))
            {
                return(false);
            }
        }
        return(true);
    }
Пример #3
0
    private void GetTempAnnex()
    {
        int num  = 0;
        int num2 = 2147483647;

        this.LBoxAnnex.Items.Clear();
        MailManage mailManage = new MailManage();
        DataTable  tempAnnex  = mailManage.GetTempAnnex(this._strSenderCode);

        foreach (DataRow dataRow in tempAnnex.Rows)
        {
            this.LBoxAnnex.Items.Add(new System.Web.UI.WebControls.ListItem(dataRow["v_AnnexName"].ToString(), dataRow["i_fj_id"].ToString()));
            num += int.Parse(dataRow["i_AnnexSize"].ToString());
        }
        if (num >= num2)
        {
            this.Page.RegisterStartupScript("warn", "<script language=\"JavaScript\">alert('该邮件的附件总大小已经超过10M限制,请进行处理,否则该邮件无法发送!');</script>");
        }
    }