protected void Page_Load(object sender, EventArgs e) { Account LoginUser = Session[SessionKeys.LOGININFO] as Account; WorkAgePieChartIndexPresenter workAgePieChartIndexPresenter = new WorkAgePieChartIndexPresenter(this, LoginUser); workAgePieChartIndexPresenter.InitPresent(IsPostBack); workAgePieChartIndexPresenter.StatisticsEmployee(null, null); }
override protected void OnInit(EventArgs e) { base.OnInit(e); Account LoginUser = Session[SessionKeys.LOGININFO] as Account; WorkAgePieChartIndexPresenter workAgePieChartIndexPresenter = new WorkAgePieChartIndexPresenter(this, LoginUser); workAgePieChartIndexPresenter.InitPresent(false); }