/// <summary>
        /// 点击全部标记为已读的事件处理
        /// </summary>
        /// <param name="lstMessageId"></param>
        /// <param name="action"></param>
        /// <param name="cancel"></param>
        private void dlgMsg_SetCheckedMessageStatus(List <Guid> lstMessageId, TrasenMessage.Action action, ref bool cancel)
        {
            DialogResult result = ShowMessageBox(false);

            if (result == DialogResult.No)
            {
                cancel = true;
                return;
            }

            try
            {
                TrasenClasses.DatabaseAccess.RelationalDatabase database = new TrasenClasses.DatabaseAccess.MsSqlServer();
                database.Initialize(TrasenFrame.Classes.WorkStaticFun.GetConnnectionString_Default(TrasenFrame.Classes.ConnectionType.SQLSERVER));

                foreach (Guid MessageId in lstMessageId)
                {
                    //标记为已读的操作
                    TrasenFrame.Classes.MessageInfo msgInfo = new TrasenFrame.Classes.MessageInfo(MessageId, database);
                    //调用Read方法,记录阅读人
                    msgInfo.SetStatus(false, this._employeeId,
                                      System.Net.Dns.GetHostByName(System.Net.Dns.GetHostName()).AddressList[0].ToString());
                }
            }
            catch (Exception error)
            {
                TrasenFrame.Forms.FrmMdiMain.WriteFrameLocalLog(new string[] { error.Message }, true);
            }
        }
        /// <summary>
        /// 点击消息弹出窗上的消息事件
        /// </summary>
        /// <param name="MessageId"></param>
        private void dlgMsg_MessageContentClicked(Guid MessageId, TrasenMessage.Action action, ref bool cancel)
        {
            try
            {
                TrasenClasses.DatabaseAccess.RelationalDatabase database = new TrasenClasses.DatabaseAccess.MsSqlServer();
                database.Initialize(TrasenFrame.Classes.WorkStaticFun.GetConnnectionString_Default(TrasenFrame.Classes.ConnectionType.SQLSERVER));

                if (action == TrasenMessage.Action.ViewDetail)
                {
                    TrasenFrame.Classes.MessageInfo msgInfo = new TrasenFrame.Classes.MessageInfo(MessageId, database);
                    //调用Read方法,记录阅读人
                    msgInfo.SetStatus(true, _employeeId,
                                      System.Net.Dns.GetHostByName(System.Net.Dns.GetHostName()).AddressList[0].ToString());

                    //向主窗口发消息进行消息处理,需要处理消息内容的操作,
                    SendMessageToMainForm(MessageId);
                }
                else
                {
                    //DialogResult result = (DialogResult)this.Invoke( new OnShowMessageBoxHandler( ShowMessageBox ) , true );
                    DialogResult result = ShowMessageBox(true);
                    if (result == DialogResult.No)
                    {
                        cancel = true;
                        return;
                    }
                    if (MessageId != Guid.Empty)
                    {
                        //标记为已读的操作
                        TrasenFrame.Classes.MessageInfo msgInfo = new TrasenFrame.Classes.MessageInfo(MessageId, database);
                        //调用Read方法,记录阅读人
                        msgInfo.SetStatus(false, _employeeId,
                                          System.Net.Dns.GetHostByName(System.Net.Dns.GetHostName()).AddressList[0].ToString());
                    }
                }
            }
            catch (Exception error)
            {
                TrasenFrame.Forms.FrmMdiMain.WriteFrameLocalLog(new string[] { error.Message }, true);
            }
        }