/// <summary> /// 定时消息提醒 /// </summary> private void timerMessage_Tick(object sender, EventArgs e) { try { if (ssHandler.isLock) { //MessageHandler.ShowMessageBox("I want Locking!!!"); return; } if (SystemInfo.EnableWorkFlowMessage)//流程图提醒 { //int userWFInt = userWFDAO.QueryUserWorkFlow_Count(); //int rejectInt = userWFDAO.QueryRejectOrder_Count(); //if (userWFInt + rejectInt > 0) //{ // alertControlMessage.Show(this, "消息提示", string.Format("有{0}条单据需要您处理。", userWFInt + rejectInt), null, null, "EnableWorkFlowMessage"); //} int sumCount = workFlowsDAO.QueryUserWorkFlows_Count(); if (sumCount > 0) { alertControlMessage.Show(this, "消息提示", string.Format("有{0}条单据需要您处理。", sumCount), null, null, "EnableWorkFlowMessage"); } } if (SystemInfo.PrListDistributionMessage)//请购单明细任务分配提醒 { int countInt = new FrmPrReqListDistributionDAO().QueryPrReqList_ArrangementCount(SystemInfo.user.AutoId); if (countInt > 0) { alertControlMessage.Show(this, "消息提示", string.Format("有{0}条请购明细指定您处理。", countInt), null, null, "PrListDistributionMessage"); } } } catch (Exception ex) { ExceptionHandler.HandleException_NoMessage(this.Text + "--定时消息提醒错误。", ex); } }