using DevExpress.Utils.Extensions;
|
using System.Collections.Generic;
|
|
namespace IStation.WinFrmUI.River
|
{
|
public partial class RiverWaterLevelMainOldPage : DocumentPage
|
{
|
public RiverWaterLevelMainOldPage()
|
{
|
InitializeComponent();
|
this.PageTitle.Caption = "水位分析";
|
this.SurfaceGuid = new SurfaceGuid()
|
{
|
Modular = eModular.Basic,
|
Function = this.PageTitle.Caption
|
};
|
}
|
|
private Dictionary<DevExpress.XtraBars.Navigation.TabNavigationPage, DevExpress.XtraBars.Ribbon.RibbonPageGroup> _tabRibbon = null;
|
|
/// <summary>
|
/// 初始化数据
|
/// </summary>
|
public override void InitialDataSource()
|
{
|
_tabRibbon = new Dictionary<DevExpress.XtraBars.Navigation.TabNavigationPage, DevExpress.XtraBars.Ribbon.RibbonPageGroup>()
|
{
|
{
|
this.tabNavigationPageMonthDataCtrl,
|
this.ribbonPageGroupScreening
|
},
|
};
|
this.tabPane1.SelectedPage = this.tabNavigationPageMonthDataCtrl;
|
|
WaitFrmHelper.ShowWaitForm();
|
|
|
var allPacketList = new BLL.MonthSignalRecordPacket().Get();
|
monthDataCtrl.SetBindingData(allPacketList);
|
byPumpCountCtrl.SetBindingData(allPacketList);
|
byFlowCtrl.SetBindingData(allPacketList);
|
|
|
|
|
WaitFrmHelper.HideWaitForm();
|
}
|
|
|
/// <summary>
|
/// 刷新数据
|
/// </summary>
|
public override void RefreshDataSource()
|
{
|
}
|
|
//页面变换
|
private void tabPane1_SelectedPageChanged(object sender, DevExpress.XtraBars.Navigation.SelectedPageChangedEventArgs e)
|
{
|
//if (_tabRibbon == null)
|
// return;
|
//var page = (DevExpress.XtraBars.Navigation.TabNavigationPage)e.Page;
|
//if (!_tabRibbon.ContainsKey(page))
|
//{
|
// this.ribbonPage1.Groups.ForEach(x =>
|
// {
|
// if (x != this.ribbonPageGroupDefault)
|
// {
|
// x.Visible = false;
|
// }
|
// });
|
//}
|
//else
|
//{
|
// _tabRibbon[page].Visible = true;
|
//}
|
}
|
|
|
|
//刷新数据
|
private void barBtnReload_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
|
{
|
//this.dataScreeningChartCtrl1.InitialDataSource();
|
}
|
|
|
}
|
}
|