/// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnDelete_Click(object sender, System.EventArgs e) { ML_MailDAL maildal = new ML_MailDAL(); if (maildal.UpdateIsdeleteByID(int.Parse(MailID)) == 0) { Response.Write("<script language=javascript>alert('邮件删除成功!');window.location='Index.aspx?FolderType=" + FolderType + "';</script>"); } else { Server.Transfer("../../Error.aspx"); } }
public static ArrayList MailSend(ML_Mail mailbody) { ML_MailDAL dal = (ML_MailDAL)DataAccess.CreateObject(DALClassName); string[] RecvAr = System.Text.RegularExpressions.Regex.Split(mailbody.ReceiverStr + "," + mailbody.BccToAddr + "," + mailbody.CcToAddr, ","); ArrayList listMailID = new ArrayList(); //给发送者发送一条邮件 mailbody.Folder = 2; //寄件箱 mailbody.IsRead = "Y"; int mailid = dal.Add(mailbody); if (mailid != 0) { listMailID.Add(mailid); } // 开始循环发送邮件 for (int i = 0; i < RecvAr.Length - 1; i++) { if (string.IsNullOrEmpty(RecvAr[i])) { continue; } mailbody.IsRead = "N"; mailbody.Folder = 1; //收件箱 mailbody.Receiver = RecvAr[i].ToString(); mailid = dal.Add(mailbody); if (mailid != 0) { listMailID.Add(mailid); } } return(listMailID); }
public ML_MailBLL(int id, bool bycache) : base(DALClassName) { _dal = (ML_MailDAL)_DAL; FillModel(id, bycache); }
public ML_MailBLL(int id) : base(DALClassName) { _dal = (ML_MailDAL)_DAL; FillModel(id); }
///<summary> ///ML_MailDAL ///</summary> public ML_MailBLL() : base(DALClassName) { _dal = (ML_MailDAL)_DAL; _m = new ML_Mail(); }