FrmSelectInternalMail.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. namespace LYFZ.Software.MainBusiness.BulletinBoard
  10. {
  11. public partial class FrmSelectInternalMail : LYFZ.Software.UI.BulletinBoard.FrmSelectInternalMail
  12. {
  13. public int ID;
  14. public FrmSelectInternalMail()
  15. {
  16. }
  17. #region 加载
  18. protected override void FrmSelectInternalMail_Load(object sender, EventArgs e)
  19. {
  20. try
  21. {
  22. if (ID > 0)
  23. {
  24. LYFZ.BLL.BLL_ErpInternalMail bll = new BLL.BLL_ErpInternalMail();
  25. DataTable dt = bll.View_ErpInternalMail("ID=" + ID + "").Tables[0];
  26. if (dt.Rows.Count > 0)
  27. {
  28. txtImail_ToName.Text = dt.Rows[0]["Imail_ToNames"].ToString();
  29. txtImail_Content.Text = dt.Rows[0]["Imail_Content"].ToString();
  30. lblNR.Text = "发布人(" + dt.Rows[0]["Imail_FromNames"] + ") 时间(" + dt.Rows[0]["Imail_ToSendDatetime"] + ") 内容如下:";
  31. }
  32. }
  33. }
  34. catch (Exception ex) { MessageBoxCustom.Show(ex.Message); }
  35. }
  36. #endregion
  37. #region 关闭
  38. protected override void btnClose_Click(object sender, EventArgs e)
  39. {
  40. this.Close();
  41. }
  42. #endregion
  43. }
  44. }