public static Frm_Statistics GetStatistic() { if (statistics == null || statistics.IsDisposed) { statistics = new Frm_Statistics(); } return(statistics); }
private void Tbar_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e) { string itemName = e.Item.Name; if ("tbar_ZLJG".Equals(itemName))//著录加工 { Frm_MainFrame frm = GetFormHelper.GetMainFrame(new Frm_CG()); frm.Show(); frm.Activate(); } else if ("tbar_YJDJ".Equals(itemName))//移交登记 { Frm_MainFrame frm = GetFormHelper.GetMainFrame(new Frm_ToR()); frm.Show(); frm.Activate(); } else if ("tbar_DAJS".Equals(itemName))//档案接收 { SplashScreenManager.ShowDefaultWaitForm(this, true, false); Frm_MainFrame frm = GetFormHelper.GetMainFrame(new Frm_DomAccept()); frm.Show(); frm.Activate(); SplashScreenManager.CloseDefaultWaitForm(); } else if ("tbar_DAZJ".Equals(itemName))//档案质检 { Frm_MainFrame frm = GetFormHelper.GetMainFrame(new Frm_QT()); frm.Show(); frm.Activate(); } else if ("tbar_Manage".Equals(itemName))//后台管理 { Frm_MainFrameManager frm = new Frm_MainFrameManager(this, UserHelper.GetUser()); frm.ShowDialog(); } else if ("tbar_Count".Equals(itemName))//统计分析 { Frm_Statistics frm = GetFormHelper.GetStatistic(); frm.Show(); frm.Activate(); } else if ("tbar_Query".Equals(itemName))//查询借阅 { SplashScreenManager.ShowDefaultWaitForm(this, true, false); Frm_QueryBorrowing frm = GetFormHelper.GetQueryBorrow(this); SplashScreenManager.CloseDefaultWaitForm(); frm.Show(); frm.Activate(); } else if ("tbar_Download".Equals(itemName))//下载 { Frm_Download frm = GetFormHelper.GetFileDownload(); frm.Show(); frm.Activate(); } else if ("tbar_FirstPage".Equals(itemName)) { search.ResetText(); txt_DateSearch.ResetText(); LoadDataListByPage(null, 1); } }