#region 添加消息列
/// <summary>
/// 添加消息列
/// </summary>
private void GetLinkLable()
{
try
{
string user = " and 员工编码=" + TaskNotifier.currentEmployee.EmployeeCode.ToString();
IList<WEC.HR.KaoQin.GoingToDo> list = WEC.HR.KaoQin.GoingToDo.LoadGoingToDo(user);
int count = list.Count;
int top = 10;
int left = 5;
for (int i = 0; i <count; i++)
{
LinkLabel linklabel = new LinkLabel();
linklabel.Name = "linklabel" + (i+1).ToString();
linklabel.Text = list[i].标题 + " " + list[i].发件人 + " "+list[i].开始日期;
linklabel.Left = left;
linklabel.Top = i * (top + 11);
linklabel.Width = 200;
linklabel.LinkBehavior = LinkBehavior.HoverUnderline;
linklabel.Visible = true;
this.panel1.Controls.Add(linklabel);
}
}
catch (Exception ex)
{ ; }
}
#endregion