public void ForwardSet(int MailID)
    {
        ML_MailBLL mailbll = new ML_MailBLL(MailID);
        string tmpStr = "<br/>" + mailbll.Model.Content.ToString();
        tmpStr = tmpStr.Replace("<br/>", "\r\n");
        this.txtSubject.Text = "Fw:" + mailbll.Model.Subject.ToString();
        this.ckedit_content.Text = "你好!\n\n\n";
        this.ckedit_content.Text += "=======下面是转发邮件=======\n";
        this.ckedit_content.Text += "原邮件发件人姓名:" + mailbll.Model.Sender.ToString() + "\n";
        this.ckedit_content.Text += "原邮件发送时间:" + mailbll.Model.SendTime.ToString() + "\n";
        this.ckedit_content.Text += "原邮件收件人姓名:" + mailbll.Model.ReceiverStr.ToString() + "\n";
        this.ckedit_content.Text += tmpStr;

        //设置附件信息
        ML_AttachFileBLL attachfiledal = new ML_AttachFileBLL();
        IList<ML_AttachFile> fileList = mailbll.GetAttachFiles();
        if (fileList.Count != 0)
        {
            for (int i = 0; i < fileList.Count; i++)
            {
                ML_AttachFile att = new ML_AttachFile();

                att.Size = fileList[i].Size;
                att.Name = fileList[i].Name;
                att.Uploaduser = fileList[i].Uploaduser;
                att.Extname = fileList[i].Extname;
                att.GUID = fileList[i].GUID;
                upattlist.Add(att);
            }
        }
        BindAttList();
    }
    public void ForwardSet(int MailID)
    {
        ML_MailBLL mailbll = new ML_MailBLL(MailID);
        string     tmpStr  = "<br/>" + mailbll.Model.Content.ToString();

        tmpStr = tmpStr.Replace("<br/>", "\r\n");
        this.txtSubject.Text      = "Fw:" + mailbll.Model.Subject.ToString();
        this.ckedit_content.Text  = "你好!\n\n\n";
        this.ckedit_content.Text += "=======下面是转发邮件=======\n";
        this.ckedit_content.Text += "原邮件发件人姓名:" + mailbll.Model.Sender.ToString() + "\n";
        this.ckedit_content.Text += "原邮件发送时间:" + mailbll.Model.SendTime.ToString() + "\n";
        this.ckedit_content.Text += "原邮件收件人姓名:" + mailbll.Model.ReceiverStr.ToString() + "\n";
        this.ckedit_content.Text += tmpStr;

        //设置附件信息
        ML_AttachFileBLL      attachfiledal = new ML_AttachFileBLL();
        IList <ML_AttachFile> fileList      = mailbll.GetAttachFiles();

        if (fileList.Count != 0)
        {
            for (int i = 0; i < fileList.Count; i++)
            {
                ML_AttachFile att = new ML_AttachFile();

                att.Size       = fileList[i].Size;
                att.Name       = fileList[i].Name;
                att.Uploaduser = fileList[i].Uploaduser;
                att.Extname    = fileList[i].Extname;
                att.GUID       = fileList[i].GUID;
                upattlist.Add(att);
            }
        }
        BindAttList();
    }
    /// </summary>
    public void ReadMailInfo()
    {
        ML_MailBLL mailbll = new ML_MailBLL(int.Parse(MailID));

        mailbll.UpdateIsRead();

        if (mailbll.Model.Sender != null)
        {
            lblSenderName.Text = mailbll.Model.Sender.ToString();       //寄信人
            if (mailbll.Model.Receiver == "" && mailbll.Model.ReceiverStr != "")
            {
                if (mailbll.Model.ReceiverStr.Substring(mailbll.Model.ReceiverStr.Length - 1, 1) == ",")
                {
                    lblReceiver.Text = mailbll.Model.ReceiverStr.Substring(0, mailbll.Model.ReceiverStr.Length - 1);
                }
                else
                {
                    lblReceiver.Text = mailbll.Model.ReceiverStr;
                }
            }
        }
        if (mailbll.Model.Receiver != null && mailbll.Model.Receiver != "")
        {
            lblReceiver.Text = mailbll.Model.ReceiverStr.ToString();       //收信人
        }

        if (mailbll.Model.CcToAddr != null)
        {
            lblCcToAddr.Text = mailbll.Model.CcToAddr.ToString();       //抄送地址
        }
        //if (mailbll.Model.BccToAddr != null)
        //{
        //    lblBccToAddr.Text = mailbll.Model.BccToAddr.ToString();         //密送地址
        //}
        if (mailbll.Model.Subject != null)
        {
            lblSubject.Text = mailbll.Model.Subject.ToString();             //主题
        }
        if (mailbll.Model.SendTime != null)
        {
            lblSendTime.Text = mailbll.Model.SendTime.ToString();               //发送时间
        }
        if (mailbll.Model.Content != null)
        {
            lblContent.Text = mailbll.Model.Content.ToString();         //内容
        }

        #region 显示附件信息

        IList <ML_AttachFile> fileList = mailbll.GetAttachFiles();

        foreach (ML_AttachFile attach in fileList)
        {
            lblAttachFile.Text += "&nbsp;<a href='Download.aspx?GUID=" + attach.GUID.ToString() + "' target='_blank'>" +
                                  attach.Name.ToString() + "(" + (attach.Size / 1024).ToString() + " KB)</a><br>";
        }
        #endregion
    }
    /// </summary>
    public void ReadMailInfo()
    {
        ML_MailBLL mailbll = new ML_MailBLL(int.Parse(MailID));
        mailbll.UpdateIsRead();

        if (mailbll.Model.Sender != null)
        {
            lblSenderName.Text = mailbll.Model.Sender.ToString();       //寄信人
            if (mailbll.Model.Receiver == "" && mailbll.Model.ReceiverStr != "")
            {
                if (mailbll.Model.ReceiverStr.Substring(mailbll.Model.ReceiverStr.Length - 1, 1) == ",")
                    lblReceiver.Text = mailbll.Model.ReceiverStr.Substring(0, mailbll.Model.ReceiverStr.Length - 1);
                else
                    lblReceiver.Text = mailbll.Model.ReceiverStr;
            }
        }
        if (mailbll.Model.Receiver != null && mailbll.Model.Receiver != "")
        {
            lblReceiver.Text = mailbll.Model.ReceiverStr.ToString();       //收信人
        }

        if (mailbll.Model.CcToAddr != null)
        {
            lblCcToAddr.Text = mailbll.Model.CcToAddr.ToString();       //抄送地址
        }
        //if (mailbll.Model.BccToAddr != null)
        //{
        //    lblBccToAddr.Text = mailbll.Model.BccToAddr.ToString();         //密送地址
        //}
        if (mailbll.Model.Subject != null)
        {
            lblSubject.Text = mailbll.Model.Subject.ToString();             //主题
        }
        if (mailbll.Model.SendTime != null)
        {
            lblSendTime.Text = mailbll.Model.SendTime.ToString();               //发送时间
        }
        if (mailbll.Model.Content != null)
        {
            lblContent.Text = mailbll.Model.Content.ToString();         //内容
        }

        #region 显示附件信息

        IList<ML_AttachFile> fileList = mailbll.GetAttachFiles();

        foreach (ML_AttachFile attach in fileList)
        {
            lblAttachFile.Text += "&nbsp;<a href='Download.aspx?GUID=" + attach.GUID.ToString() + "' target='_blank'>" +
                attach.Name.ToString() + "(" + (attach.Size / 1024).ToString() + " KB)</a><br>";
        }
        #endregion
    }