/// <summary>
        /// 生成多个报表,并保存到月报表数据中
        /// </summary>
        /// <param name="reportInfoNames"></param>
        /// <param name="dateStart"></param>
        /// <param name="dateEnd"></param>
        public static void GenerateMonthReport(MonthReportInfo monthReportInfo, string[] reportInfoNames)
        {
            LogEntityDao<MonthReportInfo> dao = new LogEntityDao<MonthReportInfo>();
            LogEntityDao<MonthReportDataInfo> subDao = new LogEntityDao<MonthReportDataInfo>();

            using (IRepository rep = ServiceProvider.GetService<IRepositoryFactory>().GenerateRepository<MonthReportInfo>())
            {
                try
                {
                    rep.BeginTransaction();
                    dao.Update(rep, monthReportInfo);

                    if (monthReportInfo.Reports != null)
                    {
                        foreach (MonthReportDataInfo i in monthReportInfo.Reports)
                        {
                            rep.Delete(i);
                        }
                        monthReportInfo.Reports.Clear();
                    }
                    foreach (string s in reportInfoNames)
                    {
                        MonthReportDataInfo dataInfo = new MonthReportDataInfo();
                        dataInfo.Name = s;
                        dataInfo.MonthReport = monthReportInfo;
                        dataInfo.Data = GenerateReport(s, monthReportInfo.报表日期起, monthReportInfo.报表日期止);
                        dataInfo.ClientId = 0;
                        dataInfo.OrgId = 0;

                        if (monthReportInfo.Reports == null)
                        {
                            monthReportInfo.Reports = new List<MonthReportDataInfo>();
                        }
                        monthReportInfo.Reports.Add(dataInfo);

                        subDao.Save(rep, dataInfo);
                    }

                    rep.CommitTransaction();
                }
                catch (Exception ex)
                {
                    rep.RollbackTransaction();
                    ExceptionProcess.ProcessWithNotify(ex);
                }

            }
        }
        /// <summary>
        /// 生成多个报表,并保存到月报表数据中
        /// </summary>
        /// <param name="reportInfoNames"></param>
        /// <param name="dateStart"></param>
        /// <param name="dateEnd"></param>
        public static void GenerateMonthReport(MonthReportInfo monthReportInfo, string[] reportInfoNames)
        {
            LogEntityDao <MonthReportInfo>     dao    = new LogEntityDao <MonthReportInfo>();
            LogEntityDao <MonthReportDataInfo> subDao = new LogEntityDao <MonthReportDataInfo>();

            using (IRepository rep = ServiceProvider.GetService <IRepositoryFactory>().GenerateRepository <MonthReportInfo>())
            {
                try
                {
                    rep.BeginTransaction();
                    dao.Update(rep, monthReportInfo);

                    if (monthReportInfo.Reports != null)
                    {
                        foreach (MonthReportDataInfo i in monthReportInfo.Reports)
                        {
                            rep.Delete(i);
                        }
                        monthReportInfo.Reports.Clear();
                    }
                    foreach (string s in reportInfoNames)
                    {
                        MonthReportDataInfo dataInfo = new MonthReportDataInfo();
                        dataInfo.Name        = s;
                        dataInfo.MonthReport = monthReportInfo;
                        dataInfo.Data        = GenerateReport(s, monthReportInfo.报表日期起, monthReportInfo.报表日期止);
                        dataInfo.ClientId    = 0;
                        dataInfo.OrgId       = 0;

                        if (monthReportInfo.Reports == null)
                        {
                            monthReportInfo.Reports = new List <MonthReportDataInfo>();
                        }
                        monthReportInfo.Reports.Add(dataInfo);

                        subDao.Save(rep, dataInfo);
                    }

                    rep.CommitTransaction();
                }
                catch (Exception ex)
                {
                    rep.RollbackTransaction();
                    ExceptionProcess.ProcessWithNotify(ex);
                }
            }
        }
        private void FixIt(AlertInfo alertInfo)
        {
            if (m_bll == null)
            {
                m_bll = new LogEntityDao <AlertInfo>();
            }
            alertInfo.IsFixed = true;

            try
            {
                m_bll.Update(alertInfo);
            }
            catch (Exception ex)
            {
                ExceptionProcess.ProcessWithNotify(ex);
            }
        }